@ankhorage/zora 28.7.1 → 28.7.3
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 +13 -0
- package/README.md +1 -1
- package/dist/features/carousel/Carousel.d.ts.map +1 -1
- package/dist/features/carousel/Carousel.js +22 -4
- package/dist/features/carousel/Carousel.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.d.ts.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js +4 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
- package/dist/features/form/select/composition/SelectOptionsList.d.ts +9 -0
- package/dist/features/form/select/composition/SelectOptionsList.d.ts.map +1 -0
- package/dist/features/form/select/composition/SelectOptionsList.js +17 -0
- package/dist/features/form/select/composition/SelectOptionsList.js.map +1 -0
- package/package.json +2 -2
- package/src/features/carousel/Carousel.tsx +27 -5
- package/src/features/form/select/adapters/inbound/Select.web.tsx +13 -10
- package/src/features/form/select/composition/SelectOptionsList.tsx +29 -0
- package/src/webPackageExports.test.ts +40 -0
- package/web-dist/authoring/index.d.ts +2 -2
- package/web-dist/authoring/index.js +132 -23545
- package/web-dist/chunks/{Accordion-nh0cs9hq.js → Accordion-0g45tq8n.js} +1 -43
- package/web-dist/chunks/{Accordion-rhjddvkh.js → Accordion-0zk0xp73.js} +26 -27
- package/web-dist/chunks/Accordion-2ej7s27r.js +18 -0
- package/web-dist/chunks/{Accordion-0spfxhpg.js → Accordion-2gvv7h5p.js} +22 -28
- package/web-dist/chunks/{Accordion-mpb070cf.js → Accordion-4gfrfgh5.js} +27 -33
- package/web-dist/chunks/{Accordion-3cpkxpdg.js → Accordion-53c30cqa.js} +5 -5
- package/web-dist/chunks/{Accordion-8skz71ct.js → Accordion-6gc0jw1n.js} +25 -30
- package/web-dist/chunks/Accordion-6n2r35qh.js +103 -0
- package/web-dist/chunks/Accordion-6sa9z92t.js +99 -0
- package/web-dist/chunks/{Accordion-gs838h0n.js → Accordion-772gn1m6.js} +8 -10
- package/web-dist/chunks/Accordion-7ayxbm7k.js +20 -0
- package/web-dist/chunks/{Accordion-arr9ayv0.js → Accordion-92py9m3m.js} +12 -18
- package/web-dist/chunks/{Accordion-zd15byha.js → Accordion-a6a0za8s.js} +2 -2
- package/web-dist/chunks/Accordion-c781654t.js +171 -0
- package/web-dist/chunks/{Accordion-516n2cx4.js → Accordion-ce2r66e1.js} +43 -168
- package/web-dist/chunks/{Accordion-9d38cgqj.js → Accordion-cwx73cjc.js} +4 -1426
- package/web-dist/chunks/{Accordion-1fz55hk4.js → Accordion-d15mjc4n.js} +5 -4
- package/web-dist/chunks/Accordion-ddzm7pnp.js +4721 -0
- package/web-dist/chunks/{Accordion-htvmkx8s.js → Accordion-dv5c27w4.js} +105 -41
- package/web-dist/chunks/Accordion-e8tapf5a.js +22 -0
- package/web-dist/chunks/{Accordion-78astqx3.js → Accordion-enfevvwv.js} +100 -170
- package/web-dist/chunks/{Accordion-1g91we37.js → Accordion-f7czh00h.js} +48 -205
- package/web-dist/chunks/{Accordion-2ad57stc.js → Accordion-f8dj4gbw.js} +12 -12
- package/web-dist/chunks/{Accordion-yrac5a7m.js → Accordion-fkftnxgw.js} +7 -17
- package/web-dist/chunks/Accordion-fsdgssfq.js +20 -0
- package/web-dist/chunks/Accordion-gnkzvj03.js +40 -0
- package/web-dist/chunks/{Accordion-jtgh2tep.js → Accordion-gtsxpnxf.js} +24 -30
- package/web-dist/chunks/Accordion-h7ae9ybw.js +70 -0
- package/web-dist/chunks/Accordion-hadw5304.js +78 -0
- package/web-dist/chunks/Accordion-jf0vrgw4.js +219 -0
- package/web-dist/chunks/{Accordion-agt9vt85.js → Accordion-jn70wf9s.js} +13 -13
- package/web-dist/chunks/{Accordion-9m5asd8r.js → Accordion-jqk96gt9.js} +9 -15
- package/web-dist/chunks/Accordion-kgfw6vj3.js +117 -0
- package/web-dist/chunks/Accordion-kjv0pfyp.js +136 -0
- package/web-dist/chunks/{Accordion-19aegsx2.js → Accordion-knd9nb8v.js} +21 -22
- package/web-dist/chunks/Accordion-nkv2pzj8.js +203 -0
- package/web-dist/chunks/{Accordion-5mga7hty.js → Accordion-pr1tv6jx.js} +3 -5
- package/web-dist/chunks/{Accordion-d5sz8vaq.js → Accordion-r8swmfjm.js} +5 -7
- package/web-dist/chunks/{Accordion-bexwrnfh.js → Accordion-rp9cjtpg.js} +28 -34
- package/web-dist/chunks/{Accordion-9dk62zn9.js → Accordion-sam71gw6.js} +66 -48
- package/web-dist/chunks/Accordion-se0pee16.js +213 -0
- package/web-dist/chunks/{Accordion-tdrk9cyn.js → Accordion-t9v6kw4n.js} +8 -8
- package/web-dist/chunks/{Accordion-3zzzw7a8.js → Accordion-t9w365ke.js} +3 -5
- package/web-dist/chunks/{Accordion-ar8qe05j.js → Accordion-vhr7js3e.js} +4 -4
- package/web-dist/chunks/{Accordion-ytf9ba8v.js → Accordion-w35n9p3n.js} +10 -10
- package/web-dist/chunks/{Accordion-0egwarcs.js → Accordion-wcref68q.js} +8 -8
- package/web-dist/chunks/Accordion-wf6pk2j9.js +61 -0
- package/web-dist/chunks/{Accordion-b1y5mjac.js → Accordion-x1ze1wvk.js} +1 -4
- package/web-dist/chunks/Accordion-xfwdh07r.js +235 -0
- package/web-dist/chunks/{Accordion-8t6vh482.js → Accordion-xhkphta6.js} +15 -21
- package/web-dist/chunks/{Accordion-77514sk9.js → Accordion-ycatfb1v.js} +6 -6
- package/web-dist/chunks/{Accordion-kcspvk6q.js → Accordion-ysy3ezf0.js} +9 -11
- package/web-dist/chunks/{Accordion-qjxx43r1.js → Accordion-zdwbxeq1.js} +40 -48
- package/web-dist/chunks/{Accordion-tk8zf9ff.js → Accordion-zhgty1ae.js} +10 -35
- package/web-dist/chunks/{RichTextClient-7qqj2dpw.js → RichTextClient-tsah5t7v.js} +19 -31
- package/web-dist/chunks/{Video.native-6142s9f7.js → Video.native-y947mrfb.js} +22 -32
- package/web-dist/chunks/{index-n6p0wdvg.js → index-m1y984nz.js} +547 -241
- package/web-dist/components/accordion/Accordion.dependency-0.d.ts +1 -1
- package/web-dist/components/accordion/Accordion.js +8 -14
- package/web-dist/components/accordion/Accordion.types-0.d.ts +1 -1
- package/web-dist/components/accordion-item/AccordionItem.dependency-0.d.ts +1 -1
- package/web-dist/components/accordion-item/AccordionItem.js +8 -14
- package/web-dist/components/accordion-item/AccordionItem.types-0.d.ts +1 -1
- package/web-dist/components/activity-indicator/ActivityIndicator.js +3 -4
- package/web-dist/components/app-bar/AppBar.dependency-0.d.ts +1 -1
- package/web-dist/components/app-bar/AppBar.dependency-2.d.ts +1 -1
- package/web-dist/components/app-bar/AppBar.js +10 -27
- package/web-dist/components/app-bar/AppBar.types-0.d.ts +1 -1
- package/web-dist/components/app-header/AppHeader.dependency-0.d.ts +1 -1
- package/web-dist/components/app-header/AppHeader.dependency-1.d.ts +1 -1
- package/web-dist/components/app-header/AppHeader.dependency-3.d.ts +1 -1
- package/web-dist/components/app-header/AppHeader.js +10 -27
- package/web-dist/components/app-shell/AppShell.dependency-0.d.ts +1 -1
- package/web-dist/components/app-shell/AppShell.js +3 -8
- package/web-dist/components/audio/Audio.dependency-0.d.ts +1 -1
- package/web-dist/components/audio/Audio.js +17 -28
- package/web-dist/components/auth-screen/AuthScreen.dependency-0.d.ts +1 -1
- package/web-dist/components/auth-screen/AuthScreen.dependency-3.d.ts +1 -1
- package/web-dist/components/auth-screen/AuthScreen.dependency-4.d.ts +1 -1
- package/web-dist/components/auth-screen/AuthScreen.js +13 -25
- package/web-dist/components/auth-screen/AuthScreen.types-0.d.ts +1 -1
- package/web-dist/components/avatar/Avatar.dependency-0.d.ts +1 -1
- package/web-dist/components/avatar/Avatar.dependency-2.d.ts +1 -1
- package/web-dist/components/avatar/Avatar.js +8 -14
- package/web-dist/components/avatar/Avatar.types-0.d.ts +1 -1
- package/web-dist/components/avatar-group/AvatarGroup.dependency-1.d.ts +1 -1
- package/web-dist/components/avatar-group/AvatarGroup.dependency-3.d.ts +1 -1
- package/web-dist/components/avatar-group/AvatarGroup.js +8 -14
- package/web-dist/components/avatar-group/AvatarGroup.types-0.d.ts +1 -1
- package/web-dist/components/badge/Badge.dependency-0.d.ts +1 -1
- package/web-dist/components/badge/Badge.dependency-2.d.ts +1 -1
- package/web-dist/components/badge/Badge.dependency-3.d.ts +1 -1
- package/web-dist/components/badge/Badge.js +3 -10
- package/web-dist/components/badge/Badge.types-0.d.ts +1 -1
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.dependency-0.d.ts +1 -1
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +13 -25
- package/web-dist/components/bottom-sheet/BottomSheet.dependency-0.d.ts +1 -1
- package/web-dist/components/bottom-sheet/BottomSheet.js +5 -13
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.d.ts +1 -1
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +5 -13
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.d.ts +1 -1
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +5 -13
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.d.ts +1 -1
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +5 -13
- package/web-dist/components/bottom-sheet-view/BottomSheetView.d.ts +1 -1
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +5 -13
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.d.ts +1 -1
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +5 -13
- package/web-dist/components/breadcrumbs/Breadcrumbs.dependency-0.d.ts +1 -1
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +17 -27
- package/web-dist/components/breadcrumbs/Breadcrumbs.types-0.d.ts +1 -1
- package/web-dist/components/button/Button.dependency-0.d.ts +1 -1
- package/web-dist/components/button/Button.dependency-2.d.ts +1 -1
- package/web-dist/components/button/Button.dependency-3.d.ts +1 -1
- package/web-dist/components/button/Button.js +8 -18
- package/web-dist/components/button/Button.types-0.d.ts +1 -1
- package/web-dist/components/button-group/ButtonGroup.dependency-0.d.ts +1 -1
- package/web-dist/components/button-group/ButtonGroup.dependency-2.d.ts +1 -1
- package/web-dist/components/button-group/ButtonGroup.js +6 -16
- package/web-dist/components/calendar/Calendar.dependency-0.d.ts +1 -1
- package/web-dist/components/calendar/Calendar.js +9 -19
- package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-0.d.ts +1 -1
- package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-2.d.ts +1 -1
- package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-3.d.ts +1 -1
- package/web-dist/components/camera-permission-view/CameraPermissionView.dependency-4.d.ts +1 -1
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +13 -25
- package/web-dist/components/card/Card.dependency-0.d.ts +1 -1
- package/web-dist/components/card/Card.js +12 -24
- package/web-dist/components/card/Card.types-0.d.ts +1 -1
- package/web-dist/components/card-back/CardBack.dependency-0.d.ts +1 -1
- package/web-dist/components/card-back/CardBack.js +5 -6
- package/web-dist/components/card-hand/CardHand.dependency-0.d.ts +1 -1
- package/web-dist/components/card-hand/CardHand.js +5 -6
- package/web-dist/components/carousel/Carousel.js +58 -49
- package/web-dist/components/chat-list-item/ChatListItem.dependency-1.d.ts +1 -1
- package/web-dist/components/chat-list-item/ChatListItem.dependency-3.d.ts +1 -1
- package/web-dist/components/chat-list-item/ChatListItem.js +10 -19
- package/web-dist/components/checkbox/Checkbox.dependency-0.d.ts +1 -1
- package/web-dist/components/checkbox/Checkbox.js +7 -17
- package/web-dist/components/checkbox/Checkbox.types-0.d.ts +1 -1
- package/web-dist/components/checkbox-group/CheckboxGroup.dependency-0.d.ts +1 -1
- package/web-dist/components/checkbox-group/CheckboxGroup.js +7 -17
- package/web-dist/components/checkbox-group/CheckboxGroup.types-0.d.ts +1 -1
- package/web-dist/components/chess-board/ChessBoard.dependency-0.d.ts +1 -1
- package/web-dist/components/chess-board/ChessBoard.js +5 -7
- package/web-dist/components/chip/Chip.dependency-0.d.ts +1 -1
- package/web-dist/components/chip/Chip.dependency-2.d.ts +1 -1
- package/web-dist/components/chip/Chip.dependency-3.d.ts +1 -1
- package/web-dist/components/chip/Chip.js +8 -15
- package/web-dist/components/chip/Chip.types-0.d.ts +1 -1
- package/web-dist/components/chip-group/ChipGroup.dependency-0.d.ts +1 -1
- package/web-dist/components/chip-group/ChipGroup.dependency-2.d.ts +1 -1
- package/web-dist/components/chip-group/ChipGroup.dependency-3.d.ts +1 -1
- package/web-dist/components/chip-group/ChipGroup.js +8 -15
- package/web-dist/components/chip-group/ChipGroup.types-0.d.ts +1 -1
- package/web-dist/components/collection-editor/CollectionEditor.dependency-0.d.ts +1 -1
- package/web-dist/components/collection-editor/CollectionEditor.js +19 -31
- package/web-dist/components/color-hue-scale/ColorHueScale.dependency-0.d.ts +1 -1
- package/web-dist/components/color-hue-scale/ColorHueScale.js +19 -35
- package/web-dist/components/color-picker/ColorPicker.dependency-0.d.ts +1 -1
- package/web-dist/components/color-picker/ColorPicker.js +19 -35
- package/web-dist/components/color-tone/ColorTone.dependency-0.d.ts +1 -1
- package/web-dist/components/color-tone/ColorTone.js +19 -35
- package/web-dist/components/color-wheel/ColorWheel.dependency-0.d.ts +1 -1
- package/web-dist/components/color-wheel/ColorWheel.js +19 -35
- package/web-dist/components/content-rail/ContentRail.dependency-0.d.ts +1 -1
- package/web-dist/components/content-rail/ContentRail.js +23 -35
- package/web-dist/components/data-table/DataTable.dependency-0.d.ts +1 -1
- package/web-dist/components/data-table/DataTable.dependency-2.d.ts +1 -1
- package/web-dist/components/data-table/DataTable.js +67 -101
- package/web-dist/components/data-table/DataTable.types-0.d.ts +1 -1
- package/web-dist/components/date-picker/DatePicker.dependency-0.d.ts +1 -1
- package/web-dist/components/date-picker/DatePicker.js +16 -32
- package/web-dist/components/dialog/Dialog.dependency-0.d.ts +1 -1
- package/web-dist/components/dialog/Dialog.js +7 -18
- package/web-dist/components/divider/Divider.dependency-0.d.ts +1 -1
- package/web-dist/components/divider/Divider.js +3 -8
- package/web-dist/components/divider/Divider.types-0.d.ts +1 -1
- package/web-dist/components/empty-state/EmptyState.dependency-0.d.ts +1 -1
- package/web-dist/components/empty-state/EmptyState.dependency-2.d.ts +1 -1
- package/web-dist/components/empty-state/EmptyState.dependency-3.d.ts +1 -1
- package/web-dist/components/empty-state/EmptyState.js +13 -25
- package/web-dist/components/explorer/Explorer.dependency-0.d.ts +1 -1
- package/web-dist/components/explorer/Explorer.js +10 -16
- package/web-dist/components/field/Field.dependency-0.d.ts +1 -1
- package/web-dist/components/field/Field.dependency-1.d.ts +1 -1
- package/web-dist/components/field/Field.js +7 -15
- package/web-dist/components/file-explorer/FileExplorer.dependency-0.d.ts +1 -1
- package/web-dist/components/file-explorer/FileExplorer.js +10 -16
- package/web-dist/components/flat-list/FlatList.dependency-0.d.ts +1 -1
- package/web-dist/components/flat-list/FlatList.js +8 -17
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-0.d.ts +1 -1
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-3.d.ts +1 -1
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.dependency-4.d.ts +1 -1
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +13 -25
- package/web-dist/components/form/Form.dependency-0.d.ts +1 -1
- package/web-dist/components/form/Form.js +9 -20
- package/web-dist/components/form-actions/FormActions.dependency-0.d.ts +1 -1
- package/web-dist/components/form-actions/FormActions.js +9 -20
- package/web-dist/components/form-error/FormError.dependency-0.d.ts +1 -1
- package/web-dist/components/form-error/FormError.js +9 -20
- package/web-dist/components/game/Game.dependency-0.d.ts +1 -1
- package/web-dist/components/game/Game.js +4 -10
- package/web-dist/components/game-entity/GameEntity.dependency-0.d.ts +1 -1
- package/web-dist/components/game-entity/GameEntity.js +4 -10
- package/web-dist/components/game-field/GameField.dependency-0.d.ts +1 -1
- package/web-dist/components/game-field/GameField.js +4 -10
- package/web-dist/components/game-input-zone/GameInputZone.dependency-0.d.ts +1 -1
- package/web-dist/components/game-input-zone/GameInputZone.js +4 -10
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.dependency-0.d.ts +1 -1
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +4 -10
- package/web-dist/components/game-overlay/GameOverlay.dependency-0.d.ts +1 -1
- package/web-dist/components/game-overlay/GameOverlay.js +4 -10
- package/web-dist/components/gradient/Gradient.dependency-0.d.ts +1 -1
- package/web-dist/components/gradient/Gradient.dependency-2.d.ts +1 -1
- package/web-dist/components/gradient/Gradient.js +4 -9
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +4 -9
- package/web-dist/components/graph-view/GraphView.js +3 -5
- package/web-dist/components/grid/Grid.dependency-0.d.ts +1 -1
- package/web-dist/components/grid/Grid.js +3 -8
- package/web-dist/components/grid/Grid.types-0.d.ts +1 -1
- package/web-dist/components/grid-interactions/GridInteractions.dependency-0.d.ts +1 -1
- package/web-dist/components/grid-interactions/GridInteractions.js +2 -8
- package/web-dist/components/grid-line-overlay/GridLineOverlay.dependency-0.d.ts +1 -1
- package/web-dist/components/grid-line-overlay/GridLineOverlay.js +4 -6
- package/web-dist/components/grid-ruler/GridRuler.dependency-0.d.ts +1 -1
- package/web-dist/components/grid-ruler/GridRuler.js +4 -6
- package/web-dist/components/grid-view/GridView.dependency-0.d.ts +1 -1
- package/web-dist/components/grid-view/GridView.js +1 -2
- package/web-dist/components/heading/Heading.dependency-0.d.ts +1 -1
- package/web-dist/components/heading/Heading.dependency-2.d.ts +1 -1
- package/web-dist/components/heading/Heading.js +5 -8
- package/web-dist/components/heading/Heading.types-0.d.ts +1 -1
- package/web-dist/components/hero/Hero.dependency-0.d.ts +1 -1
- package/web-dist/components/hero/Hero.dependency-2.d.ts +1 -1
- package/web-dist/components/hero/Hero.dependency-3.d.ts +1 -1
- package/web-dist/components/hero/Hero.js +20 -32
- package/web-dist/components/icon/Icon.dependency-0.d.ts +1 -1
- package/web-dist/components/icon/Icon.js +3 -7
- package/web-dist/components/icon/Icon.types-0.d.ts +1 -1
- package/web-dist/components/icon-button/IconButton.dependency-0.d.ts +1 -1
- package/web-dist/components/icon-button/IconButton.dependency-2.d.ts +1 -1
- package/web-dist/components/icon-button/IconButton.dependency-3.d.ts +1 -1
- package/web-dist/components/icon-button/IconButton.dependency-4.d.ts +1 -1
- package/web-dist/components/icon-button/IconButton.js +6 -16
- package/web-dist/components/icon-button/IconButton.types-0.d.ts +1 -1
- package/web-dist/components/image/Image.dependency-0.d.ts +1 -1
- package/web-dist/components/image/Image.js +6 -12
- package/web-dist/components/image/Image.types-0.d.ts +1 -1
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.dependency-0.d.ts +1 -1
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +3 -5
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.types-0.d.ts +1 -1
- package/web-dist/components/link/Link.dependency-0.d.ts +1 -1
- package/web-dist/components/link/Link.dependency-3.d.ts +1 -1
- package/web-dist/components/link/Link.js +9 -12
- package/web-dist/components/link/Link.types-0.d.ts +1 -1
- package/web-dist/components/list/List.dependency-0.d.ts +1 -1
- package/web-dist/components/list/List.js +8 -17
- package/web-dist/components/list/List.types-0.d.ts +1 -1
- package/web-dist/components/list-item/ListItem.dependency-0.d.ts +1 -1
- package/web-dist/components/list-item/ListItem.js +8 -17
- package/web-dist/components/list-item/ListItem.types-0.d.ts +1 -1
- package/web-dist/components/list-section/ListSection.dependency-0.d.ts +1 -1
- package/web-dist/components/list-section/ListSection.js +8 -17
- package/web-dist/components/list-section/ListSection.types-0.d.ts +1 -1
- package/web-dist/components/master-detail/MasterDetail.dependency-0.d.ts +1 -1
- package/web-dist/components/master-detail/MasterDetail.js +4 -17
- package/web-dist/components/matrix-grid/MatrixGrid.dependency-0.d.ts +1 -1
- package/web-dist/components/matrix-grid/MatrixGrid.js +14 -23
- package/web-dist/components/media-card/MediaCard.dependency-0.d.ts +1 -1
- package/web-dist/components/media-card/MediaCard.js +12 -24
- package/web-dist/components/media-explorer/MediaExplorer.dependency-0.d.ts +1 -1
- package/web-dist/components/media-explorer/MediaExplorer.js +10 -16
- package/web-dist/components/message-bubble/MessageBubble.dependency-1.d.ts +1 -1
- package/web-dist/components/message-bubble/MessageBubble.dependency-3.d.ts +1 -1
- package/web-dist/components/message-bubble/MessageBubble.js +10 -19
- package/web-dist/components/metric-card/MetricCard.dependency-0.d.ts +1 -1
- package/web-dist/components/metric-card/MetricCard.dependency-3.d.ts +1 -1
- package/web-dist/components/metric-card/MetricCard.js +12 -24
- package/web-dist/components/metric-card/MetricCard.types-0.d.ts +1 -1
- package/web-dist/components/missing-element/MissingElement.dependency-0.d.ts +1 -1
- package/web-dist/components/missing-element/MissingElement.js +15 -27
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-0.d.ts +1 -1
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-2.d.ts +1 -1
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-3.d.ts +1 -1
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.dependency-4.d.ts +1 -1
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +13 -25
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.types-0.d.ts +1 -1
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-0.d.ts +1 -1
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-2.d.ts +1 -1
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-3.d.ts +1 -1
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.dependency-4.d.ts +1 -1
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +13 -25
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.types-0.d.ts +1 -1
- package/web-dist/components/opening-book/OpeningBook.dependency-0.d.ts +1 -1
- package/web-dist/components/opening-book/OpeningBook.js +5 -7
- package/web-dist/components/otp-form/OtpForm.dependency-0.d.ts +1 -1
- package/web-dist/components/otp-form/OtpForm.dependency-3.d.ts +1 -1
- package/web-dist/components/otp-form/OtpForm.dependency-4.d.ts +1 -1
- package/web-dist/components/otp-form/OtpForm.js +13 -25
- package/web-dist/components/pagination/Pagination.dependency-0.d.ts +1 -1
- package/web-dist/components/pagination/Pagination.js +16 -26
- package/web-dist/components/palette-item/PaletteItem.dependency-0.d.ts +1 -1
- package/web-dist/components/palette-item/PaletteItem.js +17 -29
- package/web-dist/components/palette-item/PaletteItem.types-0.d.ts +1 -1
- package/web-dist/components/playing-card/PlayingCard.dependency-0.d.ts +1 -1
- package/web-dist/components/playing-card/PlayingCard.js +5 -6
- package/web-dist/components/poker-training-table/PokerTrainingTable.dependency-0.d.ts +1 -1
- package/web-dist/components/poker-training-table/PokerTrainingTable.js +5 -6
- package/web-dist/components/popover/Popover.dependency-0.d.ts +1 -1
- package/web-dist/components/popover/Popover.js +4 -10
- package/web-dist/components/popover/Popover.types-0.d.ts +1 -1
- package/web-dist/components/popover-menu/PopoverMenu.dependency-0.d.ts +1 -1
- package/web-dist/components/popover-menu/PopoverMenu.js +6 -21
- package/web-dist/components/popover-menu/PopoverMenu.types-0.d.ts +1 -1
- package/web-dist/components/post-card/PostCard.dependency-1.d.ts +1 -1
- package/web-dist/components/post-card/PostCard.dependency-4.d.ts +1 -1
- package/web-dist/components/post-card/PostCard.js +12 -24
- package/web-dist/components/post-card/PostCard.types-0.d.ts +1 -1
- package/web-dist/components/product-card/ProductCard.dependency-0.d.ts +1 -1
- package/web-dist/components/product-card/ProductCard.js +12 -24
- package/web-dist/components/progress/Progress.dependency-0.d.ts +1 -1
- package/web-dist/components/progress/Progress.dependency-2.d.ts +1 -1
- package/web-dist/components/progress/Progress.dependency-3.d.ts +1 -1
- package/web-dist/components/progress/Progress.js +7 -12
- package/web-dist/components/progress-ring/ProgressRing.dependency-0.d.ts +1 -1
- package/web-dist/components/progress-ring/ProgressRing.dependency-2.d.ts +1 -1
- package/web-dist/components/progress-ring/ProgressRing.js +7 -12
- package/web-dist/components/radio/Radio.dependency-0.d.ts +1 -1
- package/web-dist/components/radio/Radio.js +8 -19
- package/web-dist/components/radio/Radio.types-0.d.ts +1 -1
- package/web-dist/components/radio-group/RadioGroup.dependency-0.d.ts +1 -1
- package/web-dist/components/radio-group/RadioGroup.dependency-2.d.ts +1 -1
- package/web-dist/components/radio-group/RadioGroup.js +8 -19
- package/web-dist/components/radio-group/RadioGroup.types-0.d.ts +1 -1
- package/web-dist/components/rating/Rating.dependency-0.d.ts +1 -1
- package/web-dist/components/rating/Rating.dependency-2.d.ts +1 -1
- package/web-dist/components/rating/Rating.dependency-3.d.ts +1 -1
- package/web-dist/components/rating/Rating.js +7 -13
- package/web-dist/components/reader/Reader.dependency-0.d.ts +1 -1
- package/web-dist/components/reader/Reader.js +25 -45
- package/web-dist/components/rich-text/RichText.dependency-0.d.ts +1 -1
- package/web-dist/components/rich-text/RichText.js +5 -6
- package/web-dist/components/scan-overlay/ScanOverlay.dependency-0.d.ts +1 -1
- package/web-dist/components/scan-overlay/ScanOverlay.js +13 -25
- package/web-dist/components/screen/Screen.dependency-0.d.ts +1 -1
- package/web-dist/components/screen/Screen.js +3 -8
- package/web-dist/components/screen-section/ScreenSection.dependency-0.d.ts +1 -1
- package/web-dist/components/screen-section/ScreenSection.js +7 -12
- package/web-dist/components/scroll-view/ScrollView.dependency-0.d.ts +1 -1
- package/web-dist/components/scroll-view/ScrollView.js +3 -8
- package/web-dist/components/scroll-view/ScrollView.types-0.d.ts +1 -1
- package/web-dist/components/search-input/SearchInput.dependency-0.d.ts +1 -1
- package/web-dist/components/search-input/SearchInput.dependency-2.d.ts +1 -1
- package/web-dist/components/search-input/SearchInput.js +8 -18
- package/web-dist/components/section-header/SectionHeader.dependency-0.d.ts +1 -1
- package/web-dist/components/section-header/SectionHeader.js +7 -12
- package/web-dist/components/section-list/SectionList.dependency-0.d.ts +1 -1
- package/web-dist/components/section-list/SectionList.js +8 -17
- package/web-dist/components/select/Select.dependency-0.d.ts +1 -1
- package/web-dist/components/select/Select.dependency-2.d.ts +1 -1
- package/web-dist/components/select/Select.js +13 -28
- package/web-dist/components/select/Select.types-0.d.ts +1 -1
- package/web-dist/components/selectable-item/SelectableItem.dependency-0.d.ts +1 -1
- package/web-dist/components/selectable-item/SelectableItem.js +3 -5
- package/web-dist/components/selectable-item/SelectableItem.types-0.d.ts +1 -1
- package/web-dist/components/selection-provider/SelectionProvider.js +3 -5
- package/web-dist/components/selection-provider/SelectionProvider.types-0.d.ts +1 -1
- package/web-dist/components/sign-in-form/SignInForm.dependency-0.d.ts +1 -1
- package/web-dist/components/sign-in-form/SignInForm.dependency-3.d.ts +1 -1
- package/web-dist/components/sign-in-form/SignInForm.dependency-4.d.ts +1 -1
- package/web-dist/components/sign-in-form/SignInForm.js +13 -25
- package/web-dist/components/sign-up-form/SignUpForm.dependency-0.d.ts +1 -1
- package/web-dist/components/sign-up-form/SignUpForm.dependency-3.d.ts +1 -1
- package/web-dist/components/sign-up-form/SignUpForm.dependency-4.d.ts +1 -1
- package/web-dist/components/sign-up-form/SignUpForm.js +13 -25
- package/web-dist/components/skeleton/Skeleton.dependency-0.d.ts +1 -1
- package/web-dist/components/skeleton/Skeleton.dependency-2.d.ts +1 -1
- package/web-dist/components/skeleton/Skeleton.js +15 -27
- package/web-dist/components/skeleton-card/SkeletonCard.dependency-0.d.ts +1 -1
- package/web-dist/components/skeleton-card/SkeletonCard.js +15 -27
- package/web-dist/components/skeleton-list/SkeletonList.dependency-0.d.ts +1 -1
- package/web-dist/components/skeleton-list/SkeletonList.js +15 -27
- package/web-dist/components/skeleton-text/SkeletonText.dependency-0.d.ts +1 -1
- package/web-dist/components/skeleton-text/SkeletonText.dependency-2.d.ts +1 -1
- package/web-dist/components/skeleton-text/SkeletonText.js +15 -27
- package/web-dist/components/spatial-grid/SpatialGrid.dependency-0.d.ts +1 -1
- package/web-dist/components/spatial-grid/SpatialGrid.js +4 -10
- package/web-dist/components/surface/Surface.dependency-0.d.ts +1 -1
- package/web-dist/components/surface/Surface.js +3 -10
- package/web-dist/components/surface/Surface.types-0.d.ts +1 -1
- package/web-dist/components/switch/Switch.dependency-0.d.ts +1 -1
- package/web-dist/components/switch/Switch.js +7 -121
- package/web-dist/components/switch/Switch.types-0.d.ts +1 -1
- package/web-dist/components/tab/Tab.dependency-0.d.ts +1 -1
- package/web-dist/components/tab/Tab.js +3 -12
- package/web-dist/components/tab/Tab.types-0.d.ts +1 -1
- package/web-dist/components/tab-list/TabList.dependency-0.d.ts +1 -1
- package/web-dist/components/tab-list/TabList.js +3 -12
- package/web-dist/components/tab-list/TabList.types-0.d.ts +1 -1
- package/web-dist/components/tab-panel/TabPanel.dependency-0.d.ts +1 -1
- package/web-dist/components/tab-panel/TabPanel.js +3 -12
- package/web-dist/components/tab-panel/TabPanel.types-0.d.ts +1 -1
- package/web-dist/components/tabletop-table/TabletopTable.dependency-0.d.ts +1 -1
- package/web-dist/components/tabletop-table/TabletopTable.js +5 -6
- package/web-dist/components/tabs/Tabs.dependency-0.d.ts +1 -1
- package/web-dist/components/tabs/Tabs.js +3 -12
- package/web-dist/components/tabs/Tabs.types-0.d.ts +1 -1
- package/web-dist/components/text/Text.dependency-0.d.ts +1 -1
- package/web-dist/components/text/Text.dependency-2.d.ts +1 -1
- package/web-dist/components/text/Text.js +7 -10
- package/web-dist/components/text/Text.types-0.d.ts +1 -1
- package/web-dist/components/text-input/TextInput.dependency-0.d.ts +1 -1
- package/web-dist/components/text-input/TextInput.dependency-2.d.ts +1 -1
- package/web-dist/components/text-input/TextInput.js +9 -19
- package/web-dist/components/text-input/TextInput.types-0.d.ts +1 -1
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-0.d.ts +1 -1
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-2.d.ts +1 -1
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-3.d.ts +1 -1
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-4.d.ts +1 -1
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.dependency-5.d.ts +1 -1
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +8 -18
- package/web-dist/components/tile-grid/TileGrid.dependency-0.d.ts +1 -1
- package/web-dist/components/tile-grid/TileGrid.js +1 -2
- package/web-dist/components/time-grid/TimeGrid.dependency-0.d.ts +1 -1
- package/web-dist/components/time-grid/TimeGrid.js +6 -12
- package/web-dist/components/time-picker/TimePicker.dependency-0.d.ts +1 -1
- package/web-dist/components/time-picker/TimePicker.js +18 -39
- package/web-dist/components/timeline/Timeline.dependency-0.d.ts +1 -1
- package/web-dist/components/timeline/Timeline.dependency-2.d.ts +1 -1
- package/web-dist/components/timeline/Timeline.dependency-4.d.ts +1 -1
- package/web-dist/components/timeline/Timeline.js +15 -21
- package/web-dist/components/timeline/Timeline.types-0.d.ts +1 -1
- package/web-dist/components/toast/Toast.dependency-0.d.ts +1 -1
- package/web-dist/components/toast/Toast.js +3 -14
- package/web-dist/components/toast/Toast.types-0.d.ts +1 -1
- package/web-dist/components/toast-provider/ToastProvider.js +3 -14
- package/web-dist/components/toast-provider/ToastProvider.types-0.d.ts +1 -1
- package/web-dist/components/toolbar/Toolbar.dependency-0.d.ts +1 -1
- package/web-dist/components/toolbar/Toolbar.js +13 -25
- package/web-dist/components/tree-item/TreeItem.dependency-0.d.ts +1 -1
- package/web-dist/components/tree-item/TreeItem.js +16 -32
- package/web-dist/components/tree-item/TreeItem.types-0.d.ts +1 -1
- package/web-dist/components/tree-view/TreeView.js +1 -1
- package/web-dist/components/uploader/Uploader.dependency-0.d.ts +1 -1
- package/web-dist/components/uploader/Uploader.js +28 -44
- package/web-dist/components/video/Video.dependency-0.d.ts +1 -1
- package/web-dist/components/video/Video.dependency-2.d.ts +1 -1
- package/web-dist/components/video/Video.js +11 -17
- package/web-dist/components/view/View.dependency-0.d.ts +1 -1
- package/web-dist/components/view/View.js +3 -8
- package/web-dist/components/view/View.types-0.d.ts +1 -1
- package/web-dist/components/zora-web-style-sheet/ZoraWebStyleSheet.js +3 -8
- package/web-dist/manifest.json +1104 -2714
- package/web-dist/runtime/ZoraProvider.js +19 -178
- package/web-dist/chunks/Accordion-0dj1r7w3.js +0 -13528
- package/web-dist/chunks/Accordion-224snqz3.js +0 -89
- package/web-dist/chunks/Accordion-23k6n6zk.js +0 -278
- package/web-dist/chunks/Accordion-2yat0x6x.js +0 -188
- package/web-dist/chunks/Accordion-4mg3epm9.js +0 -405
- package/web-dist/chunks/Accordion-4qrva6ye.js +0 -15
- package/web-dist/chunks/Accordion-4yrszsvs.js +0 -273
- package/web-dist/chunks/Accordion-5z75befg.js +0 -69
- package/web-dist/chunks/Accordion-61e19g3e.js +0 -1
- package/web-dist/chunks/Accordion-6a2hscrx.js +0 -50
- package/web-dist/chunks/Accordion-6zb9d92y.js +0 -87
- package/web-dist/chunks/Accordion-76b0qz8y.js +0 -41
- package/web-dist/chunks/Accordion-7nn4r909.js +0 -81
- package/web-dist/chunks/Accordion-7v6mrp8n.js +0 -311
- package/web-dist/chunks/Accordion-9b4bsxwe.js +0 -46
- package/web-dist/chunks/Accordion-9tgvr155.js +0 -9575
- package/web-dist/chunks/Accordion-a5fsrv3x.js +0 -198
- package/web-dist/chunks/Accordion-akwd4brm.js +0 -397
- package/web-dist/chunks/Accordion-c6edgxay.js +0 -1
- package/web-dist/chunks/Accordion-chdbfcm6.js +0 -93
- package/web-dist/chunks/Accordion-eqvdv7tt.js +0 -1
- package/web-dist/chunks/Accordion-fre84yaq.js +0 -12
- package/web-dist/chunks/Accordion-j1zerr6z.js +0 -389
- package/web-dist/chunks/Accordion-khfjh10v.js +0 -82
- package/web-dist/chunks/Accordion-ktscjwa2.js +0 -213
- package/web-dist/chunks/Accordion-mnac2z83.js +0 -21
- package/web-dist/chunks/Accordion-mnxf855g.js +0 -121
- package/web-dist/chunks/Accordion-mrstcjcm.js +0 -28
- package/web-dist/chunks/Accordion-mx7nkg85.js +0 -34
- package/web-dist/chunks/Accordion-pdjhezmz.js +0 -43
- package/web-dist/chunks/Accordion-q8a423pk.js +0 -379
- package/web-dist/chunks/Accordion-qjxbf8nt.js +0 -150
- package/web-dist/chunks/Accordion-sfvqf4fz.js +0 -1299
- package/web-dist/chunks/Accordion-sj30964p.js +0 -1350
- package/web-dist/chunks/Accordion-vx8bjm5k.js +0 -263
- package/web-dist/chunks/Accordion-wgc67k1g.js +0 -93
- package/web-dist/chunks/Accordion-ww4f12ty.js +0 -200
- package/web-dist/chunks/Accordion-xgpzh4wq.js +0 -18061
- package/web-dist/chunks/Accordion-xhxv2v0g.js +0 -196
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
useOverlayStackActions,
|
|
4
|
-
useOverlayEntry
|
|
5
|
-
} from "./Accordion-7nn4r909.js";
|
|
6
|
-
import {
|
|
7
|
-
useFocusManager
|
|
8
|
-
} from "./Accordion-6zb9d92y.js";
|
|
9
|
-
import {
|
|
10
|
-
require_cjs
|
|
11
|
-
} from "./Accordion-xgpzh4wq.js";
|
|
12
|
-
import {
|
|
13
|
-
__toESM
|
|
14
|
-
} from "./Accordion-nh0cs9hq.js";
|
|
15
|
-
|
|
16
|
-
// node_modules/@ankhorage/surface/src/internal/focus/FocusScope.tsx
|
|
17
|
-
var import_react_native = __toESM(require_cjs(), 1);
|
|
18
|
-
import React from "react";
|
|
19
|
-
import { jsx } from "react/jsx-runtime";
|
|
20
|
-
function FocusScope({ active, children, onEscape, testID }) {
|
|
21
|
-
const containerRef = React.useRef(null);
|
|
22
|
-
const overlay = useOverlayEntry();
|
|
23
|
-
const overlayActions = useOverlayStackActions();
|
|
24
|
-
const { bindKeydown, capturePreviousFocus, cycleFocus, focusFirst, restorePreviousFocus } = useFocusManager();
|
|
25
|
-
React.useEffect(() => {
|
|
26
|
-
if (!active) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
capturePreviousFocus();
|
|
30
|
-
const timeoutId = setTimeout(() => {
|
|
31
|
-
focusFirst(containerRef.current);
|
|
32
|
-
}, 0);
|
|
33
|
-
const unbind = bindKeydown((event) => {
|
|
34
|
-
if (event.key === "Tab") {
|
|
35
|
-
event.preventDefault();
|
|
36
|
-
cycleFocus(containerRef.current, Boolean(event.shiftKey));
|
|
37
|
-
}
|
|
38
|
-
if (event.key === "Escape") {
|
|
39
|
-
if (overlay === null || overlayActions === null || overlayActions.isTopmost(overlay.id))
|
|
40
|
-
onEscape?.();
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
return () => {
|
|
44
|
-
clearTimeout(timeoutId);
|
|
45
|
-
unbind();
|
|
46
|
-
restorePreviousFocus();
|
|
47
|
-
};
|
|
48
|
-
}, [
|
|
49
|
-
active,
|
|
50
|
-
bindKeydown,
|
|
51
|
-
capturePreviousFocus,
|
|
52
|
-
cycleFocus,
|
|
53
|
-
focusFirst,
|
|
54
|
-
onEscape,
|
|
55
|
-
overlay,
|
|
56
|
-
overlayActions,
|
|
57
|
-
restorePreviousFocus
|
|
58
|
-
]);
|
|
59
|
-
return /* @__PURE__ */ jsx(import_react_native.View, {
|
|
60
|
-
collapsable: false,
|
|
61
|
-
ref: containerRef,
|
|
62
|
-
testID,
|
|
63
|
-
style: styles.fill,
|
|
64
|
-
children
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
var styles = { fill: { flex: 1 } };
|
|
68
|
-
|
|
69
|
-
export { FocusScope };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
// node_modules/@ankhorage/surface/src/internal/resolvers/resolveSurfaceColor.ts
|
|
3
|
-
function resolveSurfaceColor(theme, color = "primary") {
|
|
4
|
-
switch (color) {
|
|
5
|
-
case "secondary":
|
|
6
|
-
return theme.semantics.secondary;
|
|
7
|
-
case "tertiary":
|
|
8
|
-
return theme.semantics.accent;
|
|
9
|
-
case "quaternary":
|
|
10
|
-
return theme.semantics.highlight;
|
|
11
|
-
case "neutral":
|
|
12
|
-
return theme.semantics.action.neutral;
|
|
13
|
-
case "error":
|
|
14
|
-
return theme.semantics.error;
|
|
15
|
-
case "info":
|
|
16
|
-
return theme.semantics.info;
|
|
17
|
-
case "danger":
|
|
18
|
-
return theme.semantics.action.danger;
|
|
19
|
-
case "success":
|
|
20
|
-
return theme.semantics.success;
|
|
21
|
-
case "warning":
|
|
22
|
-
return theme.semantics.warning;
|
|
23
|
-
case "primary":
|
|
24
|
-
default:
|
|
25
|
-
return theme.semantics.action.primary;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// node_modules/@ankhorage/surface/src/internal/resolvers/resolveTextColor.ts
|
|
30
|
-
function resolveTextColor(theme, emphasis = "default", color) {
|
|
31
|
-
if (color) {
|
|
32
|
-
if (emphasis === "inverse") {
|
|
33
|
-
return resolveSurfaceColor(theme, color).onSolidText;
|
|
34
|
-
}
|
|
35
|
-
const role = resolveSurfaceColor(theme, color);
|
|
36
|
-
return theme.inverted ? role.onSurfaceText : role.base;
|
|
37
|
-
}
|
|
38
|
-
switch (emphasis) {
|
|
39
|
-
case "muted":
|
|
40
|
-
return theme.semantics.content.muted;
|
|
41
|
-
case "subtle":
|
|
42
|
-
return theme.semantics.content.subtle;
|
|
43
|
-
case "inverse":
|
|
44
|
-
return theme.semantics.content.inverse;
|
|
45
|
-
default:
|
|
46
|
-
return theme.semantics.content.default;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export { resolveSurfaceColor, resolveTextColor };
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
// node_modules/@ankhorage/surface/src/internal/focus/useFocusManager.ts
|
|
3
|
-
import React from "react";
|
|
4
|
-
var FOCUSABLE_SELECTOR = 'button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])';
|
|
5
|
-
function getWebDocument() {
|
|
6
|
-
const maybeDocument = globalThis.document;
|
|
7
|
-
if (!maybeDocument || typeof maybeDocument !== "object") {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
return maybeDocument;
|
|
11
|
-
}
|
|
12
|
-
function isFocusableTarget(target) {
|
|
13
|
-
if (target.disabled || target.hidden) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
if (typeof target.tabIndex === "number" && target.tabIndex < 0) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
const ariaHidden = target.getAttribute?.("aria-hidden");
|
|
20
|
-
if (ariaHidden === "true") {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
const tabIndexAttribute = target.getAttribute?.("tabindex");
|
|
24
|
-
if (tabIndexAttribute === "-1") {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function getFocusableElements(container) {
|
|
30
|
-
if (!container || typeof container !== "object") {
|
|
31
|
-
return [];
|
|
32
|
-
}
|
|
33
|
-
const focusContainer = container;
|
|
34
|
-
if (typeof focusContainer.querySelectorAll !== "function") {
|
|
35
|
-
return [];
|
|
36
|
-
}
|
|
37
|
-
return Array.from(focusContainer.querySelectorAll(FOCUSABLE_SELECTOR)).filter(isFocusableTarget);
|
|
38
|
-
}
|
|
39
|
-
function useFocusManager() {
|
|
40
|
-
const previousFocusRef = React.useRef(null);
|
|
41
|
-
const capturePreviousFocus = React.useCallback(() => {
|
|
42
|
-
const documentRef = getWebDocument();
|
|
43
|
-
const activeElement = documentRef?.activeElement;
|
|
44
|
-
previousFocusRef.current = activeElement && typeof activeElement === "object" && "focus" in activeElement ? activeElement : null;
|
|
45
|
-
}, []);
|
|
46
|
-
const focusFirst = React.useCallback((container) => {
|
|
47
|
-
const [firstFocusable] = getFocusableElements(container);
|
|
48
|
-
firstFocusable?.focus();
|
|
49
|
-
}, []);
|
|
50
|
-
const restorePreviousFocus = React.useCallback(() => {
|
|
51
|
-
previousFocusRef.current?.focus();
|
|
52
|
-
}, []);
|
|
53
|
-
const cycleFocus = React.useCallback((container, reverse = false) => {
|
|
54
|
-
const focusableElements = getFocusableElements(container);
|
|
55
|
-
if (focusableElements.length === 0) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const documentRef = getWebDocument();
|
|
59
|
-
const activeElement = documentRef?.activeElement;
|
|
60
|
-
const currentIndex = focusableElements.findIndex((element) => element === activeElement);
|
|
61
|
-
if (currentIndex === -1) {
|
|
62
|
-
(reverse ? focusableElements[focusableElements.length - 1] : focusableElements[0])?.focus();
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const nextIndex = reverse ? (currentIndex - 1 + focusableElements.length) % focusableElements.length : (currentIndex + 1) % focusableElements.length;
|
|
66
|
-
focusableElements[nextIndex]?.focus();
|
|
67
|
-
}, []);
|
|
68
|
-
const bindKeydown = React.useCallback((listener) => {
|
|
69
|
-
const documentRef = getWebDocument();
|
|
70
|
-
if (!documentRef) {
|
|
71
|
-
return () => {};
|
|
72
|
-
}
|
|
73
|
-
documentRef.addEventListener("keydown", listener);
|
|
74
|
-
return () => {
|
|
75
|
-
documentRef.removeEventListener("keydown", listener);
|
|
76
|
-
};
|
|
77
|
-
}, []);
|
|
78
|
-
return {
|
|
79
|
-
bindKeydown,
|
|
80
|
-
capturePreviousFocus,
|
|
81
|
-
cycleFocus,
|
|
82
|
-
focusFirst,
|
|
83
|
-
restorePreviousFocus
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export { useFocusManager };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
// node_modules/@ankhorage/surface/src/features/font/adapters/inbound/useFontRuntime.ts
|
|
3
|
-
import { use } from "react";
|
|
4
|
-
|
|
5
|
-
// node_modules/@ankhorage/surface/src/features/font/adapters/inbound/FontRuntimeContext.tsx
|
|
6
|
-
import { createContext } from "react";
|
|
7
|
-
var fallbackRuntime = {
|
|
8
|
-
fontsLoaded: true,
|
|
9
|
-
activeFontId: null,
|
|
10
|
-
setActiveFontId: () => {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
var FontRuntimeContext = createContext(fallbackRuntime);
|
|
15
|
-
|
|
16
|
-
// node_modules/@ankhorage/surface/src/features/font/adapters/inbound/useFontRuntime.ts
|
|
17
|
-
function useFontRuntime() {
|
|
18
|
-
return use(FontRuntimeContext);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// src/features/theme/composition/ZoraThemeRuntimeContext.tsx
|
|
22
|
-
import { createContext as createContext2, use as use2 } from "react";
|
|
23
|
-
|
|
24
|
-
// src/features/theme/zoraDefaultTheme.ts
|
|
25
|
-
var zoraDefaultTheme = {
|
|
26
|
-
id: "zora",
|
|
27
|
-
name: "ZORA",
|
|
28
|
-
appCategory: "developer_tools",
|
|
29
|
-
primaryColor: "#0f766e",
|
|
30
|
-
harmony: "analogous"
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// src/features/theme/composition/ZoraThemeRuntimeContext.tsx
|
|
34
|
-
var ZoraThemeRuntimeContext = createContext2({
|
|
35
|
-
themeId: zoraDefaultTheme.id
|
|
36
|
-
});
|
|
37
|
-
function useZoraThemeRuntime() {
|
|
38
|
-
return use2(ZoraThemeRuntimeContext);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { useFontRuntime, zoraDefaultTheme, ZoraThemeRuntimeContext, useZoraThemeRuntime };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
resolveOverlayZIndex
|
|
4
|
-
} from "./Accordion-4qrva6ye.js";
|
|
5
|
-
|
|
6
|
-
// node_modules/@ankhorage/surface/src/internal/overlay/useOverlayStack.ts
|
|
7
|
-
import React from "react";
|
|
8
|
-
function sortOverlayEntries(entries) {
|
|
9
|
-
const perLayerCounts = {};
|
|
10
|
-
const normalizedEntries = [...entries].sort((left, right) => left.order - right.order).map((entry) => {
|
|
11
|
-
const stackIndex = perLayerCounts[entry.layer] ?? 0;
|
|
12
|
-
perLayerCounts[entry.layer] = stackIndex + 1;
|
|
13
|
-
return {
|
|
14
|
-
...entry,
|
|
15
|
-
zIndex: resolveOverlayZIndex(entry.layer, stackIndex)
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
return normalizedEntries.sort((left, right) => left.zIndex === right.zIndex ? left.order - right.order : left.zIndex - right.zIndex);
|
|
19
|
-
}
|
|
20
|
-
var OverlayStackContext = React.createContext(null);
|
|
21
|
-
var OverlayStackActionsContext = React.createContext(null);
|
|
22
|
-
var OverlayEntryContext = React.createContext(null);
|
|
23
|
-
function useOverlayStackActions() {
|
|
24
|
-
return React.use(OverlayStackActionsContext);
|
|
25
|
-
}
|
|
26
|
-
function useOverlayEntry() {
|
|
27
|
-
return React.use(OverlayEntryContext);
|
|
28
|
-
}
|
|
29
|
-
function createOverlayEntry(id, order, descriptor) {
|
|
30
|
-
return {
|
|
31
|
-
id,
|
|
32
|
-
layer: descriptor.layer,
|
|
33
|
-
node: descriptor.node,
|
|
34
|
-
order,
|
|
35
|
-
zIndex: resolveOverlayZIndex(descriptor.layer, 0),
|
|
36
|
-
...descriptor.parentId === undefined ? {} : { parentId: descriptor.parentId },
|
|
37
|
-
...descriptor.onDismiss === undefined ? {} : { onDismiss: descriptor.onDismiss }
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// node_modules/@ankhorage/surface/src/internal/overlay/Portal.tsx
|
|
42
|
-
import React2 from "react";
|
|
43
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
44
|
-
var portalCounter = 0;
|
|
45
|
-
function Portal({ children, layer = "modal", onDismiss, visible = true }) {
|
|
46
|
-
const overlayActions = useOverlayStackActions();
|
|
47
|
-
const parentId = useOverlayEntry()?.id;
|
|
48
|
-
const idRef = React2.useRef(`surface-portal-${portalCounter++}`);
|
|
49
|
-
React2.useEffect(() => {
|
|
50
|
-
if (!overlayActions || !visible) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
const id = idRef.current;
|
|
54
|
-
return () => {
|
|
55
|
-
overlayActions.removeOverlay(id);
|
|
56
|
-
};
|
|
57
|
-
}, [overlayActions, visible]);
|
|
58
|
-
React2.useEffect(() => {
|
|
59
|
-
if (!overlayActions || !visible) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (children === undefined || children === null) {
|
|
63
|
-
overlayActions.removeOverlay(idRef.current);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
overlayActions.setOverlay(idRef.current, {
|
|
67
|
-
layer,
|
|
68
|
-
node: children,
|
|
69
|
-
onDismiss,
|
|
70
|
-
...parentId === undefined ? {} : { parentId }
|
|
71
|
-
});
|
|
72
|
-
}, [children, layer, onDismiss, overlayActions, parentId, visible]);
|
|
73
|
-
if (!overlayActions) {
|
|
74
|
-
return visible ? /* @__PURE__ */ jsx(Fragment, {
|
|
75
|
-
children
|
|
76
|
-
}) : null;
|
|
77
|
-
}
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export { sortOverlayEntries, OverlayStackContext, OverlayStackActionsContext, OverlayEntryContext, useOverlayStackActions, useOverlayEntry, createOverlayEntry, Portal };
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
useFocusManager
|
|
4
|
-
} from "./Accordion-6zb9d92y.js";
|
|
5
|
-
import {
|
|
6
|
-
FocusScope
|
|
7
|
-
} from "./Accordion-5z75befg.js";
|
|
8
|
-
import {
|
|
9
|
-
View3
|
|
10
|
-
} from "./Accordion-ww4f12ty.js";
|
|
11
|
-
import {
|
|
12
|
-
useTheme
|
|
13
|
-
} from "./Accordion-9d38cgqj.js";
|
|
14
|
-
import {
|
|
15
|
-
Popover2
|
|
16
|
-
} from "./Accordion-2yat0x6x.js";
|
|
17
|
-
import {
|
|
18
|
-
Surface3
|
|
19
|
-
} from "./Accordion-pdjhezmz.js";
|
|
20
|
-
import {
|
|
21
|
-
Text2
|
|
22
|
-
} from "./Accordion-9b4bsxwe.js";
|
|
23
|
-
import {
|
|
24
|
-
withZoraThemeScope
|
|
25
|
-
} from "./Accordion-tk8zf9ff.js";
|
|
26
|
-
import {
|
|
27
|
-
Icon2
|
|
28
|
-
} from "./Accordion-3zzzw7a8.js";
|
|
29
|
-
import {
|
|
30
|
-
View2
|
|
31
|
-
} from "./Accordion-4mg3epm9.js";
|
|
32
|
-
import {
|
|
33
|
-
resolveIconSize
|
|
34
|
-
} from "./Accordion-961ncx4e.js";
|
|
35
|
-
import {
|
|
36
|
-
useZoraTheme2
|
|
37
|
-
} from "./Accordion-b1y5mjac.js";
|
|
38
|
-
import {
|
|
39
|
-
require_cjs
|
|
40
|
-
} from "./Accordion-xgpzh4wq.js";
|
|
41
|
-
import {
|
|
42
|
-
__toESM
|
|
43
|
-
} from "./Accordion-nh0cs9hq.js";
|
|
44
|
-
|
|
45
|
-
// node_modules/@ankhorage/surface/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx
|
|
46
|
-
var import_react_native = __toESM(require_cjs(), 1);
|
|
47
|
-
import React2 from "react";
|
|
48
|
-
// node_modules/@ankhorage/surface/src/features/popover-menu/composition/usePopoverMenuController.ts
|
|
49
|
-
import React from "react";
|
|
50
|
-
function usePopoverMenuController({
|
|
51
|
-
actions,
|
|
52
|
-
closeOnSelect,
|
|
53
|
-
dismiss,
|
|
54
|
-
passive
|
|
55
|
-
}) {
|
|
56
|
-
const [open, setOpen] = React.useState(false);
|
|
57
|
-
const [activeIndex, setActiveIndex] = React.useState(0);
|
|
58
|
-
const handleOpenChange = React.useCallback((nextOpen) => {
|
|
59
|
-
if (nextOpen)
|
|
60
|
-
setActiveIndex(resolveInitialIndex(actions));
|
|
61
|
-
if (open && !nextOpen)
|
|
62
|
-
dismiss?.();
|
|
63
|
-
setOpen(nextOpen);
|
|
64
|
-
}, [actions, dismiss, open]);
|
|
65
|
-
const close = React.useCallback(() => handleOpenChange(false), [handleOpenChange]);
|
|
66
|
-
const activateAction = React.useCallback((action) => {
|
|
67
|
-
if (action.disabled || passive)
|
|
68
|
-
return;
|
|
69
|
-
action.activate?.();
|
|
70
|
-
if (closeOnSelect)
|
|
71
|
-
close();
|
|
72
|
-
}, [close, closeOnSelect, passive]);
|
|
73
|
-
return {
|
|
74
|
-
activeIndex,
|
|
75
|
-
activateAction,
|
|
76
|
-
close,
|
|
77
|
-
handleOpenChange,
|
|
78
|
-
open,
|
|
79
|
-
setActiveIndex
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function resolveInitialIndex(actions) {
|
|
83
|
-
const index = actions.findIndex((action) => !action.disabled);
|
|
84
|
-
return index === -1 ? 0 : index;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// node_modules/@ankhorage/surface/src/features/popover-menu/utils/resolveNextMenuIndex.ts
|
|
88
|
-
function resolveNextMenuIndex(items, currentIndex, key) {
|
|
89
|
-
const enabledIndexes = items.flatMap((item, index) => item.disabled ? [] : [index]);
|
|
90
|
-
if (enabledIndexes.length === 0)
|
|
91
|
-
return -1;
|
|
92
|
-
if (key === "Home")
|
|
93
|
-
return enabledIndexes.at(0) ?? -1;
|
|
94
|
-
if (key === "End")
|
|
95
|
-
return enabledIndexes.at(-1) ?? -1;
|
|
96
|
-
const activeEnabledIndex = enabledIndexes.indexOf(currentIndex);
|
|
97
|
-
const nextEnabledIndex = activeEnabledIndex === -1 ? 0 : key === "ArrowUp" ? (activeEnabledIndex - 1 + enabledIndexes.length) % enabledIndexes.length : (activeEnabledIndex + 1) % enabledIndexes.length;
|
|
98
|
-
return enabledIndexes.at(nextEnabledIndex) ?? -1;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// node_modules/@ankhorage/surface/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx
|
|
102
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
103
|
-
function PopoverMenu({
|
|
104
|
-
trigger,
|
|
105
|
-
actions,
|
|
106
|
-
dismiss,
|
|
107
|
-
closeOnSelect = true,
|
|
108
|
-
interactionPolicy = "enabled",
|
|
109
|
-
testID
|
|
110
|
-
}) {
|
|
111
|
-
const passive = interactionPolicy === "passive";
|
|
112
|
-
const controller = usePopoverMenuController({ actions, closeOnSelect, dismiss, passive });
|
|
113
|
-
return /* @__PURE__ */ jsx(Popover2, {
|
|
114
|
-
anchor: trigger,
|
|
115
|
-
closeOnOutsidePress: true,
|
|
116
|
-
interactionPolicy,
|
|
117
|
-
onOpenChange: controller.handleOpenChange,
|
|
118
|
-
open: controller.open,
|
|
119
|
-
placement: "bottom-start",
|
|
120
|
-
testID,
|
|
121
|
-
children: /* @__PURE__ */ jsx(PopoverMenuContent, {
|
|
122
|
-
actions,
|
|
123
|
-
activeIndex: controller.activeIndex,
|
|
124
|
-
activateAction: controller.activateAction,
|
|
125
|
-
close: controller.close,
|
|
126
|
-
passive,
|
|
127
|
-
setActiveIndex: controller.setActiveIndex,
|
|
128
|
-
testID
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
function PopoverMenuContent({
|
|
133
|
-
actions,
|
|
134
|
-
activeIndex,
|
|
135
|
-
activateAction,
|
|
136
|
-
close,
|
|
137
|
-
passive,
|
|
138
|
-
setActiveIndex,
|
|
139
|
-
testID
|
|
140
|
-
}) {
|
|
141
|
-
usePopoverMenuKeyboard({ actions, activeIndex, activateAction, close, passive, setActiveIndex });
|
|
142
|
-
return /* @__PURE__ */ jsx(FocusScope, {
|
|
143
|
-
active: true,
|
|
144
|
-
onEscape: passive ? undefined : close,
|
|
145
|
-
children: /* @__PURE__ */ jsx(Surface3, {
|
|
146
|
-
accessibilityRole: "menu",
|
|
147
|
-
p: "xs",
|
|
148
|
-
testID,
|
|
149
|
-
variant: "raised",
|
|
150
|
-
children: actions.map((action, index) => /* @__PURE__ */ jsx(PopoverMenuItem, {
|
|
151
|
-
action,
|
|
152
|
-
active: index === activeIndex,
|
|
153
|
-
activateAction,
|
|
154
|
-
passive,
|
|
155
|
-
testID
|
|
156
|
-
}, action.id))
|
|
157
|
-
})
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function usePopoverMenuKeyboard({
|
|
161
|
-
actions,
|
|
162
|
-
activeIndex,
|
|
163
|
-
activateAction,
|
|
164
|
-
close,
|
|
165
|
-
passive,
|
|
166
|
-
setActiveIndex
|
|
167
|
-
}) {
|
|
168
|
-
const { bindKeydown } = useFocusManager();
|
|
169
|
-
React2.useEffect(() => bindKeydown((event) => {
|
|
170
|
-
if (passive)
|
|
171
|
-
return;
|
|
172
|
-
const { key } = event;
|
|
173
|
-
if (key === undefined)
|
|
174
|
-
return;
|
|
175
|
-
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(key)) {
|
|
176
|
-
event.preventDefault();
|
|
177
|
-
setActiveIndex((current) => resolveNextMenuIndex(actions, current, key));
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
if (key === "Enter") {
|
|
181
|
-
event.preventDefault();
|
|
182
|
-
const action = actions.at(activeIndex);
|
|
183
|
-
if (action)
|
|
184
|
-
activateAction(action);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
if (key === "Escape") {
|
|
188
|
-
event.preventDefault();
|
|
189
|
-
close();
|
|
190
|
-
}
|
|
191
|
-
}), [actions, activeIndex, activateAction, bindKeydown, close, passive, setActiveIndex]);
|
|
192
|
-
}
|
|
193
|
-
function PopoverMenuItem({
|
|
194
|
-
action,
|
|
195
|
-
active,
|
|
196
|
-
activateAction,
|
|
197
|
-
passive,
|
|
198
|
-
testID
|
|
199
|
-
}) {
|
|
200
|
-
const { theme } = useTheme();
|
|
201
|
-
const selected = action.selected ?? active;
|
|
202
|
-
return /* @__PURE__ */ jsx(import_react_native.Pressable, {
|
|
203
|
-
accessibilityRole: "menuitem",
|
|
204
|
-
accessibilityState: { disabled: action.disabled, selected },
|
|
205
|
-
disabled: action.disabled,
|
|
206
|
-
onPress: passive ? undefined : () => activateAction(action),
|
|
207
|
-
testID: testID ? `${testID}-item-${action.id}` : undefined,
|
|
208
|
-
children: /* @__PURE__ */ jsx(View3, {
|
|
209
|
-
bg: selected ? theme.semantics.action.neutral.softBg : "transparent",
|
|
210
|
-
opacity: action.disabled ? 0.56 : 1,
|
|
211
|
-
px: "m",
|
|
212
|
-
py: "s",
|
|
213
|
-
radius: "s",
|
|
214
|
-
children: /* @__PURE__ */ jsx(PopoverMenuItemContent, {
|
|
215
|
-
action,
|
|
216
|
-
active
|
|
217
|
-
})
|
|
218
|
-
})
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
function PopoverMenuItemContent({
|
|
222
|
-
action,
|
|
223
|
-
active
|
|
224
|
-
}) {
|
|
225
|
-
const titleColor = action.intent === "danger" ? "danger" : active || action.selected ? "neutral" : undefined;
|
|
226
|
-
return /* @__PURE__ */ jsxs(View3, {
|
|
227
|
-
align: "center",
|
|
228
|
-
direction: "row",
|
|
229
|
-
gap: "s",
|
|
230
|
-
justify: "space-between",
|
|
231
|
-
wrap: "nowrap",
|
|
232
|
-
children: [
|
|
233
|
-
action.leading ? /* @__PURE__ */ jsx(View3, {
|
|
234
|
-
children: action.leading
|
|
235
|
-
}) : null,
|
|
236
|
-
/* @__PURE__ */ jsx(View3, {
|
|
237
|
-
flex: 1,
|
|
238
|
-
children: /* @__PURE__ */ jsxs(View3, {
|
|
239
|
-
gap: "xxs",
|
|
240
|
-
children: [
|
|
241
|
-
/* @__PURE__ */ jsx(Text2, {
|
|
242
|
-
color: titleColor,
|
|
243
|
-
variant: "bodySmall",
|
|
244
|
-
weight: action.selected ? "semiBold" : "medium",
|
|
245
|
-
children: action.title
|
|
246
|
-
}),
|
|
247
|
-
action.description ? /* @__PURE__ */ jsx(Text2, {
|
|
248
|
-
emphasis: "muted",
|
|
249
|
-
variant: "caption",
|
|
250
|
-
children: action.description
|
|
251
|
-
}) : null
|
|
252
|
-
]
|
|
253
|
-
})
|
|
254
|
-
}),
|
|
255
|
-
action.trailing ? /* @__PURE__ */ jsx(View3, {
|
|
256
|
-
children: action.trailing
|
|
257
|
-
}) : null
|
|
258
|
-
]
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
// src/features/popover-menu/adapters/inbound/PopoverMenu.tsx
|
|
263
|
-
import React3 from "react";
|
|
264
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
265
|
-
var PopoverMenu2 = withZoraThemeScope(PopoverMenuInner);
|
|
266
|
-
function PopoverMenuInner({
|
|
267
|
-
themeId: _themeId,
|
|
268
|
-
mode: _mode,
|
|
269
|
-
actions,
|
|
270
|
-
onDismiss,
|
|
271
|
-
...props
|
|
272
|
-
}) {
|
|
273
|
-
const { theme } = useZoraTheme2();
|
|
274
|
-
const iconColor = theme.semantics.content.muted;
|
|
275
|
-
const surfaceActions = React3.useMemo(() => actions.map((action) => toSurfaceAction(action, iconColor)), [actions, iconColor]);
|
|
276
|
-
return /* @__PURE__ */ jsx2(PopoverMenu, {
|
|
277
|
-
...props,
|
|
278
|
-
actions: surfaceActions,
|
|
279
|
-
dismiss: onDismiss
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
function toSurfaceAction(action, iconColor) {
|
|
283
|
-
return {
|
|
284
|
-
activate: action.onPress,
|
|
285
|
-
description: action.description,
|
|
286
|
-
disabled: action.disabled,
|
|
287
|
-
id: action.id,
|
|
288
|
-
intent: action.intent,
|
|
289
|
-
leading: renderActionLeading(action, iconColor),
|
|
290
|
-
selected: action.selected,
|
|
291
|
-
title: action.title,
|
|
292
|
-
trailing: renderActionTrailing(action)
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
function renderActionLeading(action, iconColor) {
|
|
296
|
-
if (action.leading !== undefined)
|
|
297
|
-
return action.leading;
|
|
298
|
-
if (action.icon === undefined)
|
|
299
|
-
return;
|
|
300
|
-
return /* @__PURE__ */ jsx2(Icon2, {
|
|
301
|
-
...action.icon,
|
|
302
|
-
color: iconColor,
|
|
303
|
-
size: resolveIconSize("s")
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
function renderActionTrailing(action) {
|
|
307
|
-
return action.trailing === undefined ? undefined : /* @__PURE__ */ jsx2(View2, {
|
|
308
|
-
children: action.trailing
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
export { PopoverMenu2 };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import {
|
|
3
|
-
useTheme
|
|
4
|
-
} from "./Accordion-9d38cgqj.js";
|
|
5
|
-
import {
|
|
6
|
-
resolveTextStyles
|
|
7
|
-
} from "./Accordion-akwd4brm.js";
|
|
8
|
-
import {
|
|
9
|
-
resolveTextColor
|
|
10
|
-
} from "./Accordion-6a2hscrx.js";
|
|
11
|
-
import {
|
|
12
|
-
require_cjs
|
|
13
|
-
} from "./Accordion-xgpzh4wq.js";
|
|
14
|
-
import {
|
|
15
|
-
__toESM
|
|
16
|
-
} from "./Accordion-nh0cs9hq.js";
|
|
17
|
-
// node_modules/@ankhorage/surface/src/features/typography/adapters/inbound/Text.tsx
|
|
18
|
-
var import_react_native = __toESM(require_cjs(), 1);
|
|
19
|
-
import { jsx } from "react/jsx-runtime";
|
|
20
|
-
function Text2({
|
|
21
|
-
children,
|
|
22
|
-
i18nKey,
|
|
23
|
-
variant = "body",
|
|
24
|
-
emphasis = "default",
|
|
25
|
-
color,
|
|
26
|
-
align,
|
|
27
|
-
weight,
|
|
28
|
-
italic = false,
|
|
29
|
-
numberOfLines,
|
|
30
|
-
testID,
|
|
31
|
-
style
|
|
32
|
-
}) {
|
|
33
|
-
const { theme } = useTheme();
|
|
34
|
-
const content = children ?? i18nKey ?? null;
|
|
35
|
-
return /* @__PURE__ */ jsx(import_react_native.Text, {
|
|
36
|
-
numberOfLines,
|
|
37
|
-
testID,
|
|
38
|
-
style: [
|
|
39
|
-
resolveTextStyles(theme, { align, italic, variant, weight }),
|
|
40
|
-
{ color: resolveTextColor(theme, emphasis, color) },
|
|
41
|
-
style
|
|
42
|
-
],
|
|
43
|
-
children: content
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
export { Text2 };
|