@lssm/lib.design-system 1.7.3 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/dist/_virtual/rolldown_runtime.js +21 -12
- package/dist/components/agent/AgentMonitor.d.ts +29 -0
- package/dist/components/agent/AgentMonitor.d.ts.map +1 -0
- package/dist/components/agent/AgentMonitor.js +79 -0
- package/dist/components/agent/AgentMonitor.js.map +1 -0
- package/dist/components/agent/ApprovalQueue.d.ts +26 -0
- package/dist/components/agent/ApprovalQueue.d.ts.map +1 -0
- package/dist/components/agent/ApprovalQueue.js +89 -0
- package/dist/components/agent/ApprovalQueue.js.map +1 -0
- package/dist/components/atoms/ActionButtons.d.ts +10 -10
- package/dist/components/atoms/ActionButtons.d.ts.map +1 -1
- package/dist/components/atoms/ActionButtons.js +5 -5
- package/dist/components/atoms/ActionButtons.js.map +1 -1
- package/dist/components/atoms/Button.d.ts +3 -3
- package/dist/components/atoms/Button.d.ts.map +1 -1
- package/dist/components/atoms/Button.js +3 -3
- package/dist/components/atoms/Button.js.map +1 -1
- package/dist/components/atoms/Button.mobile.d.ts +2 -2
- package/dist/components/atoms/Button.mobile.d.ts.map +1 -1
- package/dist/components/atoms/Button.mobile.js +4 -4
- package/dist/components/atoms/Button.mobile.js.map +1 -1
- package/dist/components/atoms/ButtonLink.d.ts +2 -2
- package/dist/components/atoms/ButtonLink.js +1 -2
- package/dist/components/atoms/ButtonLink.js.map +1 -1
- package/dist/components/atoms/ButtonLink.mobile.d.ts +2 -2
- package/dist/components/atoms/ButtonLink.mobile.d.ts.map +1 -1
- package/dist/components/atoms/ButtonLink.mobile.js +1 -1
- package/dist/components/atoms/ButtonLink.mobile.js.map +1 -1
- package/dist/components/atoms/Cta.d.ts +3 -3
- package/dist/components/atoms/Cta.js +1 -1
- package/dist/components/atoms/Cta.js.map +1 -1
- package/dist/components/atoms/Cta.mobile.js +1 -2
- package/dist/components/atoms/Cta.mobile.js.map +1 -1
- package/dist/components/atoms/DataChips.d.ts +7 -7
- package/dist/components/atoms/DataChips.d.ts.map +1 -1
- package/dist/components/atoms/DataChips.js +5 -5
- package/dist/components/atoms/DataChips.js.map +1 -1
- package/dist/components/atoms/EmptyState.d.ts +2 -2
- package/dist/components/atoms/EmptyState.d.ts.map +1 -1
- package/dist/components/atoms/EmptyState.js +1 -2
- package/dist/components/atoms/EmptyState.js.map +1 -1
- package/dist/components/atoms/ErrorState.d.ts +2 -2
- package/dist/components/atoms/ErrorState.js +1 -1
- package/dist/components/atoms/ErrorState.mobile.d.ts +2 -2
- package/dist/components/atoms/ErrorState.mobile.d.ts.map +1 -1
- package/dist/components/atoms/Input.d.ts +2 -2
- package/dist/components/atoms/Input.d.ts.map +1 -1
- package/dist/components/atoms/Input.js +2 -2
- package/dist/components/atoms/Input.js.map +1 -1
- package/dist/components/atoms/Input.mobile.d.ts +2 -2
- package/dist/components/atoms/Input.mobile.js +2 -2
- package/dist/components/atoms/Input.mobile.js.map +1 -1
- package/dist/components/atoms/Link.d.ts +2 -2
- package/dist/components/atoms/Link.js +1 -1
- package/dist/components/atoms/Link.js.map +1 -1
- package/dist/components/atoms/Link.web.d.ts +2 -2
- package/dist/components/atoms/Link.web.js +1 -1
- package/dist/components/atoms/Link.web.js.map +1 -1
- package/dist/components/atoms/LoaderCircular.d.ts +4 -4
- package/dist/components/atoms/LoaderCircular.js +3 -4
- package/dist/components/atoms/LoaderCircular.js.map +1 -1
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +2 -2
- package/dist/components/atoms/NavBrand.d.ts +2 -2
- package/dist/components/atoms/NavBrand.js +1 -3
- package/dist/components/atoms/NavBrand.js.map +1 -1
- package/dist/components/atoms/Stepper.d.ts +2 -2
- package/dist/components/atoms/Stepper.js +1 -2
- package/dist/components/atoms/Stepper.js.map +1 -1
- package/dist/components/atoms/Textarea.d.ts +2 -2
- package/dist/components/atoms/Textarea.d.ts.map +1 -1
- package/dist/components/atoms/Textarea.js +2 -2
- package/dist/components/atoms/Textarea.js.map +1 -1
- package/dist/components/atoms/Textarea.mobile.d.ts +2 -2
- package/dist/components/atoms/Textarea.mobile.d.ts.map +1 -1
- package/dist/components/atoms/Textarea.mobile.js +2 -2
- package/dist/components/atoms/Textarea.mobile.js.map +1 -1
- package/dist/components/data-view/DataViewDetail.d.ts +3 -2
- package/dist/components/data-view/DataViewDetail.d.ts.map +1 -1
- package/dist/components/data-view/DataViewDetail.js +9 -10
- package/dist/components/data-view/DataViewDetail.js.map +1 -1
- package/dist/components/data-view/DataViewList.d.ts +3 -2
- package/dist/components/data-view/DataViewList.d.ts.map +1 -1
- package/dist/components/data-view/DataViewList.js +5 -6
- package/dist/components/data-view/DataViewList.js.map +1 -1
- package/dist/components/data-view/DataViewRenderer.d.ts +20 -3
- package/dist/components/data-view/DataViewRenderer.d.ts.map +1 -1
- package/dist/components/data-view/DataViewRenderer.js +128 -50
- package/dist/components/data-view/DataViewRenderer.js.map +1 -1
- package/dist/components/data-view/DataViewTable.d.ts +3 -2
- package/dist/components/data-view/DataViewTable.d.ts.map +1 -1
- package/dist/components/data-view/DataViewTable.js +9 -10
- package/dist/components/data-view/DataViewTable.js.map +1 -1
- package/dist/components/data-view/utils.js +0 -1
- package/dist/components/data-view/utils.js.map +1 -1
- package/dist/components/forms/FormCardLayout.d.ts +2 -2
- package/dist/components/forms/FormCardLayout.d.ts.map +1 -1
- package/dist/components/forms/FormCardLayout.js +2 -3
- package/dist/components/forms/FormCardLayout.js.map +1 -1
- package/dist/components/forms/FormDialog.d.ts +2 -2
- package/dist/components/forms/FormDialog.d.ts.map +1 -1
- package/dist/components/forms/FormDialog.js +1 -2
- package/dist/components/forms/FormDialog.js.map +1 -1
- package/dist/components/forms/FormLayout.d.ts +4 -4
- package/dist/components/forms/FormLayout.d.ts.map +1 -1
- package/dist/components/forms/FormLayout.js +1 -3
- package/dist/components/forms/FormLayout.js.map +1 -1
- package/dist/components/forms/FormOneByOneLayout.d.ts +2 -2
- package/dist/components/forms/FormOneByOneLayout.d.ts.map +1 -1
- package/dist/components/forms/FormOneByOneLayout.js +1 -2
- package/dist/components/forms/FormOneByOneLayout.js.map +1 -1
- package/dist/components/forms/FormStepsLayout.d.ts +2 -2
- package/dist/components/forms/FormStepsLayout.js +2 -3
- package/dist/components/forms/FormStepsLayout.js.map +1 -1
- package/dist/components/forms/ZodForm.d.ts +4 -4
- package/dist/components/forms/ZodForm.d.ts.map +1 -1
- package/dist/components/forms/ZodForm.js +1 -2
- package/dist/components/forms/ZodForm.js.map +1 -1
- package/dist/components/legal/atoms/DefinitionList.d.ts +2 -2
- package/dist/components/legal/atoms/DefinitionList.js +1 -2
- package/dist/components/legal/atoms/DefinitionList.js.map +1 -1
- package/dist/components/legal/atoms/KeyValueList.d.ts +2 -2
- package/dist/components/legal/atoms/KeyValueList.js +1 -2
- package/dist/components/legal/atoms/KeyValueList.js.map +1 -1
- package/dist/components/legal/atoms/LegalCallout.d.ts +4 -4
- package/dist/components/legal/atoms/LegalCallout.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalCallout.js +2 -3
- package/dist/components/legal/atoms/LegalCallout.js.map +1 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts +4 -4
- package/dist/components/legal/atoms/LegalHeading.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalHeading.js +2 -3
- package/dist/components/legal/atoms/LegalHeading.js.map +1 -1
- package/dist/components/legal/atoms/LegalList.d.ts +4 -4
- package/dist/components/legal/atoms/LegalList.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalList.js +2 -3
- package/dist/components/legal/atoms/LegalList.js.map +1 -1
- package/dist/components/legal/atoms/LegalSection.d.ts +4 -4
- package/dist/components/legal/atoms/LegalSection.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalSection.js +2 -3
- package/dist/components/legal/atoms/LegalSection.js.map +1 -1
- package/dist/components/legal/atoms/LegalText.d.ts +5 -5
- package/dist/components/legal/atoms/LegalText.d.ts.map +1 -1
- package/dist/components/legal/atoms/LegalText.js +2 -3
- package/dist/components/legal/atoms/LegalText.js.map +1 -1
- package/dist/components/legal/molecules/Consent.d.ts +3 -3
- package/dist/components/legal/molecules/Consent.js +2 -3
- package/dist/components/legal/molecules/Consent.js.map +1 -1
- package/dist/components/legal/molecules/ContactFields.d.ts +2 -2
- package/dist/components/legal/molecules/ContactFields.js +1 -1
- package/dist/components/legal/molecules/LegalMeta.d.ts +2 -2
- package/dist/components/legal/molecules/LegalMeta.js +1 -2
- package/dist/components/legal/molecules/LegalMeta.js.map +1 -1
- package/dist/components/legal/molecules/LegalTOC.d.ts +4 -4
- package/dist/components/legal/molecules/LegalTOC.js +2 -3
- package/dist/components/legal/molecules/LegalTOC.js.map +1 -1
- package/dist/components/legal/organisms/ContactForm.d.ts +2 -2
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +2 -2
- package/dist/components/legal/organisms/GDPRRights.d.ts +2 -2
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +2 -2
- package/dist/components/legal/organisms/LegalPageLayout.d.ts.map +1 -1
- package/dist/components/legal/organisms/LegalPageLayout.js +1 -2
- package/dist/components/legal/organisms/LegalPageLayout.js.map +1 -1
- package/dist/components/legal/templates/ContactTemplate.d.ts +2 -2
- package/dist/components/legal/templates/CookiesTemplate.d.ts +2 -2
- package/dist/components/legal/templates/CookiesTemplate.d.ts.map +1 -1
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +2 -2
- package/dist/components/legal/templates/PrivacyTemplate.d.ts.map +1 -1
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +2 -2
- package/dist/components/legal/templates/TermsTemplate.d.ts +2 -2
- package/dist/components/legal/templates/TermsTemplate.js +0 -1
- package/dist/components/legal/templates/TermsTemplate.js.map +1 -1
- package/dist/components/molecules/AiLinkButton.d.ts +2 -2
- package/dist/components/molecules/AiLinkButton.d.ts.map +1 -1
- package/dist/components/molecules/AiLinkButton.js +1 -1
- package/dist/components/molecules/Breadcrumbs.d.ts +2 -2
- package/dist/components/molecules/Breadcrumbs.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumbs.js +1 -2
- package/dist/components/molecules/Breadcrumbs.js.map +1 -1
- package/dist/components/molecules/CommandPalette.d.ts +2 -2
- package/dist/components/molecules/CommandPalette.js +1 -2
- package/dist/components/molecules/CommandPalette.js.map +1 -1
- package/dist/components/molecules/CommandSearchTrigger.d.ts +2 -2
- package/dist/components/molecules/CommandSearchTrigger.js +2 -4
- package/dist/components/molecules/CommandSearchTrigger.js.map +1 -1
- package/dist/components/molecules/EntityCard.d.ts +4 -4
- package/dist/components/molecules/EntityCard.js +3 -5
- package/dist/components/molecules/EntityCard.js.map +1 -1
- package/dist/components/molecules/FiltersToolbar.d.ts +2 -2
- package/dist/components/molecules/FiltersToolbar.js +2 -3
- package/dist/components/molecules/FiltersToolbar.js.map +1 -1
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +2 -2
- package/dist/components/molecules/FiltersToolbar.mobile.js +1 -1
- package/dist/components/molecules/HoverPreview.d.ts +2 -2
- package/dist/components/molecules/HoverPreview.js +2 -5
- package/dist/components/molecules/HoverPreview.js.map +1 -1
- package/dist/components/molecules/LangSwitch.d.ts +2 -2
- package/dist/components/molecules/LangSwitch.js +0 -1
- package/dist/components/molecules/LangSwitch.js.map +1 -1
- package/dist/components/molecules/LangSwitchDropdown.d.ts +2 -2
- package/dist/components/molecules/LangSwitchDropdown.js +2 -2
- package/dist/components/molecules/LoaderBlock.d.ts +2 -2
- package/dist/components/molecules/LoaderBlock.js +1 -2
- package/dist/components/molecules/LoaderBlock.js.map +1 -1
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +2 -2
- package/dist/components/molecules/MobileNavMenu.d.ts +2 -2
- package/dist/components/molecules/MobileNavMenu.js +1 -3
- package/dist/components/molecules/MobileNavMenu.js.map +1 -1
- package/dist/components/molecules/NavItemCard.d.ts +2 -2
- package/dist/components/molecules/NavItemCard.d.ts.map +1 -1
- package/dist/components/molecules/NavItemCard.js +1 -3
- package/dist/components/molecules/NavItemCard.js.map +1 -1
- package/dist/components/molecules/NavMain.d.ts +2 -2
- package/dist/components/molecules/NavMain.d.ts.map +1 -1
- package/dist/components/molecules/NavMain.js +4 -5
- package/dist/components/molecules/NavMain.js.map +1 -1
- package/dist/components/molecules/NavUser.d.ts +2 -2
- package/dist/components/molecules/NavUser.d.ts.map +1 -1
- package/dist/components/molecules/NavUser.js +2 -2
- package/dist/components/molecules/OverviewCard.d.ts +2 -2
- package/dist/components/molecules/OverviewCard.d.ts.map +1 -1
- package/dist/components/molecules/OverviewCard.js +1 -2
- package/dist/components/molecules/OverviewCard.js.map +1 -1
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +2 -2
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonBlock/index.web.js +2 -3
- package/dist/components/molecules/SkeletonBlock/index.web.js.map +1 -1
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +2 -2
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts.map +1 -1
- package/dist/components/molecules/SkeletonCircle/index.web.js +1 -1
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +2 -2
- package/dist/components/molecules/SkeletonList/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonList/index.web.js +1 -1
- package/dist/components/molecules/StatCard.d.ts +6 -6
- package/dist/components/molecules/StatCard.d.ts.map +1 -1
- package/dist/components/molecules/StatCard.js +3 -5
- package/dist/components/molecules/StatCard.js.map +1 -1
- package/dist/components/molecules/StatusChip.d.ts +4 -4
- package/dist/components/molecules/StatusChip.d.ts.map +1 -1
- package/dist/components/molecules/StatusChip.js +2 -4
- package/dist/components/molecules/StatusChip.js.map +1 -1
- package/dist/components/molecules/hover-previews/Doc.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Doc.js +0 -1
- package/dist/components/molecules/hover-previews/Doc.js.map +1 -1
- package/dist/components/molecules/hover-previews/Media.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Media.js +0 -1
- package/dist/components/molecules/hover-previews/Media.js.map +1 -1
- package/dist/components/molecules/hover-previews/Simple.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Simple.d.ts.map +1 -1
- package/dist/components/molecules/hover-previews/Simple.js +0 -1
- package/dist/components/molecules/hover-previews/Simple.js.map +1 -1
- package/dist/components/molecules/hover-previews/Stats.d.ts +2 -2
- package/dist/components/molecules/hover-previews/Stats.js +0 -1
- package/dist/components/molecules/hover-previews/Stats.js.map +1 -1
- package/dist/components/molecules/hover-previews/User.d.ts +2 -2
- package/dist/components/molecules/hover-previews/User.js +0 -1
- package/dist/components/molecules/hover-previews/User.js.map +1 -1
- package/dist/components/native/BottomTabs.mobile.d.ts +2 -2
- package/dist/components/native/BottomTabs.mobile.js +1 -3
- package/dist/components/native/BottomTabs.mobile.js.map +1 -1
- package/dist/components/native/FlatListScreen.mobile.d.ts +4 -4
- package/dist/components/native/FlatListScreen.mobile.d.ts.map +1 -1
- package/dist/components/native/FlatListScreen.mobile.js +3 -4
- package/dist/components/native/FlatListScreen.mobile.js.map +1 -1
- package/dist/components/native/SheetMenu.mobile.d.ts +2 -2
- package/dist/components/native/SheetMenu.mobile.d.ts.map +1 -1
- package/dist/components/native/SheetMenu.mobile.js +1 -2
- package/dist/components/native/SheetMenu.mobile.js.map +1 -1
- package/dist/components/organisms/AcademyLayout.d.ts +2 -2
- package/dist/components/organisms/AcademyLayout.js +2 -4
- package/dist/components/organisms/AcademyLayout.js.map +1 -1
- package/dist/components/organisms/AppHeader.d.ts +2 -2
- package/dist/components/organisms/AppHeader.d.ts.map +1 -1
- package/dist/components/organisms/AppHeader.js +3 -5
- package/dist/components/organisms/AppHeader.js.map +1 -1
- package/dist/components/organisms/AppHeader.mobile.d.ts +2 -2
- package/dist/components/organisms/AppHeader.mobile.d.ts.map +1 -1
- package/dist/components/organisms/AppHeader.mobile.js +1 -2
- package/dist/components/organisms/AppHeader.mobile.js.map +1 -1
- package/dist/components/organisms/AppLayout.d.ts +2 -2
- package/dist/components/organisms/AppLayout.d.ts.map +1 -1
- package/dist/components/organisms/AppLayout.js +3 -5
- package/dist/components/organisms/AppLayout.js.map +1 -1
- package/dist/components/organisms/AppSidebar.d.ts +2 -2
- package/dist/components/organisms/AppSidebar.d.ts.map +1 -1
- package/dist/components/organisms/AppSidebar.js +2 -3
- package/dist/components/organisms/AppSidebar.js.map +1 -1
- package/dist/components/organisms/EmptyDataList.d.ts +2 -2
- package/dist/components/organisms/EmptyDataList.d.ts.map +1 -1
- package/dist/components/organisms/EmptyDataList.js +1 -1
- package/dist/components/organisms/EmptyDataList.mobile.d.ts +2 -2
- package/dist/components/organisms/EmptyDataList.mobile.d.ts.map +1 -1
- package/dist/components/organisms/EmptyDataList.mobile.js +3 -3
- package/dist/components/organisms/EmptySearchResult.d.ts +2 -2
- package/dist/components/organisms/EmptySearchResult.d.ts.map +1 -1
- package/dist/components/organisms/EmptySearchResult.js +1 -1
- package/dist/components/organisms/FAQSection.d.ts +2 -2
- package/dist/components/organisms/FAQSection.d.ts.map +1 -1
- package/dist/components/organisms/FAQSection.js +2 -2
- package/dist/components/organisms/FeatureCarousel.d.ts +2 -2
- package/dist/components/organisms/FeatureCarousel.js +2 -2
- package/dist/components/organisms/FeaturesSection.d.ts +2 -2
- package/dist/components/organisms/FeaturesSection.js +1 -1
- package/dist/components/organisms/Footer.d.ts +2 -2
- package/dist/components/organisms/Footer.js +1 -2
- package/dist/components/organisms/Footer.js.map +1 -1
- package/dist/components/organisms/GridLayout.d.ts +4 -4
- package/dist/components/organisms/GridLayout.d.ts.map +1 -1
- package/dist/components/organisms/GridLayout.js +1 -2
- package/dist/components/organisms/GridLayout.js.map +1 -1
- package/dist/components/organisms/Header.d.ts +4 -4
- package/dist/components/organisms/Header.d.ts.map +1 -1
- package/dist/components/organisms/Header.js +4 -6
- package/dist/components/organisms/Header.js.map +1 -1
- package/dist/components/organisms/Header.mobile.d.ts +2 -2
- package/dist/components/organisms/Header.mobile.js +1 -2
- package/dist/components/organisms/Header.mobile.js.map +1 -1
- package/dist/components/organisms/HeroResponsive.js +0 -1
- package/dist/components/organisms/HeroResponsive.js.map +1 -1
- package/dist/components/organisms/HeroSection.d.ts +2 -2
- package/dist/components/organisms/HeroSection.d.ts.map +1 -1
- package/dist/components/organisms/HeroSection.js +1 -1
- package/dist/components/organisms/ListCardPage.d.ts +5 -5
- package/dist/components/organisms/ListCardPage.d.ts.map +1 -1
- package/dist/components/organisms/ListCardPage.js +2 -3
- package/dist/components/organisms/ListCardPage.js.map +1 -1
- package/dist/components/organisms/ListGridPage.d.ts +5 -5
- package/dist/components/organisms/ListGridPage.d.ts.map +1 -1
- package/dist/components/organisms/ListGridPage.js +1 -2
- package/dist/components/organisms/ListGridPage.js.map +1 -1
- package/dist/components/organisms/ListPageResponsive.d.ts +2 -2
- package/dist/components/organisms/ListPageResponsive.d.ts.map +1 -1
- package/dist/components/organisms/ListPageResponsive.js +1 -2
- package/dist/components/organisms/ListPageResponsive.js.map +1 -1
- package/dist/components/organisms/ListTablePage.d.ts +4 -4
- package/dist/components/organisms/ListTablePage.d.ts.map +1 -1
- package/dist/components/organisms/ListTablePage.js +2 -3
- package/dist/components/organisms/ListTablePage.js.map +1 -1
- package/dist/components/organisms/MarketingHeader.d.ts +2 -2
- package/dist/components/organisms/MarketingHeader.js +7 -9
- package/dist/components/organisms/MarketingHeader.js.map +1 -1
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +2 -2
- package/dist/components/organisms/MarketingHeaderDesktop.js +3 -5
- package/dist/components/organisms/MarketingHeaderDesktop.js.map +1 -1
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +2 -2
- package/dist/components/organisms/MarketingHeaderMobile.js +4 -6
- package/dist/components/organisms/MarketingHeaderMobile.js.map +1 -1
- package/dist/components/organisms/MarketingLayout.d.ts +2 -2
- package/dist/components/organisms/MarketingLayout.js +2 -4
- package/dist/components/organisms/MarketingLayout.js.map +1 -1
- package/dist/components/organisms/PageHeaderResponsive.d.ts +2 -2
- package/dist/components/organisms/PageHeaderResponsive.js +1 -2
- package/dist/components/organisms/PageHeaderResponsive.js.map +1 -1
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +2 -2
- package/dist/components/organisms/PageHeaderResponsive.mobile.js +2 -3
- package/dist/components/organisms/PageHeaderResponsive.mobile.js.map +1 -1
- package/dist/components/organisms/PricingCarousel.d.ts +2 -2
- package/dist/components/organisms/PricingCarousel.js +2 -2
- package/dist/components/organisms/PricingSection.d.ts +2 -2
- package/dist/components/organisms/PricingSection.js +1 -1
- package/dist/components/organisms/TestimonialCarousel.d.ts +2 -2
- package/dist/components/organisms/TestimonialCarousel.js +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts.map +1 -1
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +1 -1
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts.map +1 -1
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +3 -4
- package/dist/components/templates/lists/ListPageTemplate/index.web.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/keyboard.d.ts.map +1 -1
- package/dist/platform/useColorScheme.js +0 -1
- package/dist/platform/useColorScheme.js.map +1 -1
- package/dist/platform/useColorScheme.mobile.js +0 -1
- package/dist/platform/useColorScheme.mobile.js.map +1 -1
- package/dist/platform/useReducedMotion.js +0 -1
- package/dist/platform/useReducedMotion.js.map +1 -1
- package/dist/platform/useReducedMotion.mobile.js +0 -1
- package/dist/platform/useReducedMotion.mobile.js.map +1 -1
- package/dist/platform/useResponsive.js +0 -1
- package/dist/platform/useResponsive.js.map +1 -1
- package/dist/platform/useResponsive.mobile.js +0 -1
- package/dist/platform/useResponsive.mobile.js.map +1 -1
- package/dist/platform/withPlatformUI.js +0 -1
- package/dist/platform/withPlatformUI.js.map +1 -1
- package/dist/renderers/form-contract.d.ts +4 -1
- package/dist/renderers/form-contract.d.ts.map +1 -1
- package/dist/renderers/form-contract.js +9 -10
- package/dist/renderers/form-contract.js.map +1 -1
- package/dist/theme/tokenBridge.d.ts.map +1 -1
- package/dist/theme/tokenBridge.js +0 -1
- package/dist/theme/tokenBridge.js.map +1 -1
- package/dist/theme/tokens.js +0 -1
- package/dist/theme/tokens.js.map +1 -1
- package/dist/theme/variants.d.ts +3 -3
- package/dist/theme/variants.d.ts.map +1 -1
- package/dist/theme/variants.js +0 -1
- package/dist/theme/variants.js.map +1 -1
- package/package.json +157 -154
- package/dist/contracts/src/client/react/drivers/shadcn.js +0 -12
- package/dist/contracts/src/client/react/drivers/shadcn.js.map +0 -1
- package/dist/contracts/src/client/react/form-render.js +0 -299
- package/dist/contracts/src/client/react/form-render.js.map +0 -1
- package/dist/contracts/src/forms.js +0 -89
- package/dist/contracts/src/forms.js.map +0 -1
- package/dist/ui-kit/dist/ui/button.js +0 -75
- package/dist/ui-kit/dist/ui/button.js.map +0 -1
- package/dist/ui-kit/dist/ui/empty.js +0 -63
- package/dist/ui-kit/dist/ui/empty.js.map +0 -1
- package/dist/ui-kit/dist/ui/input.js +0 -17
- package/dist/ui-kit/dist/ui/input.js.map +0 -1
- package/dist/ui-kit/dist/ui/stack.js +0 -224
- package/dist/ui-kit/dist/ui/stack.js.map +0 -1
- package/dist/ui-kit/dist/ui/text.js +0 -19
- package/dist/ui-kit/dist/ui/text.js.map +0 -1
- package/dist/ui-kit/dist/ui/textarea.js +0 -20
- package/dist/ui-kit/dist/ui/textarea.js.map +0 -1
- package/dist/ui-kit/dist/ui/utils.js +0 -11
- package/dist/ui-kit/dist/ui/utils.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/accordion.js +0 -50
- package/dist/ui-kit-web/dist/ui/accordion.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/atoms/FilterSelect/FilterSelect.js +0 -53
- package/dist/ui-kit-web/dist/ui/atoms/FilterSelect/FilterSelect.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/atoms/Pagination/Pagination.js +0 -157
- package/dist/ui-kit-web/dist/ui/atoms/Pagination/Pagination.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/atoms/SearchInput/SearchInput.js +0 -50
- package/dist/ui-kit-web/dist/ui/atoms/SearchInput/SearchInput.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/avatar.js +0 -35
- package/dist/ui-kit-web/dist/ui/avatar.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/badge.js +0 -28
- package/dist/ui-kit-web/dist/ui/badge.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/breadcrumb.js +0 -60
- package/dist/ui-kit-web/dist/ui/breadcrumb.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/button.js +0 -45
- package/dist/ui-kit-web/dist/ui/button.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/card.js +0 -38
- package/dist/ui-kit-web/dist/ui/card.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/carousel.js +0 -138
- package/dist/ui-kit-web/dist/ui/carousel.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/checkbox.js +0 -27
- package/dist/ui-kit-web/dist/ui/checkbox.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/collapsible.js +0 -29
- package/dist/ui-kit-web/dist/ui/collapsible.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/command.js +0 -92
- package/dist/ui-kit-web/dist/ui/command.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/dialog.js +0 -86
- package/dist/ui-kit-web/dist/ui/dialog.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/dropdown-menu.js +0 -59
- package/dist/ui-kit-web/dist/ui/dropdown-menu.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/empty-state.js +0 -44
- package/dist/ui-kit-web/dist/ui/empty-state.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/empty.js +0 -63
- package/dist/ui-kit-web/dist/ui/empty.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/field.js +0 -80
- package/dist/ui-kit-web/dist/ui/field.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/form.js +0 -18
- package/dist/ui-kit-web/dist/ui/form.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/hover-card.js +0 -42
- package/dist/ui-kit-web/dist/ui/hover-card.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/input.js +0 -18
- package/dist/ui-kit-web/dist/ui/input.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/label.js +0 -21
- package/dist/ui-kit-web/dist/ui/label.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/marketing/Hero.js +0 -54
- package/dist/ui-kit-web/dist/ui/marketing/Hero.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/marketing/PricingTable.js +0 -61
- package/dist/ui-kit-web/dist/ui/marketing/PricingTable.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -103
- package/dist/ui-kit-web/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/molecules/SkeletonList.js +0 -15
- package/dist/ui-kit-web/dist/ui/molecules/SkeletonList.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/navigation-menu.js +0 -76
- package/dist/ui-kit-web/dist/ui/navigation-menu.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js +0 -198
- package/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/page-header.js +0 -41
- package/dist/ui-kit-web/dist/ui/page-header.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/radio-group.js +0 -34
- package/dist/ui-kit-web/dist/ui/radio-group.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/select.js +0 -88
- package/dist/ui-kit-web/dist/ui/select.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/separator.js +0 -23
- package/dist/ui-kit-web/dist/ui/separator.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/sheet.js +0 -82
- package/dist/ui-kit-web/dist/ui/sheet.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/sidebar.js +0 -283
- package/dist/ui-kit-web/dist/ui/sidebar.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/skeleton.js +0 -16
- package/dist/ui-kit-web/dist/ui/skeleton.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/stack.js +0 -159
- package/dist/ui-kit-web/dist/ui/stack.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/stepper.js +0 -38
- package/dist/ui-kit-web/dist/ui/stepper.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/switch.js +0 -25
- package/dist/ui-kit-web/dist/ui/switch.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/table.js +0 -59
- package/dist/ui-kit-web/dist/ui/table.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/text.js +0 -17
- package/dist/ui-kit-web/dist/ui/text.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/textarea.js +0 -17
- package/dist/ui-kit-web/dist/ui/textarea.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/tooltip.js +0 -42
- package/dist/ui-kit-web/dist/ui/tooltip.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/use-mobile.js +0 -21
- package/dist/ui-kit-web/dist/ui/use-mobile.js.map +0 -1
- package/dist/ui-kit-web/dist/ui/utils.js +0 -14
- package/dist/ui-kit-web/dist/ui/utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mobile.js","names":["Text","NativeButton"],"sources":["../../../src/components/atoms/Button.mobile.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Button as NativeButton,\n type ButtonProps as NativeButtonProps,\n} from '@lssm/lib.ui-kit/ui/button';\nimport { ActivityIndicator, type PressableProps } from 'react-native';\nimport { HStack } from '@lssm/lib.ui-kit/ui/stack';\nimport { Text } from '@lssm/lib.ui-kit/ui/text';\n\ntype SpinnerPlacement = 'start' | 'end';\n\nexport type ButtonProps = NativeButtonProps &\n Omit<PressableProps, 'disabled'> & {\n loading?: boolean;\n loadingText?: string;\n spinnerPlacement?: SpinnerPlacement;\n };\n\nexport function Button({\n children,\n loading,\n loadingText,\n spinnerPlacement = 'start',\n disabled,\n ...props\n}: ButtonProps) {\n const isDisabled = Boolean(disabled || loading);\n\n const content = loading ? (\n <HStack className=\"items-center gap-x-2\">\n {spinnerPlacement === 'start' ? (\n <ActivityIndicator\n size=\"small\"\n color={props.variant === 'outline' ? '#6b7280' : '#ffffff'}\n />\n ) : null}\n <Text>{loadingText || 'Loading…'}</Text>\n {spinnerPlacement === 'end' ? (\n <ActivityIndicator\n size=\"small\"\n color={props.variant === 'outline' ? '#6b7280' : '#ffffff'}\n />\n ) : null}\n </HStack>\n ) : (\n children\n );\n\n return (\n <NativeButton disabled={isDisabled} {...props}>\n {content as any}\n </NativeButton>\n );\n}\n\nexport default Button;\n"],"mappings":";;;;;;;;AAkBA,SAAgB,OAAO,EACrB,UACA,SACA,aACA,mBAAmB,SACnB,
|
|
1
|
+
{"version":3,"file":"Button.mobile.js","names":["Text","NativeButton"],"sources":["../../../src/components/atoms/Button.mobile.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Button as NativeButton,\n type ButtonProps as NativeButtonProps,\n} from '@lssm/lib.ui-kit/ui/button';\nimport { ActivityIndicator, type PressableProps } from 'react-native';\nimport { HStack } from '@lssm/lib.ui-kit/ui/stack';\nimport { Text } from '@lssm/lib.ui-kit/ui/text';\n\ntype SpinnerPlacement = 'start' | 'end';\n\nexport type ButtonProps = NativeButtonProps &\n Omit<PressableProps, 'disabled'> & {\n loading?: boolean;\n loadingText?: string;\n spinnerPlacement?: SpinnerPlacement;\n };\n\nexport function Button({\n children,\n loading,\n loadingText,\n spinnerPlacement = 'start',\n disabled,\n ...props\n}: ButtonProps) {\n const isDisabled = Boolean(disabled || loading);\n\n const content = loading ? (\n <HStack className=\"items-center gap-x-2\">\n {spinnerPlacement === 'start' ? (\n <ActivityIndicator\n size=\"small\"\n color={props.variant === 'outline' ? '#6b7280' : '#ffffff'}\n />\n ) : null}\n <Text>{loadingText || 'Loading…'}</Text>\n {spinnerPlacement === 'end' ? (\n <ActivityIndicator\n size=\"small\"\n color={props.variant === 'outline' ? '#6b7280' : '#ffffff'}\n />\n ) : null}\n </HStack>\n ) : (\n children\n );\n\n return (\n <NativeButton disabled={isDisabled} {...props}>\n {content as any}\n </NativeButton>\n );\n}\n\nexport default Button;\n"],"mappings":";;;;;;;;AAkBA,SAAgB,OAAO,EACrB,UACA,SACA,aACA,mBAAmB,SACnB,UACA,GAAG,SACW;CACd,MAAM,aAAa,QAAQ,YAAY,QAAQ;CAE/C,MAAM,UAAU,UACd,qBAAC;EAAO,WAAU;;GACf,qBAAqB,UACpB,oBAAC;IACC,MAAK;IACL,OAAO,MAAM,YAAY,YAAY,YAAY;KACjD,GACA;GACJ,oBAACA,oBAAM,eAAe,aAAkB;GACvC,qBAAqB,QACpB,oBAAC;IACC,MAAK;IACL,OAAO,MAAM,YAAY,YAAY,YAAY;KACjD,GACA;;GACG,GAET;AAGF,QACE,oBAACC;EAAa,UAAU;EAAY,GAAI;YACrC;GACY;;AAInB,4BAAe"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button.js";
|
|
2
2
|
import { LinkProps } from "./Link.web.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/ButtonLink.d.ts
|
|
6
6
|
type ButtonLinkProps = ButtonProps & Pick<LinkProps, 'href' | 'target' | 'rel' | 'onClick'> & {
|
|
@@ -16,7 +16,7 @@ declare function ButtonLink({
|
|
|
16
16
|
children,
|
|
17
17
|
onClick,
|
|
18
18
|
...btn
|
|
19
|
-
}: ButtonLinkProps):
|
|
19
|
+
}: ButtonLinkProps): react_jsx_runtime11.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { ButtonLink, ButtonLink as default, ButtonLinkProps };
|
|
22
22
|
//# sourceMappingURL=ButtonLink.d.ts.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { Button } from "./Button.js";
|
|
5
4
|
import { Link } from "./Link.web.js";
|
|
6
5
|
import * as React$1 from "react";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
|
|
9
8
|
//#region src/components/atoms/ButtonLink.tsx
|
|
10
|
-
function ButtonLink({ href, target, rel, replace, loading, disabled, children, onClick
|
|
9
|
+
function ButtonLink({ href, target, rel, replace, loading, disabled, children, onClick, ...btn }) {
|
|
11
10
|
const blocked = Boolean(disabled || loading);
|
|
12
11
|
const handleClick = React$1.useCallback((e) => {
|
|
13
12
|
if (blocked) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.js","names":["React"],"sources":["../../../src/components/atoms/ButtonLink.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Button, type ButtonProps } from './Button';\nimport { Link, type LinkProps } from './Link.web';\n\nexport type ButtonLinkProps = ButtonProps &\n Pick<LinkProps, 'href' | 'target' | 'rel' | 'onClick'> & {\n replace?: boolean;\n };\n\nexport function ButtonLink({\n href,\n target,\n rel,\n replace,\n loading,\n disabled,\n children,\n onClick,\n ...btn\n}: ButtonLinkProps) {\n const blocked = Boolean(disabled || loading);\n const handleClick = React.useCallback<\n React.MouseEventHandler<HTMLAnchorElement>\n >(\n (e) => {\n if (blocked) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n onClick?.(e);\n },\n [blocked, onClick]\n );\n return (\n <Button {...btn} disabled={disabled} loading={loading} asChild>\n <Link href={href} target={target} rel={rel} onClick={handleClick}>\n {children}\n </Link>\n </Button>\n );\n}\n\nexport default ButtonLink;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonLink.js","names":["React"],"sources":["../../../src/components/atoms/ButtonLink.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Button, type ButtonProps } from './Button';\nimport { Link, type LinkProps } from './Link.web';\n\nexport type ButtonLinkProps = ButtonProps &\n Pick<LinkProps, 'href' | 'target' | 'rel' | 'onClick'> & {\n replace?: boolean;\n };\n\nexport function ButtonLink({\n href,\n target,\n rel,\n replace,\n loading,\n disabled,\n children,\n onClick,\n ...btn\n}: ButtonLinkProps) {\n const blocked = Boolean(disabled || loading);\n const handleClick = React.useCallback<\n React.MouseEventHandler<HTMLAnchorElement>\n >(\n (e) => {\n if (blocked) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n onClick?.(e);\n },\n [blocked, onClick]\n );\n return (\n <Button {...btn} disabled={disabled} loading={loading} asChild>\n <Link href={href} target={target} rel={rel} onClick={handleClick}>\n {children}\n </Link>\n </Button>\n );\n}\n\nexport default ButtonLink;\n"],"mappings":";;;;;;;;AAWA,SAAgB,WAAW,EACzB,MACA,QACA,KACA,SACA,SACA,UACA,UACA,SACA,GAAG,OACe;CAClB,MAAM,UAAU,QAAQ,YAAY,QAAQ;CAC5C,MAAM,cAAcA,QAAM,aAGvB,MAAM;AACL,MAAI,SAAS;AACX,KAAE,gBAAgB;AAClB,KAAE,iBAAiB;AACnB;;AAEF,YAAU,EAAE;IAEd,CAAC,SAAS,QAAQ,CACnB;AACD,QACE,oBAAC;EAAO,GAAI;EAAe;EAAmB;EAAS;YACrD,oBAAC;GAAW;GAAc;GAAa;GAAK,SAAS;GAClD;IACI;GACA;;AAIb,yBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button.mobile.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/ButtonLink.mobile.d.ts
|
|
5
5
|
type ButtonLinkProps = Omit<ButtonProps, 'onPress'> & {
|
|
@@ -14,7 +14,7 @@ declare function ButtonLink({
|
|
|
14
14
|
onPressIn,
|
|
15
15
|
onPressOut,
|
|
16
16
|
...btn
|
|
17
|
-
}: ButtonLinkProps):
|
|
17
|
+
}: ButtonLinkProps): react_jsx_runtime12.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { ButtonLink, ButtonLink as default, ButtonLinkProps };
|
|
20
20
|
//# sourceMappingURL=ButtonLink.mobile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.mobile.d.ts","names":[],"sources":["../../../src/components/atoms/ButtonLink.mobile.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,eAAA,GAAkB,KAAK;;;AAAnC,CAAA;AAKgB,iBAAA,UAAA,CAAU;EAAA,IAAA;EAAA,OAAA;EAAA,OAAA;EAAA,QAAA;EAAA,SAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAQvB,eARuB,CAAA,EAQR,
|
|
1
|
+
{"version":3,"file":"ButtonLink.mobile.d.ts","names":[],"sources":["../../../src/components/atoms/ButtonLink.mobile.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,eAAA,GAAkB,KAAK;;;AAAnC,CAAA;AAKgB,iBAAA,UAAA,CAAU;EAAA,IAAA;EAAA,OAAA;EAAA,OAAA;EAAA,QAAA;EAAA,SAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAQvB,eARuB,CAAA,EAQR,mBAAA,CAAA,GAAA,CAAA,OARQ"}
|
|
@@ -5,7 +5,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { Linking } from "react-native";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/ButtonLink.mobile.tsx
|
|
8
|
-
function ButtonLink({ href, replace, loading, disabled, onPressIn, onPressOut
|
|
8
|
+
function ButtonLink({ href, replace, loading, disabled, onPressIn, onPressOut, ...btn }) {
|
|
9
9
|
const blocked = Boolean(disabled || loading);
|
|
10
10
|
const handlePress = React$1.useCallback(() => {
|
|
11
11
|
if (blocked) return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.mobile.js","names":["React"],"sources":["../../../src/components/atoms/ButtonLink.mobile.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, type ButtonProps } from './Button.mobile';\nimport { Linking } from 'react-native';\n\nexport type ButtonLinkProps = Omit<ButtonProps, 'onPress'> & {\n href: string;\n replace?: boolean;\n};\n\nexport function ButtonLink({\n href,\n replace,\n loading,\n disabled,\n onPressIn,\n onPressOut,\n ...btn\n}: ButtonLinkProps) {\n const blocked = Boolean(disabled || loading);\n const handlePress = React.useCallback(() => {\n if (blocked) return;\n try {\n // Prefer expo-router Link via dynamic require if available\n const ExpoRouter = require('expo-router');\n if (ExpoRouter?.Link) {\n // If Link is available, we can't render it here without asChild; fallback to router.navigate\n const router = ExpoRouter.router ?? ExpoRouter.useRouter?.();\n if (router?.replace && replace) router.replace(href);\n else if (router?.push) router.push(href);\n else Linking.openURL(href);\n return;\n }\n } catch {}\n Linking.openURL(href);\n }, [blocked, href, replace]);\n\n return (\n <Button\n {...btn}\n onPress={handlePress}\n loading={loading}\n disabled={disabled}\n onPressIn={onPressIn}\n onPressOut={onPressOut}\n >\n {btn.children}\n </Button>\n );\n}\n\nexport default ButtonLink;\n"],"mappings":";;;;;;;AASA,SAAgB,WAAW,EACzB,MACA,SACA,SACA,UACA,WACA,
|
|
1
|
+
{"version":3,"file":"ButtonLink.mobile.js","names":["React"],"sources":["../../../src/components/atoms/ButtonLink.mobile.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, type ButtonProps } from './Button.mobile';\nimport { Linking } from 'react-native';\n\nexport type ButtonLinkProps = Omit<ButtonProps, 'onPress'> & {\n href: string;\n replace?: boolean;\n};\n\nexport function ButtonLink({\n href,\n replace,\n loading,\n disabled,\n onPressIn,\n onPressOut,\n ...btn\n}: ButtonLinkProps) {\n const blocked = Boolean(disabled || loading);\n const handlePress = React.useCallback(() => {\n if (blocked) return;\n try {\n // Prefer expo-router Link via dynamic require if available\n const ExpoRouter = require('expo-router');\n if (ExpoRouter?.Link) {\n // If Link is available, we can't render it here without asChild; fallback to router.navigate\n const router = ExpoRouter.router ?? ExpoRouter.useRouter?.();\n if (router?.replace && replace) router.replace(href);\n else if (router?.push) router.push(href);\n else Linking.openURL(href);\n return;\n }\n } catch {}\n Linking.openURL(href);\n }, [blocked, href, replace]);\n\n return (\n <Button\n {...btn}\n onPress={handlePress}\n loading={loading}\n disabled={disabled}\n onPressIn={onPressIn}\n onPressOut={onPressOut}\n >\n {btn.children}\n </Button>\n );\n}\n\nexport default ButtonLink;\n"],"mappings":";;;;;;;AASA,SAAgB,WAAW,EACzB,MACA,SACA,SACA,UACA,WACA,YACA,GAAG,OACe;CAClB,MAAM,UAAU,QAAQ,YAAY,QAAQ;CAC5C,MAAM,cAAcA,QAAM,kBAAkB;AAC1C,MAAI,QAAS;AACb,MAAI;GAEF,MAAM,uBAAqB,cAAc;AACzC,OAAI,YAAY,MAAM;IAEpB,MAAM,SAAS,WAAW,UAAU,WAAW,aAAa;AAC5D,QAAI,QAAQ,WAAW,QAAS,QAAO,QAAQ,KAAK;aAC3C,QAAQ,KAAM,QAAO,KAAK,KAAK;QACnC,SAAQ,QAAQ,KAAK;AAC1B;;UAEI;AACR,UAAQ,QAAQ,KAAK;IACpB;EAAC;EAAS;EAAM;EAAQ,CAAC;AAE5B,QACE,oBAAC;EACC,GAAI;EACJ,SAAS;EACA;EACC;EACC;EACC;YAEX,IAAI;GACE;;AAIb,gCAAe"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Cta.d.ts
|
|
7
7
|
declare const ctaVariants: (props?: ({
|
|
8
8
|
size?: "sm" | "md" | "lg" | "touch" | null | undefined;
|
|
9
|
-
emphasis?: "
|
|
10
|
-
} &
|
|
9
|
+
emphasis?: "default" | "strong" | "subtle" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
11
11
|
type CtaProps = ButtonProps & VariantProps<typeof ctaVariants> & {
|
|
12
12
|
capture?: (cta: string) => void;
|
|
13
13
|
ctaName?: string;
|
|
@@ -24,7 +24,7 @@ cva("", {
|
|
|
24
24
|
emphasis: "default"
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const Cta = React$1.forwardRef(({ capture, ctaName, as = "button", href, onClick, size = "touch", emphasis = "default", children
|
|
27
|
+
const Cta = React$1.forwardRef(({ capture, ctaName, as = "button", href, onClick, size = "touch", emphasis = "default", children, ...props }, ref) => {
|
|
28
28
|
const handleClick = (e) => {
|
|
29
29
|
if (ctaName) try {
|
|
30
30
|
if (capture) capture(ctaName);
|
|
@@ -1 +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,
|
|
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,UACA,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"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
3
|
import { __require } from "../../_virtual/rolldown_runtime.js";
|
|
5
4
|
import { Button } from "./Button.js";
|
|
6
5
|
import * as React$1 from "react";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
|
|
9
8
|
//#region src/components/atoms/Cta.mobile.tsx
|
|
10
|
-
const Cta = React$1.forwardRef(({ capture, ctaName, size = "touch", onClick, children
|
|
9
|
+
const Cta = React$1.forwardRef(({ capture, ctaName, size = "touch", onClick, children, ...props }, ref) => {
|
|
11
10
|
const handlePress = () => {
|
|
12
11
|
try {
|
|
13
12
|
if (ctaName) {
|
|
@@ -1 +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":"
|
|
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,UAAU,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"}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/DataChips.d.ts
|
|
7
7
|
declare const chip: (props?: ({
|
|
8
8
|
size?: "sm" | "md" | null | undefined;
|
|
9
9
|
tone?: "default" | "muted" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types2.ClassProp) | undefined) => string;
|
|
11
11
|
type ChipVariants = VariantProps<typeof chip>;
|
|
12
12
|
declare function DateChip({
|
|
13
13
|
value,
|
|
14
14
|
...v
|
|
15
15
|
}: {
|
|
16
16
|
value?: string | Date | null;
|
|
17
|
-
} & ChipVariants):
|
|
17
|
+
} & ChipVariants): react_jsx_runtime19.JSX.Element | null;
|
|
18
18
|
declare function TimeChip({
|
|
19
19
|
value,
|
|
20
20
|
...v
|
|
21
21
|
}: {
|
|
22
22
|
value?: string | Date | null;
|
|
23
|
-
} & ChipVariants):
|
|
23
|
+
} & ChipVariants): react_jsx_runtime19.JSX.Element | null;
|
|
24
24
|
declare function PlaceChip({
|
|
25
25
|
label,
|
|
26
26
|
...v
|
|
27
27
|
}: {
|
|
28
28
|
label?: React$1.ReactNode;
|
|
29
|
-
} & ChipVariants):
|
|
29
|
+
} & ChipVariants): react_jsx_runtime19.JSX.Element | null;
|
|
30
30
|
declare function DurationChip({
|
|
31
31
|
minutes,
|
|
32
32
|
...v
|
|
33
33
|
}: {
|
|
34
34
|
minutes?: number | null;
|
|
35
|
-
} & ChipVariants):
|
|
35
|
+
} & ChipVariants): react_jsx_runtime19.JSX.Element | null;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { ChipVariants, DateChip, DurationChip, PlaceChip, TimeChip };
|
|
38
38
|
//# sourceMappingURL=DataChips.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataChips.d.ts","names":[],"sources":["../../../src/components/atoms/DataChips.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM;;;IASL,+BAAA,CAAA;AATK,KAWM,YAAA,GAAe,YAF1B,CAAA,OAE8C,IAF9C,CAAA;AAEW,iBAEI,QAAA,CAF+B;EAAA,KAApB;EAAA,GAAA;AAGzB,CAHyB,EAAY;EAEvB,KAAA,CAAA,EAAA,MAAQ,GAGF,IAHE,GAAA,IAAA;CACtB,GAEoC,YAFpC,CAAA,EAEgD,
|
|
1
|
+
{"version":3,"file":"DataChips.d.ts","names":[],"sources":["../../../src/components/atoms/DataChips.tsx"],"sourcesContent":[],"mappings":";;;;;;cAIM;;;IASL,+BAAA,CAAA;AATK,KAWM,YAAA,GAAe,YAF1B,CAAA,OAE8C,IAF9C,CAAA;AAEW,iBAEI,QAAA,CAF+B;EAAA,KAApB;EAAA,GAAA;AAGzB,CAHyB,EAAY;EAEvB,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
|
+
import { Calendar, Clock, MapPin } from "lucide-react";
|
|
2
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
4
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { Calendar, Clock, MapPin } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/DataChips.tsx
|
|
7
7
|
const chip = cva("inline-flex items-center gap-1 text-base text-muted-foreground", {
|
|
@@ -20,7 +20,7 @@ const chip = cva("inline-flex items-center gap-1 text-base text-muted-foreground
|
|
|
20
20
|
tone: "default"
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
-
function DateChip({ value
|
|
23
|
+
function DateChip({ value, ...v }) {
|
|
24
24
|
if (!value) return null;
|
|
25
25
|
let text = "";
|
|
26
26
|
try {
|
|
@@ -37,7 +37,7 @@ function DateChip({ value,...v }) {
|
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
-
function TimeChip({ value
|
|
40
|
+
function TimeChip({ value, ...v }) {
|
|
41
41
|
if (!value) return null;
|
|
42
42
|
let text = "";
|
|
43
43
|
try {
|
|
@@ -57,7 +57,7 @@ function TimeChip({ value,...v }) {
|
|
|
57
57
|
]
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
function PlaceChip({ label
|
|
60
|
+
function PlaceChip({ label, ...v }) {
|
|
61
61
|
if (!label) return null;
|
|
62
62
|
return /* @__PURE__ */ jsxs("span", {
|
|
63
63
|
className: chip(v),
|
|
@@ -68,7 +68,7 @@ function PlaceChip({ label,...v }) {
|
|
|
68
68
|
]
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
function DurationChip({ minutes
|
|
71
|
+
function DurationChip({ minutes, ...v }) {
|
|
72
72
|
if (minutes == null) return null;
|
|
73
73
|
const hrs = Math.floor(minutes / 60);
|
|
74
74
|
const mins = minutes % 60;
|
|
@@ -1 +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,
|
|
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,OACA,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,OACA,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,OACA,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,SACA,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
2
2
|
import { EmptyStateProps } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/EmptyState.d.ts
|
|
5
|
-
declare function EmptyState(props: EmptyStateProps):
|
|
5
|
+
declare function EmptyState(props: EmptyStateProps): react_jsx_runtime48.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { EmptyState };
|
|
8
8
|
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","names":[],"sources":["../../../src/components/atoms/EmptyState.tsx"],"sourcesContent":[],"mappings":";;;;iBAQgB,UAAA,QAAkB,kBAAe,
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","names":[],"sources":["../../../src/components/atoms/EmptyState.tsx"],"sourcesContent":[],"mappings":";;;;iBAQgB,UAAA,QAAkB,kBAAe,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { EmptyState as EmptyState$1 } from "../../ui-kit-web/dist/ui/empty-state.js";
|
|
5
3
|
import "react";
|
|
6
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { EmptyState as EmptyState$1 } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
7
6
|
|
|
8
7
|
//#region src/components/atoms/EmptyState.tsx
|
|
9
8
|
function EmptyState(props) {
|
|
@@ -1 +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":"
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/ErrorState.d.ts
|
|
5
5
|
interface ErrorStateProps {
|
|
@@ -23,7 +23,7 @@ declare function ErrorState({
|
|
|
23
23
|
onContactSupport,
|
|
24
24
|
supportLabel,
|
|
25
25
|
className
|
|
26
|
-
}: ErrorStateProps):
|
|
26
|
+
}: ErrorStateProps): react_jsx_runtime26.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ErrorState, ErrorState as default, ErrorStateProps };
|
|
29
29
|
//# sourceMappingURL=ErrorState.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Button } from "./Button.js";
|
|
2
2
|
import { ButtonLink } from "./ButtonLink.js";
|
|
3
|
-
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "../../ui-kit-web/dist/ui/empty.js";
|
|
4
3
|
import "react";
|
|
5
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "@lssm/lib.ui-kit-web/ui/empty";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/ErrorState.tsx
|
|
8
8
|
function ErrorState({ title = "Something went wrong", description, icon, onRetry, retryLabel = "Retry", supportHref, onContactSupport, supportLabel = "Contact support", className }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/ErrorState.mobile.d.ts
|
|
5
5
|
interface ErrorStateProps {
|
|
@@ -23,7 +23,7 @@ declare function ErrorState({
|
|
|
23
23
|
onContactSupport,
|
|
24
24
|
supportLabel,
|
|
25
25
|
className
|
|
26
|
-
}: ErrorStateProps):
|
|
26
|
+
}: ErrorStateProps): react_jsx_runtime25.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ErrorState, ErrorState as default, ErrorStateProps };
|
|
29
29
|
//# sourceMappingURL=ErrorState.mobile.d.ts.map
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyboardOptions } from "../../lib/keyboard.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime124 from "react/jsx-runtime";
|
|
3
3
|
import { InputProps as InputProps$1 } from "@lssm/lib.ui-kit-web/ui/input";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/Input.d.ts
|
|
@@ -34,7 +34,7 @@ declare function Input({
|
|
|
34
34
|
className,
|
|
35
35
|
keyboard,
|
|
36
36
|
...rest
|
|
37
|
-
}: InputProps):
|
|
37
|
+
}: InputProps): react_jsx_runtime124.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { Input, Input as default, InputProps };
|
|
40
40
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +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,
|
|
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,oBAAA,CAAA,GAAA,CAAA,OARX"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Input as Input$1 } from "../../ui-kit-web/dist/ui/input.js";
|
|
2
1
|
import { mapKeyboardToWeb } from "../../lib/keyboard.js";
|
|
3
2
|
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Input as Input$1 } from "@lssm/lib.ui-kit-web/ui/input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Input.tsx
|
|
7
|
-
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard
|
|
7
|
+
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard, ...rest }) {
|
|
8
8
|
const webKeyboard = mapKeyboardToWeb(keyboard);
|
|
9
9
|
return /* @__PURE__ */ jsx(Input$1, {
|
|
10
10
|
...rest,
|
|
@@ -1 +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,
|
|
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,UACA,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyboardOptions } from "../../lib/keyboard.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
4
4
|
import { Input as Input$1 } from "@lssm/lib.ui-kit/ui/input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Input.mobile.d.ts
|
|
@@ -32,7 +32,7 @@ declare function Input({
|
|
|
32
32
|
className,
|
|
33
33
|
keyboard,
|
|
34
34
|
...rest
|
|
35
|
-
}: InputProps):
|
|
35
|
+
}: InputProps): react_jsx_runtime28.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Input, Input as default, InputProps };
|
|
38
38
|
//# sourceMappingURL=Input.mobile.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mapKeyboardToNative } from "../../lib/keyboard.js";
|
|
2
|
-
import { Input as Input$1 } from "../../ui-kit/dist/ui/input.js";
|
|
3
2
|
import "react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Input as Input$1 } from "@lssm/lib.ui-kit/ui/input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Input.mobile.tsx
|
|
7
|
-
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, maxLength, className, keyboard
|
|
7
|
+
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, maxLength, className, keyboard, ...rest }) {
|
|
8
8
|
const nativeKeyboard = mapKeyboardToNative(keyboard);
|
|
9
9
|
return /* @__PURE__ */ jsx(Input$1, {
|
|
10
10
|
...rest,
|
|
@@ -1 +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,
|
|
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,UACA,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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/Link.d.ts
|
|
5
5
|
type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
6
6
|
declare function Link({
|
|
7
7
|
children,
|
|
8
8
|
...props
|
|
9
|
-
}: LinkProps):
|
|
9
|
+
}: LinkProps): react_jsx_runtime27.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Link, Link as default, LinkProps };
|
|
12
12
|
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","names":[],"sources":["../../../src/components/atoms/Link.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes } from 'react';\nimport * as React from 'react';\n\nexport type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport function Link({ children, ...props }: LinkProps) {\n return <a {...props}>{children}</a>;\n}\n\nexport default Link;\n"],"mappings":";;;;AAKA,SAAgB,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Link.js","names":[],"sources":["../../../src/components/atoms/Link.tsx"],"sourcesContent":["import type { AnchorHTMLAttributes } from 'react';\nimport * as React from 'react';\n\nexport type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport function Link({ children, ...props }: LinkProps) {\n return <a {...props}>{children}</a>;\n}\n\nexport default Link;\n"],"mappings":";;;;AAKA,SAAgB,KAAK,EAAE,UAAU,GAAG,SAAoB;AACtD,QAAO,oBAAC;EAAE,GAAI;EAAQ;GAAa;;AAGrC,mBAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/Link.web.d.ts
|
|
5
5
|
type LinkProps = {
|
|
@@ -18,7 +18,7 @@ declare function Link({
|
|
|
18
18
|
href,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: LinkProps):
|
|
21
|
+
}: LinkProps): react_jsx_runtime32.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Link, LinkProps };
|
|
24
24
|
//# sourceMappingURL=Link.web.d.ts.map
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import NextLink from "next/link";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/Link.web.tsx
|
|
6
|
-
function Link({ href, children
|
|
6
|
+
function Link({ href, children, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsx(NextLink, {
|
|
8
8
|
href,
|
|
9
9
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.web.js","names":[],"sources":["../../../src/components/atoms/Link.web.tsx"],"sourcesContent":["import * as React from 'react';\nimport NextLink from 'next/link';\n\nexport type LinkProps = {\n href: any; // keep loose to avoid type coupling with Next.js types\n children?: React.ReactNode;\n className?: string;\n prefetch?: boolean;\n replace?: boolean;\n scroll?: boolean;\n shallow?: boolean;\n target?: string;\n rel?: string;\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n} & Record<string, any>;\n\nexport function Link({ href, children, ...props }: LinkProps) {\n return (\n <NextLink href={href} {...props}>\n {children}\n </NextLink>\n );\n}\n"],"mappings":";;;;;AAgBA,SAAgB,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Link.web.js","names":[],"sources":["../../../src/components/atoms/Link.web.tsx"],"sourcesContent":["import * as React from 'react';\nimport NextLink from 'next/link';\n\nexport type LinkProps = {\n href: any; // keep loose to avoid type coupling with Next.js types\n children?: React.ReactNode;\n className?: string;\n prefetch?: boolean;\n replace?: boolean;\n scroll?: boolean;\n shallow?: boolean;\n target?: string;\n rel?: string;\n onClick?: React.MouseEventHandler<HTMLAnchorElement>;\n} & Record<string, any>;\n\nexport function Link({ href, children, ...props }: LinkProps) {\n return (\n <NextLink href={href} {...props}>\n {children}\n </NextLink>\n );\n}\n"],"mappings":";;;;;AAgBA,SAAgB,KAAK,EAAE,MAAM,UAAU,GAAG,SAAoB;AAC5D,QACE,oBAAC;EAAe;EAAM,GAAI;EACvB;GACQ"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types6 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/LoaderCircular.d.ts
|
|
7
7
|
declare const spinnerVariants: (props?: ({
|
|
8
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
9
|
tone?: "default" | "muted" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
11
11
|
type LoaderCircularProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
|
|
12
12
|
label?: React$1.ReactNode;
|
|
13
13
|
};
|
|
@@ -17,7 +17,7 @@ declare function LoaderCircular({
|
|
|
17
17
|
label,
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: LoaderCircularProps):
|
|
20
|
+
}: LoaderCircularProps): react_jsx_runtime49.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { LoaderCircular, LoaderCircular as default, LoaderCircularProps };
|
|
23
23
|
//# sourceMappingURL=LoaderCircular.d.ts.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { cn, init_utils } from "../../ui-kit-web/dist/ui/utils.js";
|
|
2
1
|
import "react";
|
|
2
|
+
import { Loader2 } from "lucide-react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import {
|
|
5
|
+
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/LoaderCircular.tsx
|
|
8
|
-
init_utils();
|
|
9
8
|
const spinnerVariants = cva("animate-spin", {
|
|
10
9
|
variants: {
|
|
11
10
|
size: {
|
|
@@ -23,7 +22,7 @@ const spinnerVariants = cva("animate-spin", {
|
|
|
23
22
|
tone: "muted"
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
function LoaderCircular({ size, tone, label, className
|
|
25
|
+
function LoaderCircular({ size, tone, label, className, ...props }) {
|
|
27
26
|
return /* @__PURE__ */ jsxs("div", {
|
|
28
27
|
className: cn("inline-flex items-center gap-2", className),
|
|
29
28
|
role: "status",
|