@lssm/lib.design-system 0.0.0-canary-20251120170226
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 +92 -0
- package/dist/_virtual/rolldown_runtime.js +34 -0
- package/dist/components/atoms/ActionButtons.d.ts +26 -0
- package/dist/components/atoms/ActionButtons.d.ts.map +1 -0
- package/dist/components/atoms/ActionButtons.js +98 -0
- package/dist/components/atoms/ActionButtons.js.map +1 -0
- package/dist/components/atoms/Button.d.ts +40 -0
- package/dist/components/atoms/Button.d.ts.map +1 -0
- package/dist/components/atoms/Button.js +35 -0
- package/dist/components/atoms/Button.js.map +1 -0
- package/dist/components/atoms/Button.mobile.d.ts +22 -0
- package/dist/components/atoms/Button.mobile.d.ts.map +1 -0
- package/dist/components/atoms/Button.mobile.js +35 -0
- package/dist/components/atoms/Button.mobile.js.map +1 -0
- package/dist/components/atoms/ButtonLink.d.ts +22 -0
- package/dist/components/atoms/ButtonLink.d.ts.map +1 -0
- package/dist/components/atoms/ButtonLink.js +38 -0
- package/dist/components/atoms/ButtonLink.js.map +1 -0
- package/dist/components/atoms/ButtonLink.mobile.d.ts +20 -0
- package/dist/components/atoms/ButtonLink.mobile.d.ts.map +1 -0
- package/dist/components/atoms/ButtonLink.mobile.js +42 -0
- package/dist/components/atoms/ButtonLink.mobile.js.map +1 -0
- package/dist/components/atoms/Cta.d.ts +21 -0
- package/dist/components/atoms/Cta.d.ts.map +1 -0
- package/dist/components/atoms/Cta.js +59 -0
- package/dist/components/atoms/Cta.js.map +1 -0
- package/dist/components/atoms/Cta.mobile.d.ts +15 -0
- package/dist/components/atoms/Cta.mobile.d.ts.map +1 -0
- package/dist/components/atoms/Cta.mobile.js +40 -0
- package/dist/components/atoms/Cta.mobile.js.map +1 -0
- package/dist/components/atoms/DataChips.d.ts +38 -0
- package/dist/components/atoms/DataChips.d.ts.map +1 -0
- package/dist/components/atoms/DataChips.js +88 -0
- package/dist/components/atoms/DataChips.js.map +1 -0
- package/dist/components/atoms/EmptyState.d.ts +8 -0
- package/dist/components/atoms/EmptyState.d.ts.map +1 -0
- package/dist/components/atoms/EmptyState.js +15 -0
- package/dist/components/atoms/EmptyState.js.map +1 -0
- package/dist/components/atoms/ErrorState.d.ts +29 -0
- package/dist/components/atoms/ErrorState.d.ts.map +1 -0
- package/dist/components/atoms/ErrorState.js +41 -0
- package/dist/components/atoms/ErrorState.js.map +1 -0
- package/dist/components/atoms/ErrorState.mobile.d.ts +29 -0
- package/dist/components/atoms/ErrorState.mobile.d.ts.map +1 -0
- package/dist/components/atoms/ErrorState.mobile.js +42 -0
- package/dist/components/atoms/ErrorState.mobile.js.map +1 -0
- package/dist/components/atoms/Input.d.ts +40 -0
- package/dist/components/atoms/Input.d.ts.map +1 -0
- package/dist/components/atoms/Input.js +29 -0
- package/dist/components/atoms/Input.js.map +1 -0
- package/dist/components/atoms/Input.mobile.d.ts +38 -0
- package/dist/components/atoms/Input.mobile.d.ts.map +1 -0
- package/dist/components/atoms/Input.mobile.js +28 -0
- package/dist/components/atoms/Input.mobile.js.map +1 -0
- package/dist/components/atoms/Link.d.ts +12 -0
- package/dist/components/atoms/Link.d.ts.map +1 -0
- package/dist/components/atoms/Link.js +15 -0
- package/dist/components/atoms/Link.js.map +1 -0
- package/dist/components/atoms/Link.native.d.ts +1 -0
- package/dist/components/atoms/Link.native.js +0 -0
- package/dist/components/atoms/Link.web.d.ts +24 -0
- package/dist/components/atoms/Link.web.d.ts.map +1 -0
- package/dist/components/atoms/Link.web.js +16 -0
- package/dist/components/atoms/Link.web.js.map +1 -0
- package/dist/components/atoms/LoaderCircular.d.ts +23 -0
- package/dist/components/atoms/LoaderCircular.d.ts.map +1 -0
- package/dist/components/atoms/LoaderCircular.js +45 -0
- package/dist/components/atoms/LoaderCircular.js.map +1 -0
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +18 -0
- package/dist/components/atoms/LoaderCircular.mobile.d.ts.map +1 -0
- package/dist/components/atoms/LoaderCircular.mobile.js +27 -0
- package/dist/components/atoms/LoaderCircular.mobile.js.map +1 -0
- package/dist/components/atoms/NavBrand.d.ts +19 -0
- package/dist/components/atoms/NavBrand.d.ts.map +1 -0
- package/dist/components/atoms/NavBrand.js +27 -0
- package/dist/components/atoms/NavBrand.js.map +1 -0
- package/dist/components/atoms/Stepper.d.ts +8 -0
- package/dist/components/atoms/Stepper.d.ts.map +1 -0
- package/dist/components/atoms/Stepper.js +15 -0
- package/dist/components/atoms/Stepper.js.map +1 -0
- package/dist/components/atoms/Textarea.d.ts +42 -0
- package/dist/components/atoms/Textarea.d.ts.map +1 -0
- package/dist/components/atoms/Textarea.js +37 -0
- package/dist/components/atoms/Textarea.js.map +1 -0
- package/dist/components/atoms/Textarea.mobile.d.ts +38 -0
- package/dist/components/atoms/Textarea.mobile.d.ts.map +1 -0
- package/dist/components/atoms/Textarea.mobile.js +28 -0
- package/dist/components/atoms/Textarea.mobile.js.map +1 -0
- package/dist/components/data-view/DataViewDetail.d.ts +22 -0
- package/dist/components/data-view/DataViewDetail.d.ts.map +1 -0
- package/dist/components/data-view/DataViewDetail.js +81 -0
- package/dist/components/data-view/DataViewDetail.js.map +1 -0
- package/dist/components/data-view/DataViewList.d.ts +24 -0
- package/dist/components/data-view/DataViewList.d.ts.map +1 -0
- package/dist/components/data-view/DataViewList.js +68 -0
- package/dist/components/data-view/DataViewList.js.map +1 -0
- package/dist/components/data-view/DataViewRenderer.d.ts +48 -0
- package/dist/components/data-view/DataViewRenderer.d.ts.map +1 -0
- package/dist/components/data-view/DataViewRenderer.js +148 -0
- package/dist/components/data-view/DataViewRenderer.js.map +1 -0
- package/dist/components/data-view/DataViewTable.d.ts +26 -0
- package/dist/components/data-view/DataViewTable.d.ts.map +1 -0
- package/dist/components/data-view/DataViewTable.js +94 -0
- package/dist/components/data-view/DataViewTable.js.map +1 -0
- package/dist/components/data-view/utils.d.ts +6 -0
- package/dist/components/data-view/utils.d.ts.map +1 -0
- package/dist/components/data-view/utils.js +44 -0
- package/dist/components/data-view/utils.js.map +1 -0
- package/dist/components/forms/FormCardLayout.d.ts +23 -0
- package/dist/components/forms/FormCardLayout.d.ts.map +1 -0
- package/dist/components/forms/FormCardLayout.js +28 -0
- package/dist/components/forms/FormCardLayout.js.map +1 -0
- package/dist/components/forms/FormDialog.d.ts +25 -0
- package/dist/components/forms/FormDialog.d.ts.map +1 -0
- package/dist/components/forms/FormDialog.js +26 -0
- package/dist/components/forms/FormDialog.js.map +1 -0
- package/dist/components/forms/FormLayout.d.ts +30 -0
- package/dist/components/forms/FormLayout.d.ts.map +1 -0
- package/dist/components/forms/FormLayout.js +30 -0
- package/dist/components/forms/FormLayout.js.map +1 -0
- package/dist/components/forms/FormOneByOneLayout.d.ts +26 -0
- package/dist/components/forms/FormOneByOneLayout.d.ts.map +1 -0
- package/dist/components/forms/FormOneByOneLayout.js +57 -0
- package/dist/components/forms/FormOneByOneLayout.js.map +1 -0
- package/dist/components/forms/FormStepsLayout.d.ts +27 -0
- package/dist/components/forms/FormStepsLayout.d.ts.map +1 -0
- package/dist/components/forms/FormStepsLayout.js +66 -0
- package/dist/components/forms/FormStepsLayout.js.map +1 -0
- package/dist/components/forms/ZodForm.d.ts +22 -0
- package/dist/components/forms/ZodForm.d.ts.map +1 -0
- package/dist/components/forms/ZodForm.js +26 -0
- package/dist/components/forms/ZodForm.js.map +1 -0
- package/dist/components/legal/atoms/DefinitionList.d.ts +17 -0
- package/dist/components/legal/atoms/DefinitionList.d.ts.map +1 -0
- package/dist/components/legal/atoms/DefinitionList.js +24 -0
- package/dist/components/legal/atoms/DefinitionList.js.map +1 -0
- package/dist/components/legal/atoms/KeyValueList.d.ts +17 -0
- package/dist/components/legal/atoms/KeyValueList.d.ts.map +1 -0
- package/dist/components/legal/atoms/KeyValueList.js +24 -0
- package/dist/components/legal/atoms/KeyValueList.js.map +1 -0
- package/dist/components/legal/atoms/LegalCallout.d.ts +18 -0
- package/dist/components/legal/atoms/LegalCallout.d.ts.map +1 -0
- package/dist/components/legal/atoms/LegalCallout.js +24 -0
- package/dist/components/legal/atoms/LegalCallout.js.map +1 -0
- package/dist/components/legal/atoms/LegalHeading.d.ts +25 -0
- package/dist/components/legal/atoms/LegalHeading.d.ts.map +1 -0
- package/dist/components/legal/atoms/LegalHeading.js +46 -0
- package/dist/components/legal/atoms/LegalHeading.js.map +1 -0
- package/dist/components/legal/atoms/LegalList.d.ts +21 -0
- package/dist/components/legal/atoms/LegalList.d.ts.map +1 -0
- package/dist/components/legal/atoms/LegalList.js +38 -0
- package/dist/components/legal/atoms/LegalList.js.map +1 -0
- package/dist/components/legal/atoms/LegalSection.d.ts +22 -0
- package/dist/components/legal/atoms/LegalSection.d.ts.map +1 -0
- package/dist/components/legal/atoms/LegalSection.js +44 -0
- package/dist/components/legal/atoms/LegalSection.js.map +1 -0
- package/dist/components/legal/atoms/LegalText.d.ts +25 -0
- package/dist/components/legal/atoms/LegalText.d.ts.map +1 -0
- package/dist/components/legal/atoms/LegalText.js +45 -0
- package/dist/components/legal/atoms/LegalText.js.map +1 -0
- package/dist/components/legal/molecules/Consent.d.ts +36 -0
- package/dist/components/legal/molecules/Consent.d.ts.map +1 -0
- package/dist/components/legal/molecules/Consent.js +36 -0
- package/dist/components/legal/molecules/Consent.js.map +1 -0
- package/dist/components/legal/molecules/ContactFields.d.ts +25 -0
- package/dist/components/legal/molecules/ContactFields.d.ts.map +1 -0
- package/dist/components/legal/molecules/ContactFields.js +64 -0
- package/dist/components/legal/molecules/ContactFields.js.map +1 -0
- package/dist/components/legal/molecules/LegalMeta.d.ts +15 -0
- package/dist/components/legal/molecules/LegalMeta.d.ts.map +1 -0
- package/dist/components/legal/molecules/LegalMeta.js +30 -0
- package/dist/components/legal/molecules/LegalMeta.js.map +1 -0
- package/dist/components/legal/molecules/LegalTOC.d.ts +31 -0
- package/dist/components/legal/molecules/LegalTOC.d.ts.map +1 -0
- package/dist/components/legal/molecules/LegalTOC.js +52 -0
- package/dist/components/legal/molecules/LegalTOC.js.map +1 -0
- package/dist/components/legal/organisms/ContactForm.d.ts +30 -0
- package/dist/components/legal/organisms/ContactForm.d.ts.map +1 -0
- package/dist/components/legal/organisms/ContactForm.js +42 -0
- package/dist/components/legal/organisms/ContactForm.js.map +1 -0
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +19 -0
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts.map +1 -0
- package/dist/components/legal/organisms/GDPRDataRequest.js +53 -0
- package/dist/components/legal/organisms/GDPRDataRequest.js.map +1 -0
- package/dist/components/legal/organisms/GDPRRights.d.ts +14 -0
- package/dist/components/legal/organisms/GDPRRights.d.ts.map +1 -0
- package/dist/components/legal/organisms/GDPRRights.js +30 -0
- package/dist/components/legal/organisms/GDPRRights.js.map +1 -0
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +24 -0
- package/dist/components/legal/organisms/LegalPageLayout.d.ts.map +1 -0
- package/dist/components/legal/organisms/LegalPageLayout.js +51 -0
- package/dist/components/legal/organisms/LegalPageLayout.js.map +1 -0
- package/dist/components/legal/templates/ContactTemplate.d.ts +24 -0
- package/dist/components/legal/templates/ContactTemplate.d.ts.map +1 -0
- package/dist/components/legal/templates/ContactTemplate.js +47 -0
- package/dist/components/legal/templates/ContactTemplate.js.map +1 -0
- package/dist/components/legal/templates/CookiesTemplate.d.ts +33 -0
- package/dist/components/legal/templates/CookiesTemplate.d.ts.map +1 -0
- package/dist/components/legal/templates/CookiesTemplate.js +36 -0
- package/dist/components/legal/templates/CookiesTemplate.js.map +1 -0
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +33 -0
- package/dist/components/legal/templates/PrivacyTemplate.d.ts.map +1 -0
- package/dist/components/legal/templates/PrivacyTemplate.js +40 -0
- package/dist/components/legal/templates/PrivacyTemplate.js.map +1 -0
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +28 -0
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts.map +1 -0
- package/dist/components/legal/templates/SalesTermsTemplate.js +32 -0
- package/dist/components/legal/templates/SalesTermsTemplate.js.map +1 -0
- package/dist/components/legal/templates/TermsTemplate.d.ts +28 -0
- package/dist/components/legal/templates/TermsTemplate.d.ts.map +1 -0
- package/dist/components/legal/templates/TermsTemplate.js +35 -0
- package/dist/components/legal/templates/TermsTemplate.js.map +1 -0
- package/dist/components/molecules/AiLinkButton.d.ts +16 -0
- package/dist/components/molecules/AiLinkButton.d.ts.map +1 -0
- package/dist/components/molecules/AiLinkButton.js +67 -0
- package/dist/components/molecules/AiLinkButton.js.map +1 -0
- package/dist/components/molecules/Breadcrumbs.d.ts +16 -0
- package/dist/components/molecules/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumbs.js +19 -0
- package/dist/components/molecules/Breadcrumbs.js.map +1 -0
- package/dist/components/molecules/CommandPalette.d.ts +27 -0
- package/dist/components/molecules/CommandPalette.d.ts.map +1 -0
- package/dist/components/molecules/CommandPalette.js +43 -0
- package/dist/components/molecules/CommandPalette.js.map +1 -0
- package/dist/components/molecules/CommandSearchTrigger.d.ts +19 -0
- package/dist/components/molecules/CommandSearchTrigger.d.ts.map +1 -0
- package/dist/components/molecules/CommandSearchTrigger.js +46 -0
- package/dist/components/molecules/CommandSearchTrigger.js.map +1 -0
- package/dist/components/molecules/DropdownMenu.d.ts +1 -0
- package/dist/components/molecules/DropdownMenu.js +0 -0
- package/dist/components/molecules/EntityCard.d.ts +38 -0
- package/dist/components/molecules/EntityCard.d.ts.map +1 -0
- package/dist/components/molecules/EntityCard.js +89 -0
- package/dist/components/molecules/EntityCard.js.map +1 -0
- package/dist/components/molecules/FiltersToolbar.d.ts +36 -0
- package/dist/components/molecules/FiltersToolbar.d.ts.map +1 -0
- package/dist/components/molecules/FiltersToolbar.js +71 -0
- package/dist/components/molecules/FiltersToolbar.js.map +1 -0
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +19 -0
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts.map +1 -0
- package/dist/components/molecules/FiltersToolbar.mobile.js +49 -0
- package/dist/components/molecules/FiltersToolbar.mobile.js.map +1 -0
- package/dist/components/molecules/HoverPreview.d.ts +21 -0
- package/dist/components/molecules/HoverPreview.d.ts.map +1 -0
- package/dist/components/molecules/HoverPreview.js +27 -0
- package/dist/components/molecules/HoverPreview.js.map +1 -0
- package/dist/components/molecules/LangSwitch.d.ts +23 -0
- package/dist/components/molecules/LangSwitch.d.ts.map +1 -0
- package/dist/components/molecules/LangSwitch.js +23 -0
- package/dist/components/molecules/LangSwitch.js.map +1 -0
- package/dist/components/molecules/LangSwitchDropdown.d.ts +22 -0
- package/dist/components/molecules/LangSwitchDropdown.d.ts.map +1 -0
- package/dist/components/molecules/LangSwitchDropdown.js +38 -0
- package/dist/components/molecules/LangSwitchDropdown.js.map +1 -0
- package/dist/components/molecules/LoaderBlock.d.ts +19 -0
- package/dist/components/molecules/LoaderBlock.d.ts.map +1 -0
- package/dist/components/molecules/LoaderBlock.js +26 -0
- package/dist/components/molecules/LoaderBlock.js.map +1 -0
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +19 -0
- package/dist/components/molecules/LoaderBlock.mobile.d.ts.map +1 -0
- package/dist/components/molecules/LoaderBlock.mobile.js +26 -0
- package/dist/components/molecules/LoaderBlock.mobile.js.map +1 -0
- package/dist/components/molecules/MobileNavMenu.d.ts +14 -0
- package/dist/components/molecules/MobileNavMenu.d.ts.map +1 -0
- package/dist/components/molecules/MobileNavMenu.js +29 -0
- package/dist/components/molecules/MobileNavMenu.js.map +1 -0
- package/dist/components/molecules/NavItemCard.d.ts +15 -0
- package/dist/components/molecules/NavItemCard.d.ts.map +1 -0
- package/dist/components/molecules/NavItemCard.js +51 -0
- package/dist/components/molecules/NavItemCard.js.map +1 -0
- package/dist/components/molecules/NavMain.d.ts +14 -0
- package/dist/components/molecules/NavMain.d.ts.map +1 -0
- package/dist/components/molecules/NavMain.js +34 -0
- package/dist/components/molecules/NavMain.js.map +1 -0
- package/dist/components/molecules/NavUser.d.ts +18 -0
- package/dist/components/molecules/NavUser.d.ts.map +1 -0
- package/dist/components/molecules/NavUser.js +58 -0
- package/dist/components/molecules/NavUser.js.map +1 -0
- package/dist/components/molecules/OverviewCard.d.ts +21 -0
- package/dist/components/molecules/OverviewCard.d.ts.map +1 -0
- package/dist/components/molecules/OverviewCard.js +39 -0
- package/dist/components/molecules/OverviewCard.js.map +1 -0
- package/dist/components/molecules/SkeletonBlock/index.d.ts +3 -0
- package/dist/components/molecules/SkeletonBlock/index.js +3 -0
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +13 -0
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonBlock/index.mobile.js +19 -0
- package/dist/components/molecules/SkeletonBlock/index.mobile.js.map +1 -0
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +13 -0
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonBlock/index.web.js +14 -0
- package/dist/components/molecules/SkeletonBlock/index.web.js.map +1 -0
- package/dist/components/molecules/SkeletonBlock/types.d.ts +10 -0
- package/dist/components/molecules/SkeletonBlock/types.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonBlock/types.js +0 -0
- package/dist/components/molecules/SkeletonCircle/index.d.ts +3 -0
- package/dist/components/molecules/SkeletonCircle/index.js +3 -0
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +12 -0
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonCircle/index.mobile.js +24 -0
- package/dist/components/molecules/SkeletonCircle/index.mobile.js.map +1 -0
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +12 -0
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonCircle/index.web.js +24 -0
- package/dist/components/molecules/SkeletonCircle/index.web.js.map +1 -0
- package/dist/components/molecules/SkeletonCircle/types.d.ts +9 -0
- package/dist/components/molecules/SkeletonCircle/types.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonCircle/types.js +0 -0
- package/dist/components/molecules/SkeletonList/index.d.ts +3 -0
- package/dist/components/molecules/SkeletonList/index.js +3 -0
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +11 -0
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonList/index.mobile.js +23 -0
- package/dist/components/molecules/SkeletonList/index.mobile.js.map +1 -0
- package/dist/components/molecules/SkeletonList/index.web.d.ts +11 -0
- package/dist/components/molecules/SkeletonList/index.web.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonList/index.web.js +16 -0
- package/dist/components/molecules/SkeletonList/index.web.js.map +1 -0
- package/dist/components/molecules/SkeletonList/types.d.ts +8 -0
- package/dist/components/molecules/SkeletonList/types.d.ts.map +1 -0
- package/dist/components/molecules/SkeletonList/types.js +0 -0
- package/dist/components/molecules/StatCard.d.ts +37 -0
- package/dist/components/molecules/StatCard.d.ts.map +1 -0
- package/dist/components/molecules/StatCard.js +69 -0
- package/dist/components/molecules/StatCard.js.map +1 -0
- package/dist/components/molecules/StatusChip.d.ts +27 -0
- package/dist/components/molecules/StatusChip.d.ts.map +1 -0
- package/dist/components/molecules/StatusChip.js +57 -0
- package/dist/components/molecules/StatusChip.js.map +1 -0
- package/dist/components/molecules/hover-previews/Doc.d.ts +28 -0
- package/dist/components/molecules/hover-previews/Doc.d.ts.map +1 -0
- package/dist/components/molecules/hover-previews/Doc.js +46 -0
- package/dist/components/molecules/hover-previews/Doc.js.map +1 -0
- package/dist/components/molecules/hover-previews/Media.d.ts +21 -0
- package/dist/components/molecules/hover-previews/Media.d.ts.map +1 -0
- package/dist/components/molecules/hover-previews/Media.js +34 -0
- package/dist/components/molecules/hover-previews/Media.js.map +1 -0
- package/dist/components/molecules/hover-previews/Simple.d.ts +26 -0
- package/dist/components/molecules/hover-previews/Simple.d.ts.map +1 -0
- package/dist/components/molecules/hover-previews/Simple.js +46 -0
- package/dist/components/molecules/hover-previews/Simple.js.map +1 -0
- package/dist/components/molecules/hover-previews/Stats.d.ts +23 -0
- package/dist/components/molecules/hover-previews/Stats.d.ts.map +1 -0
- package/dist/components/molecules/hover-previews/Stats.js +39 -0
- package/dist/components/molecules/hover-previews/Stats.js.map +1 -0
- package/dist/components/molecules/hover-previews/User.d.ts +26 -0
- package/dist/components/molecules/hover-previews/User.d.ts.map +1 -0
- package/dist/components/molecules/hover-previews/User.js +48 -0
- package/dist/components/molecules/hover-previews/User.js.map +1 -0
- package/dist/components/native/BottomTabs.mobile.d.ts +21 -0
- package/dist/components/native/BottomTabs.mobile.d.ts.map +1 -0
- package/dist/components/native/BottomTabs.mobile.js +29 -0
- package/dist/components/native/BottomTabs.mobile.js.map +1 -0
- package/dist/components/native/FlatListScreen.mobile.d.ts +44 -0
- package/dist/components/native/FlatListScreen.mobile.d.ts.map +1 -0
- package/dist/components/native/FlatListScreen.mobile.js +65 -0
- package/dist/components/native/FlatListScreen.mobile.js.map +1 -0
- package/dist/components/native/SheetMenu.mobile.d.ts +18 -0
- package/dist/components/native/SheetMenu.mobile.d.ts.map +1 -0
- package/dist/components/native/SheetMenu.mobile.js +23 -0
- package/dist/components/native/SheetMenu.mobile.js.map +1 -0
- package/dist/components/organisms/AcademyLayout.d.ts +30 -0
- package/dist/components/organisms/AcademyLayout.d.ts.map +1 -0
- package/dist/components/organisms/AcademyLayout.js +48 -0
- package/dist/components/organisms/AcademyLayout.js.map +1 -0
- package/dist/components/organisms/AppHeader.d.ts +19 -0
- package/dist/components/organisms/AppHeader.d.ts.map +1 -0
- package/dist/components/organisms/AppHeader.js +32 -0
- package/dist/components/organisms/AppHeader.js.map +1 -0
- package/dist/components/organisms/AppHeader.mobile.d.ts +22 -0
- package/dist/components/organisms/AppHeader.mobile.d.ts.map +1 -0
- package/dist/components/organisms/AppHeader.mobile.js +54 -0
- package/dist/components/organisms/AppHeader.mobile.js.map +1 -0
- package/dist/components/organisms/AppLayout.d.ts +29 -0
- package/dist/components/organisms/AppLayout.d.ts.map +1 -0
- package/dist/components/organisms/AppLayout.js +46 -0
- package/dist/components/organisms/AppLayout.js.map +1 -0
- package/dist/components/organisms/AppSidebar.d.ts +24 -0
- package/dist/components/organisms/AppSidebar.d.ts.map +1 -0
- package/dist/components/organisms/AppSidebar.js +40 -0
- package/dist/components/organisms/AppSidebar.js.map +1 -0
- package/dist/components/organisms/AppSidebar.mobile.d.ts +1 -0
- package/dist/components/organisms/AppSidebar.mobile.js +0 -0
- package/dist/components/organisms/EmptyDataList.d.ts +21 -0
- package/dist/components/organisms/EmptyDataList.d.ts.map +1 -0
- package/dist/components/organisms/EmptyDataList.js +49 -0
- package/dist/components/organisms/EmptyDataList.js.map +1 -0
- package/dist/components/organisms/EmptyDataList.mobile.d.ts +21 -0
- package/dist/components/organisms/EmptyDataList.mobile.d.ts.map +1 -0
- package/dist/components/organisms/EmptyDataList.mobile.js +28 -0
- package/dist/components/organisms/EmptyDataList.mobile.js.map +1 -0
- package/dist/components/organisms/EmptyDataList.types.d.ts +20 -0
- package/dist/components/organisms/EmptyDataList.types.d.ts.map +1 -0
- package/dist/components/organisms/EmptyDataList.types.js +1 -0
- package/dist/components/organisms/EmptySearchResult.d.ts +25 -0
- package/dist/components/organisms/EmptySearchResult.d.ts.map +1 -0
- package/dist/components/organisms/EmptySearchResult.js +28 -0
- package/dist/components/organisms/EmptySearchResult.js.map +1 -0
- package/dist/components/organisms/FAQSection.d.ts +32 -0
- package/dist/components/organisms/FAQSection.d.ts.map +1 -0
- package/dist/components/organisms/FAQSection.js +66 -0
- package/dist/components/organisms/FAQSection.js.map +1 -0
- package/dist/components/organisms/FeatureCarousel.d.ts +19 -0
- package/dist/components/organisms/FeatureCarousel.d.ts.map +1 -0
- package/dist/components/organisms/FeatureCarousel.js +35 -0
- package/dist/components/organisms/FeatureCarousel.js.map +1 -0
- package/dist/components/organisms/FeaturesSection.d.ts +20 -0
- package/dist/components/organisms/FeaturesSection.d.ts.map +1 -0
- package/dist/components/organisms/FeaturesSection.js +38 -0
- package/dist/components/organisms/FeaturesSection.js.map +1 -0
- package/dist/components/organisms/Footer.d.ts +26 -0
- package/dist/components/organisms/Footer.d.ts.map +1 -0
- package/dist/components/organisms/Footer.js +55 -0
- package/dist/components/organisms/Footer.js.map +1 -0
- package/dist/components/organisms/GridLayout.d.ts +26 -0
- package/dist/components/organisms/GridLayout.d.ts.map +1 -0
- package/dist/components/organisms/GridLayout.js +29 -0
- package/dist/components/organisms/GridLayout.js.map +1 -0
- package/dist/components/organisms/Header.d.ts +38 -0
- package/dist/components/organisms/Header.d.ts.map +1 -0
- package/dist/components/organisms/Header.js +101 -0
- package/dist/components/organisms/Header.js.map +1 -0
- package/dist/components/organisms/Header.mobile.d.ts +25 -0
- package/dist/components/organisms/Header.mobile.d.ts.map +1 -0
- package/dist/components/organisms/Header.mobile.js +20 -0
- package/dist/components/organisms/Header.mobile.js.map +1 -0
- package/dist/components/organisms/HeroResponsive.d.ts +15 -0
- package/dist/components/organisms/HeroResponsive.d.ts.map +1 -0
- package/dist/components/organisms/HeroResponsive.js +26 -0
- package/dist/components/organisms/HeroResponsive.js.map +1 -0
- package/dist/components/organisms/HeroSection.d.ts +30 -0
- package/dist/components/organisms/HeroSection.d.ts.map +1 -0
- package/dist/components/organisms/HeroSection.js +31 -0
- package/dist/components/organisms/HeroSection.js.map +1 -0
- package/dist/components/organisms/ListCardPage.d.ts +37 -0
- package/dist/components/organisms/ListCardPage.d.ts.map +1 -0
- package/dist/components/organisms/ListCardPage.js +57 -0
- package/dist/components/organisms/ListCardPage.js.map +1 -0
- package/dist/components/organisms/ListGridPage.d.ts +37 -0
- package/dist/components/organisms/ListGridPage.d.ts.map +1 -0
- package/dist/components/organisms/ListGridPage.js +52 -0
- package/dist/components/organisms/ListGridPage.js.map +1 -0
- package/dist/components/organisms/ListPageResponsive.d.ts +8 -0
- package/dist/components/organisms/ListPageResponsive.d.ts.map +1 -0
- package/dist/components/organisms/ListPageResponsive.js +21 -0
- package/dist/components/organisms/ListPageResponsive.js.map +1 -0
- package/dist/components/organisms/ListTablePage.d.ts +34 -0
- package/dist/components/organisms/ListTablePage.d.ts.map +1 -0
- package/dist/components/organisms/ListTablePage.js +48 -0
- package/dist/components/organisms/ListTablePage.js.map +1 -0
- package/dist/components/organisms/MarketingHeader.d.ts +37 -0
- package/dist/components/organisms/MarketingHeader.d.ts.map +1 -0
- package/dist/components/organisms/MarketingHeader.js +124 -0
- package/dist/components/organisms/MarketingHeader.js.map +1 -0
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +16 -0
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts.map +1 -0
- package/dist/components/organisms/MarketingHeaderDesktop.js +59 -0
- package/dist/components/organisms/MarketingHeaderDesktop.js.map +1 -0
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +13 -0
- package/dist/components/organisms/MarketingHeaderMobile.d.ts.map +1 -0
- package/dist/components/organisms/MarketingHeaderMobile.js +71 -0
- package/dist/components/organisms/MarketingHeaderMobile.js.map +1 -0
- package/dist/components/organisms/MarketingLayout.d.ts +19 -0
- package/dist/components/organisms/MarketingLayout.d.ts.map +1 -0
- package/dist/components/organisms/MarketingLayout.js +27 -0
- package/dist/components/organisms/MarketingLayout.js.map +1 -0
- package/dist/components/organisms/PageHeaderResponsive.d.ts +9 -0
- package/dist/components/organisms/PageHeaderResponsive.d.ts.map +1 -0
- package/dist/components/organisms/PageHeaderResponsive.js +21 -0
- package/dist/components/organisms/PageHeaderResponsive.js.map +1 -0
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +23 -0
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts.map +1 -0
- package/dist/components/organisms/PageHeaderResponsive.mobile.js +34 -0
- package/dist/components/organisms/PageHeaderResponsive.mobile.js.map +1 -0
- package/dist/components/organisms/PricingCarousel.d.ts +25 -0
- package/dist/components/organisms/PricingCarousel.d.ts.map +1 -0
- package/dist/components/organisms/PricingCarousel.js +60 -0
- package/dist/components/organisms/PricingCarousel.js.map +1 -0
- package/dist/components/organisms/PricingSection.d.ts +19 -0
- package/dist/components/organisms/PricingSection.d.ts.map +1 -0
- package/dist/components/organisms/PricingSection.js +27 -0
- package/dist/components/organisms/PricingSection.js.map +1 -0
- package/dist/components/organisms/TestimonialCarousel.d.ts +20 -0
- package/dist/components/organisms/TestimonialCarousel.d.ts.map +1 -0
- package/dist/components/organisms/TestimonialCarousel.js +38 -0
- package/dist/components/organisms/TestimonialCarousel.js.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts +3 -0
- package/dist/components/templates/lists/ListPageTemplate/index.js +3 -0
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +22 -0
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +33 -0
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.js.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +23 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +53 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.js.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +26 -0
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts.map +1 -0
- package/dist/components/templates/lists/ListPageTemplate/types.js +1 -0
- package/dist/hooks/useListUrlState.d.ts +31 -0
- package/dist/hooks/useListUrlState.d.ts.map +1 -0
- package/dist/hooks/useListUrlState.js +90 -0
- package/dist/hooks/useListUrlState.js.map +1 -0
- package/dist/index.d.ts +106 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/keyboard.d.ts +15 -0
- package/dist/lib/keyboard.d.ts.map +1 -0
- package/dist/lib/keyboard.js +365 -0
- package/dist/lib/keyboard.js.map +1 -0
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +11 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/platform/useColorScheme.d.ts +6 -0
- package/dist/platform/useColorScheme.d.ts.map +1 -0
- package/dist/platform/useColorScheme.js +22 -0
- package/dist/platform/useColorScheme.js.map +1 -0
- package/dist/platform/useColorScheme.mobile.d.ts +6 -0
- package/dist/platform/useColorScheme.mobile.d.ts.map +1 -0
- package/dist/platform/useColorScheme.mobile.js +22 -0
- package/dist/platform/useColorScheme.mobile.js.map +1 -0
- package/dist/platform/useReducedMotion.d.ts +5 -0
- package/dist/platform/useReducedMotion.d.ts.map +1 -0
- package/dist/platform/useReducedMotion.js +22 -0
- package/dist/platform/useReducedMotion.js.map +1 -0
- package/dist/platform/useReducedMotion.mobile.d.ts +5 -0
- package/dist/platform/useReducedMotion.mobile.d.ts.map +1 -0
- package/dist/platform/useReducedMotion.mobile.js +30 -0
- package/dist/platform/useReducedMotion.mobile.js.map +1 -0
- package/dist/platform/useResponsive.d.ts +24 -0
- package/dist/platform/useResponsive.d.ts.map +1 -0
- package/dist/platform/useResponsive.js +41 -0
- package/dist/platform/useResponsive.js.map +1 -0
- package/dist/platform/useResponsive.mobile.d.ts +24 -0
- package/dist/platform/useResponsive.mobile.d.ts.map +1 -0
- package/dist/platform/useResponsive.mobile.js +44 -0
- package/dist/platform/useResponsive.mobile.js.map +1 -0
- package/dist/platform/withPlatformUI.d.ts +29 -0
- package/dist/platform/withPlatformUI.d.ts.map +1 -0
- package/dist/platform/withPlatformUI.js +32 -0
- package/dist/platform/withPlatformUI.js.map +1 -0
- package/dist/renderers/form-contract.d.ts +12 -0
- package/dist/renderers/form-contract.d.ts.map +1 -0
- package/dist/renderers/form-contract.js +77 -0
- package/dist/renderers/form-contract.js.map +1 -0
- package/dist/renderers/index.d.ts +2 -0
- package/dist/renderers/index.js +3 -0
- package/dist/theme/tokenBridge.d.ts +20 -0
- package/dist/theme/tokenBridge.d.ts.map +1 -0
- package/dist/theme/tokenBridge.js +26 -0
- package/dist/theme/tokenBridge.js.map +1 -0
- package/dist/theme/tokens.d.ts +51 -0
- package/dist/theme/tokens.d.ts.map +1 -0
- package/dist/theme/tokens.js +50 -0
- package/dist/theme/tokens.js.map +1 -0
- package/dist/theme/variants.d.ts +22 -0
- package/dist/theme/variants.d.ts.map +1 -0
- package/dist/theme/variants.js +45 -0
- package/dist/theme/variants.js.map +1 -0
- package/dist/types/nativewind-env.d.ts +1 -0
- package/dist/types/navigation.d.ts +45 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/dist/types/navigation.js +1 -0
- package/package.json +347 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Button } from "./Button.js";
|
|
2
|
+
import { ButtonLink } from "./ButtonLink.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { cva } from "class-variance-authority";
|
|
6
|
+
|
|
7
|
+
//#region src/components/atoms/Cta.tsx
|
|
8
|
+
cva("", {
|
|
9
|
+
variants: {
|
|
10
|
+
size: {
|
|
11
|
+
sm: "sm",
|
|
12
|
+
md: "md",
|
|
13
|
+
lg: "lg",
|
|
14
|
+
touch: "touch"
|
|
15
|
+
},
|
|
16
|
+
emphasis: {
|
|
17
|
+
default: "default",
|
|
18
|
+
subtle: "secondary",
|
|
19
|
+
strong: "default"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
size: "touch",
|
|
24
|
+
emphasis: "default"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const Cta = React$1.forwardRef(({ capture, ctaName, as = "button", href, onClick, size = "touch", emphasis = "default", children,...props }, ref) => {
|
|
28
|
+
const handleClick = (e) => {
|
|
29
|
+
if (ctaName) try {
|
|
30
|
+
if (capture) capture(ctaName);
|
|
31
|
+
const ph = globalThis.posthog;
|
|
32
|
+
if (ph && typeof ph.capture === "function") ph.capture("cta_click", { cta: ctaName });
|
|
33
|
+
} catch {}
|
|
34
|
+
onClick?.(e);
|
|
35
|
+
};
|
|
36
|
+
const uiSize = size;
|
|
37
|
+
const uiVariant = emphasis === "subtle" ? "secondary" : "default";
|
|
38
|
+
if (as === "a") return /* @__PURE__ */ jsx(ButtonLink, {
|
|
39
|
+
size: uiSize,
|
|
40
|
+
variant: uiVariant,
|
|
41
|
+
...props,
|
|
42
|
+
href,
|
|
43
|
+
ref,
|
|
44
|
+
children
|
|
45
|
+
});
|
|
46
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
47
|
+
size: uiSize,
|
|
48
|
+
variant: uiVariant,
|
|
49
|
+
onPress: handleClick,
|
|
50
|
+
ref,
|
|
51
|
+
...props,
|
|
52
|
+
children
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
Cta.displayName = "Cta";
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { Cta };
|
|
59
|
+
//# sourceMappingURL=Cta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cta.js","names":["React","handleClick: React.MouseEventHandler<\n HTMLButtonElement | HTMLAnchorElement\n >"],"sources":["../../../src/components/atoms/Cta.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, type ButtonProps } from './Button';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ButtonLink } from './ButtonLink';\n\nconst ctaVariants = cva('', {\n variants: {\n size: { sm: 'sm', md: 'md', lg: 'lg', touch: 'touch' },\n emphasis: { default: 'default', subtle: 'secondary', strong: 'default' },\n },\n defaultVariants: { size: 'touch', emphasis: 'default' },\n});\n\nexport type CtaProps = ButtonProps &\n VariantProps<typeof ctaVariants> & {\n capture?: (cta: string) => void;\n ctaName?: string;\n as?: 'button' | 'a';\n href?: string;\n children?: React.ReactNode;\n };\n\nexport const Cta = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n CtaProps\n>(\n (\n {\n capture,\n ctaName,\n as = 'button',\n href,\n onClick,\n size = 'touch',\n emphasis = 'default',\n children,\n ...props\n },\n ref\n ) => {\n const handleClick: React.MouseEventHandler<\n HTMLButtonElement | HTMLAnchorElement\n > = (e) => {\n if (ctaName) {\n try {\n if (capture) capture(ctaName);\n // Optional PostHog fallback if present globally\n const ph = (globalThis as any).posthog;\n if (ph && typeof ph.capture === 'function') {\n ph.capture('cta_click', { cta: ctaName });\n }\n } catch {}\n }\n onClick?.(e as any);\n };\n\n const uiSize = size as ButtonProps['size'];\n const uiVariant = (\n emphasis === 'subtle' ? 'secondary' : 'default'\n ) as ButtonProps['variant'];\n\n if (as === 'a') {\n return (\n <ButtonLink\n size={uiSize}\n variant={uiVariant}\n {...props}\n href={href}\n ref={ref as any}\n >\n {children}\n </ButtonLink>\n );\n }\n\n return (\n <Button\n size={uiSize}\n variant={uiVariant}\n onPress={handleClick as any}\n ref={ref as any}\n {...props}\n >\n {children}\n </Button>\n );\n }\n);\nCta.displayName = 'Cta';\n"],"mappings":";;;;;;;AAKoB,IAAI,IAAI;CAC1B,UAAU;EACR,MAAM;GAAE,IAAI;GAAM,IAAI;GAAM,IAAI;GAAM,OAAO;GAAS;EACtD,UAAU;GAAE,SAAS;GAAW,QAAQ;GAAa,QAAQ;GAAW;EACzE;CACD,iBAAiB;EAAE,MAAM;EAAS,UAAU;EAAW;CACxD,CAAC;AAWF,MAAa,MAAMA,QAAM,YAKrB,EACE,SACA,SACA,KAAK,UACL,MACA,SACA,OAAO,SACP,WAAW,WACX,SACA,GAAG,SAEL,QACG;CACH,MAAMC,eAED,MAAM;AACT,MAAI,QACF,KAAI;AACF,OAAI,QAAS,SAAQ,QAAQ;GAE7B,MAAM,KAAM,WAAmB;AAC/B,OAAI,MAAM,OAAO,GAAG,YAAY,WAC9B,IAAG,QAAQ,aAAa,EAAE,KAAK,SAAS,CAAC;UAErC;AAEV,YAAU,EAAS;;CAGrB,MAAM,SAAS;CACf,MAAM,YACJ,aAAa,WAAW,cAAc;AAGxC,KAAI,OAAO,IACT,QACE,oBAAC;EACC,MAAM;EACN,SAAS;EACT,GAAI;EACE;EACD;EAEJ;GACU;AAIjB,QACE,oBAAC;EACC,MAAM;EACN,SAAS;EACT,SAAS;EACJ;EACL,GAAI;EAEH;GACM;EAGd;AACD,IAAI,cAAc"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ButtonProps } from "./Button.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/atoms/Cta.mobile.d.ts
|
|
5
|
+
type CtaProps = ButtonProps & {
|
|
6
|
+
capture?: (cta: string) => void;
|
|
7
|
+
ctaName?: string;
|
|
8
|
+
as?: 'button' | 'a';
|
|
9
|
+
href?: string;
|
|
10
|
+
children?: React$1.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const Cta: React$1.ForwardRefExoticComponent<Omit<CtaProps, "ref"> & React$1.RefAttributes<unknown>>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Cta, CtaProps };
|
|
15
|
+
//# sourceMappingURL=Cta.mobile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cta.mobile.d.ts","names":[],"sources":["../../../src/components/atoms/Cta.mobile.tsx"],"sourcesContent":[],"mappings":";;;;KAKY,QAAA,GAAW;;EAAX,OAAA,CAAA,EAAA,MAAQ;EAQP,EAAA,CAAA,EAAA,QA4CZ,GAAA,GAAA;EA5Ce,IAAA,CAAA,EAAA,MAAA;EAAA,QAAA,CAAA,EAHH,OAAA,CAAM,SAGH;CAAA;AAAA,cAAH,GAAG,EAAA,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,QAAA,EAAA,KAAA,CAAA,GAAA,OAAA,CAAA,aAAA,CAAA,OAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import { __require } from "../../_virtual/rolldown_runtime.js";
|
|
5
|
+
import { Button } from "./Button.js";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
|
|
9
|
+
//#region src/components/atoms/Cta.mobile.tsx
|
|
10
|
+
const Cta = React$1.forwardRef(({ capture, ctaName, size = "touch", onClick, children,...props }, ref) => {
|
|
11
|
+
const handlePress = () => {
|
|
12
|
+
try {
|
|
13
|
+
if (ctaName) {
|
|
14
|
+
if (capture) capture(ctaName);
|
|
15
|
+
let ph;
|
|
16
|
+
try {
|
|
17
|
+
ph = __require("posthog-react-native").default ?? __require("posthog-react-native");
|
|
18
|
+
} catch {}
|
|
19
|
+
if (ph && typeof ph.capture === "function") ph.capture("cta_click", { cta: ctaName });
|
|
20
|
+
else {
|
|
21
|
+
const globalPh = globalThis.posthog;
|
|
22
|
+
if (globalPh && typeof globalPh.capture === "function") globalPh.capture("cta_click", { cta: ctaName });
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
} catch {}
|
|
26
|
+
onClick?.();
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
29
|
+
size,
|
|
30
|
+
onPress: handlePress,
|
|
31
|
+
ref,
|
|
32
|
+
...props,
|
|
33
|
+
children
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
Cta.displayName = "Cta";
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Cta };
|
|
40
|
+
//# sourceMappingURL=Cta.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cta.mobile.js","names":["React","ph: any"],"sources":["../../../src/components/atoms/Cta.mobile.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Button, type ButtonProps } from './Button';\n\nexport type CtaProps = ButtonProps & {\n capture?: (cta: string) => void;\n ctaName?: string;\n as?: 'button' | 'a';\n href?: string;\n children?: React.ReactNode;\n};\n\nexport const Cta = React.forwardRef<unknown, CtaProps>(\n ({ capture, ctaName, size = 'touch', onClick, children, ...props }, ref) => {\n const handlePress = () => {\n try {\n if (ctaName) {\n if (capture) capture(ctaName);\n let ph: any;\n try {\n // Prefer posthog-react-native if present\n\n ph =\n require('posthog-react-native').default ??\n require('posthog-react-native');\n } catch {}\n if (ph && typeof ph.capture === 'function') {\n ph.capture('cta_click', { cta: ctaName });\n } else {\n const globalPh = (globalThis as any).posthog;\n if (globalPh && typeof globalPh.capture === 'function') {\n globalPh.capture('cta_click', { cta: ctaName });\n }\n }\n }\n } catch {}\n // Bridge to any provided web-style onClick for API symmetry\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore cross-platform prop bridge\n onClick?.();\n };\n\n return (\n <Button\n size={size}\n // RN kits generally use onPress\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore cross-platform prop bridge\n onPress={handlePress}\n ref={ref as any}\n {...(props as any)}\n >\n {children}\n </Button>\n );\n }\n);\n\nCta.displayName = 'Cta';\n"],"mappings":";;;;;;;;;AAaA,MAAa,MAAMA,QAAM,YACtB,EAAE,SAAS,SAAS,OAAO,SAAS,SAAS,SAAU,GAAG,SAAS,QAAQ;CAC1E,MAAM,oBAAoB;AACxB,MAAI;AACF,OAAI,SAAS;AACX,QAAI,QAAS,SAAQ,QAAQ;IAC7B,IAAIC;AACJ,QAAI;AAGF,oBACU,uBAAuB,CAAC,qBACxB,uBAAuB;YAC3B;AACR,QAAI,MAAM,OAAO,GAAG,YAAY,WAC9B,IAAG,QAAQ,aAAa,EAAE,KAAK,SAAS,CAAC;SACpC;KACL,MAAM,WAAY,WAAmB;AACrC,SAAI,YAAY,OAAO,SAAS,YAAY,WAC1C,UAAS,QAAQ,aAAa,EAAE,KAAK,SAAS,CAAC;;;UAI/C;AAIR,aAAW;;AAGb,QACE,oBAAC;EACO;EAIN,SAAS;EACJ;EACL,GAAK;EAEJ;GACM;EAGd;AAED,IAAI,cAAc"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
5
|
+
|
|
6
|
+
//#region src/components/atoms/DataChips.d.ts
|
|
7
|
+
declare const chip: (props?: ({
|
|
8
|
+
size?: "sm" | "md" | null | undefined;
|
|
9
|
+
tone?: "default" | "muted" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types15.ClassProp) | undefined) => string;
|
|
11
|
+
type ChipVariants = VariantProps<typeof chip>;
|
|
12
|
+
declare function DateChip({
|
|
13
|
+
value,
|
|
14
|
+
...v
|
|
15
|
+
}: {
|
|
16
|
+
value?: string | Date | null;
|
|
17
|
+
} & ChipVariants): react_jsx_runtime55.JSX.Element | null;
|
|
18
|
+
declare function TimeChip({
|
|
19
|
+
value,
|
|
20
|
+
...v
|
|
21
|
+
}: {
|
|
22
|
+
value?: string | Date | null;
|
|
23
|
+
} & ChipVariants): react_jsx_runtime55.JSX.Element | null;
|
|
24
|
+
declare function PlaceChip({
|
|
25
|
+
label,
|
|
26
|
+
...v
|
|
27
|
+
}: {
|
|
28
|
+
label?: React$1.ReactNode;
|
|
29
|
+
} & ChipVariants): react_jsx_runtime55.JSX.Element | null;
|
|
30
|
+
declare function DurationChip({
|
|
31
|
+
minutes,
|
|
32
|
+
...v
|
|
33
|
+
}: {
|
|
34
|
+
minutes?: number | null;
|
|
35
|
+
} & ChipVariants): react_jsx_runtime55.JSX.Element | null;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { ChipVariants, DateChip, DurationChip, PlaceChip, TimeChip };
|
|
38
|
+
//# sourceMappingURL=DataChips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataChips.d.ts","names":[],"sources":["../../../src/components/atoms/DataChips.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM;;;IASL,gCAAA,CAAA;AATK,KAWM,YAAA,GAAe,YAF1B,CAAA,OAE8C,IAF9C,CAAA;AAEW,iBAEI,QAAA,CAF+B;EAAA,KAApB;EAAA,GAAA;AAGzB,CAHyB,EAAA;EAEX,KAAA,CAAA,EAAA,MAAQ,GAGF,IAHE,GAAA,IAAA;CACtB,GAEoC,YAFpC,CAAA,EAEgD,mBAAA,CAAA,GAAA,CAAA,OAAA,GAFhD,IAAA;AAEoB,iBAgBN,QAAA,CAhBM;EAAA,KAAA;EAAA,GAAA;AAA4B,CAA5B,EAAA;EAAgB,KAAA,CAAA,EAAA,MAAA,GAmBhB,IAnBgB,GAAA,IAAA;CAAY,GAmBZ,YAnBY,CAAA,EAmBA,mBAAA,CAAA,GAAA,CAAA,OAAA,GAnBA,IAAA;AAAA,iBAmClC,SAAA,CAnCkC;EAAA,KAAA;EAAA,GAAA;AAiBhD,CAjBgD,EAAA;EAgBlC,KAAA,CAAA,EAsBH,OAAA,CAAM,SAtBK;CACtB,GAqB+B,YArB/B,CAAA,EAqB2C,mBAAA,CAAA,GAAA,CAAA,OAAA,GArB3C,IAAA;AAEoB,iBA4BN,YAAA,CA5BM;EAAA,OAAA;EAAA,GAAA;AAA4B,CAA5B,EAAA;EAAgB,OAAA,CAAA,EAAA,MAAA,GAAA,IAAA;CAAY,GA+BjB,YA/BiB,CAAA,EA+BL,mBAAA,CAAA,GAAA,CAAA,OAAA,GA/BK,IAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { Calendar, Clock, MapPin } from "lucide-react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { cva } from "class-variance-authority";
|
|
5
|
+
|
|
6
|
+
//#region src/components/atoms/DataChips.tsx
|
|
7
|
+
const chip = cva("inline-flex items-center gap-1 text-base text-muted-foreground", {
|
|
8
|
+
variants: {
|
|
9
|
+
size: {
|
|
10
|
+
sm: "text-sm",
|
|
11
|
+
md: "text-base"
|
|
12
|
+
},
|
|
13
|
+
tone: {
|
|
14
|
+
default: "",
|
|
15
|
+
muted: "opacity-85"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "md",
|
|
20
|
+
tone: "default"
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function DateChip({ value,...v }) {
|
|
24
|
+
if (!value) return null;
|
|
25
|
+
let text = "";
|
|
26
|
+
try {
|
|
27
|
+
text = (typeof value === "string" ? new Date(value) : value).toLocaleDateString();
|
|
28
|
+
} catch {
|
|
29
|
+
text = String(value);
|
|
30
|
+
}
|
|
31
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
32
|
+
className: chip(v),
|
|
33
|
+
children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Calendar, { className: "h-4 w-4" }),
|
|
35
|
+
" ",
|
|
36
|
+
text
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function TimeChip({ value,...v }) {
|
|
41
|
+
if (!value) return null;
|
|
42
|
+
let text = "";
|
|
43
|
+
try {
|
|
44
|
+
text = (typeof value === "string" ? new Date(value) : value).toLocaleTimeString([], {
|
|
45
|
+
hour: "2-digit",
|
|
46
|
+
minute: "2-digit"
|
|
47
|
+
});
|
|
48
|
+
} catch {
|
|
49
|
+
text = String(value);
|
|
50
|
+
}
|
|
51
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
52
|
+
className: chip(v),
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4" }),
|
|
55
|
+
" ",
|
|
56
|
+
text
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function PlaceChip({ label,...v }) {
|
|
61
|
+
if (!label) return null;
|
|
62
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
63
|
+
className: chip(v),
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx(MapPin, { className: "h-4 w-4" }),
|
|
66
|
+
" ",
|
|
67
|
+
label
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function DurationChip({ minutes,...v }) {
|
|
72
|
+
if (minutes == null) return null;
|
|
73
|
+
const hrs = Math.floor(minutes / 60);
|
|
74
|
+
const mins = minutes % 60;
|
|
75
|
+
const text = hrs > 0 ? `${hrs}h${mins > 0 ? String(mins).padStart(2, "0") : ""}` : `${mins}min`;
|
|
76
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
77
|
+
className: chip(v),
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Clock, { className: "h-4 w-4" }),
|
|
80
|
+
" ",
|
|
81
|
+
text
|
|
82
|
+
]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
export { DateChip, DurationChip, PlaceChip, TimeChip };
|
|
88
|
+
//# sourceMappingURL=DataChips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataChips.js","names":[],"sources":["../../../src/components/atoms/DataChips.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { Calendar, Clock, MapPin } from 'lucide-react';\n\nconst chip = cva(\n 'inline-flex items-center gap-1 text-base text-muted-foreground',\n {\n variants: {\n size: { sm: 'text-sm', md: 'text-base' },\n tone: { default: '', muted: 'opacity-85' },\n },\n defaultVariants: { size: 'md', tone: 'default' },\n }\n);\n\nexport type ChipVariants = VariantProps<typeof chip>;\n\nexport function DateChip({\n value,\n ...v\n}: { value?: string | Date | null } & ChipVariants) {\n if (!value) return null;\n let text = '';\n try {\n const d = typeof value === 'string' ? new Date(value) : value;\n text = d.toLocaleDateString();\n } catch {\n text = String(value);\n }\n return (\n <span className={chip(v)}>\n <Calendar className=\"h-4 w-4\" /> {text}\n </span>\n );\n}\n\nexport function TimeChip({\n value,\n ...v\n}: { value?: string | Date | null } & ChipVariants) {\n if (!value) return null;\n let text = '';\n try {\n const d = typeof value === 'string' ? new Date(value) : value;\n text = d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });\n } catch {\n text = String(value);\n }\n return (\n <span className={chip(v)}>\n <Clock className=\"h-4 w-4\" /> {text}\n </span>\n );\n}\n\nexport function PlaceChip({\n label,\n ...v\n}: { label?: React.ReactNode } & ChipVariants) {\n if (!label) return null;\n return (\n <span className={chip(v)}>\n <MapPin className=\"h-4 w-4\" /> {label}\n </span>\n );\n}\n\nexport function DurationChip({\n minutes,\n ...v\n}: { minutes?: number | null } & ChipVariants) {\n if (minutes == null) return null;\n const hrs = Math.floor(minutes / 60);\n const mins = minutes % 60;\n const text =\n hrs > 0\n ? `${hrs}h${mins > 0 ? String(mins).padStart(2, '0') : ''}`\n : `${mins}min`;\n return (\n <span className={chip(v)}>\n <Clock className=\"h-4 w-4\" /> {text}\n </span>\n );\n}\n"],"mappings":";;;;;;AAIA,MAAM,OAAO,IACX,kEACA;CACE,UAAU;EACR,MAAM;GAAE,IAAI;GAAW,IAAI;GAAa;EACxC,MAAM;GAAE,SAAS;GAAI,OAAO;GAAc;EAC3C;CACD,iBAAiB;EAAE,MAAM;EAAM,MAAM;EAAW;CACjD,CACF;AAID,SAAgB,SAAS,EACvB,MACA,GAAG,KAC+C;AAClD,KAAI,CAAC,MAAO,QAAO;CACnB,IAAI,OAAO;AACX,KAAI;AAEF,UADU,OAAO,UAAU,WAAW,IAAI,KAAK,MAAM,GAAG,OAC/C,oBAAoB;SACvB;AACN,SAAO,OAAO,MAAM;;AAEtB,QACE,qBAAC;EAAK,WAAW,KAAK,EAAE;;GACtB,oBAAC,YAAS,WAAU,YAAY;;GAAE;;GAC7B;;AAIX,SAAgB,SAAS,EACvB,MACA,GAAG,KAC+C;AAClD,KAAI,CAAC,MAAO,QAAO;CACnB,IAAI,OAAO;AACX,KAAI;AAEF,UADU,OAAO,UAAU,WAAW,IAAI,KAAK,MAAM,GAAG,OAC/C,mBAAmB,EAAE,EAAE;GAAE,MAAM;GAAW,QAAQ;GAAW,CAAC;SACjE;AACN,SAAO,OAAO,MAAM;;AAEtB,QACE,qBAAC;EAAK,WAAW,KAAK,EAAE;;GACtB,oBAAC,SAAM,WAAU,YAAY;;GAAE;;GAC1B;;AAIX,SAAgB,UAAU,EACxB,MACA,GAAG,KAC0C;AAC7C,KAAI,CAAC,MAAO,QAAO;AACnB,QACE,qBAAC;EAAK,WAAW,KAAK,EAAE;;GACtB,oBAAC,UAAO,WAAU,YAAY;;GAAE;;GAC3B;;AAIX,SAAgB,aAAa,EAC3B,QACA,GAAG,KAC0C;AAC7C,KAAI,WAAW,KAAM,QAAO;CAC5B,MAAM,MAAM,KAAK,MAAM,UAAU,GAAG;CACpC,MAAM,OAAO,UAAU;CACvB,MAAM,OACJ,MAAM,IACF,GAAG,IAAI,GAAG,OAAO,IAAI,OAAO,KAAK,CAAC,SAAS,GAAG,IAAI,GAAG,OACrD,GAAG,KAAK;AACd,QACE,qBAAC;EAAK,WAAW,KAAK,EAAE;;GACtB,oBAAC,SAAM,WAAU,YAAY;;GAAE;;GAC1B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
2
|
+
import { EmptyStateProps } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
3
|
+
|
|
4
|
+
//#region src/components/atoms/EmptyState.d.ts
|
|
5
|
+
declare function EmptyState(props: EmptyStateProps): react_jsx_runtime60.JSX.Element;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { EmptyState };
|
|
8
|
+
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","names":[],"sources":["../../../src/components/atoms/EmptyState.tsx"],"sourcesContent":[],"mappings":";;;;iBAQgB,UAAA,QAAkB,kBAAe,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { EmptyState as EmptyState$1 } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
7
|
+
|
|
8
|
+
//#region src/components/atoms/EmptyState.tsx
|
|
9
|
+
function EmptyState(props) {
|
|
10
|
+
return /* @__PURE__ */ jsx(EmptyState$1, { ...props });
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { EmptyState };
|
|
15
|
+
//# sourceMappingURL=EmptyState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.js","names":["WebEmptyState"],"sources":["../../../src/components/atoms/EmptyState.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport {\n EmptyState as WebEmptyState,\n type EmptyStateProps,\n} from '@lssm/lib.ui-kit-web/ui/empty-state';\n\nexport function EmptyState(props: EmptyStateProps) {\n return <WebEmptyState {...props} />;\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,WAAW,OAAwB;AACjD,QAAO,oBAACA,gBAAc,GAAI,QAAS"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/atoms/ErrorState.d.ts
|
|
5
|
+
interface ErrorStateProps {
|
|
6
|
+
title?: React$1.ReactNode;
|
|
7
|
+
description?: React$1.ReactNode;
|
|
8
|
+
icon?: React$1.ReactNode;
|
|
9
|
+
onRetry?: () => void;
|
|
10
|
+
retryLabel?: React$1.ReactNode;
|
|
11
|
+
supportHref?: string;
|
|
12
|
+
onContactSupport?: () => void;
|
|
13
|
+
supportLabel?: React$1.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function ErrorState({
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
icon,
|
|
20
|
+
onRetry,
|
|
21
|
+
retryLabel,
|
|
22
|
+
supportHref,
|
|
23
|
+
onContactSupport,
|
|
24
|
+
supportLabel,
|
|
25
|
+
className
|
|
26
|
+
}: ErrorStateProps): react_jsx_runtime64.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ErrorState, ErrorState as default, ErrorStateProps };
|
|
29
|
+
//# sourceMappingURL=ErrorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorState.d.ts","names":[],"sources":["../../../src/components/atoms/ErrorState.tsx"],"sourcesContent":[],"mappings":";;;;UAWiB,eAAA;UACP,OAAA,CAAM;gBACA,OAAA,CAAM;EAFL,IAAA,CAAA,EAGR,OAAA,CAAM,SAHiB;EACtB,OAAM,CAAA,EAAA,GAAA,GAAA,IAAA;EACA,UAAM,CAAA,EAGP,OAAA,CAAM,SAHC;EACb,WAAM,CAAA,EAAA,MAAA;EAEA,gBAAM,CAAA,EAAA,GAAA,GAAA,IAAA;EAGJ,YAAM,CAAA,EAAN,OAAA,CAAM,SAAA;EAAS,SAAA,CAAA,EAAA,MAAA;AAIhC;AACE,iBADc,UAAA,CACd;EAAA,KAAA;EAAA,WAAA;EAAA,IAAA;EAAA,OAAA;EAAA,UAAA;EAAA,WAAA;EAAA,gBAAA;EAAA,YAAA;EAAA;AAAA,CAAA,EASC,eATD,CAAA,EASgB,mBAAA,CAAA,GAAA,CAAA,OAThB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Button } from "./Button.js";
|
|
2
|
+
import { ButtonLink } from "./ButtonLink.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "@lssm/lib.ui-kit-web/ui/empty";
|
|
6
|
+
|
|
7
|
+
//#region src/components/atoms/ErrorState.tsx
|
|
8
|
+
function ErrorState({ title = "Something went wrong", description, icon, onRetry, retryLabel = "Retry", supportHref, onContactSupport, supportLabel = "Contact support", className }) {
|
|
9
|
+
const Support = (() => {
|
|
10
|
+
if (supportHref) return /* @__PURE__ */ jsx(ButtonLink, {
|
|
11
|
+
variant: "ghost",
|
|
12
|
+
href: supportHref,
|
|
13
|
+
children: supportLabel
|
|
14
|
+
});
|
|
15
|
+
if (onContactSupport) return /* @__PURE__ */ jsx(Button, {
|
|
16
|
+
variant: "ghost",
|
|
17
|
+
onPress: onContactSupport,
|
|
18
|
+
children: supportLabel
|
|
19
|
+
});
|
|
20
|
+
return null;
|
|
21
|
+
})();
|
|
22
|
+
return /* @__PURE__ */ jsxs(Empty, {
|
|
23
|
+
className,
|
|
24
|
+
children: [/* @__PURE__ */ jsxs(EmptyHeader, { children: [
|
|
25
|
+
icon,
|
|
26
|
+
/* @__PURE__ */ jsx(EmptyTitle, { children: title }),
|
|
27
|
+
description ? /* @__PURE__ */ jsx(EmptyDescription, { children: description }) : null
|
|
28
|
+
] }), /* @__PURE__ */ jsx(EmptyContent, { children: /* @__PURE__ */ jsxs("div", {
|
|
29
|
+
className: "flex flex-wrap items-center gap-2",
|
|
30
|
+
children: [onRetry ? /* @__PURE__ */ jsx(Button, {
|
|
31
|
+
onPress: onRetry,
|
|
32
|
+
children: retryLabel
|
|
33
|
+
}) : null, Support]
|
|
34
|
+
}) })]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
var ErrorState_default = ErrorState;
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { ErrorState, ErrorState_default as default };
|
|
41
|
+
//# sourceMappingURL=ErrorState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorState.js","names":[],"sources":["../../../src/components/atoms/ErrorState.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyTitle,\n} from '@lssm/lib.ui-kit-web/ui/empty';\nimport { Button } from '../atoms/Button';\nimport { ButtonLink } from '../atoms/ButtonLink';\n\nexport interface ErrorStateProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n icon?: React.ReactNode;\n onRetry?: () => void;\n retryLabel?: React.ReactNode;\n supportHref?: string;\n onContactSupport?: () => void;\n supportLabel?: React.ReactNode;\n className?: string;\n}\n\nexport function ErrorState({\n title = 'Something went wrong',\n description,\n icon,\n onRetry,\n retryLabel = 'Retry',\n supportHref,\n onContactSupport,\n supportLabel = 'Contact support',\n className,\n}: ErrorStateProps) {\n const Support = (() => {\n if (supportHref) {\n return (\n <ButtonLink variant=\"ghost\" href={supportHref}>\n {supportLabel}\n </ButtonLink>\n );\n }\n if (onContactSupport) {\n return (\n <Button variant=\"ghost\" onPress={onContactSupport}>\n {supportLabel}\n </Button>\n );\n }\n return null;\n })();\n\n return (\n <Empty className={className}>\n <EmptyHeader>\n {icon}\n <EmptyTitle>{title}</EmptyTitle>\n {description ? (\n <EmptyDescription>{description}</EmptyDescription>\n ) : null}\n </EmptyHeader>\n <EmptyContent>\n <div className=\"flex flex-wrap items-center gap-2\">\n {onRetry ? <Button onPress={onRetry}>{retryLabel}</Button> : null}\n {Support}\n </div>\n </EmptyContent>\n </Empty>\n );\n}\n\nexport default ErrorState;\n"],"mappings":";;;;;;;AAuBA,SAAgB,WAAW,EACzB,QAAQ,wBACR,aACA,MACA,SACA,aAAa,SACb,aACA,kBACA,eAAe,mBACf,aACkB;CAClB,MAAM,iBAAiB;AACrB,MAAI,YACF,QACE,oBAAC;GAAW,SAAQ;GAAQ,MAAM;aAC/B;IACU;AAGjB,MAAI,iBACF,QACE,oBAAC;GAAO,SAAQ;GAAQ,SAAS;aAC9B;IACM;AAGb,SAAO;KACL;AAEJ,QACE,qBAAC;EAAiB;aAChB,qBAAC;GACE;GACD,oBAAC,wBAAY,QAAmB;GAC/B,cACC,oBAAC,8BAAkB,cAA+B,GAChD;MACQ,EACd,oBAAC,0BACC,qBAAC;GAAI,WAAU;cACZ,UAAU,oBAAC;IAAO,SAAS;cAAU;KAAoB,GAAG,MAC5D;IACG,GACO;GACT;;AAIZ,yBAAe"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/atoms/ErrorState.mobile.d.ts
|
|
5
|
+
interface ErrorStateProps {
|
|
6
|
+
title?: React$1.ReactNode;
|
|
7
|
+
description?: React$1.ReactNode;
|
|
8
|
+
icon?: React$1.ReactNode;
|
|
9
|
+
onRetry?: () => void;
|
|
10
|
+
retryLabel?: React$1.ReactNode;
|
|
11
|
+
supportHref?: string;
|
|
12
|
+
onContactSupport?: () => void;
|
|
13
|
+
supportLabel?: React$1.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function ErrorState({
|
|
17
|
+
title,
|
|
18
|
+
description,
|
|
19
|
+
icon,
|
|
20
|
+
onRetry,
|
|
21
|
+
retryLabel,
|
|
22
|
+
supportHref,
|
|
23
|
+
onContactSupport,
|
|
24
|
+
supportLabel,
|
|
25
|
+
className
|
|
26
|
+
}: ErrorStateProps): react_jsx_runtime62.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ErrorState, ErrorState as default, ErrorStateProps };
|
|
29
|
+
//# sourceMappingURL=ErrorState.mobile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorState.mobile.d.ts","names":[],"sources":["../../../src/components/atoms/ErrorState.mobile.tsx"],"sourcesContent":[],"mappings":";;;;UAKiB,eAAA;UACP,OAAA,CAAM;gBACA,OAAA,CAAM;EAFL,IAAA,CAAA,EAGR,OAAA,CAAM,SAHiB;EACtB,OAAM,CAAA,EAAA,GAAA,GAAA,IAAA;EACA,UAAM,CAAA,EAGP,OAAA,CAAM,SAHC;EACb,WAAM,CAAA,EAAA,MAAA;EAEA,gBAAM,CAAA,EAAA,GAAA,GAAA,IAAA;EAGJ,YAAM,CAAA,EAAN,OAAA,CAAM,SAAA;EAAS,SAAA,CAAA,EAAA,MAAA;AAIhC;AACE,iBADc,UAAA,CACd;EAAA,KAAA;EAAA,WAAA;EAAA,IAAA;EAAA,OAAA;EAAA,UAAA;EAAA,WAAA;EAAA,gBAAA;EAAA,YAAA;EAAA;AAAA,CAAA,EASC,eATD,CAAA,EASgB,mBAAA,CAAA,GAAA,CAAA,OAThB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Button } from "./Button.mobile.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Linking, Text, View } from "react-native";
|
|
5
|
+
|
|
6
|
+
//#region src/components/atoms/ErrorState.mobile.tsx
|
|
7
|
+
function ErrorState({ title = "Something went wrong", description, icon, onRetry, retryLabel = "Retry", supportHref, onContactSupport, supportLabel = "Contact support", className }) {
|
|
8
|
+
const onSupport = React$1.useCallback(() => {
|
|
9
|
+
if (supportHref) Linking.openURL(supportHref).catch(() => {});
|
|
10
|
+
else onContactSupport?.();
|
|
11
|
+
}, [supportHref, onContactSupport]);
|
|
12
|
+
return /* @__PURE__ */ jsxs(View, {
|
|
13
|
+
className: ["items-center p-6", className].filter(Boolean).join(" "),
|
|
14
|
+
children: [
|
|
15
|
+
icon,
|
|
16
|
+
/* @__PURE__ */ jsx(Text, {
|
|
17
|
+
className: "text-lg font-medium",
|
|
18
|
+
children: title
|
|
19
|
+
}),
|
|
20
|
+
description ? /* @__PURE__ */ jsx(Text, {
|
|
21
|
+
className: "text-muted-foreground mt-1 text-base",
|
|
22
|
+
children: description
|
|
23
|
+
}) : null,
|
|
24
|
+
/* @__PURE__ */ jsxs(View, {
|
|
25
|
+
className: "mt-3 flex-row items-center gap-2",
|
|
26
|
+
children: [onRetry ? /* @__PURE__ */ jsx(Button, {
|
|
27
|
+
onPress: onRetry,
|
|
28
|
+
children: retryLabel
|
|
29
|
+
}) : null, /* @__PURE__ */ jsx(Button, {
|
|
30
|
+
variant: "ghost",
|
|
31
|
+
onPress: onSupport,
|
|
32
|
+
children: supportLabel
|
|
33
|
+
})]
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
var ErrorState_mobile_default = ErrorState;
|
|
39
|
+
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ErrorState, ErrorState_mobile_default as default };
|
|
42
|
+
//# sourceMappingURL=ErrorState.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorState.mobile.js","names":["React"],"sources":["../../../src/components/atoms/ErrorState.mobile.tsx"],"sourcesContent":["import * as React from 'react';\nimport { View, Text } from 'react-native';\nimport { Button } from '../atoms/Button.mobile';\nimport { Linking } from 'react-native';\n\nexport interface ErrorStateProps {\n title?: React.ReactNode;\n description?: React.ReactNode;\n icon?: React.ReactNode;\n onRetry?: () => void;\n retryLabel?: React.ReactNode;\n supportHref?: string;\n onContactSupport?: () => void;\n supportLabel?: React.ReactNode;\n className?: string;\n}\n\nexport function ErrorState({\n title = 'Something went wrong',\n description,\n icon,\n onRetry,\n retryLabel = 'Retry',\n supportHref,\n onContactSupport,\n supportLabel = 'Contact support',\n className,\n}: ErrorStateProps) {\n const onSupport = React.useCallback(() => {\n if (supportHref) Linking.openURL(supportHref).catch(() => {});\n else onContactSupport?.();\n }, [supportHref, onContactSupport]);\n\n return (\n <View className={['items-center p-6', className].filter(Boolean).join(' ')}>\n {icon}\n <Text className=\"text-lg font-medium\">{title as any}</Text>\n {description ? (\n <Text className=\"text-muted-foreground mt-1 text-base\">\n {description as any}\n </Text>\n ) : null}\n <View className=\"mt-3 flex-row items-center gap-2\">\n {onRetry ? <Button onPress={onRetry}>{retryLabel}</Button> : null}\n <Button variant=\"ghost\" onPress={onSupport}>\n {supportLabel}\n </Button>\n </View>\n </View>\n );\n}\n\nexport default ErrorState;\n"],"mappings":";;;;;;AAiBA,SAAgB,WAAW,EACzB,QAAQ,wBACR,aACA,MACA,SACA,aAAa,SACb,aACA,kBACA,eAAe,mBACf,aACkB;CAClB,MAAM,YAAYA,QAAM,kBAAkB;AACxC,MAAI,YAAa,SAAQ,QAAQ,YAAY,CAAC,YAAY,GAAG;MACxD,qBAAoB;IACxB,CAAC,aAAa,iBAAiB,CAAC;AAEnC,QACE,qBAAC;EAAK,WAAW,CAAC,oBAAoB,UAAU,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI;;GACvE;GACD,oBAAC;IAAK,WAAU;cAAuB;KAAoB;GAC1D,cACC,oBAAC;IAAK,WAAU;cACb;KACI,GACL;GACJ,qBAAC;IAAK,WAAU;eACb,UAAU,oBAAC;KAAO,SAAS;eAAU;MAAoB,GAAG,MAC7D,oBAAC;KAAO,SAAQ;KAAQ,SAAS;eAC9B;MACM;KACJ;;GACF;;AAIX,gCAAe"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { KeyboardOptions } from "../../lib/keyboard.js";
|
|
2
|
+
import * as react_jsx_runtime68 from "react/jsx-runtime";
|
|
3
|
+
import { InputProps as InputProps$1 } from "@lssm/lib.ui-kit-web/ui/input";
|
|
4
|
+
|
|
5
|
+
//#region src/components/atoms/Input.d.ts
|
|
6
|
+
interface BaseFieldProps {
|
|
7
|
+
value?: string | number;
|
|
8
|
+
defaultValue?: string | number;
|
|
9
|
+
onChange?: (text: string) => void;
|
|
10
|
+
onSubmit?: () => void;
|
|
11
|
+
onFocus?: () => void;
|
|
12
|
+
onBlur?: () => void;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
name?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
keyboard?: KeyboardOptions;
|
|
20
|
+
}
|
|
21
|
+
type InputProps = Omit<InputProps$1, 'onChange' | 'value' | 'defaultValue' | 'input'> & BaseFieldProps;
|
|
22
|
+
declare function Input({
|
|
23
|
+
value,
|
|
24
|
+
defaultValue,
|
|
25
|
+
onChange,
|
|
26
|
+
onSubmit,
|
|
27
|
+
onFocus,
|
|
28
|
+
onBlur,
|
|
29
|
+
placeholder,
|
|
30
|
+
disabled,
|
|
31
|
+
readOnly,
|
|
32
|
+
maxLength,
|
|
33
|
+
name,
|
|
34
|
+
className,
|
|
35
|
+
keyboard,
|
|
36
|
+
...rest
|
|
37
|
+
}: InputProps): react_jsx_runtime68.JSX.Element;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { Input, Input as default, InputProps };
|
|
40
|
+
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","names":[],"sources":["../../../src/components/atoms/Input.tsx"],"sourcesContent":[],"mappings":";;;;;UAOU,cAAA;;;EAAA,QAAA,CAAA,EAAA,CAAA,IAAA,EAAc,MAAA,EAAA,GAAA,IAaX;EAGD,QAAA,CAAA,EAAA,GAAU,GAAA,IAAA;EACpB,OAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EADuB,MAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAIvB,WAAA,CAAA,EAAA,MAAA;EAAc,QAAA,CAAA,EAAA,OAAA;EAEA,QAAK,CAAA,EAAA,OAAA;EACnB,SAAA,CAAA,EAAA,MAAA;EACA,IAAA,CAAA,EAAA,MAAA;EACA,SAAA,CAAA,EAAA,MAAA;EACA,QAAA,CAAA,EAbW,eAaX;;AAEA,KAZU,UAAA,GAAa,IAYvB,CAXA,YAWA,EAAA,UAAA,GAAA,OAAA,GAAA,cAAA,GAAA,OAAA,CAAA,GARA,cAQA;AACA,iBAPc,KAAA,CAOd;EAAA,KAAA;EAAA,YAAA;EAAA,QAAA;EAAA,QAAA;EAAA,OAAA;EAAA,MAAA;EAAA,WAAA;EAAA,QAAA;EAAA,QAAA;EAAA,SAAA;EAAA,IAAA;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAQC,UARD,CAAA,EAQW,mBAAA,CAAA,GAAA,CAAA,OARX"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { mapKeyboardToWeb } from "../../lib/keyboard.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Input as Input$1 } from "@lssm/lib.ui-kit-web/ui/input";
|
|
5
|
+
|
|
6
|
+
//#region src/components/atoms/Input.tsx
|
|
7
|
+
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard,...rest }) {
|
|
8
|
+
const webKeyboard = mapKeyboardToWeb(keyboard);
|
|
9
|
+
return /* @__PURE__ */ jsx(Input$1, {
|
|
10
|
+
...rest,
|
|
11
|
+
className,
|
|
12
|
+
value,
|
|
13
|
+
defaultValue,
|
|
14
|
+
onChange: onChange ? (e) => onChange?.(e.target.value) : void 0,
|
|
15
|
+
onFocus,
|
|
16
|
+
onBlur,
|
|
17
|
+
placeholder,
|
|
18
|
+
disabled,
|
|
19
|
+
readOnly,
|
|
20
|
+
maxLength,
|
|
21
|
+
name,
|
|
22
|
+
...webKeyboard
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
var Input_default = Input;
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { Input, Input_default as default };
|
|
29
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","names":["WebInput"],"sources":["../../../src/components/atoms/Input.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Input as WebInput,\n type InputProps as WebInputProps,\n} from '@lssm/lib.ui-kit-web/ui/input';\nimport { type KeyboardOptions, mapKeyboardToWeb } from '../../lib/keyboard';\n\ninterface BaseFieldProps {\n value?: string | number;\n defaultValue?: string | number;\n onChange?: (text: string) => void;\n onSubmit?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n placeholder?: string;\n disabled?: boolean;\n readOnly?: boolean;\n maxLength?: number;\n name?: string;\n className?: string;\n keyboard?: KeyboardOptions;\n}\n\nexport type InputProps = Omit<\n WebInputProps,\n 'onChange' | 'value' | 'defaultValue' | 'input'\n> &\n BaseFieldProps;\n\nexport function Input({\n value,\n defaultValue,\n onChange,\n onSubmit,\n onFocus,\n onBlur,\n placeholder,\n disabled,\n readOnly,\n maxLength,\n name,\n className,\n keyboard,\n ...rest\n}: InputProps) {\n const webKeyboard = mapKeyboardToWeb(keyboard);\n\n return (\n <WebInput\n {...rest}\n className={className}\n value={value}\n defaultValue={defaultValue}\n onChange={onChange ? (e) => onChange?.(e.target.value) : undefined}\n // onKeyDown={onKeyDown}\n onFocus={onFocus}\n onBlur={onBlur}\n placeholder={placeholder}\n disabled={disabled}\n readOnly={readOnly}\n maxLength={maxLength}\n name={name}\n {...webKeyboard}\n />\n );\n}\n\nexport default Input;\n"],"mappings":";;;;;;AA6BA,SAAgB,MAAM,EACpB,OACA,cACA,UACA,UACA,SACA,QACA,aACA,UACA,UACA,WACA,MACA,WACA,SACA,GAAG,QACU;CACb,MAAM,cAAc,iBAAiB,SAAS;AAE9C,QACE,oBAACA;EACC,GAAI;EACO;EACJ;EACO;EACd,UAAU,YAAY,MAAM,WAAW,EAAE,OAAO,MAAM,GAAG;EAEhD;EACD;EACK;EACH;EACA;EACC;EACL;EACN,GAAI;GACJ;;AAIN,oBAAe"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { KeyboardOptions } from "../../lib/keyboard.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
4
|
+
import { Input as Input$1 } from "@lssm/lib.ui-kit/ui/input";
|
|
5
|
+
|
|
6
|
+
//#region src/components/atoms/Input.mobile.d.ts
|
|
7
|
+
interface BaseFieldProps {
|
|
8
|
+
value?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onChange?: (text: string) => void;
|
|
11
|
+
onSubmit?: () => void;
|
|
12
|
+
onFocus?: () => void;
|
|
13
|
+
onBlur?: () => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
maxLength?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
keyboard?: KeyboardOptions;
|
|
19
|
+
}
|
|
20
|
+
type NativeInputComponentProps = React$1.ComponentProps<typeof Input$1>;
|
|
21
|
+
type InputProps = Omit<NativeInputComponentProps, 'onChangeText' | 'value' | 'defaultValue'> & BaseFieldProps;
|
|
22
|
+
declare function Input({
|
|
23
|
+
value,
|
|
24
|
+
defaultValue,
|
|
25
|
+
onChange,
|
|
26
|
+
onSubmit,
|
|
27
|
+
onFocus,
|
|
28
|
+
onBlur,
|
|
29
|
+
placeholder,
|
|
30
|
+
disabled,
|
|
31
|
+
maxLength,
|
|
32
|
+
className,
|
|
33
|
+
keyboard,
|
|
34
|
+
...rest
|
|
35
|
+
}: InputProps): react_jsx_runtime66.JSX.Element;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { Input, Input as default, InputProps };
|
|
38
|
+
//# sourceMappingURL=Input.mobile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.mobile.d.ts","names":[],"sources":["../../../src/components/atoms/Input.mobile.tsx"],"sourcesContent":[],"mappings":";;;;;;UAIU,cAAA;;;EAAA,QAAA,CAAA,EAAA,CAAA,IAAA,EAAc,MAAA,EAAA,GAAA,IAWX;EAGR,QAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EACO,OAAA,CAAA,EAAA,GAAU,GAAA,IAAA;EACpB,MAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EADuB,WAAA,CAAA,EAAA,MAAA;EAIvB,QAAA,CAAA,EAAA,OAAA;EAAc,SAAA,CAAA,EAAA,MAAA;EAEA,SAAK,CAAA,EAAA,MAAA;EACnB,QAAA,CAAA,EAXW,eAWX;;KARG,yBAAA,GAA4B,OAAA,CAAM,cAUrC,CAAA,OAV2D,OAU3D,CAAA;AACA,KAVU,UAAA,GAAa,IAUvB,CATA,yBASA,EAAA,cAAA,GAAA,OAAA,GAAA,cAAA,CAAA,GANA,cAMA;AACA,iBALc,KAAA,CAKd;EAAA,KAAA;EAAA,YAAA;EAAA,QAAA;EAAA,QAAA;EAAA,OAAA;EAAA,MAAA;EAAA,WAAA;EAAA,QAAA;EAAA,SAAA;EAAA,SAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAQC,UARD,CAAA,EAQW,mBAAA,CAAA,GAAA,CAAA,OARX"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { mapKeyboardToNative } from "../../lib/keyboard.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Input as Input$1 } from "@lssm/lib.ui-kit/ui/input";
|
|
5
|
+
|
|
6
|
+
//#region src/components/atoms/Input.mobile.tsx
|
|
7
|
+
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, maxLength, className, keyboard,...rest }) {
|
|
8
|
+
const nativeKeyboard = mapKeyboardToNative(keyboard);
|
|
9
|
+
return /* @__PURE__ */ jsx(Input$1, {
|
|
10
|
+
...rest,
|
|
11
|
+
className,
|
|
12
|
+
value,
|
|
13
|
+
defaultValue,
|
|
14
|
+
onChangeText: onChange,
|
|
15
|
+
onSubmitEditing: onSubmit,
|
|
16
|
+
onFocus,
|
|
17
|
+
onBlur,
|
|
18
|
+
placeholder,
|
|
19
|
+
editable: !disabled,
|
|
20
|
+
maxLength,
|
|
21
|
+
...nativeKeyboard
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var Input_mobile_default = Input;
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { Input, Input_mobile_default as default };
|
|
28
|
+
//# sourceMappingURL=Input.mobile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.mobile.js","names":["NativeInput"],"sources":["../../../src/components/atoms/Input.mobile.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Input as NativeInput } from '@lssm/lib.ui-kit/ui/input';\nimport { mapKeyboardToNative, type KeyboardOptions } from '../../lib/keyboard';\n\ninterface BaseFieldProps {\n value?: string;\n defaultValue?: string;\n onChange?: (text: string) => void;\n onSubmit?: () => void;\n onFocus?: () => void;\n onBlur?: () => void;\n placeholder?: string;\n disabled?: boolean;\n maxLength?: number;\n className?: string;\n keyboard?: KeyboardOptions;\n}\n\ntype NativeInputComponentProps = React.ComponentProps<typeof NativeInput>;\nexport type InputProps = Omit<\n NativeInputComponentProps,\n 'onChangeText' | 'value' | 'defaultValue'\n> &\n BaseFieldProps;\n\nexport function Input({\n value,\n defaultValue,\n onChange,\n onSubmit,\n onFocus,\n onBlur,\n placeholder,\n disabled,\n maxLength,\n className,\n keyboard,\n ...rest\n}: InputProps) {\n const nativeKeyboard = mapKeyboardToNative(keyboard);\n\n return (\n <NativeInput\n {...(rest as any)}\n className={className as any}\n value={value as any}\n defaultValue={defaultValue as any}\n onChangeText={onChange as any}\n onSubmitEditing={onSubmit as any}\n onFocus={onFocus as any}\n onBlur={onBlur as any}\n placeholder={placeholder}\n editable={!disabled}\n maxLength={maxLength}\n {...(nativeKeyboard as any)}\n />\n );\n}\n\nexport default Input;\n"],"mappings":";;;;;;AAyBA,SAAgB,MAAM,EACpB,OACA,cACA,UACA,UACA,SACA,QACA,aACA,UACA,WACA,WACA,SACA,GAAG,QACU;CACb,MAAM,iBAAiB,oBAAoB,SAAS;AAEpD,QACE,oBAACA;EACC,GAAK;EACM;EACJ;EACO;EACd,cAAc;EACd,iBAAiB;EACR;EACD;EACK;EACb,UAAU,CAAC;EACA;EACX,GAAK;GACL;;AAIN,2BAAe"}
|