@ankhorage/zora 23.2.5 → 23.4.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 -6
- package/dist/capabilities/index.d.ts +75 -0
- package/dist/capabilities/index.d.ts.map +1 -0
- package/dist/capabilities/index.js +62 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/cli/index.d.ts +74 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +4 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/constants/authoring.d.ts +8 -0
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +6 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/app-bar/appBarMeta.d.ts +10 -1
- package/dist/features/app-bar/appBarMeta.d.ts.map +1 -1
- package/dist/features/app-bar/appBarMeta.js +2 -1
- package/dist/features/app-bar/appBarMeta.js.map +1 -1
- package/dist/features/app-header/adapters/inbound/AppHeader.d.ts +5 -0
- package/dist/features/app-header/adapters/inbound/AppHeader.d.ts.map +1 -0
- package/dist/features/app-header/adapters/inbound/AppHeader.js +7 -0
- package/dist/features/app-header/adapters/inbound/AppHeader.js.map +1 -0
- package/dist/features/app-header/appHeaderMeta.d.ts +18 -0
- package/dist/features/app-header/appHeaderMeta.d.ts.map +1 -0
- package/dist/features/app-header/appHeaderMeta.js +12 -0
- package/dist/features/app-header/appHeaderMeta.js.map +1 -0
- package/dist/features/app-header/public.d.ts +3 -0
- package/dist/features/app-header/public.d.ts.map +1 -0
- package/dist/features/app-header/public.js +2 -0
- package/dist/features/app-header/public.js.map +1 -0
- package/dist/features/game/adapters/inbound/Game.d.ts +1 -1
- package/dist/features/game/adapters/inbound/Game.d.ts.map +1 -1
- package/dist/features/game/adapters/inbound/Game.js +4 -1
- package/dist/features/game/adapters/inbound/Game.js.map +1 -1
- package/dist/features/game/adapters/inbound/GameEntity.d.ts +1 -1
- package/dist/features/game/adapters/inbound/GameEntity.d.ts.map +1 -1
- package/dist/features/game/adapters/inbound/GameEntity.js +4 -1
- package/dist/features/game/adapters/inbound/GameEntity.js.map +1 -1
- package/dist/features/game/adapters/inbound/GameField.d.ts +1 -1
- package/dist/features/game/adapters/inbound/GameField.d.ts.map +1 -1
- package/dist/features/game/adapters/inbound/GameField.js +4 -1
- package/dist/features/game/adapters/inbound/GameField.js.map +1 -1
- package/dist/features/game/adapters/inbound/GameInputZone.d.ts +1 -1
- package/dist/features/game/adapters/inbound/GameInputZone.d.ts.map +1 -1
- package/dist/features/game/adapters/inbound/GameInputZone.js +4 -1
- package/dist/features/game/adapters/inbound/GameInputZone.js.map +1 -1
- package/dist/features/game/adapters/inbound/GameMeasurementProbe.d.ts +2 -1
- package/dist/features/game/adapters/inbound/GameMeasurementProbe.d.ts.map +1 -1
- package/dist/features/game/adapters/inbound/GameMeasurementProbe.js +4 -1
- package/dist/features/game/adapters/inbound/GameMeasurementProbe.js.map +1 -1
- package/dist/features/game/adapters/inbound/GameOverlay.d.ts +1 -1
- package/dist/features/game/adapters/inbound/GameOverlay.d.ts.map +1 -1
- package/dist/features/game/adapters/inbound/GameOverlay.js +4 -1
- package/dist/features/game/adapters/inbound/GameOverlay.js.map +1 -1
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -1
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +2 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
- package/dist/features/registry/bindableComponentMeta.d.ts +415 -327
- package/dist/features/registry/bindableComponentMeta.d.ts.map +1 -1
- package/dist/features/registry/bindableComponentMeta.js +12 -0
- package/dist/features/registry/bindableComponentMeta.js.map +1 -1
- 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/registry/finalizeFeatureMetadata.d.ts.map +1 -1
- package/dist/features/registry/finalizeFeatureMetadata.js +5 -4
- package/dist/features/registry/finalizeFeatureMetadata.js.map +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.d.ts +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.d.ts.map +1 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.js +4 -1
- package/dist/features/selection/adapters/inbound/SelectableItem.js.map +1 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.d.ts +2 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.d.ts.map +1 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.js +5 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.js.map +1 -1
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.d.ts +2 -1
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.d.ts.map +1 -1
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js +7 -5
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js.map +1 -1
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.d.ts +1 -0
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.d.ts.map +1 -1
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.js +9 -4
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/app-header.d.ts +3 -0
- package/dist/types/app-header.d.ts.map +1 -0
- package/dist/types/app-header.js +2 -0
- package/dist/types/app-header.js.map +1 -0
- package/dist/types/base.d.ts +2 -0
- package/dist/types/base.d.ts.map +1 -1
- package/dist/types/base.js.map +1 -1
- package/dist/types/gamePresentation.d.ts +6 -6
- package/dist/types/gamePresentation.d.ts.map +1 -1
- package/dist/types/gamePresentation.js.map +1 -1
- package/dist/types/selection.d.ts +2 -1
- package/dist/types/selection.d.ts.map +1 -1
- package/dist/types/selection.js.map +1 -1
- package/dist/types/theme-mode-toggle.d.ts +2 -1
- package/dist/types/theme-mode-toggle.d.ts.map +1 -1
- package/dist/types/theme-mode-toggle.js.map +1 -1
- package/package.json +103 -7
- package/src/capabilities/index.test.ts +50 -0
- package/src/capabilities/index.ts +63 -0
- package/src/cli/index.test.ts +10 -1
- package/src/cli/index.ts +7 -14
- package/src/constants/authoring.ts +7 -0
- package/src/features/app-bar/appBarMeta.ts +2 -1
- package/src/features/app-header/adapters/inbound/AppHeader.tsx +9 -0
- package/src/features/app-header/appHeaderMeta.ts +13 -0
- package/src/features/app-header/public.ts +2 -0
- package/src/features/game/adapters/inbound/Game.tsx +5 -1
- package/src/features/game/adapters/inbound/GameEntity.tsx +5 -1
- package/src/features/game/adapters/inbound/GameField.tsx +5 -1
- package/src/features/game/adapters/inbound/GameInputZone.tsx +5 -1
- package/src/features/game/adapters/inbound/GameMeasurementProbe.tsx +5 -1
- package/src/features/game/adapters/inbound/GameOverlay.tsx +5 -1
- package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +2 -0
- package/src/features/registry/authoringMeta.test.ts +11 -0
- package/src/features/registry/bindableComponentMeta.ts +12 -0
- package/src/features/registry/componentMeta.ts +2 -0
- package/src/features/registry/finalizeFeatureMetadata.ts +7 -6
- package/src/features/registry/registry.test.ts +1 -0
- package/src/features/selection/adapters/inbound/SelectableItem.tsx +5 -1
- package/src/features/theme/adapters/inbound/ThemeModeToggle.tsx +6 -1
- package/src/features/theme/adapters/inbound/ZoraThemeScope.tsx +12 -5
- package/src/features/theme/adapters/inbound/withZoraThemeScope.tsx +9 -4
- package/src/features/theme/themeConfigScope.test.ts +1 -1
- package/src/features/theme/themeScopeStructure.test.ts +6 -1
- package/src/index.ts +1 -0
- package/src/invertedThemeAcceptance.test.tsx +177 -0
- package/src/structureOwnership.test.ts +1 -1
- package/src/types/app-header.ts +3 -0
- package/src/types/base.ts +3 -0
- package/src/types/gamePresentation.ts +7 -6
- package/src/types/selection.ts +3 -1
- package/src/types/theme-mode-toggle.ts +3 -4
- package/web-dist/chunks/{Accordion-c3yfjhex.js → Accordion-0047zyx7.js} +4 -4
- package/web-dist/chunks/{Accordion-vq198z68.js → Accordion-0yhkg017.js} +9 -9
- package/web-dist/chunks/{Accordion-hztfb9ex.js → Accordion-0yvepteg.js} +5 -5
- package/web-dist/chunks/{Accordion-r1geqzsp.js → Accordion-1e1nfhtc.js} +5 -5
- package/web-dist/chunks/{Accordion-vc8pv1jf.js → Accordion-1xpq9bxk.js} +7 -7
- package/web-dist/chunks/{Accordion-11xym8p8.js → Accordion-2dqpjya2.js} +7 -7
- package/web-dist/chunks/{Accordion-g69czys5.js → Accordion-37n4bt3g.js} +2 -2
- package/web-dist/chunks/{Accordion-0f748ad5.js → Accordion-3m6de80j.js} +1 -1
- package/web-dist/chunks/{Accordion-jynbc7d0.js → Accordion-693gvpde.js} +3 -3
- package/web-dist/chunks/{Accordion-een6jq8f.js → Accordion-6xrse5my.js} +1 -1
- package/web-dist/chunks/{Accordion-904ncmad.js → Accordion-6ytrt7xj.js} +5 -5
- package/web-dist/chunks/{Accordion-jfjery84.js → Accordion-70g7n6tk.js} +8 -8
- package/web-dist/chunks/{Accordion-n7hckxte.js → Accordion-73x0gt11.js} +6 -6
- package/web-dist/chunks/{Accordion-7cgv14wd.js → Accordion-7y9wt946.js} +2 -2
- package/web-dist/chunks/{Accordion-scacsnhj.js → Accordion-8bxy3g7a.js} +3 -3
- package/web-dist/chunks/{Accordion-6h4zc69v.js → Accordion-8fne0gf9.js} +4 -4
- package/web-dist/chunks/{Accordion-xak1mcaf.js → Accordion-8z7naxj2.js} +18 -13
- package/web-dist/chunks/{Accordion-whhnrz92.js → Accordion-a1ervhyg.js} +13 -13
- package/web-dist/chunks/{Accordion-tp2gn95w.js → Accordion-adc7k14q.js} +37 -13
- package/web-dist/chunks/{Accordion-vtndpbzt.js → Accordion-ancjf7q8.js} +7 -3
- package/web-dist/chunks/{Accordion-7ccpdvga.js → Accordion-axxgq453.js} +7 -7
- package/web-dist/chunks/{Accordion-bn954rjh.js → Accordion-basd2gyf.js} +2 -2
- package/web-dist/chunks/{Accordion-z4d0pncs.js → Accordion-bz2dzbad.js} +9 -9
- package/web-dist/chunks/{Accordion-pt0f1v0m.js → Accordion-ct805sm7.js} +2 -2
- package/web-dist/chunks/{Accordion-katngqxf.js → Accordion-d24n7srd.js} +4 -4
- package/web-dist/chunks/{Accordion-a09gnx45.js → Accordion-dbxpv5eq.js} +3 -3
- package/web-dist/chunks/{Accordion-8zerapbc.js → Accordion-e2kr1z3g.js} +5 -5
- package/web-dist/chunks/{Accordion-8rx1stgv.js → Accordion-ebw6xj6x.js} +5 -7
- package/web-dist/chunks/{Accordion-090whwtv.js → Accordion-ekjwm5dw.js} +17 -8
- package/web-dist/chunks/{Accordion-ej4p6ae3.js → Accordion-g2d4fskg.js} +2 -2
- package/web-dist/chunks/{Accordion-65kvpq6z.js → Accordion-gkx1kszz.js} +1 -1
- package/web-dist/chunks/{Accordion-40sj6k87.js → Accordion-k6dg8zd2.js} +3 -3
- package/web-dist/chunks/{Accordion-xdgpa7kf.js → Accordion-kxa15n19.js} +1 -1
- package/web-dist/chunks/{Accordion-ps286k56.js → Accordion-m4brcz8v.js} +5 -5
- package/web-dist/chunks/{Accordion-hdnpzyk9.js → Accordion-mbqtk7y0.js} +1 -1
- package/web-dist/chunks/{Accordion-sh0sk3cz.js → Accordion-nkd7nhyx.js} +5 -5
- package/web-dist/chunks/{Accordion-qqsxfq5h.js → Accordion-p0fh69qq.js} +6 -6
- package/web-dist/chunks/{Accordion-02d3sw7t.js → Accordion-ph15h010.js} +10 -10
- package/web-dist/chunks/{Accordion-a60dhqsv.js → Accordion-pvz3r99n.js} +38 -1
- package/web-dist/chunks/{Accordion-qd4r5b4s.js → Accordion-q9zge7kd.js} +2 -2
- package/web-dist/chunks/{Accordion-1dppb4fr.js → Accordion-qyssgtwe.js} +2 -2
- package/web-dist/chunks/{Accordion-pe49atda.js → Accordion-rmp9sfra.js} +1 -1
- package/web-dist/chunks/{Accordion-v1fxp6yd.js → Accordion-snyacfyh.js} +8 -8
- package/web-dist/chunks/{Accordion-47mg9vze.js → Accordion-tdjh81ax.js} +5 -5
- package/web-dist/chunks/{Accordion-3v7sz3vv.js → Accordion-v4n4ygwn.js} +1 -1
- package/web-dist/chunks/{Accordion-2z0415ed.js → Accordion-vjgk1sz7.js} +1 -1
- package/web-dist/chunks/{Accordion-qq9bvraa.js → Accordion-wgesygtk.js} +10 -10
- package/web-dist/chunks/{Accordion-tvzq4dw8.js → Accordion-wxbh98kp.js} +8 -8
- package/web-dist/chunks/{Accordion-3w1t105s.js → Accordion-wytj5wwc.js} +3 -3
- package/web-dist/chunks/{Accordion-19j1mncn.js → Accordion-yae3m7g7.js} +4 -4
- package/web-dist/chunks/{Accordion-c7pd59w7.js → Accordion-zgzrah0a.js} +6 -6
- package/web-dist/components/accordion/Accordion.js +12 -13
- package/web-dist/components/accordion-item/AccordionItem.js +12 -13
- package/web-dist/components/activity-indicator/ActivityIndicator.js +3 -4
- package/web-dist/components/app-bar/AppBar.js +19 -20
- package/web-dist/components/app-header/AppHeader.d.ts +3 -0
- package/web-dist/components/app-header/AppHeader.js +41 -0
- package/web-dist/components/app-header/index.d.ts +1 -0
- package/web-dist/components/app-header/index.js +2 -0
- package/web-dist/components/app-shell/AppShell.js +6 -7
- package/web-dist/components/auth-screen/AuthScreen.js +21 -22
- package/web-dist/components/avatar/Avatar.js +12 -13
- package/web-dist/components/avatar-group/AvatarGroup.js +12 -13
- package/web-dist/components/badge/Badge.js +7 -8
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +20 -21
- package/web-dist/components/bottom-sheet/BottomSheet.js +8 -9
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +8 -9
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +8 -9
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +8 -9
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +8 -9
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +8 -9
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +14 -15
- package/web-dist/components/button/Button.js +12 -13
- package/web-dist/components/button-group/ButtonGroup.js +12 -13
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +20 -21
- package/web-dist/components/card/Card.js +19 -20
- package/web-dist/components/card-back/CardBack.js +4 -5
- package/web-dist/components/card-hand/CardHand.js +4 -5
- package/web-dist/components/chat-list-item/ChatListItem.js +16 -17
- package/web-dist/components/checkbox/Checkbox.js +12 -13
- package/web-dist/components/checkbox-group/CheckboxGroup.js +12 -13
- package/web-dist/components/chess-board/ChessBoard.js +4 -5
- package/web-dist/components/chip/Chip.js +13 -14
- package/web-dist/components/chip-group/ChipGroup.js +13 -14
- package/web-dist/components/collection-editor/CollectionEditor.js +19 -20
- package/web-dist/components/content-rail/ContentRail.js +13 -14
- package/web-dist/components/data-table/DataTable.js +26 -27
- package/web-dist/components/date-picker/DatePicker.js +17 -18
- package/web-dist/components/dialog/Dialog.js +12 -13
- package/web-dist/components/divider/Divider.js +6 -7
- package/web-dist/components/empty-state/EmptyState.js +20 -21
- package/web-dist/components/field/Field.js +12 -13
- package/web-dist/components/flat-list/FlatList.js +13 -14
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -22
- package/web-dist/components/form/Form.js +16 -17
- package/web-dist/components/form-actions/FormActions.js +16 -17
- package/web-dist/components/form-error/FormError.js +16 -17
- package/web-dist/components/game/Game.js +7 -8
- package/web-dist/components/game-entity/GameEntity.js +7 -8
- package/web-dist/components/game-field/GameField.js +7 -8
- package/web-dist/components/game-input-zone/GameInputZone.js +7 -8
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +7 -8
- package/web-dist/components/game-overlay/GameOverlay.js +7 -8
- package/web-dist/components/gradient/Gradient.js +7 -8
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +7 -8
- package/web-dist/components/grid/Grid.js +6 -7
- package/web-dist/components/heading/Heading.js +6 -7
- package/web-dist/components/hero/Hero.js +19 -20
- package/web-dist/components/icon/Icon.js +4 -5
- package/web-dist/components/icon-button/IconButton.js +12 -13
- package/web-dist/components/image/Image.js +10 -11
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +3 -4
- package/web-dist/components/list/List.js +13 -14
- package/web-dist/components/list-item/ListItem.js +13 -14
- package/web-dist/components/list-section/ListSection.js +13 -14
- package/web-dist/components/media-card/MediaCard.js +19 -20
- package/web-dist/components/message-bubble/MessageBubble.js +16 -17
- package/web-dist/components/metric-card/MetricCard.js +19 -20
- package/web-dist/components/missing-element/MissingElement.js +11 -12
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -22
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -22
- package/web-dist/components/opening-book/OpeningBook.js +4 -5
- package/web-dist/components/otp-form/OtpForm.js +21 -22
- package/web-dist/components/pagination/Pagination.js +13 -14
- package/web-dist/components/palette-item/PaletteItem.js +19 -20
- package/web-dist/components/playing-card/PlayingCard.js +4 -5
- package/web-dist/components/poker-training-table/PokerTrainingTable.js +4 -5
- package/web-dist/components/popover-menu/PopoverMenu.js +14 -15
- package/web-dist/components/post-card/PostCard.js +19 -20
- package/web-dist/components/product-card/ProductCard.js +19 -20
- package/web-dist/components/progress/Progress.js +10 -11
- package/web-dist/components/progress-ring/ProgressRing.js +10 -11
- package/web-dist/components/radio/Radio.js +14 -15
- package/web-dist/components/radio-group/RadioGroup.js +14 -15
- package/web-dist/components/rating/Rating.js +9 -10
- package/web-dist/components/reader-surface/ReaderSurface.js +21 -22
- package/web-dist/components/scan-overlay/ScanOverlay.js +20 -21
- package/web-dist/components/screen/Screen.js +6 -7
- package/web-dist/components/screen-section/ScreenSection.js +10 -11
- package/web-dist/components/scroll-view/ScrollView.js +6 -7
- package/web-dist/components/search-input/SearchInput.js +13 -14
- package/web-dist/components/section-header/SectionHeader.js +10 -11
- package/web-dist/components/section-list/SectionList.js +13 -14
- package/web-dist/components/select/Select.js +16 -17
- package/web-dist/components/selectable-item/SelectableItem.js +6 -5
- package/web-dist/components/selection-provider/SelectionProvider.js +6 -5
- package/web-dist/components/sign-in-form/SignInForm.js +21 -22
- package/web-dist/components/sign-up-form/SignUpForm.js +21 -22
- package/web-dist/components/skeleton/Skeleton.js +22 -23
- package/web-dist/components/skeleton-card/SkeletonCard.js +22 -23
- package/web-dist/components/skeleton-list/SkeletonList.js +22 -23
- package/web-dist/components/skeleton-text/SkeletonText.js +22 -23
- package/web-dist/components/surface/Surface.js +7 -8
- package/web-dist/components/switch/Switch.js +7 -8
- package/web-dist/components/tab/Tab.js +7 -8
- package/web-dist/components/tab-list/TabList.js +7 -8
- package/web-dist/components/tab-panel/TabPanel.js +7 -8
- package/web-dist/components/tabletop-table/TabletopTable.js +4 -5
- package/web-dist/components/tabs/Tabs.js +7 -8
- package/web-dist/components/text/Text.js +6 -7
- package/web-dist/components/text-input/TextInput.js +13 -14
- package/web-dist/components/time-picker/TimePicker.js +17 -18
- package/web-dist/components/timeline/Timeline.js +11 -12
- package/web-dist/components/toast/Toast.js +9 -10
- package/web-dist/components/toast-provider/ToastProvider.js +9 -10
- package/web-dist/components/toolbar/Toolbar.js +19 -20
- package/web-dist/components/tree-item/TreeItem.js +17 -18
- package/web-dist/components/uploader/Uploader.js +22 -23
- package/web-dist/components/view/View.js +6 -7
- package/web-dist/manifest.json +1500 -1567
- package/web-dist/runtime/ZoraProvider.js +12 -14
- package/web-dist/chunks/Accordion-kcx57mk5.js +0 -39
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { pathToFileURL } from 'node:url';
|
|
3
|
+
|
|
4
|
+
import { getContrastRatio, parseHexColorOrThrow } from '@ankhorage/color-theory';
|
|
5
|
+
import type { SurfaceTheme, ThemeMode } from '@ankhorage/surface';
|
|
6
|
+
import { expect, test } from 'bun:test';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { renderToStaticMarkup } from 'react-dom/server';
|
|
9
|
+
|
|
10
|
+
import type { AppHeader as AppHeaderComponent } from './features/app-header/public';
|
|
11
|
+
import type { Breadcrumbs as BreadcrumbsComponent } from './features/breadcrumbs/public';
|
|
12
|
+
import type {
|
|
13
|
+
Button as ButtonComponent,
|
|
14
|
+
IconButton as IconButtonComponent,
|
|
15
|
+
} from './features/button/public';
|
|
16
|
+
import type { GameField as GameFieldComponent } from './features/game/public';
|
|
17
|
+
import type { View as ViewComponent } from './features/layout/public';
|
|
18
|
+
import type { useZoraTheme as useZoraThemeHook } from './features/theme/composition/useZoraTheme';
|
|
19
|
+
import type { ZoraProvider as ZoraProviderComponent } from './features/theme/runtime';
|
|
20
|
+
import type { Text as TextComponent } from './features/typography/public';
|
|
21
|
+
|
|
22
|
+
const webDist = join(import.meta.dir, '..', 'web-dist');
|
|
23
|
+
|
|
24
|
+
test('web materialization exposes the public AppHeader component', async () => {
|
|
25
|
+
const manifest = (await Bun.file(join(webDist, 'manifest.json')).json()) as {
|
|
26
|
+
artifacts: readonly { component: string; exportName: string; files: readonly string[] }[];
|
|
27
|
+
};
|
|
28
|
+
const appHeader = manifest.artifacts.find((entry) => entry.component === 'app-header');
|
|
29
|
+
expect(appHeader?.exportName).toBe('AppHeader');
|
|
30
|
+
expect(appHeader?.files).toContain('components/app-header/index.js');
|
|
31
|
+
expect(appHeader?.files).toContain('components/app-header/AppHeader.d.ts');
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
test.each(['light', 'dark'] as const)(
|
|
35
|
+
'%s mode composes inherited inversion, reset, and AppHeader without changing mode',
|
|
36
|
+
async (mode) => {
|
|
37
|
+
const { ZoraProvider, useZoraTheme } = (await import(
|
|
38
|
+
pathToFileURL(join(webDist, 'runtime/ZoraProvider.js')).href
|
|
39
|
+
)) as { ZoraProvider: typeof ZoraProviderComponent; useZoraTheme: typeof useZoraThemeHook };
|
|
40
|
+
const { View } = (await import(
|
|
41
|
+
pathToFileURL(join(webDist, 'components/view/index.js')).href
|
|
42
|
+
)) as {
|
|
43
|
+
View: typeof ViewComponent;
|
|
44
|
+
};
|
|
45
|
+
const { Text } = (await import(
|
|
46
|
+
pathToFileURL(join(webDist, 'components/text/index.js')).href
|
|
47
|
+
)) as {
|
|
48
|
+
Text: typeof TextComponent;
|
|
49
|
+
};
|
|
50
|
+
const { Breadcrumbs } = (await import(
|
|
51
|
+
pathToFileURL(join(webDist, 'components/breadcrumbs/index.js')).href
|
|
52
|
+
)) as { Breadcrumbs: typeof BreadcrumbsComponent };
|
|
53
|
+
const { Button } = (await import(
|
|
54
|
+
pathToFileURL(join(webDist, 'components/button/index.js')).href
|
|
55
|
+
)) as { Button: typeof ButtonComponent };
|
|
56
|
+
const { IconButton } = (await import(
|
|
57
|
+
pathToFileURL(join(webDist, 'components/icon-button/index.js')).href
|
|
58
|
+
)) as { IconButton: typeof IconButtonComponent };
|
|
59
|
+
const { GameField } = (await import(
|
|
60
|
+
pathToFileURL(join(webDist, 'components/game-field/index.js')).href
|
|
61
|
+
)) as { GameField: typeof GameFieldComponent };
|
|
62
|
+
const { AppHeader } = (await import(
|
|
63
|
+
pathToFileURL(join(webDist, 'components/app-header/index.js')).href
|
|
64
|
+
)) as { AppHeader: typeof AppHeaderComponent };
|
|
65
|
+
const observed = new Map<
|
|
66
|
+
string,
|
|
67
|
+
{ mode: ThemeMode; inverted: boolean | undefined; theme: SurfaceTheme }
|
|
68
|
+
>();
|
|
69
|
+
|
|
70
|
+
function Probe({ id }: { id: string }) {
|
|
71
|
+
const { mode: activeMode, inverted, theme } = useZoraTheme();
|
|
72
|
+
observed.set(id, { mode: activeMode, inverted, theme });
|
|
73
|
+
return <span data-probe={id} />;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const markup = renderToStaticMarkup(
|
|
77
|
+
<ZoraProvider initialMode={mode}>
|
|
78
|
+
<Probe id="root" />
|
|
79
|
+
<View inverted>
|
|
80
|
+
<Probe id="outer" />
|
|
81
|
+
<Text>Inherited text</Text>
|
|
82
|
+
<Breadcrumbs items={[{ id: 'home', label: 'Home', icon: { name: 'home-outline' } }]} />
|
|
83
|
+
<IconButton iconName="add-outline" label="Add" variant="ghost" />
|
|
84
|
+
<Button color="primary" variant="solid">
|
|
85
|
+
Save
|
|
86
|
+
</Button>
|
|
87
|
+
<GameField inverted={false}>
|
|
88
|
+
<Probe id="gameReset" />
|
|
89
|
+
</GameField>
|
|
90
|
+
<View inverted={false}>
|
|
91
|
+
<Probe id="reset" />
|
|
92
|
+
<Text>Reset text</Text>
|
|
93
|
+
<IconButton iconName="close-outline" label="Reset action" variant="ghost" />
|
|
94
|
+
<View inverted>
|
|
95
|
+
<Probe id="reinverted" />
|
|
96
|
+
</View>
|
|
97
|
+
</View>
|
|
98
|
+
</View>
|
|
99
|
+
<AppHeader
|
|
100
|
+
inverted
|
|
101
|
+
title="Workspace"
|
|
102
|
+
actions={
|
|
103
|
+
<>
|
|
104
|
+
<IconButton iconName="add-outline" label="Header action" variant="ghost" />
|
|
105
|
+
<Button color="primary" variant="solid">
|
|
106
|
+
Header save
|
|
107
|
+
</Button>
|
|
108
|
+
</>
|
|
109
|
+
}
|
|
110
|
+
>
|
|
111
|
+
<Probe id="header" />
|
|
112
|
+
<Breadcrumbs
|
|
113
|
+
items={[{ id: 'header-home', label: 'Header home', icon: { name: 'home-outline' } }]}
|
|
114
|
+
/>
|
|
115
|
+
<IconButton
|
|
116
|
+
inverted={false}
|
|
117
|
+
iconName="close-outline"
|
|
118
|
+
label="Header reset"
|
|
119
|
+
variant="ghost"
|
|
120
|
+
/>
|
|
121
|
+
</AppHeader>
|
|
122
|
+
<AppHeader>
|
|
123
|
+
<Probe id="normalHeader" />
|
|
124
|
+
</AppHeader>
|
|
125
|
+
<AppHeader title="Workspace title" />
|
|
126
|
+
</ZoraProvider>,
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
expect([...observed.keys()].sort()).toEqual([
|
|
130
|
+
'gameReset',
|
|
131
|
+
'header',
|
|
132
|
+
'normalHeader',
|
|
133
|
+
'outer',
|
|
134
|
+
'reinverted',
|
|
135
|
+
'reset',
|
|
136
|
+
'root',
|
|
137
|
+
]);
|
|
138
|
+
expect([...observed.values()].every((entry) => entry.mode === mode)).toBe(true);
|
|
139
|
+
expect(observed.get('root')?.inverted).toBe(false);
|
|
140
|
+
expect(observed.get('outer')?.inverted).toBe(true);
|
|
141
|
+
expect(observed.get('reset')?.inverted).toBe(false);
|
|
142
|
+
expect(observed.get('gameReset')?.inverted).toBe(false);
|
|
143
|
+
expect(observed.get('reinverted')?.inverted).toBe(true);
|
|
144
|
+
expect(observed.get('header')?.inverted).toBe(true);
|
|
145
|
+
expect(observed.get('normalHeader')?.inverted).toBe(false);
|
|
146
|
+
expect(observed.get('outer')?.theme.semantics.surface.default).toBe(
|
|
147
|
+
observed.get('header')?.theme.semantics.surface.default,
|
|
148
|
+
);
|
|
149
|
+
expect(observed.get('reset')?.theme.semantics.surface.default).toBe(
|
|
150
|
+
observed.get('root')?.theme.semantics.surface.default,
|
|
151
|
+
);
|
|
152
|
+
expect(observed.get('outer')?.theme.semantics.surface.default).not.toBe(
|
|
153
|
+
observed.get('root')?.theme.semantics.surface.default,
|
|
154
|
+
);
|
|
155
|
+
const theme = observed.get('outer')?.theme;
|
|
156
|
+
expect(theme).toBeDefined();
|
|
157
|
+
if (theme === undefined) return;
|
|
158
|
+
expect(
|
|
159
|
+
getContrastRatio(
|
|
160
|
+
parseHexColorOrThrow(theme.semantics.content.muted),
|
|
161
|
+
parseHexColorOrThrow(theme.semantics.surface.default),
|
|
162
|
+
),
|
|
163
|
+
).toBeGreaterThanOrEqual(4.5);
|
|
164
|
+
expect(theme.semantics.action.primary.onSolidText).toBe(
|
|
165
|
+
observed.get('root')?.theme.semantics.action.primary.onSolidText,
|
|
166
|
+
);
|
|
167
|
+
expect(markup).toContain('Inherited text');
|
|
168
|
+
expect(markup).toContain('Reset text');
|
|
169
|
+
expect(markup).toContain('Home');
|
|
170
|
+
expect(markup).toContain('Save');
|
|
171
|
+
expect(markup).toContain('Workspace title');
|
|
172
|
+
expect(markup).toContain('Header home');
|
|
173
|
+
expect(markup).toContain('Header save');
|
|
174
|
+
expect(markup).toContain('data-probe="header"');
|
|
175
|
+
expect(markup).not.toContain('inverted=');
|
|
176
|
+
},
|
|
177
|
+
);
|
|
@@ -9,7 +9,7 @@ describe('src ownership', () => {
|
|
|
9
9
|
.map((entry) => entry.name)
|
|
10
10
|
.sort();
|
|
11
11
|
|
|
12
|
-
expect(directories).toEqual(['cli', 'constants', 'features', 'types']);
|
|
12
|
+
expect(directories).toEqual(['capabilities', 'cli', 'constants', 'features', 'types']);
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
test('does not reintroduce technical ownership roots', () => {
|
package/src/types/base.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { GameDefinition, GameInput, GameOutput } from '@ankhorage/game';
|
|
2
|
-
import type { InteractionPolicyProps } from '@ankhorage/surface';
|
|
3
2
|
import type React from 'react';
|
|
4
3
|
|
|
4
|
+
import type { ZoraBaseProps } from './base';
|
|
5
|
+
|
|
5
6
|
type GameOverlayCornerPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
6
7
|
|
|
7
8
|
export type GamePointerEvents = 'auto' | 'box-none' | 'box-only' | 'none';
|
|
@@ -26,7 +27,7 @@ export interface GameEntityMotionProps {
|
|
|
26
27
|
export type GameOverlayPlacement =
|
|
27
28
|
'fill' | 'center' | 'top' | 'bottom' | GameOverlayCornerPlacement;
|
|
28
29
|
|
|
29
|
-
export interface GameFieldProps extends
|
|
30
|
+
export interface GameFieldProps extends ZoraBaseProps {
|
|
30
31
|
readonly children?: React.ReactNode;
|
|
31
32
|
readonly aspectRatio?: number;
|
|
32
33
|
readonly minHeight?: number;
|
|
@@ -36,7 +37,7 @@ export interface GameFieldProps extends InteractionPolicyProps {
|
|
|
36
37
|
readonly testID?: string;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export interface GameEntityProps extends GameEntityMotionProps,
|
|
40
|
+
export interface GameEntityProps extends GameEntityMotionProps, ZoraBaseProps {
|
|
40
41
|
readonly children?: React.ReactNode;
|
|
41
42
|
readonly x?: number;
|
|
42
43
|
readonly y?: number;
|
|
@@ -60,7 +61,7 @@ export interface GameKeyboardBinding {
|
|
|
60
61
|
readonly preventDefault?: boolean;
|
|
61
62
|
}
|
|
62
63
|
|
|
63
|
-
export interface GameInputZoneProps extends
|
|
64
|
+
export interface GameInputZoneProps extends ZoraBaseProps {
|
|
64
65
|
readonly eventType: string;
|
|
65
66
|
readonly entityId?: string;
|
|
66
67
|
readonly x?: number;
|
|
@@ -75,7 +76,7 @@ export interface GameInputZoneProps extends InteractionPolicyProps {
|
|
|
75
76
|
readonly testID?: string;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
export interface GameMeasurementProbeProps extends
|
|
79
|
+
export interface GameMeasurementProbeProps extends ZoraBaseProps {
|
|
79
80
|
readonly sourceId: string;
|
|
80
81
|
readonly targetId: string;
|
|
81
82
|
readonly eventType?: string;
|
|
@@ -84,7 +85,7 @@ export interface GameMeasurementProbeProps extends InteractionPolicyProps {
|
|
|
84
85
|
readonly enabled?: boolean;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
|
-
export interface GameOverlayProps extends
|
|
88
|
+
export interface GameOverlayProps extends ZoraBaseProps {
|
|
88
89
|
readonly children?: React.ReactNode;
|
|
89
90
|
readonly placement?: GameOverlayPlacement;
|
|
90
91
|
readonly blocking?: boolean;
|
package/src/types/selection.ts
CHANGED
|
@@ -2,6 +2,8 @@ import type { InteractionPolicy } from '@ankhorage/surface';
|
|
|
2
2
|
import type { SelectionIntent } from '@ankhorage/utility/selection';
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
|
|
5
|
+
import type { ZoraBaseProps } from './base';
|
|
6
|
+
|
|
5
7
|
export type SelectionMode = 'single' | 'multi';
|
|
6
8
|
|
|
7
9
|
export type SelectionTrigger = 'press' | 'longPress' | 'manual';
|
|
@@ -40,7 +42,7 @@ export interface SelectableItemState {
|
|
|
40
42
|
clear: () => void;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
|
-
export interface SelectableItemProps {
|
|
45
|
+
export interface SelectableItemProps extends ZoraBaseProps {
|
|
44
46
|
id: string;
|
|
45
47
|
trigger?: SelectionTrigger;
|
|
46
48
|
disabled?: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import type { ZoraBaseProps } from './base';
|
|
1
2
|
import type { IconButtonProps } from './icon-button';
|
|
2
3
|
|
|
3
|
-
export type ThemeModeToggleProps =
|
|
4
|
-
IconButtonProps,
|
|
5
|
-
'disabled' | 'interactionPolicy' | 'size' | 'testID'
|
|
6
|
-
>;
|
|
4
|
+
export type ThemeModeToggleProps = ZoraBaseProps &
|
|
5
|
+
Pick<IconButtonProps, 'disabled' | 'interactionPolicy' | 'size' | 'testID'>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Field3
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-q9zge7kd.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-8z7naxj2.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-0yvepteg.js";
|
|
11
11
|
import {
|
|
12
12
|
Text3
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
14
14
|
|
|
15
15
|
// src/features/form/field/adapters/inbound/Field.tsx
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -4,29 +4,29 @@ import {
|
|
|
4
4
|
} from "./Accordion-mnac2z83.js";
|
|
5
5
|
import {
|
|
6
6
|
View3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-wytj5wwc.js";
|
|
8
8
|
import {
|
|
9
9
|
require_cjs,
|
|
10
10
|
useTheme
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-pvz3r99n.js";
|
|
12
12
|
import {
|
|
13
13
|
Pressable
|
|
14
|
-
} from "./Accordion-
|
|
14
|
+
} from "./Accordion-8bxy3g7a.js";
|
|
15
15
|
import {
|
|
16
16
|
Text2
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-rmp9sfra.js";
|
|
18
18
|
import {
|
|
19
19
|
withZoraThemeScope
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-8z7naxj2.js";
|
|
21
21
|
import {
|
|
22
22
|
View2
|
|
23
|
-
} from "./Accordion-
|
|
23
|
+
} from "./Accordion-0yvepteg.js";
|
|
24
24
|
import {
|
|
25
25
|
Text3
|
|
26
|
-
} from "./Accordion-
|
|
26
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
27
27
|
import {
|
|
28
28
|
Icon2
|
|
29
|
-
} from "./Accordion-
|
|
29
|
+
} from "./Accordion-37n4bt3g.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveFieldState,
|
|
32
32
|
resolveIndicatorSize,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
useZoraThemeRecipe,
|
|
38
38
|
ZORA_COLORS
|
|
39
|
-
} from "./Accordion-
|
|
39
|
+
} from "./Accordion-kxa15n19.js";
|
|
40
40
|
import {
|
|
41
41
|
__toESM
|
|
42
42
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import {
|
|
3
3
|
resolveResponsive,
|
|
4
4
|
useResponsiveRuntime
|
|
5
|
-
} from "./Accordion-
|
|
5
|
+
} from "./Accordion-gkx1kszz.js";
|
|
6
6
|
import {
|
|
7
7
|
View3,
|
|
8
8
|
Divider3
|
|
9
|
-
} from "./Accordion-
|
|
9
|
+
} from "./Accordion-wytj5wwc.js";
|
|
10
10
|
import {
|
|
11
11
|
require_cjs,
|
|
12
12
|
useTheme
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-pvz3r99n.js";
|
|
14
14
|
import {
|
|
15
15
|
withZoraThemeScope
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-8z7naxj2.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveSpacing,
|
|
19
19
|
resolveViewStyles
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-v4n4ygwn.js";
|
|
21
21
|
import {
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
require_cjs
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pvz3r99n.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-8z7naxj2.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-37n4bt3g.js";
|
|
11
11
|
import {
|
|
12
12
|
View2,
|
|
13
13
|
Divider2
|
|
14
|
-
} from "./Accordion-
|
|
14
|
+
} from "./Accordion-0yvepteg.js";
|
|
15
15
|
import {
|
|
16
16
|
Heading2,
|
|
17
17
|
Text3
|
|
18
|
-
} from "./Accordion-
|
|
18
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
19
19
|
import {
|
|
20
20
|
__toESM
|
|
21
21
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
FocusScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-3m6de80j.js";
|
|
5
5
|
import {
|
|
6
6
|
Portal
|
|
7
7
|
} from "./Accordion-0gfsj9qh.js";
|
|
8
8
|
import {
|
|
9
9
|
resolvePointerEvents,
|
|
10
10
|
View3
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-wytj5wwc.js";
|
|
12
12
|
import {
|
|
13
13
|
require_cjs,
|
|
14
14
|
useTheme
|
|
15
|
-
} from "./Accordion-
|
|
15
|
+
} from "./Accordion-pvz3r99n.js";
|
|
16
16
|
import {
|
|
17
17
|
Surface3
|
|
18
|
-
} from "./Accordion-
|
|
18
|
+
} from "./Accordion-g2d4fskg.js";
|
|
19
19
|
import {
|
|
20
20
|
withZoraThemeScope
|
|
21
|
-
} from "./Accordion-
|
|
21
|
+
} from "./Accordion-8z7naxj2.js";
|
|
22
22
|
import {
|
|
23
23
|
View2
|
|
24
|
-
} from "./Accordion-
|
|
24
|
+
} from "./Accordion-0yvepteg.js";
|
|
25
25
|
import {
|
|
26
26
|
Heading2,
|
|
27
27
|
Text3
|
|
28
|
-
} from "./Accordion-
|
|
28
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveOverlayAnimation
|
|
31
31
|
} from "./Accordion-n7y08rz5.js";
|
|
@@ -4,25 +4,25 @@ import {
|
|
|
4
4
|
} from "./Accordion-mnac2z83.js";
|
|
5
5
|
import {
|
|
6
6
|
View3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-wytj5wwc.js";
|
|
8
8
|
import {
|
|
9
9
|
useTheme
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-pvz3r99n.js";
|
|
11
11
|
import {
|
|
12
12
|
Pressable
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-8bxy3g7a.js";
|
|
14
14
|
import {
|
|
15
15
|
Text2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-rmp9sfra.js";
|
|
17
17
|
import {
|
|
18
18
|
withZoraThemeScope
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-8z7naxj2.js";
|
|
20
20
|
import {
|
|
21
21
|
View2
|
|
22
|
-
} from "./Accordion-
|
|
22
|
+
} from "./Accordion-0yvepteg.js";
|
|
23
23
|
import {
|
|
24
24
|
Text3
|
|
25
|
-
} from "./Accordion-
|
|
25
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
26
26
|
import {
|
|
27
27
|
resolveFieldState,
|
|
28
28
|
resolveIndicatorSize,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Icon3
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-mbqtk7y0.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-8z7naxj2.js";
|
|
8
8
|
|
|
9
9
|
// src/features/icon/adapters/inbound/Icon.tsx
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
require_cjs,
|
|
4
4
|
parseHexColor,
|
|
5
5
|
getReadableForeground
|
|
6
|
-
} from "./Accordion-
|
|
6
|
+
} from "./Accordion-pvz3r99n.js";
|
|
7
7
|
import {
|
|
8
8
|
withZoraThemeScope
|
|
9
|
-
} from "./Accordion-
|
|
9
|
+
} from "./Accordion-8z7naxj2.js";
|
|
10
10
|
import {
|
|
11
11
|
useZoraTheme2
|
|
12
|
-
} from "./Accordion-
|
|
12
|
+
} from "./Accordion-6xrse5my.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
require_cjs,
|
|
4
4
|
useTheme
|
|
5
|
-
} from "./Accordion-
|
|
5
|
+
} from "./Accordion-pvz3r99n.js";
|
|
6
6
|
import {
|
|
7
7
|
withZoraThemeScope
|
|
8
|
-
} from "./Accordion-
|
|
8
|
+
} from "./Accordion-8z7naxj2.js";
|
|
9
9
|
import {
|
|
10
10
|
Icon2
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-37n4bt3g.js";
|
|
12
12
|
import {
|
|
13
13
|
View2
|
|
14
|
-
} from "./Accordion-
|
|
14
|
+
} from "./Accordion-0yvepteg.js";
|
|
15
15
|
import {
|
|
16
16
|
useZoraTheme2
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-6xrse5my.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveToken
|
|
20
20
|
} from "./Accordion-fre84yaq.js";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
require_cjs
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pvz3r99n.js";
|
|
5
5
|
import {
|
|
6
6
|
Button2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-snyacfyh.js";
|
|
8
8
|
import {
|
|
9
9
|
withZoraThemeScope
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-8z7naxj2.js";
|
|
11
11
|
import {
|
|
12
12
|
View2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-0yvepteg.js";
|
|
14
14
|
import {
|
|
15
15
|
Card2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-a1ervhyg.js";
|
|
17
17
|
import {
|
|
18
18
|
Text3
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
20
20
|
import {
|
|
21
21
|
Badge2
|
|
22
|
-
} from "./Accordion-
|
|
22
|
+
} from "./Accordion-d24n7srd.js";
|
|
23
23
|
import {
|
|
24
24
|
useZoraTheme2
|
|
25
|
-
} from "./Accordion-
|
|
25
|
+
} from "./Accordion-6xrse5my.js";
|
|
26
26
|
import {
|
|
27
27
|
__toESM
|
|
28
28
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
require_cjs
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-pvz3r99n.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-8z7naxj2.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-37n4bt3g.js";
|
|
11
11
|
import {
|
|
12
12
|
View2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-0yvepteg.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-e2kr1z3g.js";
|
|
17
17
|
import {
|
|
18
18
|
useZoraTheme2
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-6xrse5my.js";
|
|
20
20
|
import {
|
|
21
21
|
__toESM
|
|
22
22
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
withZoraThemeScope
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-8z7naxj2.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-0yvepteg.js";
|
|
8
8
|
|
|
9
9
|
// src/features/gradient/adapters/inbound/GradientRendererContext.tsx
|
|
10
10
|
import { createContext, use } from "react";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
useResponsiveRuntime
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-gkx1kszz.js";
|
|
5
5
|
import {
|
|
6
6
|
require_cjs,
|
|
7
7
|
useTheme
|
|
8
|
-
} from "./Accordion-
|
|
8
|
+
} from "./Accordion-pvz3r99n.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveFocusRingStyles,
|
|
11
11
|
resolveInteractiveState
|
|
12
12
|
} from "./Accordion-n7y08rz5.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveViewStyles
|
|
15
|
-
} from "./Accordion-
|
|
15
|
+
} from "./Accordion-v4n4ygwn.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./Accordion-9qvmwkxe.js";
|