@lssm/lib.design-system 1.11.1 → 1.41.1
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 +6 -1
- package/dist/_virtual/rolldown_runtime.js +9 -4
- package/dist/components/agent/ApprovalQueue.js +1 -1
- package/dist/components/atoms/Button.js +4 -5
- package/dist/components/atoms/ButtonLink.js +2 -2
- package/dist/components/atoms/Cta.js +4 -5
- package/dist/components/atoms/EmptyState.js +4 -4
- package/dist/components/atoms/ErrorState.js +1 -2
- package/dist/components/atoms/Input.js +5 -6
- package/dist/components/atoms/Link.js +1 -2
- package/dist/components/atoms/Link.web.js +4 -2
- package/dist/components/atoms/LoaderCircular.js +1 -2
- package/dist/components/atoms/Stepper.js +4 -4
- package/dist/components/atoms/Textarea.js +8 -9
- package/dist/components/data-view/DataViewRenderer.js +2 -2
- package/dist/components/forms/ActionForm.js +18 -0
- package/dist/components/forms/FormOneByOneLayout.js +3 -3
- package/dist/components/forms/FormStepsLayout.js +3 -3
- package/dist/components/forms/ZodForm.js +1 -1
- package/dist/components/legal/atoms/LegalCallout.js +1 -1
- package/dist/components/legal/atoms/LegalHeading.js +1 -1
- package/dist/components/legal/atoms/LegalList.js +1 -1
- package/dist/components/legal/atoms/LegalSection.js +1 -1
- package/dist/components/legal/atoms/LegalText.js +1 -1
- package/dist/components/legal/molecules/ContactFields.js +8 -8
- package/dist/components/legal/molecules/LegalTOC.js +1 -1
- package/dist/components/legal/organisms/ContactForm.js +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
- package/dist/components/legal/templates/ContactTemplate.js +3 -3
- package/dist/components/marketing/MarketingCard.js +20 -0
- package/dist/components/marketing/MarketingCardsSection.js +28 -0
- package/dist/components/marketing/MarketingComparisonSection.js +52 -0
- package/dist/components/marketing/MarketingIconCard.js +73 -0
- package/dist/components/marketing/MarketingSection.js +61 -0
- package/dist/components/marketing/MarketingStepCard.js +36 -0
- package/dist/components/molecules/AiLinkButton.js +4 -4
- package/dist/components/molecules/Breadcrumbs.js +2 -2
- package/dist/components/molecules/CommandPalette.js +3 -3
- package/dist/components/molecules/CommandSearchTrigger.js +3 -3
- package/dist/components/molecules/FiltersToolbar.js +5 -5
- package/dist/components/molecules/HoverPreview.js +2 -2
- package/dist/components/molecules/LangSwitchDropdown.js +2 -2
- package/dist/components/molecules/LoaderBlock.js +1 -2
- package/dist/components/molecules/OverviewCard.js +5 -4
- package/dist/components/molecules/SkeletonBlock/index.web.js +1 -2
- package/dist/components/molecules/SkeletonCircle/index.web.js +1 -2
- package/dist/components/molecules/SkeletonList/index.web.js +4 -5
- package/dist/components/organisms/AcademyLayout.js +2 -2
- package/dist/components/organisms/AppLayout.js +2 -2
- package/dist/components/organisms/EmptySearchResult.js +5 -5
- package/dist/components/organisms/FAQSection.js +2 -2
- package/dist/components/organisms/Footer.js +2 -4
- package/dist/components/organisms/MarketingHeader.js +5 -5
- package/dist/components/organisms/MarketingHeaderMobile.js +2 -2
- package/dist/components/organisms/MarketingLayout.js +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +2 -2
- package/dist/hooks/useListUrlState.js +7 -7
- package/dist/index.js +9 -1
- package/dist/lib/keyboard.js +1 -172
- 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.js +1 -1
- package/package.json +14 -304
- package/dist/components/agent/AgentMonitor.d.ts +0 -28
- package/dist/components/agent/ApprovalQueue.d.ts +0 -25
- package/dist/components/atoms/ActionButtons.d.ts +0 -25
- package/dist/components/atoms/Button.d.ts +0 -39
- package/dist/components/atoms/Button.mobile.d.ts +0 -21
- package/dist/components/atoms/Button.mobile.js +0 -34
- package/dist/components/atoms/ButtonLink.d.ts +0 -21
- package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -19
- package/dist/components/atoms/ButtonLink.mobile.js +0 -41
- package/dist/components/atoms/Cta.d.ts +0 -20
- package/dist/components/atoms/Cta.mobile.d.ts +0 -14
- package/dist/components/atoms/Cta.mobile.js +0 -38
- package/dist/components/atoms/DataChips.d.ts +0 -37
- package/dist/components/atoms/EmptyState.d.ts +0 -7
- package/dist/components/atoms/ErrorState.d.ts +0 -28
- package/dist/components/atoms/ErrorState.mobile.d.ts +0 -28
- package/dist/components/atoms/ErrorState.mobile.js +0 -41
- package/dist/components/atoms/Input.d.ts +0 -39
- package/dist/components/atoms/Input.mobile.d.ts +0 -37
- package/dist/components/atoms/Input.mobile.js +0 -27
- package/dist/components/atoms/Link.d.ts +0 -11
- package/dist/components/atoms/Link.native.d.ts +0 -1
- package/dist/components/atoms/Link.native.js +0 -0
- package/dist/components/atoms/Link.web.d.ts +0 -23
- package/dist/components/atoms/LoaderCircular.d.ts +0 -22
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -17
- package/dist/components/atoms/LoaderCircular.mobile.js +0 -26
- package/dist/components/atoms/NavBrand.d.ts +0 -18
- package/dist/components/atoms/Stepper.d.ts +0 -7
- package/dist/components/atoms/Textarea.d.ts +0 -41
- package/dist/components/atoms/Textarea.mobile.d.ts +0 -37
- package/dist/components/atoms/Textarea.mobile.js +0 -27
- package/dist/components/data-view/DataViewDetail.d.ts +0 -21
- package/dist/components/data-view/DataViewList.d.ts +0 -23
- package/dist/components/data-view/DataViewRenderer.d.ts +0 -47
- package/dist/components/data-view/DataViewTable.d.ts +0 -25
- package/dist/components/data-view/utils.d.ts +0 -5
- package/dist/components/forms/FormCardLayout.d.ts +0 -22
- package/dist/components/forms/FormDialog.d.ts +0 -24
- package/dist/components/forms/FormLayout.d.ts +0 -29
- package/dist/components/forms/FormOneByOneLayout.d.ts +0 -25
- package/dist/components/forms/FormStepsLayout.d.ts +0 -26
- package/dist/components/forms/ZodForm.d.ts +0 -21
- package/dist/components/legal/atoms/DefinitionList.d.ts +0 -16
- package/dist/components/legal/atoms/KeyValueList.d.ts +0 -16
- package/dist/components/legal/atoms/LegalCallout.d.ts +0 -17
- package/dist/components/legal/atoms/LegalHeading.d.ts +0 -24
- package/dist/components/legal/atoms/LegalList.d.ts +0 -20
- package/dist/components/legal/atoms/LegalSection.d.ts +0 -21
- package/dist/components/legal/atoms/LegalText.d.ts +0 -24
- package/dist/components/legal/molecules/Consent.d.ts +0 -35
- package/dist/components/legal/molecules/ContactFields.d.ts +0 -24
- package/dist/components/legal/molecules/LegalMeta.d.ts +0 -14
- package/dist/components/legal/molecules/LegalTOC.d.ts +0 -30
- package/dist/components/legal/organisms/ContactForm.d.ts +0 -29
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -18
- package/dist/components/legal/organisms/GDPRRights.d.ts +0 -13
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -23
- package/dist/components/legal/templates/ContactTemplate.d.ts +0 -23
- package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -32
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -32
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -27
- package/dist/components/legal/templates/TermsTemplate.d.ts +0 -27
- package/dist/components/molecules/AiLinkButton.d.ts +0 -15
- package/dist/components/molecules/Breadcrumbs.d.ts +0 -15
- package/dist/components/molecules/CommandPalette.d.ts +0 -26
- package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -18
- package/dist/components/molecules/DropdownMenu.d.ts +0 -1
- package/dist/components/molecules/DropdownMenu.js +0 -0
- package/dist/components/molecules/EntityCard.d.ts +0 -37
- package/dist/components/molecules/FiltersToolbar.d.ts +0 -35
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -18
- package/dist/components/molecules/FiltersToolbar.mobile.js +0 -48
- package/dist/components/molecules/HoverPreview.d.ts +0 -20
- package/dist/components/molecules/LangSwitch.d.ts +0 -22
- package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -21
- package/dist/components/molecules/LoaderBlock.d.ts +0 -18
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -18
- package/dist/components/molecules/LoaderBlock.mobile.js +0 -25
- package/dist/components/molecules/MobileNavMenu.d.ts +0 -13
- package/dist/components/molecules/NavItemCard.d.ts +0 -14
- package/dist/components/molecules/NavMain.d.ts +0 -13
- package/dist/components/molecules/NavUser.d.ts +0 -17
- package/dist/components/molecules/OverviewCard.d.ts +0 -20
- package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonBlock/index.js +0 -3
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -12
- package/dist/components/molecules/SkeletonBlock/index.mobile.js +0 -18
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -12
- package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -9
- package/dist/components/molecules/SkeletonBlock/types.js +0 -0
- package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonCircle/index.js +0 -3
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -11
- package/dist/components/molecules/SkeletonCircle/index.mobile.js +0 -23
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -11
- package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -8
- package/dist/components/molecules/SkeletonCircle/types.js +0 -0
- package/dist/components/molecules/SkeletonList/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonList/index.js +0 -3
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -10
- package/dist/components/molecules/SkeletonList/index.mobile.js +0 -22
- package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -10
- package/dist/components/molecules/SkeletonList/types.d.ts +0 -7
- package/dist/components/molecules/SkeletonList/types.js +0 -0
- package/dist/components/molecules/StatCard.d.ts +0 -36
- package/dist/components/molecules/StatusChip.d.ts +0 -26
- package/dist/components/molecules/hover-previews/Doc.d.ts +0 -27
- package/dist/components/molecules/hover-previews/Media.d.ts +0 -20
- package/dist/components/molecules/hover-previews/Simple.d.ts +0 -25
- package/dist/components/molecules/hover-previews/Stats.d.ts +0 -22
- package/dist/components/molecules/hover-previews/User.d.ts +0 -25
- package/dist/components/native/BottomTabs.mobile.d.ts +0 -20
- package/dist/components/native/BottomTabs.mobile.js +0 -27
- package/dist/components/native/FlatListScreen.mobile.d.ts +0 -43
- package/dist/components/native/FlatListScreen.mobile.js +0 -63
- package/dist/components/native/SheetMenu.mobile.d.ts +0 -17
- package/dist/components/native/SheetMenu.mobile.js +0 -21
- package/dist/components/organisms/AcademyLayout.d.ts +0 -29
- package/dist/components/organisms/AppHeader.d.ts +0 -18
- package/dist/components/organisms/AppHeader.mobile.d.ts +0 -21
- package/dist/components/organisms/AppHeader.mobile.js +0 -52
- package/dist/components/organisms/AppLayout.d.ts +0 -28
- package/dist/components/organisms/AppSidebar.d.ts +0 -23
- package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
- package/dist/components/organisms/AppSidebar.mobile.js +0 -0
- package/dist/components/organisms/EmptyDataList.d.ts +0 -20
- package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -20
- package/dist/components/organisms/EmptyDataList.mobile.js +0 -27
- package/dist/components/organisms/EmptyDataList.types.d.ts +0 -19
- package/dist/components/organisms/EmptyDataList.types.js +0 -1
- package/dist/components/organisms/EmptySearchResult.d.ts +0 -24
- package/dist/components/organisms/FAQSection.d.ts +0 -31
- package/dist/components/organisms/FeatureCarousel.d.ts +0 -18
- package/dist/components/organisms/FeaturesSection.d.ts +0 -19
- package/dist/components/organisms/Footer.d.ts +0 -25
- package/dist/components/organisms/GridLayout.d.ts +0 -25
- package/dist/components/organisms/GridLayout.js +0 -28
- package/dist/components/organisms/Header.d.ts +0 -37
- package/dist/components/organisms/Header.mobile.d.ts +0 -24
- package/dist/components/organisms/Header.mobile.js +0 -18
- package/dist/components/organisms/HeroResponsive.d.ts +0 -14
- package/dist/components/organisms/HeroSection.d.ts +0 -29
- package/dist/components/organisms/ListCardPage.d.ts +0 -36
- package/dist/components/organisms/ListGridPage.d.ts +0 -36
- package/dist/components/organisms/ListPageResponsive.d.ts +0 -7
- package/dist/components/organisms/ListTablePage.d.ts +0 -33
- package/dist/components/organisms/MarketingHeader.d.ts +0 -36
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -15
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -12
- package/dist/components/organisms/MarketingLayout.d.ts +0 -18
- package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -8
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -22
- package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -32
- package/dist/components/organisms/PricingCarousel.d.ts +0 -24
- package/dist/components/organisms/PricingSection.d.ts +0 -18
- package/dist/components/organisms/TestimonialCarousel.d.ts +0 -19
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -3
- package/dist/components/templates/lists/ListPageTemplate/index.js +0 -3
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -21
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +0 -32
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -22
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -25
- package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
- package/dist/hooks/useListUrlState.d.ts +0 -30
- package/dist/index.d.ts +0 -108
- package/dist/lib/keyboard.d.ts +0 -14
- package/dist/lib/utils.d.ts +0 -6
- package/dist/platform/useColorScheme.d.ts +0 -5
- package/dist/platform/useColorScheme.mobile.d.ts +0 -5
- package/dist/platform/useColorScheme.mobile.js +0 -20
- package/dist/platform/useReducedMotion.d.ts +0 -4
- package/dist/platform/useReducedMotion.mobile.d.ts +0 -4
- package/dist/platform/useReducedMotion.mobile.js +0 -28
- package/dist/platform/useResponsive.d.ts +0 -23
- package/dist/platform/useResponsive.mobile.d.ts +0 -23
- package/dist/platform/useResponsive.mobile.js +0 -42
- package/dist/platform/withPlatformUI.d.ts +0 -28
- package/dist/renderers/form-contract.d.ts +0 -11
- package/dist/renderers/index.d.ts +0 -2
- package/dist/renderers/index.js +0 -3
- package/dist/theme/tokenBridge.d.ts +0 -19
- package/dist/theme/tokens.d.ts +0 -50
- package/dist/theme/variants.d.ts +0 -21
- package/dist/types/nativewind-env.d.ts +0 -1
- package/dist/types/navigation.d.ts +0 -44
- package/dist/types/navigation.js +0 -1
package/dist/index.js
CHANGED
|
@@ -23,6 +23,12 @@ import { MarketingHeader } from "./components/organisms/MarketingHeader.js";
|
|
|
23
23
|
import { MarketingHeaderDesktop } from "./components/organisms/MarketingHeaderDesktop.js";
|
|
24
24
|
import { MarketingHeaderMobile } from "./components/organisms/MarketingHeaderMobile.js";
|
|
25
25
|
import { MarketingLayout } from "./components/organisms/MarketingLayout.js";
|
|
26
|
+
import { MarketingSection } from "./components/marketing/MarketingSection.js";
|
|
27
|
+
import { MarketingCardsSection } from "./components/marketing/MarketingCardsSection.js";
|
|
28
|
+
import { CardContent, CardDescription, CardHeader, CardTitle, MarketingCard } from "./components/marketing/MarketingCard.js";
|
|
29
|
+
import { MarketingIconCard } from "./components/marketing/MarketingIconCard.js";
|
|
30
|
+
import { MarketingStepCard } from "./components/marketing/MarketingStepCard.js";
|
|
31
|
+
import { MarketingComparisonSection } from "./components/marketing/MarketingComparisonSection.js";
|
|
26
32
|
import { AppLayout } from "./components/organisms/AppLayout.js";
|
|
27
33
|
import { AcademyLayout } from "./components/organisms/AcademyLayout.js";
|
|
28
34
|
import { AppHeader } from "./components/organisms/AppHeader.js";
|
|
@@ -33,6 +39,7 @@ import { HoverPreview, init_HoverPreview } from "./components/molecules/HoverPre
|
|
|
33
39
|
import { StatusChip } from "./components/molecules/StatusChip.js";
|
|
34
40
|
import { EntityCard } from "./components/molecules/EntityCard.js";
|
|
35
41
|
import { StatCard, StatCardGroup } from "./components/molecules/StatCard.js";
|
|
42
|
+
import { OverviewCard } from "./components/molecules/OverviewCard.js";
|
|
36
43
|
import { HoverPreviewSimple } from "./components/molecules/hover-previews/Simple.js";
|
|
37
44
|
import { HoverPreviewMedia } from "./components/molecules/hover-previews/Media.js";
|
|
38
45
|
import { HoverPreviewDoc } from "./components/molecules/hover-previews/Doc.js";
|
|
@@ -95,6 +102,7 @@ import { FormGrid, FormRow, FormSection } from "./components/forms/FormLayout.js
|
|
|
95
102
|
import { FormCardLayout } from "./components/forms/FormCardLayout.js";
|
|
96
103
|
import { FormStepsLayout } from "./components/forms/FormStepsLayout.js";
|
|
97
104
|
import { FormOneByOneLayout } from "./components/forms/FormOneByOneLayout.js";
|
|
105
|
+
import { ActionForm } from "./components/forms/ActionForm.js";
|
|
98
106
|
import { DataViewList } from "./components/data-view/DataViewList.js";
|
|
99
107
|
import { DataViewTable } from "./components/data-view/DataViewTable.js";
|
|
100
108
|
import { DataViewDetail } from "./components/data-view/DataViewDetail.js";
|
|
@@ -104,4 +112,4 @@ import { DataViewRenderer } from "./components/data-view/DataViewRenderer.js";
|
|
|
104
112
|
init_HoverPreview();
|
|
105
113
|
|
|
106
114
|
//#endregion
|
|
107
|
-
export { AcademyLayout, AgentMonitor, AiLinkButton, AppHeader, AppLayout, AppSidebar, ApprovalQueue, Breadcrumbs, Button, ButtonLink_default as ButtonLink, CommandPalette, CommandSearchTrigger, ConsentItem, ConsentList, ContactFields, ContactForm, ContactTemplate, CookiesTemplate, Cta, DEFAULT_BREAKPOINTS, DataViewDetail, DataViewList, DataViewRenderer, DataViewTable, DateChip, DefinitionList, DeleteButton, DesktopHeader, DurationChip, EditButton, EmptyDataList, EmptySearchResult, EmptyState, EntityCard, ErrorState, FAQSection, FeatureCarousel, FeaturesSection, FiltersToolbar, Footer, FormCardLayout, FormDialog, FormGrid, FormOneByOneLayout, FormRow, FormSection, FormStepsLayout, GDPRDataRequest, GDPRRights, Header, HeroResponsive, HeroSection, HoverPreview, HoverPreviewDoc, HoverPreviewMedia, HoverPreviewSimple, HoverPreviewStats, HoverPreviewUser, Input, KeyValueList, LangSwitch, LegalCallout, LegalHeading, LegalList, LegalMeta, LegalPageLayout, LegalSection, LegalTOC, LegalText, Link, ListCardPage, ListGridPage, ListPageResponsive, ListPageTemplate, ListTablePage, LoaderBlock, LoaderCircular, MarketingHeader, MarketingHeaderDesktop, MarketingHeaderMobile, MarketingLayout, MobileHeader, NavBrand, NavMain, NavUser, PageHeaderResponsive, PlaceChip, PricingCarousel, PricingSection, PrivacyTemplate, SalesTermsTemplate, SkeletonBlock, SkeletonCircle, SkeletonList, StatCard, StatCardGroup, StatusChip, Stepper, TermsTemplate, TestimonialCarousel, Textarea, TimeChip, ToggleButton, ToggleLeftButton, ToggleRightButton, ViewButton, ZodForm, defaultTokens, dsBaseVariants, formRenderer, mapTokensForPlatform, useColorScheme, useListUrlState, useReducedMotion, useResponsive, withPlatformUI };
|
|
115
|
+
export { AcademyLayout, ActionForm, AgentMonitor, AiLinkButton, AppHeader, AppLayout, AppSidebar, ApprovalQueue, Breadcrumbs, Button, ButtonLink_default as ButtonLink, CommandPalette, CommandSearchTrigger, ConsentItem, ConsentList, ContactFields, ContactForm, ContactTemplate, CookiesTemplate, Cta, DEFAULT_BREAKPOINTS, DataViewDetail, DataViewList, DataViewRenderer, DataViewTable, DateChip, DefinitionList, DeleteButton, DesktopHeader, DurationChip, EditButton, EmptyDataList, EmptySearchResult, EmptyState, EntityCard, ErrorState, FAQSection, FeatureCarousel, FeaturesSection, FiltersToolbar, Footer, FormCardLayout, FormDialog, FormGrid, FormOneByOneLayout, FormRow, FormSection, FormStepsLayout, GDPRDataRequest, GDPRRights, Header, HeroResponsive, HeroSection, HoverPreview, HoverPreviewDoc, HoverPreviewMedia, HoverPreviewSimple, HoverPreviewStats, HoverPreviewUser, Input, KeyValueList, LangSwitch, LegalCallout, LegalHeading, LegalList, LegalMeta, LegalPageLayout, LegalSection, LegalTOC, LegalText, Link, ListCardPage, ListGridPage, ListPageResponsive, ListPageTemplate, ListTablePage, LoaderBlock, LoaderCircular, MarketingCard, CardContent as MarketingCardContent, CardDescription as MarketingCardDescription, CardHeader as MarketingCardHeader, CardTitle as MarketingCardTitle, MarketingCardsSection, MarketingComparisonSection, MarketingHeader, MarketingHeaderDesktop, MarketingHeaderMobile, MarketingIconCard, MarketingLayout, MarketingSection, MarketingStepCard, MobileHeader, NavBrand, NavMain, NavUser, OverviewCard, PageHeaderResponsive, PlaceChip, PricingCarousel, PricingSection, PrivacyTemplate, SalesTermsTemplate, SkeletonBlock, SkeletonCircle, SkeletonList, StatCard, StatCardGroup, StatusChip, Stepper, TermsTemplate, TestimonialCarousel, Textarea, TimeChip, ToggleButton, ToggleLeftButton, ToggleRightButton, ViewButton, ZodForm, defaultTokens, dsBaseVariants, formRenderer, mapTokensForPlatform, useColorScheme, useListUrlState, useReducedMotion, useResponsive, withPlatformUI };
|
package/dist/lib/keyboard.js
CHANGED
|
@@ -55,51 +55,6 @@ function applyAutoCompleteDefaultsWeb(res, ac) {
|
|
|
55
55
|
"url"
|
|
56
56
|
].includes(ac)) res.autoCapitalize = "none";
|
|
57
57
|
}
|
|
58
|
-
function applyAutoCompleteDefaultsNative(native, ac) {
|
|
59
|
-
if (!ac) return;
|
|
60
|
-
const tc = {
|
|
61
|
-
name: "name",
|
|
62
|
-
"given-name": "givenName",
|
|
63
|
-
"additional-name": "middleName",
|
|
64
|
-
"family-name": "familyName",
|
|
65
|
-
username: "username",
|
|
66
|
-
"current-password": "password",
|
|
67
|
-
"new-password": "newPassword",
|
|
68
|
-
email: "emailAddress",
|
|
69
|
-
url: "URL",
|
|
70
|
-
tel: "telephoneNumber",
|
|
71
|
-
"address-line1": "streetAddressLine1",
|
|
72
|
-
"address-line2": "streetAddressLine2",
|
|
73
|
-
"postal-code": "postalCode",
|
|
74
|
-
organization: "organizationName",
|
|
75
|
-
"organization-title": "jobTitle",
|
|
76
|
-
"one-time-code": "oneTimeCode"
|
|
77
|
-
}[ac];
|
|
78
|
-
if (tc) native.textContentType = tc;
|
|
79
|
-
if ([
|
|
80
|
-
"name",
|
|
81
|
-
"given-name",
|
|
82
|
-
"additional-name",
|
|
83
|
-
"family-name",
|
|
84
|
-
"honorific-prefix",
|
|
85
|
-
"honorific-suffix",
|
|
86
|
-
"nickname",
|
|
87
|
-
"organization",
|
|
88
|
-
"organization-title",
|
|
89
|
-
"cc-name",
|
|
90
|
-
"cc-given-name",
|
|
91
|
-
"cc-additional-name",
|
|
92
|
-
"cc-family-name"
|
|
93
|
-
].includes(ac)) native.autoCapitalize = "words";
|
|
94
|
-
if ([
|
|
95
|
-
"username",
|
|
96
|
-
"new-password",
|
|
97
|
-
"current-password",
|
|
98
|
-
"one-time-code",
|
|
99
|
-
"email",
|
|
100
|
-
"url"
|
|
101
|
-
].includes(ac)) native.autoCapitalize = "none";
|
|
102
|
-
}
|
|
103
58
|
function mapKeyboardToWeb(opts) {
|
|
104
59
|
const kind = opts?.kind ?? deriveKindFromAutoComplete(opts?.autoComplete) ?? "text";
|
|
105
60
|
const res = {};
|
|
@@ -233,132 +188,6 @@ function mapKeyboardToWeb(opts) {
|
|
|
233
188
|
applyAutoCompleteDefaultsWeb(res, opts?.autoComplete);
|
|
234
189
|
return res;
|
|
235
190
|
}
|
|
236
|
-
function mapKeyboardToNative(opts) {
|
|
237
|
-
const kind = opts?.kind ?? deriveKindFromAutoComplete(opts?.autoComplete) ?? "text";
|
|
238
|
-
const native = {};
|
|
239
|
-
switch (kind) {
|
|
240
|
-
case "password":
|
|
241
|
-
native.secureTextEntry = true;
|
|
242
|
-
native.textContentType = "password";
|
|
243
|
-
native.keyboardType = "default";
|
|
244
|
-
native.autoCapitalize = "none";
|
|
245
|
-
native.autoComplete = opts?.autoComplete ?? "password";
|
|
246
|
-
break;
|
|
247
|
-
case "new-password":
|
|
248
|
-
native.secureTextEntry = true;
|
|
249
|
-
native.textContentType = "newPassword";
|
|
250
|
-
native.keyboardType = "default";
|
|
251
|
-
native.autoCapitalize = "none";
|
|
252
|
-
native.autoComplete = opts?.autoComplete ?? "new-password";
|
|
253
|
-
break;
|
|
254
|
-
case "username":
|
|
255
|
-
native.textContentType = "username";
|
|
256
|
-
native.keyboardType = "default";
|
|
257
|
-
native.autoCapitalize = "none";
|
|
258
|
-
native.autoComplete = opts?.autoComplete ?? "username";
|
|
259
|
-
break;
|
|
260
|
-
case "email":
|
|
261
|
-
native.keyboardType = "email-address";
|
|
262
|
-
native.textContentType = "emailAddress";
|
|
263
|
-
native.autoCapitalize = "none";
|
|
264
|
-
native.autoComplete = opts?.autoComplete ?? "email";
|
|
265
|
-
break;
|
|
266
|
-
case "url":
|
|
267
|
-
native.keyboardType = "url";
|
|
268
|
-
native.textContentType = "URL";
|
|
269
|
-
native.autoComplete = opts?.autoComplete ?? "url";
|
|
270
|
-
break;
|
|
271
|
-
case "search":
|
|
272
|
-
native.keyboardType = "default";
|
|
273
|
-
native.returnKeyType = "search";
|
|
274
|
-
native.autoComplete = opts?.autoComplete ?? "off";
|
|
275
|
-
break;
|
|
276
|
-
case "phone":
|
|
277
|
-
case "tel":
|
|
278
|
-
native.keyboardType = "phone-pad";
|
|
279
|
-
native.textContentType = "telephoneNumber";
|
|
280
|
-
native.autoComplete = opts?.autoComplete ?? "tel";
|
|
281
|
-
break;
|
|
282
|
-
case "number":
|
|
283
|
-
case "int":
|
|
284
|
-
native.keyboardType = "number-pad";
|
|
285
|
-
break;
|
|
286
|
-
case "decimal":
|
|
287
|
-
native.keyboardType = "decimal-pad";
|
|
288
|
-
break;
|
|
289
|
-
case "numbers-and-punctuation":
|
|
290
|
-
native.keyboardType = "numbers-and-punctuation";
|
|
291
|
-
break;
|
|
292
|
-
case "otp":
|
|
293
|
-
native.keyboardType = "number-pad";
|
|
294
|
-
native.textContentType = "oneTimeCode";
|
|
295
|
-
native.autoComplete = opts?.autoComplete ?? "one-time-code";
|
|
296
|
-
native.autoCapitalize = "none";
|
|
297
|
-
break;
|
|
298
|
-
case "name":
|
|
299
|
-
native.textContentType = "name";
|
|
300
|
-
native.autoCapitalize = "words";
|
|
301
|
-
native.autoComplete = opts?.autoComplete ?? "name";
|
|
302
|
-
break;
|
|
303
|
-
case "given-name":
|
|
304
|
-
native.textContentType = "givenName";
|
|
305
|
-
native.autoCapitalize = "words";
|
|
306
|
-
native.autoComplete = opts?.autoComplete ?? "given-name";
|
|
307
|
-
break;
|
|
308
|
-
case "family-name":
|
|
309
|
-
native.textContentType = "familyName";
|
|
310
|
-
native.autoCapitalize = "words";
|
|
311
|
-
native.autoComplete = opts?.autoComplete ?? "family-name";
|
|
312
|
-
break;
|
|
313
|
-
case "address-line1":
|
|
314
|
-
native.textContentType = "streetAddressLine1";
|
|
315
|
-
native.autoComplete = opts?.autoComplete ?? "address-line1";
|
|
316
|
-
break;
|
|
317
|
-
case "address-line2":
|
|
318
|
-
native.textContentType = "streetAddressLine2";
|
|
319
|
-
native.autoComplete = opts?.autoComplete ?? "address-line2";
|
|
320
|
-
break;
|
|
321
|
-
case "postal-code":
|
|
322
|
-
native.keyboardType = "numbers-and-punctuation";
|
|
323
|
-
native.textContentType = "postalCode";
|
|
324
|
-
native.autoComplete = opts?.autoComplete ?? "postal-code";
|
|
325
|
-
break;
|
|
326
|
-
case "cc-number":
|
|
327
|
-
native.keyboardType = "number-pad";
|
|
328
|
-
native.textContentType = "creditCardNumber";
|
|
329
|
-
native.autoComplete = opts?.autoComplete ?? "cc-number";
|
|
330
|
-
break;
|
|
331
|
-
case "cc-exp":
|
|
332
|
-
native.keyboardType = "numbers-and-punctuation";
|
|
333
|
-
native.autoComplete = opts?.autoComplete ?? "cc-exp";
|
|
334
|
-
break;
|
|
335
|
-
case "cc-csc":
|
|
336
|
-
native.keyboardType = "number-pad";
|
|
337
|
-
native.autoComplete = opts?.autoComplete ?? "cc-csc";
|
|
338
|
-
break;
|
|
339
|
-
case "off":
|
|
340
|
-
native.autoComplete = "off";
|
|
341
|
-
break;
|
|
342
|
-
case "date":
|
|
343
|
-
native.keyboardType = "default";
|
|
344
|
-
break;
|
|
345
|
-
default:
|
|
346
|
-
native.keyboardType = "default";
|
|
347
|
-
break;
|
|
348
|
-
}
|
|
349
|
-
if (opts?.autoCapitalize) native.autoCapitalize = opts.autoCapitalize;
|
|
350
|
-
if (opts?.autoCorrect != null) native.autoCorrect = opts.autoCorrect;
|
|
351
|
-
if (opts?.enterKeyHint) native.returnKeyType = {
|
|
352
|
-
enter: "default",
|
|
353
|
-
done: "done",
|
|
354
|
-
go: "go",
|
|
355
|
-
next: "next",
|
|
356
|
-
search: "search",
|
|
357
|
-
send: "send"
|
|
358
|
-
}[opts.enterKeyHint] ?? "default";
|
|
359
|
-
applyAutoCompleteDefaultsNative(native, opts?.autoComplete);
|
|
360
|
-
return native;
|
|
361
|
-
}
|
|
362
191
|
|
|
363
192
|
//#endregion
|
|
364
|
-
export {
|
|
193
|
+
export { mapKeyboardToWeb };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/platform/useColorScheme.ts
|
|
6
6
|
function useColorScheme() {
|
|
7
|
-
const [scheme, setScheme] = React
|
|
8
|
-
React
|
|
7
|
+
const [scheme, setScheme] = React.useState("light");
|
|
8
|
+
React.useEffect(() => {
|
|
9
9
|
if (typeof window === "undefined" || !window.matchMedia) return;
|
|
10
10
|
const media = window.matchMedia("(prefers-color-scheme: dark)");
|
|
11
11
|
const update = () => setScheme(media.matches ? "dark" : "light");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/platform/useReducedMotion.ts
|
|
6
6
|
function useReducedMotion() {
|
|
7
|
-
const [reduced, setReduced] = React
|
|
8
|
-
React
|
|
7
|
+
const [reduced, setReduced] = React.useState(false);
|
|
8
|
+
React.useEffect(() => {
|
|
9
9
|
if (typeof window === "undefined" || !window.matchMedia) return;
|
|
10
10
|
const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
|
|
11
11
|
const onChange = () => setReduced(mq.matches);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/platform/useResponsive.ts
|
|
6
6
|
const DEFAULT = {
|
|
@@ -10,12 +10,12 @@ const DEFAULT = {
|
|
|
10
10
|
xl: 1280
|
|
11
11
|
};
|
|
12
12
|
function useResponsive(custom) {
|
|
13
|
-
const bp = React
|
|
13
|
+
const bp = React.useMemo(() => ({
|
|
14
14
|
...DEFAULT,
|
|
15
15
|
...custom
|
|
16
16
|
}), [custom]);
|
|
17
|
-
const [width, setWidth] = React
|
|
18
|
-
React
|
|
17
|
+
const [width, setWidth] = React.useState(typeof window !== "undefined" ? window.innerWidth : bp.md);
|
|
18
|
+
React.useEffect(() => {
|
|
19
19
|
if (typeof window === "undefined") return;
|
|
20
20
|
const onResize = () => setWidth(window.innerWidth);
|
|
21
21
|
window.addEventListener("resize", onResize);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Button } from "../components/atoms/Button.js";
|
|
4
4
|
import { Input } from "../components/atoms/Input.js";
|
|
5
5
|
import { Textarea } from "../components/atoms/Textarea.js";
|
|
6
|
-
import
|
|
6
|
+
import "react";
|
|
7
7
|
import { createFormRenderer } from "@lssm/lib.contracts/client/react/form-render";
|
|
8
8
|
import { shadcnDriver } from "@lssm/lib.contracts/client/react/drivers/shadcn";
|
|
9
9
|
import { Field, FieldDescription, FieldError, FieldGroup, FieldLabel } from "@lssm/lib.ui-kit-web/ui/field";
|