@ankhorage/zora 28.3.0 → 28.5.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +52 -1
- package/dist/capabilities/index.js.map +6 -5
- package/dist/constants/authoring.d.ts +4 -3
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +2 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.d.ts +4 -0
- package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.js +18 -0
- package/dist/features/layout/adapters/inbound/ZoraWebStyleSheet.js.map +1 -0
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/public.d.ts +1 -0
- package/dist/features/layout/public.d.ts.map +1 -1
- package/dist/features/layout/public.js +1 -0
- package/dist/features/layout/public.js.map +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
- package/dist/features/popover/adapters/inbound/Popover.d.ts +4 -0
- package/dist/features/popover/adapters/inbound/Popover.d.ts.map +1 -0
- package/dist/features/popover/adapters/inbound/Popover.js +9 -0
- package/dist/features/popover/adapters/inbound/Popover.js.map +1 -0
- package/dist/features/popover/public.d.ts +3 -0
- package/dist/features/popover/public.d.ts.map +1 -0
- package/dist/features/popover/public.js +2 -0
- package/dist/features/popover/public.js.map +1 -0
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -1
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +2 -0
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -1
- package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
- package/dist/features/registry/componentMeta.d.ts.map +1 -1
- package/dist/features/registry/componentMeta.js +2 -0
- package/dist/features/registry/componentMeta.js.map +1 -1
- package/dist/features/rich-text/adapters/inbound/RichText.d.ts +11 -0
- package/dist/features/rich-text/adapters/inbound/RichText.d.ts.map +1 -0
- package/dist/features/rich-text/adapters/inbound/RichText.js +11 -0
- package/dist/features/rich-text/adapters/inbound/RichText.js.map +1 -0
- package/dist/features/rich-text/adapters/inbound/RichText.web.d.ts +5 -0
- package/dist/features/rich-text/adapters/inbound/RichText.web.d.ts.map +1 -0
- package/dist/features/rich-text/adapters/inbound/RichText.web.js +17 -0
- package/dist/features/rich-text/adapters/inbound/RichText.web.js.map +1 -0
- package/dist/features/rich-text/adapters/inbound/RichTextClient.d.ts +5 -0
- package/dist/features/rich-text/adapters/inbound/RichTextClient.d.ts.map +1 -0
- package/dist/features/rich-text/adapters/inbound/RichTextClient.js +94 -0
- package/dist/features/rich-text/adapters/inbound/RichTextClient.js.map +1 -0
- package/dist/features/rich-text/public.d.ts +3 -0
- package/dist/features/rich-text/public.d.ts.map +1 -0
- package/dist/features/rich-text/public.js +2 -0
- package/dist/features/rich-text/public.js.map +1 -0
- package/dist/features/rich-text/richTextMeta.d.ts +65 -0
- package/dist/features/rich-text/richTextMeta.d.ts.map +1 -0
- package/dist/features/rich-text/richTextMeta.js +48 -0
- package/dist/features/rich-text/richTextMeta.js.map +1 -0
- package/dist/features/rich-text/utils/resolveRichTextHtmlStyle.d.ts +5 -0
- package/dist/features/rich-text/utils/resolveRichTextHtmlStyle.d.ts.map +1 -0
- package/dist/features/rich-text/utils/resolveRichTextHtmlStyle.js +29 -0
- package/dist/features/rich-text/utils/resolveRichTextHtmlStyle.js.map +1 -0
- package/dist/features/rich-text/utils/sanitizeRichTextHtml.d.ts +3 -0
- package/dist/features/rich-text/utils/sanitizeRichTextHtml.d.ts.map +1 -0
- package/dist/features/rich-text/utils/sanitizeRichTextHtml.js +38 -0
- package/dist/features/rich-text/utils/sanitizeRichTextHtml.js.map +1 -0
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/features/theme/adapters/inbound/ZoraProvider.d.ts.map +1 -1
- package/dist/features/theme/adapters/inbound/ZoraProvider.js +10 -8
- package/dist/features/theme/adapters/inbound/ZoraProvider.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/readerFree.d.ts +1 -0
- package/dist/readerFree.d.ts.map +1 -1
- package/dist/readerFree.js +1 -0
- package/dist/readerFree.js.map +1 -1
- package/dist/types/popover.d.ts +7 -0
- package/dist/types/popover.d.ts.map +1 -0
- package/dist/types/popover.js +2 -0
- package/dist/types/popover.js.map +1 -0
- package/dist/types/rich-text.d.ts +24 -0
- package/dist/types/rich-text.d.ts.map +1 -0
- package/dist/types/rich-text.js +2 -0
- package/dist/types/rich-text.js.map +1 -0
- package/package.json +56 -2
- package/src/constants/authoring.ts +2 -0
- package/src/features/layout/adapters/inbound/ZoraWebStyleSheet.tsx +26 -0
- package/src/features/layout/public.test.ts +9 -1
- package/src/features/layout/public.ts +1 -0
- package/src/features/master-detail/adapters/inbound/MasterDetail.runtime.test.tsx +1 -0
- package/src/features/popover/adapters/inbound/Popover.tsx +17 -0
- package/src/features/popover/public.test.ts +9 -0
- package/src/features/popover/public.ts +2 -0
- package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +2 -0
- package/src/features/registry/componentMeta.test.ts +1 -0
- package/src/features/registry/componentMeta.ts +2 -0
- package/src/features/rich-text/adapters/inbound/RichText.tsx +15 -0
- package/src/features/rich-text/adapters/inbound/RichText.web.tsx +28 -0
- package/src/features/rich-text/adapters/inbound/RichTextClient.tsx +246 -0
- package/src/features/rich-text/public.ts +2 -0
- package/src/features/rich-text/richTextMeta.test.ts +52 -0
- package/src/features/rich-text/richTextMeta.ts +50 -0
- package/src/features/rich-text/utils/resolveRichTextHtmlStyle.test.ts +17 -0
- package/src/features/rich-text/utils/resolveRichTextHtmlStyle.ts +31 -0
- package/src/features/rich-text/utils/sanitizeRichTextHtml.test.ts +29 -0
- package/src/features/rich-text/utils/sanitizeRichTextHtml.ts +40 -0
- package/src/features/theme/adapters/inbound/ZoraProvider.tsx +10 -8
- package/src/features/theme/themeScopeStructure.test.ts +3 -2
- package/src/index.ts +7 -0
- package/src/readerFree.ts +1 -0
- package/src/types/popover.ts +12 -0
- package/src/types/rich-text.ts +24 -0
- package/src/webPackageExports.test.ts +9 -0
- package/web-dist/chunks/{Accordion-nmpzv3b0.js → Accordion-0egwarcs.js} +3 -3
- package/web-dist/chunks/{Accordion-htm3j8r8.js → Accordion-0spfxhpg.js} +4 -4
- package/web-dist/chunks/{Accordion-r75ep5pg.js → Accordion-19aegsx2.js} +4 -4
- package/web-dist/chunks/{Accordion-gnbt6w4q.js → Accordion-1g91we37.js} +4 -4
- package/web-dist/chunks/{Accordion-sh79sr5g.js → Accordion-224snqz3.js} +2 -2
- package/web-dist/chunks/{Accordion-za0jcjgn.js → Accordion-2ad57stc.js} +2 -2
- package/web-dist/chunks/{Accordion-d405whfb.js → Accordion-2bygfpwg.js} +1 -1
- package/web-dist/chunks/Accordion-3cpkxpdg.js +37 -0
- package/web-dist/chunks/{Accordion-5rwztz14.js → Accordion-49d0frg7.js} +2 -2
- package/web-dist/chunks/{Accordion-f8a49gy8.js → Accordion-4mg3epm9.js} +19 -1
- package/web-dist/chunks/Accordion-4qrva6ye.js +15 -0
- package/web-dist/chunks/{Accordion-01bsg7zt.js → Accordion-4yrszsvs.js} +1 -1
- package/web-dist/chunks/{Accordion-38xvj0cq.js → Accordion-516n2cx4.js} +4 -4
- package/web-dist/chunks/{Accordion-tqagt6cz.js → Accordion-77514sk9.js} +1 -1
- package/web-dist/chunks/{Accordion-2xkxthf1.js → Accordion-78astqx3.js} +6 -6
- package/web-dist/chunks/{Accordion-fdzyyqe9.js → Accordion-7knb9jk2.js} +3 -3
- package/web-dist/chunks/{Accordion-bp9y7738.js → Accordion-8jw8g2aq.js} +7 -7
- package/web-dist/chunks/{Accordion-kcm6jcpp.js → Accordion-9b4bsxwe.js} +1 -1
- package/web-dist/chunks/{Accordion-bd9vzpbz.js → Accordion-9gk4scdz.js} +8 -8
- package/web-dist/chunks/{Accordion-a1mgdfg7.js → Accordion-9m5asd8r.js} +1 -1
- package/web-dist/chunks/{Accordion-f1vargnk.js → Accordion-9tgvr155.js} +4 -4
- package/web-dist/chunks/{Accordion-q683s6kd.js → Accordion-a4dmyntn.js} +3 -3
- package/web-dist/chunks/{Accordion-bzgy9sg3.js → Accordion-agt9vt85.js} +2 -2
- package/web-dist/chunks/{Accordion-xzaa9s7f.js → Accordion-akwd4brm.js} +1 -13
- package/web-dist/chunks/{Accordion-379mgrse.js → Accordion-arr9ayv0.js} +1 -1
- package/web-dist/chunks/{Accordion-vb52sts9.js → Accordion-d9sd2vs7.js} +3 -3
- package/web-dist/chunks/{Accordion-5qz4j8tt.js → Accordion-ge7cjtwy.js} +5 -5
- package/web-dist/chunks/{Accordion-e0vm82xr.js → Accordion-gs838h0n.js} +2 -2
- package/web-dist/chunks/{Accordion-4zb6dcys.js → Accordion-j1zerr6z.js} +1 -1
- package/web-dist/chunks/{Accordion-2ys50fc8.js → Accordion-jtgh2tep.js} +1 -1
- package/web-dist/chunks/{Accordion-9qg7cjt8.js → Accordion-kcspvk6q.js} +2 -2
- package/web-dist/chunks/{Accordion-vkqqktc5.js → Accordion-khfjh10v.js} +2 -2
- package/web-dist/chunks/{Accordion-axe7nsht.js → Accordion-kzjq1snp.js} +1 -1
- package/web-dist/chunks/{Accordion-hdyzyw8q.js → Accordion-mnxf855g.js} +1 -1
- package/web-dist/chunks/{Accordion-17s33h1a.js → Accordion-q8a423pk.js} +1 -1
- package/web-dist/chunks/{Accordion-rtamzg9j.js → Accordion-qjxbf8nt.js} +1 -1
- package/web-dist/chunks/{Accordion-v6vhyv31.js → Accordion-qjxx43r1.js} +1 -1
- package/web-dist/chunks/{Accordion-h63c9k9k.js → Accordion-sbdgq8d5.js} +1 -1
- package/web-dist/chunks/{Accordion-2xb252py.js → Accordion-skdtw2er.js} +5 -5
- package/web-dist/chunks/{Accordion-rq311z1k.js → Accordion-tdrk9cyn.js} +4 -4
- package/web-dist/chunks/{Accordion-kdb9g5b1.js → Accordion-vx8bjm5k.js} +4 -4
- package/web-dist/chunks/{Accordion-f8zpd80k.js → Accordion-x4yhr2wm.js} +3 -3
- package/web-dist/chunks/{Accordion-2wggrer7.js → Accordion-ytf9ba8v.js} +2 -2
- package/web-dist/chunks/{Accordion-t9n4ey2r.js → Accordion-zd15byha.js} +1 -1
- package/web-dist/chunks/RichTextClient-70qt7037.js +1676 -0
- package/web-dist/chunks/{Video.native-97x0098j.js → Video.native-6142s9f7.js} +5 -5
- package/web-dist/chunks/{index-cnnsfz6n.js → index-n6p0wdvg.js} +1 -1
- package/web-dist/components/accordion/Accordion.js +2 -2
- package/web-dist/components/accordion-item/AccordionItem.js +2 -2
- package/web-dist/components/app-bar/AppBar.js +8 -8
- package/web-dist/components/app-header/AppHeader.js +8 -8
- package/web-dist/components/app-shell/AppShell.js +1 -1
- package/web-dist/components/audio/Audio.js +6 -6
- package/web-dist/components/auth-screen/AuthScreen.js +10 -10
- package/web-dist/components/avatar/Avatar.js +2 -2
- package/web-dist/components/avatar-group/AvatarGroup.js +2 -2
- package/web-dist/components/badge/Badge.js +2 -2
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +9 -9
- package/web-dist/components/bottom-sheet/BottomSheet.js +2 -2
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +2 -2
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +2 -2
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +2 -2
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +2 -2
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +2 -2
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +4 -4
- package/web-dist/components/button/Button.js +4 -4
- package/web-dist/components/button-group/ButtonGroup.js +4 -4
- package/web-dist/components/calendar/Calendar.js +5 -5
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +9 -9
- package/web-dist/components/card/Card.js +8 -8
- package/web-dist/components/chat-list-item/ChatListItem.js +6 -6
- package/web-dist/components/checkbox/Checkbox.js +4 -4
- package/web-dist/components/checkbox-group/CheckboxGroup.js +4 -4
- package/web-dist/components/chip/Chip.js +3 -3
- package/web-dist/components/chip-group/ChipGroup.js +3 -3
- package/web-dist/components/collection-editor/CollectionEditor.js +8 -8
- package/web-dist/components/color-hue-scale/ColorHueScale.js +15 -15
- package/web-dist/components/color-picker/ColorPicker.js +15 -15
- package/web-dist/components/color-tone/ColorTone.js +15 -15
- package/web-dist/components/color-wheel/ColorWheel.js +15 -15
- package/web-dist/components/content-rail/ContentRail.js +4 -4
- package/web-dist/components/data-table/DataTable.js +16 -16
- package/web-dist/components/date-picker/DatePicker.js +11 -11
- package/web-dist/components/dialog/Dialog.js +3 -3
- package/web-dist/components/divider/Divider.js +1 -1
- package/web-dist/components/empty-state/EmptyState.js +9 -9
- package/web-dist/components/explorer/Explorer.js +3 -3
- package/web-dist/components/field/Field.js +4 -4
- package/web-dist/components/file-explorer/FileExplorer.js +3 -3
- package/web-dist/components/flat-list/FlatList.js +5 -5
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +10 -10
- package/web-dist/components/form/Form.js +7 -7
- package/web-dist/components/form-actions/FormActions.js +7 -7
- package/web-dist/components/form-error/FormError.js +7 -7
- package/web-dist/components/game/Game.js +2 -2
- package/web-dist/components/game-entity/GameEntity.js +2 -2
- package/web-dist/components/game-field/GameField.js +2 -2
- package/web-dist/components/game-input-zone/GameInputZone.js +2 -2
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +2 -2
- package/web-dist/components/game-overlay/GameOverlay.js +2 -2
- package/web-dist/components/gradient/Gradient.js +2 -2
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +2 -2
- package/web-dist/components/grid/Grid.js +1 -1
- package/web-dist/components/hero/Hero.js +8 -8
- package/web-dist/components/icon-button/IconButton.js +4 -4
- package/web-dist/components/image/Image.js +2 -2
- package/web-dist/components/list/List.js +5 -5
- package/web-dist/components/list-item/ListItem.js +5 -5
- package/web-dist/components/list-section/ListSection.js +5 -5
- package/web-dist/components/master-detail/MasterDetail.js +1 -1
- package/web-dist/components/media-card/MediaCard.js +8 -8
- package/web-dist/components/media-explorer/MediaExplorer.js +3 -3
- package/web-dist/components/message-bubble/MessageBubble.js +6 -6
- package/web-dist/components/metric-card/MetricCard.js +8 -8
- package/web-dist/components/missing-element/MissingElement.js +3 -3
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +10 -10
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +10 -10
- package/web-dist/components/otp-form/OtpForm.js +10 -10
- package/web-dist/components/pagination/Pagination.js +4 -4
- package/web-dist/components/palette-item/PaletteItem.js +8 -8
- package/web-dist/components/popover/Popover.d.ts +5 -0
- package/web-dist/components/popover/Popover.dependency-0.d.ts +27 -0
- package/web-dist/components/popover/Popover.dependency-1.d.ts +3 -0
- package/web-dist/components/popover/Popover.js +29 -0
- package/web-dist/components/popover/Popover.types-0.d.ts +10 -0
- package/web-dist/components/popover/index.d.ts +2 -0
- package/web-dist/components/popover/index.js +2 -0
- package/web-dist/components/popover-menu/PopoverMenu.js +5 -5
- package/web-dist/components/post-card/PostCard.js +8 -8
- package/web-dist/components/product-card/ProductCard.js +8 -8
- package/web-dist/components/progress/Progress.js +2 -2
- package/web-dist/components/progress-ring/ProgressRing.js +2 -2
- package/web-dist/components/radio/Radio.js +4 -4
- package/web-dist/components/radio-group/RadioGroup.js +4 -4
- package/web-dist/components/rating/Rating.js +1 -1
- package/web-dist/components/reader/Reader.js +10 -10
- package/web-dist/components/rich-text/RichText.d.ts +13 -0
- package/web-dist/components/rich-text/RichText.dependency-0.d.ts +27 -0
- package/web-dist/components/rich-text/RichText.dependency-1.d.ts +3 -0
- package/web-dist/components/rich-text/RichText.js +35 -0
- package/web-dist/components/rich-text/RichText.types-0.d.ts +24 -0
- package/web-dist/components/rich-text/index.d.ts +2 -0
- package/web-dist/components/rich-text/index.js +2 -0
- package/web-dist/components/scan-overlay/ScanOverlay.js +9 -9
- package/web-dist/components/screen/Screen.js +1 -1
- package/web-dist/components/screen-section/ScreenSection.js +2 -2
- package/web-dist/components/scroll-view/ScrollView.js +1 -1
- package/web-dist/components/search-input/SearchInput.js +6 -6
- package/web-dist/components/section-header/SectionHeader.js +2 -2
- package/web-dist/components/section-list/SectionList.js +5 -5
- package/web-dist/components/select/Select.js +9 -9
- package/web-dist/components/sign-in-form/SignInForm.js +10 -10
- package/web-dist/components/sign-up-form/SignUpForm.js +10 -10
- package/web-dist/components/skeleton/Skeleton.js +11 -11
- package/web-dist/components/skeleton-card/SkeletonCard.js +11 -11
- package/web-dist/components/skeleton-list/SkeletonList.js +11 -11
- package/web-dist/components/skeleton-text/SkeletonText.js +11 -11
- package/web-dist/components/switch/Switch.js +3 -3
- package/web-dist/components/tab/Tab.js +2 -2
- package/web-dist/components/tab-list/TabList.js +2 -2
- package/web-dist/components/tab-panel/TabPanel.js +2 -2
- package/web-dist/components/tabs/Tabs.js +2 -2
- package/web-dist/components/text-input/TextInput.js +6 -6
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +4 -4
- package/web-dist/components/time-picker/TimePicker.js +10 -10
- package/web-dist/components/timeline/Timeline.js +2 -2
- package/web-dist/components/toast/Toast.js +4 -4
- package/web-dist/components/toast-provider/ToastProvider.js +4 -4
- package/web-dist/components/toolbar/Toolbar.js +13 -42
- package/web-dist/components/tree-item/TreeItem.js +6 -6
- package/web-dist/components/uploader/Uploader.js +12 -12
- package/web-dist/components/video/Video.js +4 -4
- package/web-dist/components/view/View.js +1 -1
- package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.d.ts +5 -0
- package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.js +14 -0
- package/web-dist/components/zora-web-style-sheet/index.d.ts +1 -0
- package/web-dist/components/zora-web-style-sheet/index.js +2 -0
- package/web-dist/manifest.json +826 -713
- package/web-dist/runtime/ZoraProvider.js +14 -12
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { SurfaceTheme } from '@ankhorage/surface';
|
|
2
|
+
import type { EnrichedTextHtmlStyle, HtmlStyle } from 'react-native-enriched-html';
|
|
3
|
+
|
|
4
|
+
/** Resolves the upstream HTML renderer tokens from the active ZORA theme. */
|
|
5
|
+
export function resolveRichTextHtmlStyle(theme: SurfaceTheme): HtmlStyle & EnrichedTextHtmlStyle {
|
|
6
|
+
return {
|
|
7
|
+
h1: { fontSize: theme.typography.headings[1].size, bold: true },
|
|
8
|
+
h2: { fontSize: theme.typography.headings[2].size, bold: true },
|
|
9
|
+
h3: { fontSize: theme.typography.headings[3].size, bold: true },
|
|
10
|
+
h4: { fontSize: theme.typography.headings[4].size, bold: true },
|
|
11
|
+
h5: { fontSize: theme.typography.headings[5].size, bold: true },
|
|
12
|
+
h6: { fontSize: theme.typography.headings[6].size, bold: true },
|
|
13
|
+
a: {
|
|
14
|
+
color: theme.semantics.action.primary.base,
|
|
15
|
+
pressColor: theme.semantics.action.primary.hover,
|
|
16
|
+
textDecorationLine: 'underline',
|
|
17
|
+
},
|
|
18
|
+
ol: {
|
|
19
|
+
gapWidth: theme.spacing.s,
|
|
20
|
+
marginLeft: theme.spacing.l,
|
|
21
|
+
markerColor: theme.semantics.content.default,
|
|
22
|
+
markerFontWeight: theme.typography.weights.regular,
|
|
23
|
+
},
|
|
24
|
+
ul: {
|
|
25
|
+
bulletColor: theme.semantics.content.default,
|
|
26
|
+
bulletSize: theme.spacing.xs,
|
|
27
|
+
gapWidth: theme.spacing.s,
|
|
28
|
+
marginLeft: theme.spacing.l,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test';
|
|
2
|
+
|
|
3
|
+
import { sanitizeRichTextHtml } from './sanitizeRichTextHtml';
|
|
4
|
+
|
|
5
|
+
describe('sanitizeRichTextHtml', () => {
|
|
6
|
+
test('preserves the supported RichText formatting vocabulary', () => {
|
|
7
|
+
expect(
|
|
8
|
+
sanitizeRichTextHtml(
|
|
9
|
+
'<h1 style="text-align: center">Heading</h1><p><b>Bold</b><i>Italic</i><u>Underline</u><s>Strike</s><a href="https://example.com">Link</a></p><ol style="text-align: right"><li>One</li></ol><ul><li>Two</li></ul>',
|
|
10
|
+
),
|
|
11
|
+
).toBe(
|
|
12
|
+
'<h1 style="text-align:center;">Heading</h1><p><b>Bold</b><i>Italic</i><u>Underline</u><s>Strike</s><a href="https://example.com">Link</a></p><ol style="text-align:right;"><li>One</li></ol><ul><li>Two</li></ul>',
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
expect(sanitizeRichTextHtml('<html><h1>Title</h1><br><p>Some body text.</p></html>')).toBe(
|
|
16
|
+
'<html><h1>Title</h1><br><p>Some body text.</p></html>',
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test('removes executable content and unsupported formatting', () => {
|
|
21
|
+
expect(
|
|
22
|
+
sanitizeRichTextHtml(
|
|
23
|
+
'<script>alert(1)</script><p style="color: red; text-align: justify" onclick="alert(1)"><a href="javascript:alert(1)">Unsafe</a></p><img src="https://example.com/image.png">',
|
|
24
|
+
),
|
|
25
|
+
).toBe(
|
|
26
|
+
'<p style="text-align:justify;"><a href>Unsafe</a></p><img src="https://example.com/image.png">',
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FilterXSS } from 'xss';
|
|
2
|
+
|
|
3
|
+
/** Sanitizes RichText HTML to the formatting vocabulary supported by every platform. */
|
|
4
|
+
export function sanitizeRichTextHtml(html: string): string {
|
|
5
|
+
return richTextHtmlSanitizer.process(html);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const alignmentAttributes = ['style'];
|
|
9
|
+
|
|
10
|
+
const richTextHtmlSanitizer = new FilterXSS({
|
|
11
|
+
whiteList: {
|
|
12
|
+
a: ['href'],
|
|
13
|
+
b: [],
|
|
14
|
+
br: [],
|
|
15
|
+
del: [],
|
|
16
|
+
em: [],
|
|
17
|
+
h1: alignmentAttributes,
|
|
18
|
+
h2: alignmentAttributes,
|
|
19
|
+
h3: alignmentAttributes,
|
|
20
|
+
h4: alignmentAttributes,
|
|
21
|
+
h5: alignmentAttributes,
|
|
22
|
+
h6: alignmentAttributes,
|
|
23
|
+
html: [],
|
|
24
|
+
i: [],
|
|
25
|
+
li: [],
|
|
26
|
+
ol: alignmentAttributes,
|
|
27
|
+
p: alignmentAttributes,
|
|
28
|
+
s: [],
|
|
29
|
+
strike: [],
|
|
30
|
+
strong: [],
|
|
31
|
+
u: [],
|
|
32
|
+
ul: alignmentAttributes,
|
|
33
|
+
},
|
|
34
|
+
css: {
|
|
35
|
+
whiteList: {
|
|
36
|
+
'text-align': /^(left|center|right|justify)$/,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
stripIgnoreTagBody: ['script', 'style'],
|
|
40
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThemeProvider, useTheme as useSurfaceTheme } from '@ankhorage/surface';
|
|
1
|
+
import { ResponsiveProvider, ThemeProvider, useTheme as useSurfaceTheme } from '@ankhorage/surface';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
4
|
import type { ZoraProviderProps } from '../../../../types/provider';
|
|
@@ -27,13 +27,15 @@ export function ZoraProvider({
|
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<ZoraThemeRuntimeContext value={runtimeValue}>
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
<ResponsiveProvider>
|
|
31
|
+
<ThemeProvider initialConfig={resolvedConfig} initialMode={mode ?? initialMode}>
|
|
32
|
+
<ZoraProviderMode mode={mode}>
|
|
33
|
+
<ZoraRuntimeCapabilities bottomSheet={bottomSheet} toast={toast}>
|
|
34
|
+
{children}
|
|
35
|
+
</ZoraRuntimeCapabilities>
|
|
36
|
+
</ZoraProviderMode>
|
|
37
|
+
</ThemeProvider>
|
|
38
|
+
</ResponsiveProvider>
|
|
37
39
|
</ZoraThemeRuntimeContext>
|
|
38
40
|
);
|
|
39
41
|
}
|
|
@@ -169,10 +169,11 @@ const scopedPropTypeFiles = [
|
|
|
169
169
|
] as const;
|
|
170
170
|
|
|
171
171
|
describe('theme scope structure', () => {
|
|
172
|
-
it('
|
|
172
|
+
it('owns the ResponsiveProvider composition required by every ZORA application context', () => {
|
|
173
173
|
expect(zoraProviderSource).toMatch(/ThemeProvider/);
|
|
174
174
|
expect(zoraProviderSource).toMatch(/<ZoraThemeRuntimeContext\s+value=/u);
|
|
175
|
-
expect(zoraProviderSource).
|
|
175
|
+
expect(zoraProviderSource).toMatch(/ResponsiveProvider/);
|
|
176
|
+
expect(zoraProviderSource).toMatch(/<ResponsiveProvider>[\s\S]*?<ThemeProvider/u);
|
|
176
177
|
});
|
|
177
178
|
|
|
178
179
|
it('delegates nested Surface runtime ownership to the public ThemeScope boundary', () => {
|
package/src/index.ts
CHANGED
|
@@ -36,6 +36,7 @@ export type {
|
|
|
36
36
|
GradientRendererProviderProps,
|
|
37
37
|
} from './features/gradient/public';
|
|
38
38
|
export { GradientRendererProvider } from './features/gradient/public';
|
|
39
|
+
export { ZoraWebStyleSheet } from './features/layout/public';
|
|
39
40
|
export type {
|
|
40
41
|
MasterDetailActivePane,
|
|
41
42
|
MasterDetailDesktopMode,
|
|
@@ -43,6 +44,12 @@ export type {
|
|
|
43
44
|
MasterDetailProps,
|
|
44
45
|
} from './features/master-detail/public';
|
|
45
46
|
export { MasterDetail } from './features/master-detail/public';
|
|
47
|
+
export type {
|
|
48
|
+
PopoverAnchorRenderProps,
|
|
49
|
+
PopoverPlacement,
|
|
50
|
+
PopoverProps,
|
|
51
|
+
} from './features/popover/public';
|
|
52
|
+
export { Popover } from './features/popover/public';
|
|
46
53
|
export type {
|
|
47
54
|
ReaderColorScheme,
|
|
48
55
|
ReaderDocumentFormat,
|
package/src/readerFree.ts
CHANGED
|
@@ -417,6 +417,7 @@ export {
|
|
|
417
417
|
createZoraComponentRegistry,
|
|
418
418
|
ZORA_BASE_COMPONENT_REGISTRY,
|
|
419
419
|
} from './features/registry/readerFreeRegistry';
|
|
420
|
+
export { RichText, type RichTextProps } from './features/rich-text/public';
|
|
420
421
|
export type {
|
|
421
422
|
BarcodeScannerViewProps,
|
|
422
423
|
BarcodeScanResult,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
PopoverAnchorRenderProps as SurfacePopoverAnchorRenderProps,
|
|
3
|
+
PopoverPlacement as SurfacePopoverPlacement,
|
|
4
|
+
PopoverProps as SurfacePopoverProps,
|
|
5
|
+
} from '@ankhorage/surface';
|
|
6
|
+
|
|
7
|
+
import type { ZoraBaseProps } from './base';
|
|
8
|
+
|
|
9
|
+
export type PopoverAnchorRenderProps = SurfacePopoverAnchorRenderProps;
|
|
10
|
+
export type PopoverPlacement = SurfacePopoverPlacement;
|
|
11
|
+
|
|
12
|
+
export interface PopoverProps extends SurfacePopoverProps, ZoraBaseProps {}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ZoraBaseProps } from './base';
|
|
2
|
+
|
|
3
|
+
/** Props for ZORA's canonical portable rich-text display and editor component. */
|
|
4
|
+
export interface RichTextProps extends ZoraBaseProps {
|
|
5
|
+
/** Canonical normalized HTML produced by RichText's supported editor. */
|
|
6
|
+
html: string;
|
|
7
|
+
/**
|
|
8
|
+
* Enables the WYSIWYG editor and its ZORA toolbar. Undo and redo use the
|
|
9
|
+
* upstream platform history: TipTap keyboard shortcuts on web and the
|
|
10
|
+
* native platform text-control history on iOS and Android. No programmatic
|
|
11
|
+
* history API is available.
|
|
12
|
+
*/
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
/** Placeholder shown by the editor when its content is empty. */
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/** Receives the normalized HTML emitted by the supported editor. */
|
|
17
|
+
onChangeHtml?: (html: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Requests host-owned navigation for a rendered rich-text link. In editable
|
|
20
|
+
* mode, the upstream callback is available on web only; read-only links are
|
|
21
|
+
* supported on web, iOS, and Android.
|
|
22
|
+
*/
|
|
23
|
+
onLinkPress?: (url: string) => void;
|
|
24
|
+
}
|
|
@@ -317,6 +317,15 @@ test('SSR-renders ordinary UI from its public web subpaths', async () => {
|
|
|
317
317
|
expect(markup).toContain('Continue');
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
+
/** Verifies that RichText keeps the upstream browser-only implementation outside SSR. */
|
|
321
|
+
test('defers RichText until browser hydration', async () => {
|
|
322
|
+
const { RichText } = await import('@ankhorage/zora/web/rich-text');
|
|
323
|
+
|
|
324
|
+
expect(
|
|
325
|
+
renderToStaticMarkup(React.createElement(RichText, { html: '<p>Server content</p>' })),
|
|
326
|
+
).toBe('');
|
|
327
|
+
});
|
|
328
|
+
|
|
320
329
|
/** Verifies that the color controls are available through their generated public web entrypoints. */
|
|
321
330
|
test('publishes the independent color controls through canonical web subpaths', async () => {
|
|
322
331
|
const [{ ColorPicker }, { ColorWheel }, { ColorTone }, { ColorHueScale }] = await Promise.all([
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Button3
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-9tgvr155.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-4mg3epm9.js";
|
|
11
11
|
import {
|
|
12
12
|
Card2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-78astqx3.js";
|
|
14
14
|
|
|
15
15
|
// src/features/empty-state/adapters/inbound/EmptyState.tsx
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Card2
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-78astqx3.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-4mg3epm9.js";
|
|
11
11
|
import {
|
|
12
12
|
Text3
|
|
13
13
|
} from "./Accordion-8skz71ct.js";
|
|
14
14
|
import {
|
|
15
15
|
Badge2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-224snqz3.js";
|
|
17
17
|
import {
|
|
18
18
|
Button3
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-9tgvr155.js";
|
|
20
20
|
import {
|
|
21
21
|
useZoraTheme2
|
|
22
22
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Pressable
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-mnxf855g.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-4mg3epm9.js";
|
|
11
11
|
import {
|
|
12
12
|
Text3
|
|
13
13
|
} from "./Accordion-8skz71ct.js";
|
|
14
14
|
import {
|
|
15
15
|
Avatar2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-9m5asd8r.js";
|
|
17
17
|
import {
|
|
18
18
|
Badge2
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-224snqz3.js";
|
|
20
20
|
import {
|
|
21
21
|
useZoraTheme2
|
|
22
22
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
} from "./Accordion-9d38cgqj.js";
|
|
11
11
|
import {
|
|
12
12
|
Pressable
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-mnxf855g.js";
|
|
14
14
|
import {
|
|
15
15
|
Text2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-9b4bsxwe.js";
|
|
17
17
|
import {
|
|
18
18
|
withZoraThemeScope
|
|
19
19
|
} from "./Accordion-tk8zf9ff.js";
|
|
20
20
|
import {
|
|
21
21
|
View2
|
|
22
|
-
} from "./Accordion-
|
|
22
|
+
} from "./Accordion-4mg3epm9.js";
|
|
23
23
|
import {
|
|
24
24
|
Text3
|
|
25
25
|
} from "./Accordion-8skz71ct.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
resolveSelectionControlNextChecked,
|
|
31
31
|
resolveSelectionControlInteractionState
|
|
32
|
-
} from "./Accordion-
|
|
32
|
+
} from "./Accordion-akwd4brm.js";
|
|
33
33
|
import {
|
|
34
34
|
useZoraThemeRecipe,
|
|
35
35
|
ZORA_COLORS
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
} from "./Accordion-9d38cgqj.js";
|
|
8
8
|
import {
|
|
9
9
|
Text2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-9b4bsxwe.js";
|
|
11
11
|
import {
|
|
12
12
|
withZoraThemeScope
|
|
13
13
|
} from "./Accordion-tk8zf9ff.js";
|
|
14
14
|
import {
|
|
15
15
|
resolveControlSize,
|
|
16
16
|
resolveButtonColors
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-akwd4brm.js";
|
|
18
18
|
|
|
19
19
|
// node_modules/@ankhorage/surface/src/features/badge/adapters/inbound/Badge.tsx
|
|
20
20
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Pressable
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-mnxf855g.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./Accordion-3zzzw7a8.js";
|
|
11
11
|
import {
|
|
12
12
|
View2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-4mg3epm9.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
16
|
} from "./Accordion-8skz71ct.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
Card2
|
|
4
|
+
} from "./Accordion-78astqx3.js";
|
|
5
|
+
import {
|
|
6
|
+
withZoraThemeScope
|
|
7
|
+
} from "./Accordion-tk8zf9ff.js";
|
|
8
|
+
import {
|
|
9
|
+
View2
|
|
10
|
+
} from "./Accordion-4mg3epm9.js";
|
|
11
|
+
|
|
12
|
+
// src/features/toolbar/adapters/inbound/Toolbar.tsx
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
var Toolbar2 = withZoraThemeScope(ToolbarInner);
|
|
15
|
+
function ToolbarInner({
|
|
16
|
+
themeId: _themeId,
|
|
17
|
+
mode: _mode,
|
|
18
|
+
interactionPolicy,
|
|
19
|
+
children,
|
|
20
|
+
floating = false,
|
|
21
|
+
compact = true,
|
|
22
|
+
testID
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ jsx(Card2, {
|
|
25
|
+
compact,
|
|
26
|
+
interactionPolicy,
|
|
27
|
+
tone: floating ? "default" : "subtle",
|
|
28
|
+
testID,
|
|
29
|
+
children: /* @__PURE__ */ jsx(View2, {
|
|
30
|
+
align: "center",
|
|
31
|
+
direction: "row",
|
|
32
|
+
gap: "s",
|
|
33
|
+
children
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
export { Toolbar2 };
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./Accordion-0dj1r7w3.js";
|
|
5
5
|
import {
|
|
6
6
|
TextInput3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-2bygfpwg.js";
|
|
8
8
|
import {
|
|
9
9
|
IconButton2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-9tgvr155.js";
|
|
11
11
|
import {
|
|
12
12
|
withZoraThemeScope
|
|
13
13
|
} from "./Accordion-tk8zf9ff.js";
|
|
@@ -384,4 +384,22 @@ function ScreenInner({
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
var Screen2 = withZoraThemeScope(ScreenInner);
|
|
387
|
-
|
|
387
|
+
// src/features/layout/adapters/inbound/ZoraWebStyleSheet.tsx
|
|
388
|
+
var import_react_native3 = __toESM(require_cjs(), 1);
|
|
389
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
390
|
+
function ZoraWebStyleSheet2() {
|
|
391
|
+
const sheet = getReactNativeWebStyleSheet();
|
|
392
|
+
if (sheet === null)
|
|
393
|
+
return null;
|
|
394
|
+
return /* @__PURE__ */ jsx9("style", {
|
|
395
|
+
id: sheet.id,
|
|
396
|
+
precedence: "react-native-web",
|
|
397
|
+
children: sheet.textContent
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
function getReactNativeWebStyleSheet() {
|
|
401
|
+
if (import_react_native3.Platform.OS !== "web" || !("getSheet" in import_react_native3.StyleSheet))
|
|
402
|
+
return null;
|
|
403
|
+
return import_react_native3.StyleSheet.getSheet();
|
|
404
|
+
}
|
|
405
|
+
export { View2, AppShell2, Divider2, Grid2, ScrollView2, Screen2, ZoraWebStyleSheet2 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// node_modules/@ankhorage/surface/src/internal/resolvers/resolveOverlayZIndex.ts
|
|
3
|
+
var BASE_Z_INDEX = {
|
|
4
|
+
modal: 1000,
|
|
5
|
+
drawer: 1100,
|
|
6
|
+
menu: 1200,
|
|
7
|
+
popover: 1250,
|
|
8
|
+
tooltip: 1300,
|
|
9
|
+
toast: 1400
|
|
10
|
+
};
|
|
11
|
+
function resolveOverlayZIndex(layer, stackIndex = 0) {
|
|
12
|
+
return BASE_Z_INDEX[layer] + stackIndex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { resolveOverlayZIndex };
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
View2,
|
|
16
16
|
Divider2
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-4mg3epm9.js";
|
|
18
18
|
import {
|
|
19
19
|
Pressable
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-mnxf855g.js";
|
|
21
21
|
import {
|
|
22
22
|
Text2
|
|
23
|
-
} from "./Accordion-
|
|
23
|
+
} from "./Accordion-9b4bsxwe.js";
|
|
24
24
|
import {
|
|
25
25
|
SectionHeader2
|
|
26
|
-
} from "./Accordion-
|
|
26
|
+
} from "./Accordion-77514sk9.js";
|
|
27
27
|
import {
|
|
28
28
|
useZoraTheme2
|
|
29
29
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./Accordion-9d38cgqj.js";
|
|
5
5
|
import {
|
|
6
6
|
Pressable
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-mnxf855g.js";
|
|
8
8
|
import {
|
|
9
9
|
Surface3
|
|
10
10
|
} from "./Accordion-pdjhezmz.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
View2,
|
|
16
16
|
Divider2
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-4mg3epm9.js";
|
|
18
18
|
import {
|
|
19
19
|
Heading2,
|
|
20
20
|
Text3
|
|
@@ -22,19 +22,19 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
resolveBadgeRecipe,
|
|
24
24
|
Badge2
|
|
25
|
-
} from "./Accordion-
|
|
25
|
+
} from "./Accordion-224snqz3.js";
|
|
26
26
|
import {
|
|
27
27
|
Icon2
|
|
28
28
|
} from "./Accordion-3zzzw7a8.js";
|
|
29
29
|
import {
|
|
30
30
|
Avatar2
|
|
31
|
-
} from "./Accordion-
|
|
31
|
+
} from "./Accordion-9m5asd8r.js";
|
|
32
32
|
import {
|
|
33
33
|
Button3
|
|
34
|
-
} from "./Accordion-
|
|
34
|
+
} from "./Accordion-9tgvr155.js";
|
|
35
35
|
import {
|
|
36
36
|
Image2
|
|
37
|
-
} from "./Accordion-
|
|
37
|
+
} from "./Accordion-4yrszsvs.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveIconSize
|
|
40
40
|
} from "./Accordion-961ncx4e.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./Accordion-mnac2z83.js";
|
|
5
5
|
import {
|
|
6
6
|
Portal
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-sbdgq8d5.js";
|
|
8
8
|
import {
|
|
9
9
|
require_cjs
|
|
10
10
|
} from "./Accordion-xgpzh4wq.js";
|
|
@@ -146,7 +146,7 @@ var styles = import_react_native2.StyleSheet.create({
|
|
|
146
146
|
|
|
147
147
|
// node_modules/@ankhorage/surface/src/features/popover/adapters/inbound/Popover.tsx
|
|
148
148
|
import { jsx as jsx2, jsxs as jsxs2, Fragment } from "react/jsx-runtime";
|
|
149
|
-
function
|
|
149
|
+
function Popover2(props) {
|
|
150
150
|
const anchorRef = React2.useRef(null);
|
|
151
151
|
const [resolvedOpen, setResolvedOpen] = useControllableState({
|
|
152
152
|
defaultValue: props.defaultOpen ?? false,
|
|
@@ -184,4 +184,4 @@ function Popover(props) {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { Popover2 };
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
} from "./Accordion-9d38cgqj.js";
|
|
11
11
|
import {
|
|
12
12
|
Pressable
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-mnxf855g.js";
|
|
14
14
|
import {
|
|
15
15
|
withZoraThemeScope
|
|
16
16
|
} from "./Accordion-tk8zf9ff.js";
|
|
17
17
|
import {
|
|
18
18
|
View2,
|
|
19
19
|
Divider2
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-4mg3epm9.js";
|
|
21
21
|
import {
|
|
22
22
|
Heading2,
|
|
23
23
|
Text3
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./Accordion-chdbfcm6.js";
|
|
29
29
|
import {
|
|
30
30
|
TextInput3
|
|
31
|
-
} from "./Accordion-
|
|
31
|
+
} from "./Accordion-2bygfpwg.js";
|
|
32
32
|
import {
|
|
33
33
|
Button2,
|
|
34
34
|
Circle,
|
|
@@ -42,19 +42,19 @@ import {
|
|
|
42
42
|
Stop,
|
|
43
43
|
Svg,
|
|
44
44
|
IconButton2
|
|
45
|
-
} from "./Accordion-
|
|
45
|
+
} from "./Accordion-9tgvr155.js";
|
|
46
46
|
import {
|
|
47
47
|
Card2
|
|
48
|
-
} from "./Accordion-
|
|
48
|
+
} from "./Accordion-78astqx3.js";
|
|
49
49
|
import {
|
|
50
50
|
Icon2
|
|
51
51
|
} from "./Accordion-3zzzw7a8.js";
|
|
52
52
|
import {
|
|
53
53
|
Select2
|
|
54
|
-
} from "./Accordion-
|
|
54
|
+
} from "./Accordion-9gk4scdz.js";
|
|
55
55
|
import {
|
|
56
56
|
Gradient2
|
|
57
|
-
} from "./Accordion-
|
|
57
|
+
} from "./Accordion-zd15byha.js";
|
|
58
58
|
import {
|
|
59
59
|
useZoraTheme2
|
|
60
60
|
} from "./Accordion-b1y5mjac.js";
|