@ankhorage/zora 28.1.5 → 28.2.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 +6 -0
- package/README.md +1 -1
- package/dist/capabilities/index.js +84 -1
- package/dist/capabilities/index.js.map +6 -5
- package/dist/constants/authoring.d.ts +4 -3
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +2 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/link/adapters/inbound/Link.d.ts +2 -0
- package/dist/features/link/adapters/inbound/Link.d.ts.map +1 -0
- package/dist/features/link/adapters/inbound/Link.js +2 -0
- package/dist/features/link/adapters/inbound/Link.js.map +1 -0
- package/dist/features/link/adapters/inbound/Link.native.d.ts +5 -0
- package/dist/features/link/adapters/inbound/Link.native.d.ts.map +1 -0
- package/dist/features/link/adapters/inbound/Link.native.js +29 -0
- package/dist/features/link/adapters/inbound/Link.native.js.map +1 -0
- package/dist/features/link/adapters/inbound/Link.web.d.ts +5 -0
- package/dist/features/link/adapters/inbound/Link.web.d.ts.map +1 -0
- package/dist/features/link/adapters/inbound/Link.web.js +34 -0
- package/dist/features/link/adapters/inbound/Link.web.js.map +1 -0
- package/dist/features/link/linkMeta.d.ts +116 -0
- package/dist/features/link/linkMeta.d.ts.map +1 -0
- package/dist/features/link/linkMeta.js +82 -0
- package/dist/features/link/linkMeta.js.map +1 -0
- package/dist/features/link/public.d.ts +3 -0
- package/dist/features/link/public.d.ts.map +1 -0
- package/dist/features/link/public.js +2 -0
- package/dist/features/link/public.js.map +1 -0
- package/dist/features/link/utils/linkThemeRecipeMeta.d.ts +25 -0
- package/dist/features/link/utils/linkThemeRecipeMeta.d.ts.map +1 -0
- package/dist/features/link/utils/linkThemeRecipeMeta.js +26 -0
- package/dist/features/link/utils/linkThemeRecipeMeta.js.map +1 -0
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/master-detail/masterDetailMeta.d.ts +1 -1
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.d.ts.map +1 -1
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js +2 -0
- package/dist/features/registry/ZORA_BASE_COMPONENT_REGISTRY.js.map +1 -1
- package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
- package/dist/features/registry/componentMeta.d.ts.map +1 -1
- package/dist/features/registry/componentMeta.js +2 -0
- package/dist/features/registry/componentMeta.js.map +1 -1
- package/dist/features/registry/themeRecipeMeta.d.ts.map +1 -1
- package/dist/features/registry/themeRecipeMeta.js +2 -0
- package/dist/features/registry/themeRecipeMeta.js.map +1 -1
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/readerFree.d.ts +2 -0
- package/dist/readerFree.d.ts.map +1 -1
- package/dist/readerFree.js +1 -0
- package/dist/readerFree.js.map +1 -1
- package/dist/types/link.d.ts +23 -0
- package/dist/types/link.d.ts.map +1 -0
- package/dist/types/link.js +2 -0
- package/dist/types/link.js.map +1 -0
- package/package.json +35 -1
- package/src/constants/authoring.ts +2 -0
- package/src/features/link/Link.test.tsx +48 -0
- package/src/features/link/adapters/inbound/Link.native.tsx +62 -0
- package/src/features/link/adapters/inbound/Link.tsx +1 -0
- package/src/features/link/adapters/inbound/Link.web.tsx +67 -0
- package/src/features/link/linkMeta.ts +83 -0
- package/src/features/link/public.ts +2 -0
- package/src/features/link/utils/linkThemeRecipeMeta.ts +27 -0
- package/src/features/registry/ZORA_BASE_COMPONENT_REGISTRY.ts +2 -0
- package/src/features/registry/componentMeta.test.ts +15 -0
- package/src/features/registry/componentMeta.ts +2 -0
- package/src/features/registry/themeRecipeMeta.test.ts +1 -0
- package/src/features/registry/themeRecipeMeta.ts +2 -0
- package/src/readerFree.ts +2 -0
- package/src/types/link.ts +26 -0
- package/web-dist/authoring/index.js +27 -0
- package/web-dist/chunks/{Accordion-v6vhyv31.js → Accordion-0n3y5ry1.js} +1 -1
- package/web-dist/chunks/{Accordion-qsppnx7g.js → Accordion-22z6y8kw.js} +4 -4
- package/web-dist/chunks/{Accordion-22cda3h5.js → Accordion-30284ah1.js} +5 -5
- package/web-dist/chunks/{Accordion-q11svb96.js → Accordion-3qvtv4g6.js} +7 -7
- package/web-dist/chunks/{Accordion-01bsg7zt.js → Accordion-4v920xz8.js} +1 -1
- package/web-dist/chunks/{Accordion-8c4w7366.js → Accordion-4zbh7wfn.js} +1 -1
- package/web-dist/chunks/{Accordion-5cjhz94e.js → Accordion-64w34bgd.js} +3 -3
- package/web-dist/chunks/{Accordion-0xaq2k2h.js → Accordion-6pkteb8k.js} +4 -4
- package/web-dist/chunks/{Accordion-xfkg7dcw.js → Accordion-7zhdzn00.js} +2 -2
- package/web-dist/chunks/{Accordion-4zb6dcys.js → Accordion-8gfgaq01.js} +1 -1
- package/web-dist/chunks/{Accordion-afpjg1d6.js → Accordion-8skz71ct.js} +1 -1
- package/web-dist/chunks/{Accordion-b8w0f8s0.js → Accordion-9zwdqhf2.js} +3 -3
- package/web-dist/chunks/{Accordion-pdjhezmz.js → Accordion-b8ncebyz.js} +1 -1
- package/web-dist/chunks/{Accordion-7bd6zq4s.js → Accordion-bjq32vq2.js} +3 -3
- package/web-dist/chunks/{Accordion-gnxmybxx.js → Accordion-csz7sgjm.js} +7 -7
- package/web-dist/chunks/{Accordion-vzq344av.js → Accordion-dcm6ywt2.js} +1 -1
- package/web-dist/chunks/{Accordion-46n609yq.js → Accordion-e2b9yja2.js} +7 -7
- package/web-dist/chunks/{Accordion-jmxe6kw0.js → Accordion-em4ktbkk.js} +3 -3
- package/web-dist/chunks/{Accordion-qkkeyr18.js → Accordion-fc058wqp.js} +2 -2
- package/web-dist/chunks/{Accordion-27yg9ktv.js → Accordion-frfh3nz6.js} +3 -3
- package/web-dist/chunks/{Accordion-wb9pmykz.js → Accordion-g07r4t2f.js} +2 -2
- package/web-dist/chunks/{Accordion-de8srt4x.js → Accordion-g5c5sqn7.js} +5 -5
- package/web-dist/chunks/{Accordion-f8a49gy8.js → Accordion-k6v7p2na.js} +1 -1
- package/web-dist/chunks/{Accordion-9k7ktksc.js → Accordion-kr1reyt9.js} +8 -8
- package/web-dist/chunks/{Accordion-01zvarrn.js → Accordion-mh3bhcb4.js} +4 -4
- package/web-dist/chunks/{Accordion-5mga7hty.js → Accordion-nrwc0rx2.js} +1 -1
- package/web-dist/chunks/{Accordion-sh79sr5g.js → Accordion-nv1evygk.js} +1 -1
- package/web-dist/chunks/{Accordion-15sxxjym.js → Accordion-pvfmhrm0.js} +2 -2
- package/web-dist/chunks/{Accordion-h1q243zq.js → Accordion-q0cbpr2d.js} +5 -5
- package/web-dist/chunks/{Accordion-f4919ghm.js → Accordion-r30bwg03.js} +3 -3
- package/web-dist/chunks/{Accordion-34b3rwbc.js → Accordion-rmakadh6.js} +4 -4
- package/web-dist/chunks/{Accordion-vkqqktc5.js → Accordion-rwjbwm18.js} +1 -1
- package/web-dist/chunks/{Accordion-hdyzyw8q.js → Accordion-s1qjbbb0.js} +1 -1
- package/web-dist/chunks/{Accordion-t9n4ey2r.js → Accordion-t93g1wq3.js} +1 -1
- package/web-dist/chunks/{Accordion-qrt9xz0h.js → Accordion-vyw2bzye.js} +3 -3
- package/web-dist/chunks/{Accordion-rtamzg9j.js → Accordion-w28mb1ed.js} +1 -1
- package/web-dist/chunks/{Accordion-xb9zhdhp.js → Accordion-xeyw6ndr.js} +5 -5
- package/web-dist/chunks/{Accordion-epv5yhch.js → Accordion-zanzeryt.js} +2 -2
- package/web-dist/chunks/{Accordion-q046ws5p.js → Accordion-zqa9mt13.js} +2 -2
- package/web-dist/chunks/{Accordion-78tknqmc.js → Accordion-zsd0ar2p.js} +3 -3
- package/web-dist/components/accordion/Accordion.js +4 -4
- package/web-dist/components/accordion-item/AccordionItem.js +4 -4
- package/web-dist/components/app-bar/AppBar.js +8 -8
- package/web-dist/components/app-header/AppHeader.js +8 -8
- package/web-dist/components/app-shell/AppShell.js +2 -2
- package/web-dist/components/auth-screen/AuthScreen.js +12 -12
- package/web-dist/components/avatar/Avatar.js +4 -4
- package/web-dist/components/avatar-group/AvatarGroup.js +4 -4
- package/web-dist/components/badge/Badge.js +2 -2
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +11 -11
- package/web-dist/components/bottom-sheet/BottomSheet.js +4 -4
- package/web-dist/components/bottom-sheet-flat-list/BottomSheetFlatList.js +4 -4
- package/web-dist/components/bottom-sheet-scroll-view/BottomSheetScrollView.js +4 -4
- package/web-dist/components/bottom-sheet-section-list/BottomSheetSectionList.js +4 -4
- package/web-dist/components/bottom-sheet-view/BottomSheetView.js +4 -4
- package/web-dist/components/bottom-sheet-virtualized-list/BottomSheetVirtualizedList.js +4 -4
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +5 -5
- package/web-dist/components/button/Button.js +4 -4
- package/web-dist/components/button-group/ButtonGroup.js +4 -4
- package/web-dist/components/calendar/Calendar.js +6 -6
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +11 -11
- package/web-dist/components/card/Card.js +10 -10
- package/web-dist/components/chat-list-item/ChatListItem.js +7 -7
- package/web-dist/components/checkbox/Checkbox.js +5 -5
- package/web-dist/components/checkbox-group/CheckboxGroup.js +5 -5
- package/web-dist/components/chip/Chip.js +5 -5
- package/web-dist/components/chip-group/ChipGroup.js +5 -5
- package/web-dist/components/collection-editor/CollectionEditor.js +10 -10
- package/web-dist/components/color-hue-scale/ColorHueScale.js +15 -15
- package/web-dist/components/color-picker/ColorPicker.js +15 -15
- package/web-dist/components/color-tone/ColorTone.js +15 -15
- package/web-dist/components/color-wheel/ColorWheel.js +15 -15
- package/web-dist/components/content-rail/ContentRail.js +5 -5
- package/web-dist/components/data-table/DataTable.js +16 -16
- package/web-dist/components/date-picker/DatePicker.js +10 -10
- package/web-dist/components/dialog/Dialog.js +5 -5
- package/web-dist/components/divider/Divider.js +2 -2
- package/web-dist/components/empty-state/EmptyState.js +11 -11
- package/web-dist/components/explorer/Explorer.js +5 -5
- package/web-dist/components/field/Field.js +5 -5
- package/web-dist/components/file-explorer/FileExplorer.js +5 -5
- package/web-dist/components/flat-list/FlatList.js +6 -6
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +12 -12
- package/web-dist/components/form/Form.js +8 -8
- package/web-dist/components/form-actions/FormActions.js +8 -8
- package/web-dist/components/form-error/FormError.js +8 -8
- package/web-dist/components/game/Game.js +3 -3
- package/web-dist/components/game-entity/GameEntity.js +3 -3
- package/web-dist/components/game-field/GameField.js +3 -3
- package/web-dist/components/game-input-zone/GameInputZone.js +3 -3
- package/web-dist/components/game-measurement-probe/GameMeasurementProbe.js +3 -3
- package/web-dist/components/game-overlay/GameOverlay.js +3 -3
- package/web-dist/components/gradient/Gradient.js +3 -3
- package/web-dist/components/gradient-renderer-provider/GradientRendererProvider.js +3 -3
- package/web-dist/components/grid/Grid.js +2 -2
- package/web-dist/components/heading/Heading.js +1 -1
- package/web-dist/components/hero/Hero.js +10 -10
- package/web-dist/components/icon-button/IconButton.js +4 -4
- package/web-dist/components/image/Image.js +3 -3
- package/web-dist/components/link/Link.d.ts +7 -0
- package/web-dist/components/link/Link.dependency-0.d.ts +27 -0
- package/web-dist/components/link/Link.dependency-1.d.ts +3 -0
- package/web-dist/components/link/Link.dependency-2.d.ts +7 -0
- package/web-dist/components/link/Link.dependency-3.d.ts +5 -0
- package/web-dist/components/link/Link.js +95 -0
- package/web-dist/components/link/Link.types-0.d.ts +28 -0
- package/web-dist/components/link/index.d.ts +2 -0
- package/web-dist/components/link/index.js +2 -0
- package/web-dist/components/list/List.js +6 -6
- package/web-dist/components/list-item/ListItem.js +6 -6
- package/web-dist/components/list-section/ListSection.js +6 -6
- package/web-dist/components/master-detail/MasterDetail.js +2 -2
- package/web-dist/components/media-card/MediaCard.js +10 -10
- package/web-dist/components/media-explorer/MediaExplorer.js +5 -5
- package/web-dist/components/message-bubble/MessageBubble.js +7 -7
- package/web-dist/components/metric-card/MetricCard.js +10 -10
- package/web-dist/components/missing-element/MissingElement.js +4 -4
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +12 -12
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +12 -12
- package/web-dist/components/otp-form/OtpForm.js +12 -12
- package/web-dist/components/pagination/Pagination.js +5 -5
- package/web-dist/components/palette-item/PaletteItem.js +10 -10
- package/web-dist/components/popover-menu/PopoverMenu.js +4 -4
- package/web-dist/components/post-card/PostCard.js +10 -10
- package/web-dist/components/product-card/ProductCard.js +10 -10
- package/web-dist/components/progress/Progress.js +4 -4
- package/web-dist/components/progress-ring/ProgressRing.js +4 -4
- package/web-dist/components/radio/Radio.js +5 -5
- package/web-dist/components/radio-group/RadioGroup.js +5 -5
- package/web-dist/components/rating/Rating.js +2 -2
- package/web-dist/components/reader/Reader.js +11 -11
- package/web-dist/components/scan-overlay/ScanOverlay.js +11 -11
- package/web-dist/components/screen/Screen.js +2 -2
- package/web-dist/components/screen-section/ScreenSection.js +4 -4
- package/web-dist/components/scroll-view/ScrollView.js +2 -2
- package/web-dist/components/search-input/SearchInput.js +5 -5
- package/web-dist/components/section-header/SectionHeader.js +4 -4
- package/web-dist/components/section-list/SectionList.js +6 -6
- package/web-dist/components/select/Select.js +10 -10
- package/web-dist/components/sign-in-form/SignInForm.js +12 -12
- package/web-dist/components/sign-up-form/SignUpForm.js +12 -12
- package/web-dist/components/skeleton/Skeleton.js +13 -13
- package/web-dist/components/skeleton-card/SkeletonCard.js +13 -13
- package/web-dist/components/skeleton-list/SkeletonList.js +13 -13
- package/web-dist/components/skeleton-text/SkeletonText.js +13 -13
- package/web-dist/components/surface/Surface.js +3 -3
- package/web-dist/components/switch/Switch.js +2 -2
- package/web-dist/components/tab/Tab.js +2 -2
- package/web-dist/components/tab-list/TabList.js +2 -2
- package/web-dist/components/tab-panel/TabPanel.js +2 -2
- package/web-dist/components/tabs/Tabs.js +2 -2
- package/web-dist/components/text/Text.js +1 -1
- package/web-dist/components/text-input/TextInput.js +5 -5
- package/web-dist/components/theme-mode-toggle/ThemeModeToggle.js +4 -4
- package/web-dist/components/time-picker/TimePicker.js +9 -9
- package/web-dist/components/timeline/Timeline.js +4 -4
- package/web-dist/components/toast/Toast.js +4 -4
- package/web-dist/components/toast-provider/ToastProvider.js +4 -4
- package/web-dist/components/toolbar/Toolbar.js +10 -10
- package/web-dist/components/tree-item/TreeItem.js +7 -7
- package/web-dist/components/uploader/Uploader.js +13 -13
- package/web-dist/components/view/View.js +2 -2
- package/web-dist/manifest.json +774 -747
- package/web-dist/runtime/ZoraProvider.js +3 -3
- /package/web-dist/chunks/{Accordion-ww4f12ty.js → Accordion-5kaxyqy1.js} +0 -0
|
@@ -91,6 +91,20 @@ describe('ZORA_COMPONENT_META event metadata', () => {
|
|
|
91
91
|
expect(event?.payloadFields).toEqual([]);
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
+
test('declares Link navigation metadata with its serializable press payload', () => {
|
|
95
|
+
const link = ZORA_COMPONENT_META.Link;
|
|
96
|
+
|
|
97
|
+
expect(link.props.href).toMatchObject({ type: 'string', category: 'Navigation' });
|
|
98
|
+
expect(link.props.target?.enum).toEqual(['_self', '_blank', '_parent']);
|
|
99
|
+
expect(link.props.download).toMatchObject({ type: 'boolean', default: false });
|
|
100
|
+
expect(link.events?.press).toMatchObject({ eventType: 'link.press' });
|
|
101
|
+
expect(link.events?.press.payloadFields).toEqual([
|
|
102
|
+
{ path: 'href', type: 'string', label: 'URL' },
|
|
103
|
+
{ path: 'target', type: 'string', label: 'Target' },
|
|
104
|
+
{ path: 'download', type: 'boolean', label: 'Download' },
|
|
105
|
+
]);
|
|
106
|
+
});
|
|
107
|
+
|
|
94
108
|
test('declares collection item metadata for list rows', () => {
|
|
95
109
|
const event = ZORA_COMPONENT_META.ListItem.events?.itemPress;
|
|
96
110
|
const eventType: ZoraComponentEventPayloadKind = event?.eventType ?? 'collection.itemPress';
|
|
@@ -288,6 +302,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
288
302
|
'TabletopTable',
|
|
289
303
|
'PokerTrainingTable',
|
|
290
304
|
'Timeline',
|
|
305
|
+
'Link',
|
|
291
306
|
]);
|
|
292
307
|
|
|
293
308
|
const expectedContainerNodes = new Set([
|
|
@@ -67,6 +67,7 @@ import { gridMeta } from '../layout/gridMeta';
|
|
|
67
67
|
import { screenMeta } from '../layout/screenMeta';
|
|
68
68
|
import { scrollViewMeta } from '../layout/scrollViewMeta';
|
|
69
69
|
import { viewMeta } from '../layout/viewMeta';
|
|
70
|
+
import { linkMeta } from '../link/linkMeta';
|
|
70
71
|
import { flatListMeta } from '../list/flatListMeta';
|
|
71
72
|
import { listItemMeta, listMeta, listSectionMeta } from '../list/meta';
|
|
72
73
|
import { sectionListMeta } from '../list/sectionListMeta';
|
|
@@ -157,6 +158,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
157
158
|
IconButton: iconButtonMeta,
|
|
158
159
|
Image: imageMeta,
|
|
159
160
|
KeyboardAvoidingView: keyboardAvoidingViewMeta,
|
|
161
|
+
Link: linkMeta,
|
|
160
162
|
MasterDetail: masterDetailMeta,
|
|
161
163
|
TextInput: textInputMeta,
|
|
162
164
|
MediaCard: mediaCardMeta,
|
|
@@ -2,6 +2,7 @@ import type { ZoraThemeRecipeMetaRegistry } from '../../types/theme-recipe';
|
|
|
2
2
|
import { buttonThemeRecipeMeta } from '../button/utils/themeRecipeMeta';
|
|
3
3
|
import { cardThemeRecipeMeta } from '../card/utils/themeRecipeMeta';
|
|
4
4
|
import { radioGroupThemeRecipeMeta } from '../form/radio/themeRecipeMeta';
|
|
5
|
+
import { linkThemeRecipeMeta } from '../link/utils/linkThemeRecipeMeta';
|
|
5
6
|
import { headingThemeRecipeMeta } from '../typography/utils/headingThemeRecipeMeta';
|
|
6
7
|
import { textThemeRecipeMeta } from '../typography/utils/textThemeRecipeMeta';
|
|
7
8
|
|
|
@@ -9,6 +10,7 @@ export const ZORA_THEME_RECIPE_META: ZoraThemeRecipeMetaRegistry = {
|
|
|
9
10
|
Button: buttonThemeRecipeMeta,
|
|
10
11
|
Card: cardThemeRecipeMeta,
|
|
11
12
|
Heading: headingThemeRecipeMeta,
|
|
13
|
+
Link: linkThemeRecipeMeta,
|
|
12
14
|
RadioGroup: radioGroupThemeRecipeMeta,
|
|
13
15
|
Text: textThemeRecipeMeta,
|
|
14
16
|
};
|
package/src/readerFree.ts
CHANGED
|
@@ -331,6 +331,8 @@ export type {
|
|
|
331
331
|
ViewProps,
|
|
332
332
|
} from './features/layout/public';
|
|
333
333
|
export { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';
|
|
334
|
+
export type { LinkPressEvent, LinkProps, LinkTarget } from './features/link/public';
|
|
335
|
+
export { Link } from './features/link/public';
|
|
334
336
|
export type {
|
|
335
337
|
ManifestListProps,
|
|
336
338
|
ManifestListSection,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Responsive } from '@ankhorage/surface';
|
|
2
|
+
import type React from 'react';
|
|
3
|
+
|
|
4
|
+
import type { ZoraBaseProps } from './base';
|
|
5
|
+
import type { TextColor, TextVariant, TextWeight } from './text';
|
|
6
|
+
|
|
7
|
+
export type LinkTarget = '_blank' | '_parent' | '_self';
|
|
8
|
+
|
|
9
|
+
export interface LinkPressEvent {
|
|
10
|
+
href: string;
|
|
11
|
+
target?: LinkTarget;
|
|
12
|
+
download: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface LinkProps extends ZoraBaseProps {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
href: string;
|
|
18
|
+
target?: LinkTarget;
|
|
19
|
+
download?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
variant?: Responsive<TextVariant>;
|
|
22
|
+
color?: Responsive<TextColor>;
|
|
23
|
+
weight?: Responsive<TextWeight>;
|
|
24
|
+
accessibilityLabel?: string;
|
|
25
|
+
onPress?: (event: LinkPressEvent) => void;
|
|
26
|
+
}
|
|
@@ -23995,6 +23995,32 @@ var radioGroupThemeRecipeMeta = {
|
|
|
23995
23995
|
}
|
|
23996
23996
|
};
|
|
23997
23997
|
|
|
23998
|
+
// src/features/link/utils/linkThemeRecipeMeta.ts
|
|
23999
|
+
var linkThemeRecipeMeta = {
|
|
24000
|
+
name: "Link",
|
|
24001
|
+
kind: "component",
|
|
24002
|
+
description: "Maps semantic Link typography defaults into runtime props.",
|
|
24003
|
+
fields: {
|
|
24004
|
+
variant: {
|
|
24005
|
+
type: "choice",
|
|
24006
|
+
label: "Typography variant",
|
|
24007
|
+
options: ["body", "lead", "bodySmall", "caption", "label", "eyebrow", "code"],
|
|
24008
|
+
default: "body"
|
|
24009
|
+
},
|
|
24010
|
+
color: {
|
|
24011
|
+
type: "choice",
|
|
24012
|
+
label: "Color",
|
|
24013
|
+
options: ZORA_COLORS,
|
|
24014
|
+
default: "primary"
|
|
24015
|
+
},
|
|
24016
|
+
weight: {
|
|
24017
|
+
type: "choice",
|
|
24018
|
+
label: "Weight",
|
|
24019
|
+
options: ["regular", "medium", "semiBold", "bold"]
|
|
24020
|
+
}
|
|
24021
|
+
}
|
|
24022
|
+
};
|
|
24023
|
+
|
|
23998
24024
|
// src/features/typography/utils/typographyThemeRecipeFields.ts
|
|
23999
24025
|
var typographyThemeRecipeFields = {
|
|
24000
24026
|
color: { type: "choice", label: "Color", options: ZORA_COLORS },
|
|
@@ -24053,6 +24079,7 @@ var ZORA_THEME_RECIPE_META = {
|
|
|
24053
24079
|
Button: buttonThemeRecipeMeta,
|
|
24054
24080
|
Card: cardThemeRecipeMeta,
|
|
24055
24081
|
Heading: headingThemeRecipeMeta,
|
|
24082
|
+
Link: linkThemeRecipeMeta,
|
|
24056
24083
|
RadioGroup: radioGroupThemeRecipeMeta,
|
|
24057
24084
|
Text: textThemeRecipeMeta
|
|
24058
24085
|
};
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./Accordion-mnac2z83.js";
|
|
5
5
|
import {
|
|
6
6
|
View3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-5kaxyqy1.js";
|
|
8
8
|
import {
|
|
9
9
|
useTheme
|
|
10
10
|
} from "./Accordion-9d38cgqj.js";
|
|
11
11
|
import {
|
|
12
12
|
Pressable
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-s1qjbbb0.js";
|
|
14
14
|
import {
|
|
15
15
|
Text2
|
|
16
16
|
} from "./Accordion-kcm6jcpp.js";
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
} from "./Accordion-tk8zf9ff.js";
|
|
20
20
|
import {
|
|
21
21
|
View2
|
|
22
|
-
} from "./Accordion-
|
|
22
|
+
} from "./Accordion-k6v7p2na.js";
|
|
23
23
|
import {
|
|
24
24
|
Text3
|
|
25
|
-
} from "./Accordion-
|
|
25
|
+
} from "./Accordion-8skz71ct.js";
|
|
26
26
|
import {
|
|
27
27
|
Icon2
|
|
28
28
|
} from "./Accordion-3zzzw7a8.js";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Pressable
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-s1qjbbb0.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-k6v7p2na.js";
|
|
11
11
|
import {
|
|
12
12
|
Text3
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-8skz71ct.js";
|
|
14
14
|
import {
|
|
15
15
|
Avatar2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-g07r4t2f.js";
|
|
17
17
|
import {
|
|
18
18
|
Badge2
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-nv1evygk.js";
|
|
20
20
|
import {
|
|
21
21
|
useZoraTheme2
|
|
22
22
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -9,28 +9,28 @@ import {
|
|
|
9
9
|
View2,
|
|
10
10
|
Divider2,
|
|
11
11
|
ScrollView2
|
|
12
|
-
} from "./Accordion-
|
|
12
|
+
} from "./Accordion-k6v7p2na.js";
|
|
13
13
|
import {
|
|
14
14
|
Surface2
|
|
15
|
-
} from "./Accordion-
|
|
15
|
+
} from "./Accordion-nrwc0rx2.js";
|
|
16
16
|
import {
|
|
17
17
|
Text3
|
|
18
|
-
} from "./Accordion-
|
|
18
|
+
} from "./Accordion-8skz71ct.js";
|
|
19
19
|
import {
|
|
20
20
|
Button3
|
|
21
|
-
} from "./Accordion-
|
|
21
|
+
} from "./Accordion-em4ktbkk.js";
|
|
22
22
|
import {
|
|
23
23
|
FormActions2,
|
|
24
24
|
FormError2,
|
|
25
25
|
hasRequiredRule,
|
|
26
26
|
useFormController
|
|
27
|
-
} from "./Accordion-
|
|
27
|
+
} from "./Accordion-vyw2bzye.js";
|
|
28
28
|
import {
|
|
29
29
|
Field2
|
|
30
|
-
} from "./Accordion-
|
|
30
|
+
} from "./Accordion-r30bwg03.js";
|
|
31
31
|
import {
|
|
32
32
|
TextInput2
|
|
33
|
-
} from "./Accordion-
|
|
33
|
+
} from "./Accordion-4zbh7wfn.js";
|
|
34
34
|
import {
|
|
35
35
|
require_cjs
|
|
36
36
|
} from "./Accordion-xgpzh4wq.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Button3
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-em4ktbkk.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-k6v7p2na.js";
|
|
11
11
|
import {
|
|
12
12
|
GridView2
|
|
13
13
|
} from "./Accordion-rhjddvkh.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-8skz71ct.js";
|
|
17
17
|
|
|
18
18
|
// src/features/calendar/adapters/inbound/Calendar.tsx
|
|
19
19
|
import React from "react";
|
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
resolvePointerEvents,
|
|
10
10
|
View3
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-5kaxyqy1.js";
|
|
12
12
|
import {
|
|
13
13
|
useTheme
|
|
14
14
|
} from "./Accordion-9d38cgqj.js";
|
|
15
15
|
import {
|
|
16
16
|
Surface3
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-b8ncebyz.js";
|
|
18
18
|
import {
|
|
19
19
|
withZoraThemeScope
|
|
20
20
|
} from "./Accordion-tk8zf9ff.js";
|
|
21
21
|
import {
|
|
22
22
|
View2
|
|
23
|
-
} from "./Accordion-
|
|
23
|
+
} from "./Accordion-k6v7p2na.js";
|
|
24
24
|
import {
|
|
25
25
|
Heading2,
|
|
26
26
|
Text3
|
|
27
|
-
} from "./Accordion-
|
|
27
|
+
} from "./Accordion-8skz71ct.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveOverlayAnimation
|
|
30
30
|
} from "./Accordion-xzaa9s7f.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./Accordion-tk8zf9ff.js";
|
|
5
5
|
import {
|
|
6
6
|
View2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-k6v7p2na.js";
|
|
8
8
|
import {
|
|
9
9
|
Text3
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-8skz71ct.js";
|
|
11
11
|
import {
|
|
12
12
|
useZoraTheme2
|
|
13
13
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Pressable
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-s1qjbbb0.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./Accordion-3zzzw7a8.js";
|
|
11
11
|
import {
|
|
12
12
|
View2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-k6v7p2na.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-8skz71ct.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveIconSize
|
|
19
19
|
} from "./Accordion-961ncx4e.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./Accordion-be2yhfqz.js";
|
|
8
8
|
import {
|
|
9
9
|
View3
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-5kaxyqy1.js";
|
|
11
11
|
import {
|
|
12
12
|
useTheme
|
|
13
13
|
} from "./Accordion-9d38cgqj.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./Accordion-fdzyyqe9.js";
|
|
17
17
|
import {
|
|
18
18
|
Surface3
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-b8ncebyz.js";
|
|
20
20
|
import {
|
|
21
21
|
Text2
|
|
22
22
|
} from "./Accordion-kcm6jcpp.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
} from "./Accordion-3zzzw7a8.js";
|
|
29
29
|
import {
|
|
30
30
|
View2
|
|
31
|
-
} from "./Accordion-
|
|
31
|
+
} from "./Accordion-k6v7p2na.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveIconSize
|
|
34
34
|
} from "./Accordion-961ncx4e.js";
|
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
} from "./Accordion-9d38cgqj.js";
|
|
11
11
|
import {
|
|
12
12
|
Pressable
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-s1qjbbb0.js";
|
|
14
14
|
import {
|
|
15
15
|
withZoraThemeScope
|
|
16
16
|
} from "./Accordion-tk8zf9ff.js";
|
|
17
17
|
import {
|
|
18
18
|
View2,
|
|
19
19
|
Divider2
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-k6v7p2na.js";
|
|
21
21
|
import {
|
|
22
22
|
Heading2,
|
|
23
23
|
Text3
|
|
24
|
-
} from "./Accordion-
|
|
24
|
+
} from "./Accordion-8skz71ct.js";
|
|
25
25
|
import {
|
|
26
26
|
useClipboardWriter,
|
|
27
27
|
writeClipboardTextAsync
|
|
@@ -42,19 +42,19 @@ import {
|
|
|
42
42
|
Stop,
|
|
43
43
|
Svg,
|
|
44
44
|
IconButton2
|
|
45
|
-
} from "./Accordion-
|
|
45
|
+
} from "./Accordion-em4ktbkk.js";
|
|
46
46
|
import {
|
|
47
47
|
Card2
|
|
48
|
-
} from "./Accordion-
|
|
48
|
+
} from "./Accordion-kr1reyt9.js";
|
|
49
49
|
import {
|
|
50
50
|
Icon2
|
|
51
51
|
} from "./Accordion-3zzzw7a8.js";
|
|
52
52
|
import {
|
|
53
53
|
Select2
|
|
54
|
-
} from "./Accordion-
|
|
54
|
+
} from "./Accordion-e2b9yja2.js";
|
|
55
55
|
import {
|
|
56
56
|
Gradient2
|
|
57
|
-
} from "./Accordion-
|
|
57
|
+
} from "./Accordion-t93g1wq3.js";
|
|
58
58
|
import {
|
|
59
59
|
useZoraTheme2
|
|
60
60
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -7,28 +7,28 @@ import {
|
|
|
7
7
|
} from "./Accordion-tk8zf9ff.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-k6v7p2na.js";
|
|
11
11
|
import {
|
|
12
12
|
Surface2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-nrwc0rx2.js";
|
|
14
14
|
import {
|
|
15
15
|
Field3
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-rwjbwm18.js";
|
|
17
17
|
import {
|
|
18
18
|
Pressable
|
|
19
|
-
} from "./Accordion-
|
|
19
|
+
} from "./Accordion-s1qjbbb0.js";
|
|
20
20
|
import {
|
|
21
21
|
Button3
|
|
22
|
-
} from "./Accordion-
|
|
22
|
+
} from "./Accordion-em4ktbkk.js";
|
|
23
23
|
import {
|
|
24
24
|
Icon2
|
|
25
25
|
} from "./Accordion-3zzzw7a8.js";
|
|
26
26
|
import {
|
|
27
27
|
Image2
|
|
28
|
-
} from "./Accordion-
|
|
28
|
+
} from "./Accordion-4v920xz8.js";
|
|
29
29
|
import {
|
|
30
30
|
Text3
|
|
31
|
-
} from "./Accordion-
|
|
31
|
+
} from "./Accordion-8skz71ct.js";
|
|
32
32
|
import {
|
|
33
33
|
useZoraTheme2
|
|
34
34
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
} from "./Accordion-9d38cgqj.js";
|
|
18
18
|
import {
|
|
19
19
|
View3
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-5kaxyqy1.js";
|
|
21
21
|
import {
|
|
22
22
|
Pressable
|
|
23
|
-
} from "./Accordion-
|
|
23
|
+
} from "./Accordion-s1qjbbb0.js";
|
|
24
24
|
import {
|
|
25
25
|
Text2
|
|
26
26
|
} from "./Accordion-kcm6jcpp.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./Accordion-tk8zf9ff.js";
|
|
30
30
|
import {
|
|
31
31
|
View2
|
|
32
|
-
} from "./Accordion-
|
|
32
|
+
} from "./Accordion-k6v7p2na.js";
|
|
33
33
|
import {
|
|
34
34
|
resolveControlSize,
|
|
35
35
|
resolveIconSize2,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from "./Accordion-3zzzw7a8.js";
|
|
11
11
|
import {
|
|
12
12
|
Image2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-4v920xz8.js";
|
|
14
14
|
import {
|
|
15
15
|
Text3
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-8skz71ct.js";
|
|
17
17
|
import {
|
|
18
18
|
applySelectionIntent
|
|
19
19
|
} from "./Accordion-n4et7etk.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
View2
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-k6v7p2na.js";
|
|
5
5
|
import {
|
|
6
6
|
Text3
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-8skz71ct.js";
|
|
8
8
|
import {
|
|
9
9
|
Field3
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-rwjbwm18.js";
|
|
11
11
|
|
|
12
12
|
// src/features/picker/composition/PickerHeader.tsx
|
|
13
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./Accordion-3zzzw7a8.js";
|
|
8
8
|
import {
|
|
9
9
|
View2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-k6v7p2na.js";
|
|
11
11
|
import {
|
|
12
12
|
Text3
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-8skz71ct.js";
|
|
14
14
|
import {
|
|
15
15
|
useZoraTheme2
|
|
16
16
|
} from "./Accordion-b1y5mjac.js";
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import {
|
|
3
3
|
View3,
|
|
4
4
|
Divider3
|
|
5
|
-
} from "./Accordion-
|
|
5
|
+
} from "./Accordion-5kaxyqy1.js";
|
|
6
6
|
import {
|
|
7
7
|
useTheme
|
|
8
8
|
} from "./Accordion-9d38cgqj.js";
|
|
9
9
|
import {
|
|
10
10
|
IconButton2
|
|
11
|
-
} from "./Accordion-
|
|
11
|
+
} from "./Accordion-em4ktbkk.js";
|
|
12
12
|
import {
|
|
13
13
|
withZoraThemeScope
|
|
14
14
|
} from "./Accordion-tk8zf9ff.js";
|
|
15
15
|
import {
|
|
16
16
|
View2
|
|
17
|
-
} from "./Accordion-
|
|
17
|
+
} from "./Accordion-k6v7p2na.js";
|
|
18
18
|
import {
|
|
19
19
|
PopoverMenu2
|
|
20
|
-
} from "./Accordion-
|
|
20
|
+
} from "./Accordion-bjq32vq2.js";
|
|
21
21
|
import {
|
|
22
22
|
Heading2,
|
|
23
23
|
Text3
|
|
24
|
-
} from "./Accordion-
|
|
24
|
+
} from "./Accordion-8skz71ct.js";
|
|
25
25
|
import {
|
|
26
26
|
useZoraTheme2
|
|
27
27
|
} from "./Accordion-b1y5mjac.js";
|