@veridid/workflow-ui 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +202 -2
- package/build/module/WorkflowFontScaleContext.js +67 -0
- package/build/module/WorkflowFontScaleContext.js.map +1 -0
- package/build/module/adapter/WalletAdapter.js +152 -0
- package/build/module/adapter/WalletAdapter.js.map +1 -0
- package/build/module/components/FallbackVideoPlayer.js +8 -0
- package/build/module/components/FallbackVideoPlayer.js.map +1 -0
- package/build/module/components/FallbackVideoPlayer.native.js +10 -0
- package/build/module/components/FallbackVideoPlayer.native.js.map +1 -0
- package/build/module/components/FallbackVideoPlayer.web.js +35 -0
- package/build/module/components/FallbackVideoPlayer.web.js.map +1 -0
- package/build/module/components/WorkflowButtonLabel.js +32 -0
- package/build/module/components/WorkflowButtonLabel.js.map +1 -0
- package/build/module/components/WorkflowCalendarIcon.js +73 -0
- package/build/module/components/WorkflowCalendarIcon.js.map +1 -0
- package/build/module/components/WorkflowText.js +92 -0
- package/build/module/components/WorkflowText.js.map +1 -0
- package/build/module/content/BadgeContent.js +73 -0
- package/build/module/content/BadgeContent.js.map +1 -0
- package/build/module/content/BarChartContent.js +97 -0
- package/build/module/content/BarChartContent.js.map +1 -0
- package/build/module/content/BarcodeContent.js +78 -0
- package/build/module/content/BarcodeContent.js.map +1 -0
- package/build/module/content/BasicTableContent.js +145 -0
- package/build/module/content/BasicTableContent.js.map +1 -0
- package/build/module/content/ButtonContent.js +130 -0
- package/build/module/content/ButtonContent.js.map +1 -0
- package/build/module/content/CalendarContent.js +173 -0
- package/build/module/content/CalendarContent.js.map +1 -0
- package/build/module/content/CardContent.js +114 -0
- package/build/module/content/CardContent.js.map +1 -0
- package/build/module/content/CarouselContent.js +173 -0
- package/build/module/content/CarouselContent.js.map +1 -0
- package/build/module/content/ChipContent.js +214 -0
- package/build/module/content/ChipContent.js.map +1 -0
- package/build/module/content/ChipRowContent.js +127 -0
- package/build/module/content/ChipRowContent.js.map +1 -0
- package/build/module/content/CredentialOfferContent.js +312 -0
- package/build/module/content/CredentialOfferContent.js.map +1 -0
- package/build/module/content/DialContent.js +101 -0
- package/build/module/content/DialContent.js.map +1 -0
- package/build/module/content/DividerContent.js +26 -0
- package/build/module/content/DividerContent.js.map +1 -0
- package/build/module/content/DonutChartContent.js +118 -0
- package/build/module/content/DonutChartContent.js.map +1 -0
- package/build/module/content/FormContent.js +141 -0
- package/build/module/content/FormContent.js.map +1 -0
- package/build/module/content/FormFieldBridge.js +157 -0
- package/build/module/content/FormFieldBridge.js.map +1 -0
- package/build/module/content/GaugeContent.js +77 -0
- package/build/module/content/GaugeContent.js.map +1 -0
- package/build/module/content/GridLayoutContent.js +227 -0
- package/build/module/content/GridLayoutContent.js.map +1 -0
- package/build/module/content/ImageContent.js +190 -0
- package/build/module/content/ImageContent.js.map +1 -0
- package/build/module/content/ListContent.js +107 -0
- package/build/module/content/ListContent.js.map +1 -0
- package/build/module/content/LocationContent.js +148 -0
- package/build/module/content/LocationContent.js.map +1 -0
- package/build/module/content/MapContent.js +213 -0
- package/build/module/content/MapContent.js.map +1 -0
- package/build/module/content/MultipleChoiceContent.js +91 -0
- package/build/module/content/MultipleChoiceContent.js.map +1 -0
- package/build/module/content/OpenBadgePreviewContent.js +141 -0
- package/build/module/content/OpenBadgePreviewContent.js.map +1 -0
- package/build/module/content/PhotoContent.js +154 -0
- package/build/module/content/PhotoContent.js.map +1 -0
- package/build/module/content/PieChartContent.js +129 -0
- package/build/module/content/PieChartContent.js.map +1 -0
- package/build/module/content/ProofPresentationContent.js +154 -0
- package/build/module/content/ProofPresentationContent.js.map +1 -0
- package/build/module/content/RadioButtonContent.js +136 -0
- package/build/module/content/RadioButtonContent.js.map +1 -0
- package/build/module/content/RowContent.js +539 -0
- package/build/module/content/RowContent.js.map +1 -0
- package/build/module/content/SectionContent.js +123 -0
- package/build/module/content/SectionContent.js.map +1 -0
- package/build/module/content/ShareEntryContent.js +111 -0
- package/build/module/content/ShareEntryContent.js.map +1 -0
- package/build/module/content/SimulatedHint.js +33 -0
- package/build/module/content/SimulatedHint.js.map +1 -0
- package/build/module/content/SliderContent.js +46 -0
- package/build/module/content/SliderContent.js.map +1 -0
- package/build/module/content/SpacerContent.js +21 -0
- package/build/module/content/SpacerContent.js.map +1 -0
- package/build/module/content/SpinnerContent.js +33 -0
- package/build/module/content/SpinnerContent.js.map +1 -0
- package/build/module/content/SubmitButtonContent.js +281 -0
- package/build/module/content/SubmitButtonContent.js.map +1 -0
- package/build/module/content/TextContent.js +127 -0
- package/build/module/content/TextContent.js.map +1 -0
- package/build/module/content/TileContent.js +237 -0
- package/build/module/content/TileContent.js.map +1 -0
- package/build/module/content/TimelineContent.js +120 -0
- package/build/module/content/TimelineContent.js.map +1 -0
- package/build/module/content/TitleContent.js +55 -0
- package/build/module/content/TitleContent.js.map +1 -0
- package/build/module/content/VideoContent.js +142 -0
- package/build/module/content/VideoContent.js.map +1 -0
- package/build/module/content/WebLinkContent.js +95 -0
- package/build/module/content/WebLinkContent.js.map +1 -0
- package/build/module/content/index.js +48 -0
- package/build/module/content/index.js.map +1 -0
- package/build/module/form-fields/CheckboxField.js +47 -0
- package/build/module/form-fields/CheckboxField.js.map +1 -0
- package/build/module/form-fields/DateField.js +8 -0
- package/build/module/form-fields/DateField.js.map +1 -0
- package/build/module/form-fields/DateField.native.js +141 -0
- package/build/module/form-fields/DateField.native.js.map +1 -0
- package/build/module/form-fields/DateField.web.js +45 -0
- package/build/module/form-fields/DateField.web.js.map +1 -0
- package/build/module/form-fields/DropdownField.js +172 -0
- package/build/module/form-fields/DropdownField.js.map +1 -0
- package/build/module/form-fields/MCQField.js +100 -0
- package/build/module/form-fields/MCQField.js.map +1 -0
- package/build/module/form-fields/RadioField.js +56 -0
- package/build/module/form-fields/RadioField.js.map +1 -0
- package/build/module/form-fields/SliderField.js +8 -0
- package/build/module/form-fields/SliderField.js.map +1 -0
- package/build/module/form-fields/SliderField.native.js +77 -0
- package/build/module/form-fields/SliderField.native.js.map +1 -0
- package/build/module/form-fields/SliderField.web.js +82 -0
- package/build/module/form-fields/SliderField.web.js.map +1 -0
- package/build/module/form-fields/SubmitButtonField.js +42 -0
- package/build/module/form-fields/SubmitButtonField.js.map +1 -0
- package/build/module/form-fields/TextField.js +56 -0
- package/build/module/form-fields/TextField.js.map +1 -0
- package/build/module/form-fields/index.js +15 -0
- package/build/module/form-fields/index.js.map +1 -0
- package/build/module/i18n/WorkflowI18n.js +94 -0
- package/build/module/i18n/WorkflowI18n.js.map +1 -0
- package/build/module/icons/WorkflowIcon.js +50 -0
- package/build/module/icons/WorkflowIcon.js.map +1 -0
- package/build/module/imageUriCache.js +25 -0
- package/build/module/imageUriCache.js.map +1 -0
- package/build/module/index.js +49 -0
- package/build/module/index.js.map +1 -0
- package/build/module/modal/WorkflowModal.js +115 -0
- package/build/module/modal/WorkflowModal.js.map +1 -0
- package/build/module/package.json +1 -0
- package/build/module/platform/platformName.js +10 -0
- package/build/module/platform/platformName.js.map +1 -0
- package/build/module/platform/platformName.web.js +5 -0
- package/build/module/platform/platformName.web.js.map +1 -0
- package/build/module/protocol/controlSnapshotStore.js +19 -0
- package/build/module/protocol/controlSnapshotStore.js.map +1 -0
- package/build/module/protocol/useProtocolExchange.js +168 -0
- package/build/module/protocol/useProtocolExchange.js.map +1 -0
- package/build/module/registries/ContentRegistry.js +53 -0
- package/build/module/registries/ContentRegistry.js.map +1 -0
- package/build/module/registries/FormFieldRegistry.js +56 -0
- package/build/module/registries/FormFieldRegistry.js.map +1 -0
- package/build/module/render/NodeBoundary.js +73 -0
- package/build/module/render/NodeBoundary.js.map +1 -0
- package/build/module/render/RenderTree.js +52 -0
- package/build/module/render/RenderTree.js.map +1 -0
- package/build/module/render/WorkflowRenderContext.js +34 -0
- package/build/module/render/WorkflowRenderContext.js.map +1 -0
- package/build/module/render/nodes.js +103 -0
- package/build/module/render/nodes.js.map +1 -0
- package/build/module/responsive/ResponsiveProvider.js +63 -0
- package/build/module/responsive/ResponsiveProvider.js.map +1 -0
- package/build/module/responsive/index.js +4 -0
- package/build/module/responsive/index.js.map +1 -0
- package/build/module/responsive/responsive.js +56 -0
- package/build/module/responsive/responsive.js.map +1 -0
- package/build/module/style/resolveDisplayHintStyle.js +145 -0
- package/build/module/style/resolveDisplayHintStyle.js.map +1 -0
- package/build/module/theme/WorkflowTheme.js +200 -0
- package/build/module/theme/WorkflowTheme.js.map +1 -0
- package/build/module/utils/testable.js +12 -0
- package/build/module/utils/testable.js.map +1 -0
- package/build/typescript/WorkflowFontScaleContext.d.ts +7 -0
- package/build/typescript/WorkflowFontScaleContext.d.ts.map +1 -0
- package/build/typescript/adapter/WalletAdapter.d.ts +145 -0
- package/build/typescript/adapter/WalletAdapter.d.ts.map +1 -0
- package/build/typescript/components/FallbackVideoPlayer.d.ts +6 -0
- package/build/typescript/components/FallbackVideoPlayer.d.ts.map +1 -0
- package/build/typescript/components/FallbackVideoPlayer.native.d.ts +7 -0
- package/build/typescript/components/FallbackVideoPlayer.native.d.ts.map +1 -0
- package/build/typescript/components/FallbackVideoPlayer.web.d.ts +9 -0
- package/build/typescript/components/FallbackVideoPlayer.web.d.ts.map +1 -0
- package/build/typescript/components/WorkflowButtonLabel.d.ts +11 -0
- package/build/typescript/components/WorkflowButtonLabel.d.ts.map +1 -0
- package/build/typescript/components/WorkflowCalendarIcon.d.ts +11 -0
- package/build/typescript/components/WorkflowCalendarIcon.d.ts.map +1 -0
- package/build/typescript/components/WorkflowText.d.ts +13 -0
- package/build/typescript/components/WorkflowText.d.ts.map +1 -0
- package/build/typescript/content/BadgeContent.d.ts +5 -0
- package/build/typescript/content/BadgeContent.d.ts.map +1 -0
- package/build/typescript/content/BarChartContent.d.ts +5 -0
- package/build/typescript/content/BarChartContent.d.ts.map +1 -0
- package/build/typescript/content/BarcodeContent.d.ts +11 -0
- package/build/typescript/content/BarcodeContent.d.ts.map +1 -0
- package/build/typescript/content/BasicTableContent.d.ts +5 -0
- package/build/typescript/content/BasicTableContent.d.ts.map +1 -0
- package/build/typescript/content/ButtonContent.d.ts +5 -0
- package/build/typescript/content/ButtonContent.d.ts.map +1 -0
- package/build/typescript/content/CalendarContent.d.ts +19 -0
- package/build/typescript/content/CalendarContent.d.ts.map +1 -0
- package/build/typescript/content/CardContent.d.ts +5 -0
- package/build/typescript/content/CardContent.d.ts.map +1 -0
- package/build/typescript/content/CarouselContent.d.ts +5 -0
- package/build/typescript/content/CarouselContent.d.ts.map +1 -0
- package/build/typescript/content/ChipContent.d.ts +5 -0
- package/build/typescript/content/ChipContent.d.ts.map +1 -0
- package/build/typescript/content/ChipRowContent.d.ts +8 -0
- package/build/typescript/content/ChipRowContent.d.ts.map +1 -0
- package/build/typescript/content/CredentialOfferContent.d.ts +98 -0
- package/build/typescript/content/CredentialOfferContent.d.ts.map +1 -0
- package/build/typescript/content/DialContent.d.ts +5 -0
- package/build/typescript/content/DialContent.d.ts.map +1 -0
- package/build/typescript/content/DividerContent.d.ts +5 -0
- package/build/typescript/content/DividerContent.d.ts.map +1 -0
- package/build/typescript/content/DonutChartContent.d.ts +5 -0
- package/build/typescript/content/DonutChartContent.d.ts.map +1 -0
- package/build/typescript/content/FormContent.d.ts +19 -0
- package/build/typescript/content/FormContent.d.ts.map +1 -0
- package/build/typescript/content/FormFieldBridge.d.ts +2 -0
- package/build/typescript/content/FormFieldBridge.d.ts.map +1 -0
- package/build/typescript/content/GaugeContent.d.ts +5 -0
- package/build/typescript/content/GaugeContent.d.ts.map +1 -0
- package/build/typescript/content/GridLayoutContent.d.ts +5 -0
- package/build/typescript/content/GridLayoutContent.d.ts.map +1 -0
- package/build/typescript/content/ImageContent.d.ts +5 -0
- package/build/typescript/content/ImageContent.d.ts.map +1 -0
- package/build/typescript/content/ListContent.d.ts +5 -0
- package/build/typescript/content/ListContent.d.ts.map +1 -0
- package/build/typescript/content/LocationContent.d.ts +32 -0
- package/build/typescript/content/LocationContent.d.ts.map +1 -0
- package/build/typescript/content/MapContent.d.ts +11 -0
- package/build/typescript/content/MapContent.d.ts.map +1 -0
- package/build/typescript/content/MultipleChoiceContent.d.ts +5 -0
- package/build/typescript/content/MultipleChoiceContent.d.ts.map +1 -0
- package/build/typescript/content/OpenBadgePreviewContent.d.ts +14 -0
- package/build/typescript/content/OpenBadgePreviewContent.d.ts.map +1 -0
- package/build/typescript/content/PhotoContent.d.ts +57 -0
- package/build/typescript/content/PhotoContent.d.ts.map +1 -0
- package/build/typescript/content/PieChartContent.d.ts +5 -0
- package/build/typescript/content/PieChartContent.d.ts.map +1 -0
- package/build/typescript/content/ProofPresentationContent.d.ts +14 -0
- package/build/typescript/content/ProofPresentationContent.d.ts.map +1 -0
- package/build/typescript/content/RadioButtonContent.d.ts +5 -0
- package/build/typescript/content/RadioButtonContent.d.ts.map +1 -0
- package/build/typescript/content/RowContent.d.ts +5 -0
- package/build/typescript/content/RowContent.d.ts.map +1 -0
- package/build/typescript/content/SectionContent.d.ts +5 -0
- package/build/typescript/content/SectionContent.d.ts.map +1 -0
- package/build/typescript/content/ShareEntryContent.d.ts +15 -0
- package/build/typescript/content/ShareEntryContent.d.ts.map +1 -0
- package/build/typescript/content/SimulatedHint.d.ts +9 -0
- package/build/typescript/content/SimulatedHint.d.ts.map +1 -0
- package/build/typescript/content/SliderContent.d.ts +10 -0
- package/build/typescript/content/SliderContent.d.ts.map +1 -0
- package/build/typescript/content/SpacerContent.d.ts +5 -0
- package/build/typescript/content/SpacerContent.d.ts.map +1 -0
- package/build/typescript/content/SpinnerContent.d.ts +5 -0
- package/build/typescript/content/SpinnerContent.d.ts.map +1 -0
- package/build/typescript/content/SubmitButtonContent.d.ts +9 -0
- package/build/typescript/content/SubmitButtonContent.d.ts.map +1 -0
- package/build/typescript/content/TextContent.d.ts +5 -0
- package/build/typescript/content/TextContent.d.ts.map +1 -0
- package/build/typescript/content/TileContent.d.ts +5 -0
- package/build/typescript/content/TileContent.d.ts.map +1 -0
- package/build/typescript/content/TimelineContent.d.ts +5 -0
- package/build/typescript/content/TimelineContent.d.ts.map +1 -0
- package/build/typescript/content/TitleContent.d.ts +5 -0
- package/build/typescript/content/TitleContent.d.ts.map +1 -0
- package/build/typescript/content/VideoContent.d.ts +10 -0
- package/build/typescript/content/VideoContent.d.ts.map +1 -0
- package/build/typescript/content/WebLinkContent.d.ts +5 -0
- package/build/typescript/content/WebLinkContent.d.ts.map +1 -0
- package/build/typescript/content/index.d.ts +46 -0
- package/build/typescript/content/index.d.ts.map +1 -0
- package/build/typescript/form-fields/CheckboxField.d.ts +5 -0
- package/build/typescript/form-fields/CheckboxField.d.ts.map +1 -0
- package/build/typescript/form-fields/DateField.d.ts +6 -0
- package/build/typescript/form-fields/DateField.d.ts.map +1 -0
- package/build/typescript/form-fields/DateField.native.d.ts +5 -0
- package/build/typescript/form-fields/DateField.native.d.ts.map +1 -0
- package/build/typescript/form-fields/DateField.web.d.ts +9 -0
- package/build/typescript/form-fields/DateField.web.d.ts.map +1 -0
- package/build/typescript/form-fields/DropdownField.d.ts +5 -0
- package/build/typescript/form-fields/DropdownField.d.ts.map +1 -0
- package/build/typescript/form-fields/MCQField.d.ts +5 -0
- package/build/typescript/form-fields/MCQField.d.ts.map +1 -0
- package/build/typescript/form-fields/RadioField.d.ts +5 -0
- package/build/typescript/form-fields/RadioField.d.ts.map +1 -0
- package/build/typescript/form-fields/SliderField.d.ts +6 -0
- package/build/typescript/form-fields/SliderField.d.ts.map +1 -0
- package/build/typescript/form-fields/SliderField.native.d.ts +5 -0
- package/build/typescript/form-fields/SliderField.native.d.ts.map +1 -0
- package/build/typescript/form-fields/SliderField.web.d.ts +11 -0
- package/build/typescript/form-fields/SliderField.web.d.ts.map +1 -0
- package/build/typescript/form-fields/SubmitButtonField.d.ts +5 -0
- package/build/typescript/form-fields/SubmitButtonField.d.ts.map +1 -0
- package/build/typescript/form-fields/TextField.d.ts +5 -0
- package/build/typescript/form-fields/TextField.d.ts.map +1 -0
- package/build/typescript/form-fields/index.d.ts +13 -0
- package/build/typescript/form-fields/index.d.ts.map +1 -0
- package/build/typescript/i18n/WorkflowI18n.d.ts +75 -0
- package/build/typescript/i18n/WorkflowI18n.d.ts.map +1 -0
- package/build/typescript/icons/WorkflowIcon.d.ts +27 -0
- package/build/typescript/icons/WorkflowIcon.d.ts.map +1 -0
- package/build/typescript/imageUriCache.d.ts +7 -0
- package/build/typescript/imageUriCache.d.ts.map +1 -0
- package/build/typescript/index.d.ts +47 -0
- package/build/typescript/index.d.ts.map +1 -0
- package/build/typescript/modal/WorkflowModal.d.ts +33 -0
- package/build/typescript/modal/WorkflowModal.d.ts.map +1 -0
- package/build/typescript/package.json +1 -0
- package/build/typescript/platform/platformName.d.ts +8 -0
- package/build/typescript/platform/platformName.d.ts.map +1 -0
- package/build/typescript/platform/platformName.web.d.ts +3 -0
- package/build/typescript/platform/platformName.web.d.ts.map +1 -0
- package/build/typescript/protocol/controlSnapshotStore.d.ts +12 -0
- package/build/typescript/protocol/controlSnapshotStore.d.ts.map +1 -0
- package/build/typescript/protocol/useProtocolExchange.d.ts +40 -0
- package/build/typescript/protocol/useProtocolExchange.d.ts.map +1 -0
- package/build/typescript/registries/ContentRegistry.d.ts +57 -0
- package/build/typescript/registries/ContentRegistry.d.ts.map +1 -0
- package/build/typescript/registries/FormFieldRegistry.d.ts +37 -0
- package/build/typescript/registries/FormFieldRegistry.d.ts.map +1 -0
- package/build/typescript/render/NodeBoundary.d.ts +25 -0
- package/build/typescript/render/NodeBoundary.d.ts.map +1 -0
- package/build/typescript/render/RenderTree.d.ts +23 -0
- package/build/typescript/render/RenderTree.d.ts.map +1 -0
- package/build/typescript/render/WorkflowRenderContext.d.ts +57 -0
- package/build/typescript/render/WorkflowRenderContext.d.ts.map +1 -0
- package/build/typescript/render/nodes.d.ts +49 -0
- package/build/typescript/render/nodes.d.ts.map +1 -0
- package/build/typescript/responsive/ResponsiveProvider.d.ts +39 -0
- package/build/typescript/responsive/ResponsiveProvider.d.ts.map +1 -0
- package/build/typescript/responsive/index.d.ts +3 -0
- package/build/typescript/responsive/index.d.ts.map +1 -0
- package/build/typescript/responsive/responsive.d.ts +24 -0
- package/build/typescript/responsive/responsive.d.ts.map +1 -0
- package/build/typescript/style/resolveDisplayHintStyle.d.ts +23 -0
- package/build/typescript/style/resolveDisplayHintStyle.d.ts.map +1 -0
- package/build/typescript/theme/WorkflowTheme.d.ts +177 -0
- package/build/typescript/theme/WorkflowTheme.d.ts.map +1 -0
- package/build/typescript/utils/testable.d.ts +8 -0
- package/build/typescript/utils/testable.d.ts.map +1 -0
- package/package.json +101 -3
- package/src/WorkflowFontScaleContext.tsx +74 -0
- package/src/adapter/WalletAdapter.tsx +225 -0
- package/src/components/FallbackVideoPlayer.native.tsx +9 -0
- package/src/components/FallbackVideoPlayer.tsx +5 -0
- package/src/components/FallbackVideoPlayer.web.tsx +24 -0
- package/src/components/WorkflowButtonLabel.tsx +41 -0
- package/src/components/WorkflowCalendarIcon.tsx +52 -0
- package/src/components/WorkflowText.tsx +121 -0
- package/src/content/BadgeContent.tsx +57 -0
- package/src/content/BarChartContent.tsx +76 -0
- package/src/content/BarcodeContent.tsx +59 -0
- package/src/content/BasicTableContent.tsx +139 -0
- package/src/content/ButtonContent.tsx +124 -0
- package/src/content/CalendarContent.tsx +178 -0
- package/src/content/CardContent.tsx +137 -0
- package/src/content/CarouselContent.tsx +197 -0
- package/src/content/ChipContent.tsx +209 -0
- package/src/content/ChipRowContent.tsx +133 -0
- package/src/content/CredentialOfferContent.tsx +229 -0
- package/src/content/DialContent.tsx +96 -0
- package/src/content/DividerContent.tsx +33 -0
- package/src/content/DonutChartContent.tsx +110 -0
- package/src/content/FormContent.tsx +158 -0
- package/src/content/FormFieldBridge.tsx +144 -0
- package/src/content/GaugeContent.tsx +66 -0
- package/src/content/GridLayoutContent.tsx +285 -0
- package/src/content/ImageContent.tsx +222 -0
- package/src/content/ListContent.tsx +98 -0
- package/src/content/LocationContent.tsx +135 -0
- package/src/content/MapContent.tsx +232 -0
- package/src/content/MultipleChoiceContent.tsx +74 -0
- package/src/content/OpenBadgePreviewContent.tsx +93 -0
- package/src/content/PhotoContent.tsx +110 -0
- package/src/content/PieChartContent.tsx +121 -0
- package/src/content/ProofPresentationContent.tsx +127 -0
- package/src/content/RadioButtonContent.tsx +129 -0
- package/src/content/RowContent.tsx +627 -0
- package/src/content/SectionContent.tsx +133 -0
- package/src/content/ShareEntryContent.tsx +109 -0
- package/src/content/SimulatedHint.tsx +20 -0
- package/src/content/SliderContent.tsx +56 -0
- package/src/content/SpacerContent.tsx +15 -0
- package/src/content/SpinnerContent.tsx +24 -0
- package/src/content/SubmitButtonContent.tsx +256 -0
- package/src/content/TextContent.tsx +140 -0
- package/src/content/TileContent.tsx +216 -0
- package/src/content/TimelineContent.tsx +91 -0
- package/src/content/TitleContent.tsx +49 -0
- package/src/content/VideoContent.tsx +131 -0
- package/src/content/WebLinkContent.tsx +87 -0
- package/src/content/index.ts +45 -0
- package/src/form-fields/CheckboxField.tsx +29 -0
- package/src/form-fields/DateField.native.tsx +123 -0
- package/src/form-fields/DateField.tsx +5 -0
- package/src/form-fields/DateField.web.tsx +32 -0
- package/src/form-fields/DropdownField.tsx +137 -0
- package/src/form-fields/MCQField.tsx +68 -0
- package/src/form-fields/RadioField.tsx +53 -0
- package/src/form-fields/SliderField.native.tsx +53 -0
- package/src/form-fields/SliderField.tsx +5 -0
- package/src/form-fields/SliderField.web.tsx +58 -0
- package/src/form-fields/SubmitButtonField.tsx +33 -0
- package/src/form-fields/TextField.tsx +49 -0
- package/src/form-fields/index.ts +12 -0
- package/src/i18n/WorkflowI18n.tsx +100 -0
- package/src/icons/WorkflowIcon.tsx +43 -0
- package/src/imageUriCache.ts +27 -0
- package/src/index.ts +96 -0
- package/src/modal/WorkflowModal.tsx +119 -0
- package/src/platform/platformName.ts +7 -0
- package/src/platform/platformName.web.ts +2 -0
- package/src/protocol/controlSnapshotStore.ts +25 -0
- package/src/protocol/useProtocolExchange.ts +185 -0
- package/src/registries/ContentRegistry.tsx +130 -0
- package/src/registries/FormFieldRegistry.tsx +83 -0
- package/src/render/NodeBoundary.tsx +69 -0
- package/src/render/RenderTree.tsx +63 -0
- package/src/render/WorkflowRenderContext.tsx +71 -0
- package/src/render/nodes.ts +104 -0
- package/src/responsive/ResponsiveProvider.tsx +103 -0
- package/src/responsive/index.ts +7 -0
- package/src/responsive/responsive.ts +67 -0
- package/src/style/resolveDisplayHintStyle.ts +153 -0
- package/src/theme/WorkflowTheme.tsx +162 -0
- package/src/utils/testable.ts +10 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import WorkflowText from "../components/WorkflowText.js";
|
|
6
|
+
import { ContentRegistry } from "../registries/ContentRegistry.js";
|
|
7
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
8
|
+
import { resolveItemBackgroundColor } from "../style/resolveDisplayHintStyle.js";
|
|
9
|
+
import { coerceToChipRowItem } from "./ChipRowContent.js";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
const mapTypeToRegistryType = type => {
|
|
12
|
+
const typeMap = {
|
|
13
|
+
'text-field': 'text',
|
|
14
|
+
'check-box': 'checkbox',
|
|
15
|
+
'drop-down': 'dropdown',
|
|
16
|
+
'submit-button': 'submit-button',
|
|
17
|
+
'text-area': 'textarea',
|
|
18
|
+
'radio-button': 'radio',
|
|
19
|
+
mcq: 'mcq',
|
|
20
|
+
'multiple-choice': 'mcq',
|
|
21
|
+
'date-field': 'date',
|
|
22
|
+
'slider-field': 'slider'
|
|
23
|
+
};
|
|
24
|
+
return typeMap[type] || type;
|
|
25
|
+
};
|
|
26
|
+
const MEDIA_CHILD_TYPES = new Set(['image', 'video', 'photo']);
|
|
27
|
+
const SectionContent = ({
|
|
28
|
+
item,
|
|
29
|
+
onAction,
|
|
30
|
+
styles,
|
|
31
|
+
colors,
|
|
32
|
+
formData,
|
|
33
|
+
onFieldChange,
|
|
34
|
+
buttonVariant,
|
|
35
|
+
mediaFrame,
|
|
36
|
+
fillContainer,
|
|
37
|
+
disabled
|
|
38
|
+
}) => {
|
|
39
|
+
const children = item.children;
|
|
40
|
+
if (!children || children.length === 0) return null;
|
|
41
|
+
const chipRowItem = coerceToChipRowItem(item);
|
|
42
|
+
if (chipRowItem && ContentRegistry.has('chip-row')) {
|
|
43
|
+
return ContentRegistry.render('chip-row', {
|
|
44
|
+
item: chipRowItem,
|
|
45
|
+
onAction,
|
|
46
|
+
styles,
|
|
47
|
+
colors,
|
|
48
|
+
formData,
|
|
49
|
+
onFieldChange,
|
|
50
|
+
buttonVariant,
|
|
51
|
+
disabled
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const gap = typeof item.gap === 'number' ? item.gap : 10;
|
|
55
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
56
|
+
style: [{
|
|
57
|
+
gap,
|
|
58
|
+
backgroundColor: resolveItemBackgroundColor(item) ?? 'transparent',
|
|
59
|
+
padding: item.padding,
|
|
60
|
+
width: '100%',
|
|
61
|
+
justifyContent: item.justify === 'center' ? 'center' : item.justify === 'flex-end' ? 'flex-end' : 'flex-start'
|
|
62
|
+
}, fillContainer ? {
|
|
63
|
+
flex: 1,
|
|
64
|
+
height: '100%'
|
|
65
|
+
} : null],
|
|
66
|
+
children: [item.title ? /*#__PURE__*/_jsx(WorkflowText, {
|
|
67
|
+
variant: "heading",
|
|
68
|
+
numberOfLines: 1,
|
|
69
|
+
style: {
|
|
70
|
+
color: colors.text,
|
|
71
|
+
marginBottom: 12,
|
|
72
|
+
width: '100%'
|
|
73
|
+
},
|
|
74
|
+
children: item.title
|
|
75
|
+
}) : null, children.map((child, index) => {
|
|
76
|
+
const registryType = mapTypeToRegistryType(child.type);
|
|
77
|
+
const isFormField = child['form-id'] !== undefined && FormFieldRegistry.has(registryType);
|
|
78
|
+
const childMediaFrame = MEDIA_CHILD_TYPES.has(String(child.type)) ? mediaFrame : undefined;
|
|
79
|
+
return /*#__PURE__*/_jsx(View, {
|
|
80
|
+
style: {
|
|
81
|
+
minWidth: 0,
|
|
82
|
+
width: '100%'
|
|
83
|
+
},
|
|
84
|
+
children: isFormField ? FormFieldRegistry.render(registryType, {
|
|
85
|
+
field: {
|
|
86
|
+
name: child['form-id'] || '',
|
|
87
|
+
label: child.label || '',
|
|
88
|
+
placeholder: child.placeholder,
|
|
89
|
+
options: child.values || child.options || [],
|
|
90
|
+
required: child.required,
|
|
91
|
+
type: registryType,
|
|
92
|
+
min: child.min ? Number(child.min) : undefined,
|
|
93
|
+
max: child.max ? Number(child.max) : undefined
|
|
94
|
+
},
|
|
95
|
+
value: formData?.[child['form-id'] || ''],
|
|
96
|
+
onChange: value => {
|
|
97
|
+
if (child.type === 'submit-button' && child.actionID) {
|
|
98
|
+
onAction(child.actionID, formData);
|
|
99
|
+
} else if (child['form-id']) {
|
|
100
|
+
onFieldChange?.(child['form-id'], value);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
styles,
|
|
104
|
+
colors
|
|
105
|
+
}) : ContentRegistry.render(child.type, {
|
|
106
|
+
item: child,
|
|
107
|
+
onAction,
|
|
108
|
+
styles,
|
|
109
|
+
colors,
|
|
110
|
+
formData,
|
|
111
|
+
onFieldChange,
|
|
112
|
+
FormFieldRegistry,
|
|
113
|
+
buttonVariant,
|
|
114
|
+
mediaFrame: childMediaFrame,
|
|
115
|
+
disabled
|
|
116
|
+
})
|
|
117
|
+
}, `section-child-${index}`);
|
|
118
|
+
})]
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
ContentRegistry.register('section', SectionContent);
|
|
122
|
+
export default SectionContent;
|
|
123
|
+
//# sourceMappingURL=SectionContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","WorkflowText","ContentRegistry","FormFieldRegistry","resolveItemBackgroundColor","coerceToChipRowItem","jsx","_jsx","jsxs","_jsxs","mapTypeToRegistryType","type","typeMap","mcq","MEDIA_CHILD_TYPES","Set","SectionContent","item","onAction","styles","colors","formData","onFieldChange","buttonVariant","mediaFrame","fillContainer","disabled","children","length","chipRowItem","has","render","gap","style","backgroundColor","padding","width","justifyContent","justify","flex","height","title","variant","numberOfLines","color","text","marginBottom","map","child","index","registryType","isFormField","undefined","childMediaFrame","String","minWidth","field","name","label","placeholder","options","values","required","min","Number","max","value","onChange","actionID","register"],"sourceRoot":"../../../src","sources":["content/SectionContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,YAAY,MAAM,+BAA4B;AACrD,SAA4BC,eAAe,QAAQ,kCAA+B;AAClF,SAASC,iBAAiB,QAAQ,oCAAiC;AACnE,SAASC,0BAA0B,QAAQ,qCAAkC;AAC7E,SAASC,mBAAmB,QAAQ,qBAAkB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtD,MAAMC,qBAAqB,GAAIC,IAAY,IAAa;EACtD,MAAMC,OAAkC,GAAG;IACzC,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,UAAU;IACvB,eAAe,EAAE,eAAe;IAChC,WAAW,EAAE,UAAU;IACvB,cAAc,EAAE,OAAO;IACvBC,GAAG,EAAE,KAAK;IACV,iBAAiB,EAAE,KAAK;IACxB,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE;EAClB,CAAC;EACD,OAAOD,OAAO,CAACD,IAAI,CAAC,IAAIA,IAAI;AAC9B,CAAC;AAED,MAAMG,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAE9D,MAAMC,cAAsC,GAAGA,CAAC;EAC9CC,IAAI;EACJC,QAAQ;EACRC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,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CAAC,IAAI,EAAE,CAAC;UACzCmB,QAAQ,EAAGD,KAAc,IAAK;YAC5B,IAAIlB,KAAK,CAACrC,IAAI,KAAK,eAAe,IAAIqC,KAAK,CAACoB,QAAQ,EAAE;cACpDlD,QAAQ,CAAC8B,KAAK,CAACoB,QAAQ,EAAE/C,QAAQ,CAAC;YACpC,CAAC,MAAM,IAAI2B,KAAK,CAAC,SAAS,CAAC,EAAE;cAC3B1B,aAAa,GAAG0B,KAAK,CAAC,SAAS,CAAC,EAAEkB,KAAK,CAAC;YAC1C;UACF,CAAC;UACD/C,MAAM;UACNC;QACF,CAAC,CAAC,GACFlB,eAAe,CAAC6B,MAAM,CAACiB,KAAK,CAACrC,IAAI,EAAE;UACjCM,IAAI,EAAE+B,KAAK;UACX9B,QAAQ;UACRC,MAAM;UACNC,MAAM;UACNC,QAAQ;UACRC,aAAa;UACbnB,iBAAiB;UACjBoB,aAAa;UACbC,UAAU,EAAE6B,eAAe;UAC3B3B;QACF,CAAC;MAAC,GAnCG,iBAAiBuB,KAAK,EAoC3B,CAAC;IAEX,CAAC,CAAC;EAAA,CACE,CAAC;AAEX,CAAC;AAED/C,eAAe,CAACmE,QAAQ,CAAC,SAAS,EAAErD,cAAc,CAAC;AAEnD,eAAeA,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
5
|
+
import { useWalletAdapter } from "../adapter/WalletAdapter.js";
|
|
6
|
+
import WorkflowButtonLabel from "../components/WorkflowButtonLabel.js";
|
|
7
|
+
import { useWorkflowT } from "../i18n/WorkflowI18n.js";
|
|
8
|
+
import { WorkflowIcon } from "../icons/WorkflowIcon.js";
|
|
9
|
+
import { ContentRegistry } from "../registries/ContentRegistry.js";
|
|
10
|
+
import { useResponsive } from "../responsive/index.js";
|
|
11
|
+
import { resolveButtonFillStyle, resolveItemSurfaceStyle, resolveSurfaceBackground } from "../style/resolveDisplayHintStyle.js";
|
|
12
|
+
import { pill } from "./LocationContent.js";
|
|
13
|
+
import { SimulatedHint } from "./SimulatedHint.js";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const escapeHtml = input => input.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');
|
|
16
|
+
|
|
17
|
+
/** Plain-text report of the screen's answers (labels from the screen's items). */
|
|
18
|
+
export function buildShareReport(formData, content, strings, now = new Date()) {
|
|
19
|
+
let report = `${strings.title}\n${'='.repeat(40)}\n\n${now.toLocaleString()}\n\n`;
|
|
20
|
+
const entries = Object.entries(formData);
|
|
21
|
+
if (entries.length === 0) return `${report}${strings.noData}\n`;
|
|
22
|
+
report += `${strings.responses}\n${'-'.repeat(40)}\n\n`;
|
|
23
|
+
for (const [fieldId, value] of entries) {
|
|
24
|
+
const field = content.find(c => c['form-id'] === fieldId);
|
|
25
|
+
const label = field?.label || field?.question || fieldId;
|
|
26
|
+
report += `${label}\n ${Array.isArray(value) ? value.join(', ') : String(value)}\n\n`;
|
|
27
|
+
}
|
|
28
|
+
return report;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* "Share" pill: turns the screen's answers into a PDF report and opens the
|
|
33
|
+
* share sheet (`adapter.exportPdf` + `adapter.share`).
|
|
34
|
+
*/
|
|
35
|
+
const ShareEntryContent = ({
|
|
36
|
+
item,
|
|
37
|
+
formData = {},
|
|
38
|
+
content = [],
|
|
39
|
+
groupFontScale = 1,
|
|
40
|
+
disabled
|
|
41
|
+
}) => {
|
|
42
|
+
const t = useWorkflowT();
|
|
43
|
+
const adapter = useWalletAdapter();
|
|
44
|
+
const {
|
|
45
|
+
ms
|
|
46
|
+
} = useResponsive();
|
|
47
|
+
const handleShare = async () => {
|
|
48
|
+
if (disabled) return;
|
|
49
|
+
try {
|
|
50
|
+
const report = buildShareReport(formData, content, {
|
|
51
|
+
title: t('WorkflowUi.ReportTitle'),
|
|
52
|
+
responses: t('WorkflowUi.Responses'),
|
|
53
|
+
noData: t('WorkflowUi.NoData')
|
|
54
|
+
});
|
|
55
|
+
const html = `<html><head><meta charset="utf-8" /><style>body { font-family: Arial, sans-serif; padding: 20px; } pre { white-space: pre-wrap; font-family: 'Courier New', monospace; }</style></head><body><pre>${escapeHtml(report)}</pre></body></html>`;
|
|
56
|
+
const pdf = await adapter.exportPdf({
|
|
57
|
+
html,
|
|
58
|
+
fileName: 'DigiCred_Report'
|
|
59
|
+
});
|
|
60
|
+
if (!pdf?.uri) throw new Error('PDF generation failed');
|
|
61
|
+
await adapter.share({
|
|
62
|
+
url: pdf.uri,
|
|
63
|
+
type: 'application/pdf',
|
|
64
|
+
title: t('WorkflowUi.ReportTitle')
|
|
65
|
+
});
|
|
66
|
+
} catch {
|
|
67
|
+
adapter.alert(t('WorkflowUi.Error'), t('WorkflowUi.ShareFailed'));
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
const isTransparent = resolveSurfaceBackground(item.bgColor) === 'transparent';
|
|
71
|
+
const labelColor = '#FFFFFF';
|
|
72
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
73
|
+
style: [pill.wrap, resolveItemSurfaceStyle(item)],
|
|
74
|
+
children: [/*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
75
|
+
accessibilityRole: "button",
|
|
76
|
+
style: [pill.pill, {
|
|
77
|
+
minHeight: 52,
|
|
78
|
+
paddingVertical: 14,
|
|
79
|
+
paddingHorizontal: 18,
|
|
80
|
+
borderRadius: 26
|
|
81
|
+
}, resolveButtonFillStyle(item, {
|
|
82
|
+
includePadding: false
|
|
83
|
+
}), isTransparent ? {
|
|
84
|
+
backgroundColor: 'transparent',
|
|
85
|
+
borderWidth: 1.5,
|
|
86
|
+
borderColor: '#FFFFFF'
|
|
87
|
+
} : null, disabled ? pill.disabled : null],
|
|
88
|
+
onPress: handleShare,
|
|
89
|
+
disabled: disabled,
|
|
90
|
+
activeOpacity: 0.85,
|
|
91
|
+
children: [/*#__PURE__*/_jsx(WorkflowIcon, {
|
|
92
|
+
name: "share",
|
|
93
|
+
size: 18,
|
|
94
|
+
color: labelColor,
|
|
95
|
+
style: {
|
|
96
|
+
marginRight: 8
|
|
97
|
+
}
|
|
98
|
+
}), /*#__PURE__*/_jsx(WorkflowButtonLabel, {
|
|
99
|
+
style: [pill.text, {
|
|
100
|
+
fontSize: ms(15),
|
|
101
|
+
color: labelColor
|
|
102
|
+
}],
|
|
103
|
+
groupFontScale: groupFontScale,
|
|
104
|
+
children: typeof item.label === 'string' && item.label || t('WorkflowUi.Share')
|
|
105
|
+
})]
|
|
106
|
+
}), adapter.simulated ? /*#__PURE__*/_jsx(SimulatedHint, {}) : null]
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
ContentRegistry.register('share-entry', ShareEntryContent);
|
|
110
|
+
export default ShareEntryContent;
|
|
111
|
+
//# sourceMappingURL=ShareEntryContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","View","useWalletAdapter","WorkflowButtonLabel","useWorkflowT","WorkflowIcon","ContentRegistry","useResponsive","resolveButtonFillStyle","resolveItemSurfaceStyle","resolveSurfaceBackground","pill","SimulatedHint","jsx","_jsx","jsxs","_jsxs","escapeHtml","input","replace","buildShareReport","formData","content","strings","now","Date","report","title","repeat","toLocaleString","entries","Object","length","noData","responses","fieldId","value","field","find","c","label","question","Array","isArray","join","String","ShareEntryContent","item","groupFontScale","disabled","t","adapter","ms","handleShare","html","pdf","exportPdf","fileName","uri","Error","share","url","type","alert","isTransparent","bgColor","labelColor","style","wrap","children","accessibilityRole","minHeight","paddingVertical","paddingHorizontal","borderRadius","includePadding","backgroundColor","borderWidth","borderColor","onPress","activeOpacity","name","size","color","marginRight","text","fontSize","simulated","register"],"sourceRoot":"../../../src","sources":["content/ShareEntryContent.tsx"],"mappings":";;AAAA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,EAAEA,QAAS;MACnB+B,aAAa,EAAE,IAAK;MAAAX,QAAA,gBAEpBvD,IAAA,CAACT,YAAY;QAAC4E,IAAI,EAAC,OAAO;QAACC,IAAI,EAAE,EAAG;QAACC,KAAK,EAAEjB,UAAW;QAACC,KAAK,EAAE;UAAEiB,WAAW,EAAE;QAAE;MAAE,CAAE,CAAC,eACrFtE,IAAA,CAACX,mBAAmB;QAClBgE,KAAK,EAAE,CAACxD,IAAI,CAAC0E,IAAI,EAAE;UAAEC,QAAQ,EAAElC,EAAE,CAAC,EAAE,CAAC;UAAE+B,KAAK,EAAEjB;QAAW,CAAC,CAAE;QAC5DlB,cAAc,EAAEA,cAAe;QAAAqB,QAAA,EAE7B,OAAOtB,IAAI,CAACP,KAAK,KAAK,QAAQ,IAAIO,IAAI,CAACP,KAAK,IAAKU,CAAC,CAAC,kBAAkB;MAAC,CACrD,CAAC;IAAA,CACN,CAAC,EAClBC,OAAO,CAACoC,SAAS,gBAAGzE,IAAA,CAACF,aAAa,IAAE,CAAC,GAAG,IAAI;EAAA,CACzC,CAAC;AAEX,CAAC;AAEDN,eAAe,CAACkF,QAAQ,CAAC,aAAa,EAAE1C,iBAAiB,CAAC;AAE1D,eAAeA,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, Text } from 'react-native';
|
|
4
|
+
import { useWorkflowT } from "../i18n/WorkflowI18n.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* One line under a device or credential control when the adapter is the
|
|
8
|
+
* simulated one (the designer), so nobody mistakes the preview for a real
|
|
9
|
+
* camera, scan or credential exchange. Never shown in the wallet.
|
|
10
|
+
*/
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
export function SimulatedHint({
|
|
13
|
+
color
|
|
14
|
+
}) {
|
|
15
|
+
const t = useWorkflowT();
|
|
16
|
+
return /*#__PURE__*/_jsx(Text, {
|
|
17
|
+
style: [hint.text, color ? {
|
|
18
|
+
color
|
|
19
|
+
} : null],
|
|
20
|
+
testID: "workflow-simulated-hint",
|
|
21
|
+
children: t('WorkflowUi.Simulated')
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const hint = StyleSheet.create({
|
|
25
|
+
text: {
|
|
26
|
+
fontSize: 11,
|
|
27
|
+
fontStyle: 'italic',
|
|
28
|
+
color: '#9CA3AF',
|
|
29
|
+
textAlign: 'center',
|
|
30
|
+
marginTop: 4
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=SimulatedHint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","Text","useWorkflowT","jsx","_jsx","SimulatedHint","color","t","style","hint","text","testID","children","create","fontSize","fontStyle","textAlign","marginTop"],"sourceRoot":"../../../src","sources":["content/SimulatedHint.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,YAAY,QAAQ,yBAAsB;;AAEnD;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA;AAKA,OAAO,SAASC,aAAaA,CAAC;EAAEC;AAA0B,CAAC,EAAE;EAC3D,MAAMC,CAAC,GAAGL,YAAY,CAAC,CAAC;EACxB,oBACEE,IAAA,CAACH,IAAI;IAACO,KAAK,EAAE,CAACC,IAAI,CAACC,IAAI,EAAEJ,KAAK,GAAG;MAAEA;IAAM,CAAC,GAAG,IAAI,CAAE;IAACK,MAAM,EAAC,yBAAyB;IAAAC,QAAA,EACjFL,CAAC,CAAC,sBAAsB;EAAC,CACtB,CAAC;AAEX;AAEA,MAAME,IAAI,GAAGT,UAAU,CAACa,MAAM,CAAC;EAC7BH,IAAI,EAAE;IAAEI,QAAQ,EAAE,EAAE;IAAEC,SAAS,EAAE,QAAQ;IAAET,KAAK,EAAE,SAAS;IAAEU,SAAS,EAAE,QAAQ;IAAEC,SAAS,EAAE;EAAE;AACjG,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { View } from 'react-native';
|
|
6
|
+
import { ContentRegistry } from "../registries/ContentRegistry.js";
|
|
7
|
+
import { FormFieldRegistry } from "../registries/FormFieldRegistry.js";
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const SliderContent = ({
|
|
10
|
+
item,
|
|
11
|
+
styles,
|
|
12
|
+
colors,
|
|
13
|
+
formData = {},
|
|
14
|
+
onFieldChange,
|
|
15
|
+
FormFieldRegistry: FormFieldReg
|
|
16
|
+
}) => {
|
|
17
|
+
const fieldName = item['form-id'] ?? 'slider';
|
|
18
|
+
const currentValue = formData?.[fieldName] ?? item.value ?? 0;
|
|
19
|
+
const handleChange = value => {
|
|
20
|
+
if (onFieldChange) {
|
|
21
|
+
onFieldChange(fieldName, value);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const field = {
|
|
25
|
+
type: 'slider',
|
|
26
|
+
name: fieldName,
|
|
27
|
+
label: item.label ?? item.question ?? '',
|
|
28
|
+
min: item.min != null ? Number(item.min) : 0,
|
|
29
|
+
max: item.max != null ? Number(item.max) : 100
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// Use the passed FormFieldRegistry or import the global one
|
|
33
|
+
const registry = FormFieldReg || FormFieldRegistry;
|
|
34
|
+
return /*#__PURE__*/_jsx(View, {
|
|
35
|
+
children: registry.render('slider', {
|
|
36
|
+
field,
|
|
37
|
+
value: currentValue,
|
|
38
|
+
onChange: handleChange,
|
|
39
|
+
styles,
|
|
40
|
+
colors
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
ContentRegistry.register('slider', SliderContent);
|
|
45
|
+
export default SliderContent;
|
|
46
|
+
//# sourceMappingURL=SliderContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","ContentRegistry","FormFieldRegistry","jsx","_jsx","SliderContent","item","styles","colors","formData","onFieldChange","FormFieldReg","fieldName","currentValue","value","handleChange","field","type","name","label","question","min","Number","max","registry","children","render","onChange","register"],"sourceRoot":"../../../src","sources":["content/SliderContent.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAA4BC,eAAe,QAAQ,kCAA+B;AAClF,SAASC,iBAAiB,QAAQ,oCAAiC;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAQnE,MAAMC,aAA2C,GAAGA,CAAC;EACnDC,IAAI;EACJC,MAAM;EACNC,MAAM;EACNC,QAAQ,GAAG,CAAC,CAAC;EACbC,aAAa;EACbR,iBAAiB,EAAES;AACrB,CAAC,KAAK;EACJ,MAAMC,SAAS,GAAIN,IAAI,CAAC,SAAS,CAAC,IAA2B,QAAQ;EACrE,MAAMO,YAAY,GAAGJ,QAAQ,GAAGG,SAAS,CAAC,IAAIN,IAAI,CAACQ,KAAK,IAAI,CAAC;EAE7D,MAAMC,YAAY,GAAID,KAAU,IAAK;IACnC,IAAIJ,aAAa,EAAE;MACjBA,aAAa,CAACE,SAAS,EAAEE,KAAK,CAAC;IACjC;EACF,CAAC;EAED,MAAME,KAAK,GAAG;IACZC,IAAI,EAAE,QAAQ;IACdC,IAAI,EAAEN,SAAS;IACfO,KAAK,EAAIb,IAAI,CAACa,KAAK,IAAIb,IAAI,CAACc,QAAQ,IAA4B,EAAE;IAClEC,GAAG,EAAEf,IAAI,CAACe,GAAG,IAAI,IAAI,GAAGC,MAAM,CAAChB,IAAI,CAACe,GAAG,CAAC,GAAG,CAAC;IAC5CE,GAAG,EAAEjB,IAAI,CAACiB,GAAG,IAAI,IAAI,GAAGD,MAAM,CAAChB,IAAI,CAACiB,GAAG,CAAC,GAAG;EAC7C,CAAC;;EAED;EACA,MAAMC,QAAQ,GAAGb,YAAY,IAAIT,iBAAiB;EAElD,oBACEE,IAAA,CAACJ,IAAI;IAAAyB,QAAA,EACFD,QAAQ,CAACE,MAAM,CAAC,QAAQ,EAAE;MACzBV,KAAK;MACLF,KAAK,EAAED,YAAY;MACnBc,QAAQ,EAAEZ,YAAY;MACtBR,MAAM;MACNC;IACF,CAAC;EAAC,CACE,CAAC;AAEX,CAAC;AAEDP,eAAe,CAAC2B,QAAQ,CAAC,QAAQ,EAAEvB,aAAa,CAAC;AAEjD,eAAeA,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { ContentRegistry } from "../registries/ContentRegistry.js";
|
|
6
|
+
import { resolveSurfacePadding } from "../style/resolveDisplayHintStyle.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const SpacerContent = ({
|
|
9
|
+
item
|
|
10
|
+
}) => {
|
|
11
|
+
const paddingHeight = resolveSurfacePadding(item.padding);
|
|
12
|
+
const height = paddingHeight ?? (typeof item.gap === 'number' ? item.gap : 16);
|
|
13
|
+
return /*#__PURE__*/_jsx(View, {
|
|
14
|
+
style: {
|
|
15
|
+
height
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
ContentRegistry.register('spacer', SpacerContent);
|
|
20
|
+
export default SpacerContent;
|
|
21
|
+
//# sourceMappingURL=SpacerContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","ContentRegistry","resolveSurfacePadding","jsx","_jsx","SpacerContent","item","paddingHeight","padding","height","gap","style","register"],"sourceRoot":"../../../src","sources":["content/SpacerContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAA4BC,eAAe,QAAQ,kCAA+B;AAClF,SAASC,qBAAqB,QAAQ,qCAAkC;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAExE,MAAMC,aAAqC,GAAGA,CAAC;EAAEC;AAAK,CAAC,KAAK;EAC1D,MAAMC,aAAa,GAAGL,qBAAqB,CAACI,IAAI,CAACE,OAAO,CAAC;EACzD,MAAMC,MAAM,GAAGF,aAAa,KAAK,OAAOD,IAAI,CAACI,GAAG,KAAK,QAAQ,GAAGJ,IAAI,CAACI,GAAG,GAAG,EAAE,CAAC;EAC9E,oBAAON,IAAA,CAACJ,IAAI;IAACW,KAAK,EAAE;MAAEF;IAAO;EAAE,CAAE,CAAC;AACpC,CAAC;AAEDR,eAAe,CAACW,QAAQ,CAAC,QAAQ,EAAEP,aAAa,CAAC;AAEjD,eAAeA,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ActivityIndicator, Text, View } from 'react-native';
|
|
5
|
+
import { ContentRegistry } from "../registries/ContentRegistry.js";
|
|
6
|
+
import { resolveItemSurfaceStyle } from "../style/resolveDisplayHintStyle.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
const SpinnerContent = ({
|
|
9
|
+
item,
|
|
10
|
+
styles,
|
|
11
|
+
colors
|
|
12
|
+
}) => {
|
|
13
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
14
|
+
style: [styles.fieldContainer, resolveItemSurfaceStyle(item), {
|
|
15
|
+
flexDirection: 'row',
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
gap: 8
|
|
18
|
+
}],
|
|
19
|
+
children: [/*#__PURE__*/_jsx(ActivityIndicator, {
|
|
20
|
+
color: colors.primary
|
|
21
|
+
}), item.label ? /*#__PURE__*/_jsx(Text, {
|
|
22
|
+
style: {
|
|
23
|
+
color: colors.text,
|
|
24
|
+
fontSize: 14
|
|
25
|
+
},
|
|
26
|
+
children: item.label
|
|
27
|
+
}) : null]
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
ContentRegistry.register('spinner', SpinnerContent);
|
|
31
|
+
ContentRegistry.register('loading', SpinnerContent);
|
|
32
|
+
export default SpinnerContent;
|
|
33
|
+
//# sourceMappingURL=SpinnerContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ActivityIndicator","Text","View","ContentRegistry","resolveItemSurfaceStyle","jsx","_jsx","jsxs","_jsxs","SpinnerContent","item","styles","colors","style","fieldContainer","flexDirection","alignItems","gap","children","color","primary","label","text","fontSize","register"],"sourceRoot":"../../../src","sources":["content/SpinnerContent.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,iBAAiB,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAC5D,SAA4BC,eAAe,QAAQ,kCAA+B;AAClF,SAASC,uBAAuB,QAAQ,qCAAkC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE1E,MAAMC,cAAsC,GAAGA,CAAC;EAAEC,IAAI;EAAEC,MAAM;EAAEC;AAAO,CAAC,KAAK;EAC3E,oBACEJ,KAAA,CAACN,IAAI;IACHW,KAAK,EAAE,CACLF,MAAM,CAACG,cAAc,EACrBV,uBAAuB,CAACM,IAAI,CAAC,EAC7B;MAAEK,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE,QAAQ;MAAEC,GAAG,EAAE;IAAE,CAAC,CACtD;IAAAC,QAAA,gBAEFZ,IAAA,CAACN,iBAAiB;MAACmB,KAAK,EAAEP,MAAM,CAACQ;IAAQ,CAAE,CAAC,EAC3CV,IAAI,CAACW,KAAK,gBAAGf,IAAA,CAACL,IAAI;MAACY,KAAK,EAAE;QAAEM,KAAK,EAAEP,MAAM,CAACU,IAAI;QAAEC,QAAQ,EAAE;MAAG,CAAE;MAAAL,QAAA,EAAER,IAAI,CAACW;IAAK,CAAO,CAAC,GAAG,IAAI;EAAA,CACvF,CAAC;AAEX,CAAC;AAEDlB,eAAe,CAACqB,QAAQ,CAAC,SAAS,EAAEf,cAAc,CAAC;AACnDN,eAAe,CAACqB,QAAQ,CAAC,SAAS,EAAEf,cAAc,CAAC;AAEnD,eAAeA,cAAc","ignoreList":[]}
|