@ankhorage/zora 19.0.0 → 20.0.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 -2
- package/dist/features/accordion/accordionItemMeta.js +1 -1
- package/dist/features/accordion/accordionItemMeta.js.map +1 -1
- package/dist/features/accordion/accordionMeta.js.map +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.d.ts.map +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.js +1 -1
- package/dist/features/accordion/adapters/inbound/Accordion.js.map +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.d.ts.map +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.js +1 -1
- package/dist/features/accordion/adapters/inbound/AccordionItem.js.map +1 -1
- package/dist/features/activity-indicator/activityIndicatorMeta.js.map +1 -1
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts.map +1 -1
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js +2 -2
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js.map +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.d.ts.map +1 -1
- package/dist/features/app-bar/adapters/inbound/AppBar.js +2 -2
- package/dist/features/app-bar/adapters/inbound/AppBar.js.map +1 -1
- package/dist/features/app-bar/appBarMeta.js.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthFormField.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/AuthFormField.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/AuthFormField.js.map +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.js +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js.map +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.js +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.js +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.js.map +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.d.ts.map +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.js +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.js.map +1 -1
- package/dist/features/auth/forgotPasswordFormMeta.js.map +1 -1
- package/dist/features/auth/oauthProviderButtonMeta.js +1 -1
- package/dist/features/auth/oauthProviderButtonMeta.js.map +1 -1
- package/dist/features/auth/oauthProviderListMeta.js +1 -1
- package/dist/features/auth/oauthProviderListMeta.js.map +1 -1
- package/dist/features/auth/otpFormMeta.js.map +1 -1
- package/dist/features/auth/signInFormMeta.js.map +1 -1
- package/dist/features/auth/signUpFormMeta.js.map +1 -1
- package/dist/features/authoring/allowedChildren.d.ts.map +1 -0
- package/dist/features/authoring/allowedChildren.js.map +1 -0
- package/dist/{metadata → features/authoring}/bindableComponentMeta.d.ts +3 -3
- package/dist/{metadata → features/authoring}/bindableComponentMeta.d.ts.map +1 -1
- package/dist/{metadata → features/authoring}/bindableComponentMeta.js +2 -2
- package/dist/features/authoring/bindableComponentMeta.js.map +1 -0
- package/dist/features/authoring/componentMeta.d.ts +3 -0
- package/dist/features/authoring/componentMeta.d.ts.map +1 -0
- package/dist/features/authoring/componentMeta.js +184 -0
- package/dist/features/authoring/componentMeta.js.map +1 -0
- package/dist/{constants.d.ts → features/authoring/constants.d.ts} +1 -0
- package/dist/features/authoring/constants.d.ts.map +1 -0
- package/dist/{constants.js → features/authoring/constants.js} +7 -0
- package/dist/features/authoring/constants.js.map +1 -0
- package/dist/{metadata → features/authoring}/index.d.ts +7 -6
- package/dist/features/authoring/index.d.ts.map +1 -0
- package/dist/features/authoring/index.js +8 -0
- package/dist/features/authoring/index.js.map +1 -0
- package/dist/features/authoring/themeRecipeMeta.d.ts +3 -0
- package/dist/features/authoring/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/authoring/themeRecipeMeta.js +13 -0
- package/dist/features/authoring/themeRecipeMeta.js.map +1 -0
- package/dist/{utils → features/authoring/utils}/createManifestBindings.d.ts +1 -1
- package/dist/features/authoring/utils/createManifestBindings.d.ts.map +1 -0
- package/dist/features/authoring/utils/createManifestBindings.js.map +1 -0
- package/dist/{utils → features/authoring/utils}/finalizeFeatureMetadata.d.ts +1 -1
- package/dist/features/authoring/utils/finalizeFeatureMetadata.d.ts.map +1 -0
- package/dist/features/authoring/utils/finalizeFeatureMetadata.js.map +1 -0
- package/dist/features/avatar/adapters/inbound/Avatar.d.ts.map +1 -1
- package/dist/features/avatar/adapters/inbound/Avatar.js +2 -2
- package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -1
- package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts.map +1 -1
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js +2 -2
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -1
- package/dist/features/avatar/avatarGroupMeta.js.map +1 -1
- package/dist/features/avatar/avatarMeta.js.map +1 -1
- package/dist/features/badge/adapters/inbound/Badge.d.ts.map +1 -1
- package/dist/features/badge/adapters/inbound/Badge.js +2 -2
- package/dist/features/badge/adapters/inbound/Badge.js.map +1 -1
- package/dist/features/badge/badgeMeta.js.map +1 -1
- package/dist/features/badge/utils/resolveBadgeRecipe.d.ts +10 -0
- package/dist/features/badge/utils/resolveBadgeRecipe.d.ts.map +1 -0
- package/dist/features/badge/utils/resolveBadgeRecipe.js +4 -0
- package/dist/features/badge/utils/resolveBadgeRecipe.js.map +1 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts.map +1 -1
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +3 -3
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.js +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.js.map +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.d.ts.map +1 -1
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js +3 -3
- package/dist/features/breadcrumbs/adapters/inbound/Breadcrumbs.js.map +1 -1
- package/dist/features/breadcrumbs/breadcrumbsMeta.js.map +1 -1
- package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -1
- package/dist/features/button/adapters/inbound/Button.js +2 -2
- package/dist/features/button/adapters/inbound/Button.js.map +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.d.ts.map +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.js +1 -1
- package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -1
- package/dist/features/button/adapters/inbound/IconButton.d.ts.map +1 -1
- package/dist/features/button/adapters/inbound/IconButton.js +2 -2
- package/dist/features/button/adapters/inbound/IconButton.js.map +1 -1
- package/dist/features/button/buttonGroupMeta.js.map +1 -1
- package/dist/features/button/buttonMeta.js +2 -2
- package/dist/features/button/buttonMeta.js.map +1 -1
- package/dist/features/button/iconButtonMeta.js.map +1 -1
- package/dist/features/button/utils/resolveButtonRecipe.d.ts +10 -0
- package/dist/features/button/utils/resolveButtonRecipe.d.ts.map +1 -0
- package/dist/features/button/utils/resolveButtonRecipe.js +4 -0
- package/dist/features/button/utils/resolveButtonRecipe.js.map +1 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +4 -2
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts.map +1 -1
- package/dist/features/button/utils/resolveButtonThemeRecipe.js +1 -1
- package/dist/features/button/utils/resolveButtonThemeRecipe.js.map +1 -1
- package/dist/features/button/utils/themeRecipeMeta.js +1 -1
- package/dist/features/button/utils/themeRecipeMeta.js.map +1 -1
- package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/Card.js +3 -3
- package/dist/features/card/adapters/inbound/Card.js.map +1 -1
- package/dist/features/card/adapters/inbound/MediaCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/MediaCard.js +2 -2
- package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/MetricCard.js +4 -3
- package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/PostCard.js +2 -2
- package/dist/features/card/adapters/inbound/PostCard.js.map +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.d.ts +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.js +1 -1
- package/dist/features/card/adapters/inbound/ProductCard.js.map +1 -1
- package/dist/features/card/cardMeta.js +2 -2
- package/dist/features/card/cardMeta.js.map +1 -1
- package/dist/features/card/mediaCardMeta.js +1 -1
- package/dist/features/card/mediaCardMeta.js.map +1 -1
- package/dist/features/card/metricCardMeta.js.map +1 -1
- package/dist/features/card/postCardMeta.js +1 -1
- package/dist/features/card/postCardMeta.js.map +1 -1
- package/dist/features/card/productCardMeta.js.map +1 -1
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts +1 -1
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts.map +1 -1
- package/dist/features/card/utils/resolveCardThemeRecipe.js.map +1 -1
- package/dist/features/card/utils/resolveCardVariant.d.ts +4 -0
- package/dist/features/card/utils/resolveCardVariant.d.ts.map +1 -0
- package/dist/features/card/utils/resolveCardVariant.js +12 -0
- package/dist/features/card/utils/resolveCardVariant.js.map +1 -0
- package/dist/features/card/utils/themeRecipeMeta.js.map +1 -1
- package/dist/features/chat/adapters/inbound/ChatListItem.d.ts.map +1 -1
- package/dist/features/chat/adapters/inbound/ChatListItem.js +2 -2
- package/dist/features/chat/adapters/inbound/ChatListItem.js.map +1 -1
- package/dist/features/chat/adapters/inbound/MessageBubble.d.ts.map +1 -1
- package/dist/features/chat/adapters/inbound/MessageBubble.js +2 -2
- package/dist/features/chat/adapters/inbound/MessageBubble.js.map +1 -1
- package/dist/features/chat/chatListItemMeta.js.map +1 -1
- package/dist/features/chat/messageBubbleMeta.js +1 -1
- package/dist/features/chat/messageBubbleMeta.js.map +1 -1
- package/dist/features/chip/adapters/inbound/Chip.d.ts.map +1 -1
- package/dist/features/chip/adapters/inbound/Chip.js +3 -3
- package/dist/features/chip/adapters/inbound/Chip.js.map +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.js +1 -1
- package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -1
- package/dist/features/chip/chipGroupMeta.js.map +1 -1
- package/dist/features/chip/chipMeta.js.map +1 -1
- package/dist/features/chip/utils/resolveChipColors.d.ts +1 -1
- package/dist/features/chip/utils/resolveChipColors.d.ts.map +1 -1
- package/dist/features/chip/utils/resolveChipColors.js.map +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.d.ts.map +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js +1 -1
- package/dist/features/collection-editor/adapters/inbound/CollectionEditor.js.map +1 -1
- package/dist/features/collection-editor/meta.js.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRail.d.ts.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRail.js +2 -2
- package/dist/features/content-rail/adapters/inbound/ContentRail.js.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.d.ts.map +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js +1 -1
- package/dist/features/content-rail/adapters/inbound/ContentRailFlow.js.map +1 -1
- package/dist/features/content-rail/contentRailMeta.js +1 -1
- package/dist/features/content-rail/contentRailMeta.js.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
- package/dist/features/data-table/dataTableMeta.js.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.d.ts.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.js +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.native.js.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.d.ts.map +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.js +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.web.js.map +1 -1
- package/dist/features/date-picker/datePickerMeta.js.map +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.d.ts.map +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.js +2 -2
- package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -1
- package/dist/features/dialog/dialogMeta.js +1 -1
- package/dist/features/dialog/dialogMeta.js.map +1 -1
- package/dist/features/dialog/utils/resolveDialogWidth.d.ts +3 -0
- package/dist/features/dialog/utils/resolveDialogWidth.d.ts.map +1 -0
- package/dist/features/dialog/utils/resolveDialogWidth.js +12 -0
- package/dist/features/dialog/utils/resolveDialogWidth.js.map +1 -0
- package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -1
- package/dist/features/empty-state/adapters/inbound/EmptyState.js +1 -1
- package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -1
- package/dist/features/empty-state/emptyStateMeta.js.map +1 -1
- package/dist/features/form/adapters/inbound/Form.d.ts.map +1 -1
- package/dist/features/form/adapters/inbound/Form.js +1 -1
- package/dist/features/form/adapters/inbound/Form.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormActions.d.ts.map +1 -1
- package/dist/features/form/adapters/inbound/FormActions.js +1 -1
- package/dist/features/form/adapters/inbound/FormActions.js.map +1 -1
- package/dist/features/form/adapters/inbound/FormError.d.ts.map +1 -1
- package/dist/features/form/adapters/inbound/FormError.js +2 -2
- package/dist/features/form/adapters/inbound/FormError.js.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.d.ts.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -1
- package/dist/features/form/checkbox/checkboxMeta.js.map +1 -1
- package/dist/features/form/field/adapters/inbound/Field.d.ts.map +1 -1
- package/dist/features/form/field/adapters/inbound/Field.js +1 -1
- package/dist/features/form/field/adapters/inbound/Field.js.map +1 -1
- package/dist/features/form/field/meta.js.map +1 -1
- package/dist/features/form/formActionsMeta.js.map +1 -1
- package/dist/features/form/formErrorMeta.js.map +1 -1
- package/dist/features/form/formMeta.js.map +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.d.ts.map +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.js +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.js.map +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js +2 -2
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -1
- package/dist/{constants/keyboard.d.ts → features/form/radio/constants.d.ts} +1 -1
- package/dist/features/form/radio/constants.d.ts.map +1 -0
- package/dist/{constants/keyboard.js → features/form/radio/constants.js} +1 -1
- package/dist/features/form/radio/constants.js.map +1 -0
- package/dist/features/form/radio/radioMeta.js +1 -1
- package/dist/features/form/radio/radioMeta.js.map +1 -1
- package/dist/features/form/radio/themeRecipeMeta.js +1 -1
- package/dist/features/form/radio/themeRecipeMeta.js.map +1 -1
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js +1 -1
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js.map +1 -1
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +2 -2
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts.map +1 -1
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.js.map +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts.map +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.js +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.js.map +1 -1
- package/dist/features/form/search-input/searchInputMeta.js.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.d.ts.map +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.js +1 -1
- package/dist/features/form/select/adapters/inbound/Select.native.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 +1 -1
- package/dist/features/form/select/adapters/inbound/Select.web.js.map +1 -1
- package/dist/features/form/select/selectMeta.js.map +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.d.ts.map +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.js +1 -1
- package/dist/features/form/switch/adapters/inbound/Switch.js.map +1 -1
- package/dist/features/form/switch/switchMeta.js.map +1 -1
- package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts.map +1 -1
- package/dist/features/form/text-input/adapters/inbound/TextInput.js +3 -3
- package/dist/features/form/text-input/adapters/inbound/TextInput.js.map +1 -1
- package/dist/features/form/text-input/textInputMeta.js.map +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.d.ts.map +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.js +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.js.map +1 -1
- package/dist/features/gradient/gradientMeta.js +1 -1
- package/dist/features/gradient/gradientMeta.js.map +1 -1
- package/dist/features/hero/adapters/inbound/Hero.d.ts.map +1 -1
- package/dist/features/hero/adapters/inbound/Hero.js +1 -1
- package/dist/features/hero/adapters/inbound/Hero.js.map +1 -1
- package/dist/features/hero/heroMeta.js.map +1 -1
- package/dist/features/icon/adapters/inbound/Icon.d.ts.map +1 -1
- package/dist/features/icon/adapters/inbound/Icon.js +1 -1
- package/dist/features/icon/adapters/inbound/Icon.js.map +1 -1
- package/dist/features/icon/iconMeta.js.map +1 -1
- package/dist/features/icon/utils/resolveIconSize.d.ts +3 -0
- package/dist/features/icon/utils/resolveIconSize.d.ts.map +1 -0
- package/dist/features/icon/utils/resolveIconSize.js +12 -0
- package/dist/features/icon/utils/resolveIconSize.js.map +1 -0
- package/dist/features/image/adapters/inbound/Image.d.ts.map +1 -1
- package/dist/features/image/adapters/inbound/Image.js +2 -2
- package/dist/features/image/adapters/inbound/Image.js.map +1 -1
- package/dist/features/image/imageMeta.js.map +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.d.ts.map +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js +1 -1
- package/dist/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.js.map +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.js.map +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.js +1 -1
- package/dist/features/layout/adapters/inbound/AppShell.js.map +1 -1
- package/dist/features/layout/adapters/inbound/Divider.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/Divider.js +1 -1
- package/dist/features/layout/adapters/inbound/Divider.js.map +1 -1
- package/dist/features/layout/adapters/inbound/Grid.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/Grid.js +1 -1
- package/dist/features/layout/adapters/inbound/Grid.js.map +1 -1
- package/dist/features/layout/adapters/inbound/Screen.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/Screen.js +2 -2
- package/dist/features/layout/adapters/inbound/Screen.js.map +1 -1
- package/dist/features/layout/adapters/inbound/ScrollView.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/ScrollView.js +1 -1
- package/dist/features/layout/adapters/inbound/ScrollView.js.map +1 -1
- package/dist/features/layout/adapters/inbound/View.d.ts.map +1 -1
- package/dist/features/layout/adapters/inbound/View.js +1 -1
- package/dist/features/layout/adapters/inbound/View.js.map +1 -1
- package/dist/features/layout/appShellMeta.js.map +1 -1
- package/dist/features/layout/constants.js.map +1 -1
- package/dist/features/layout/dividerMeta.js.map +1 -1
- package/dist/features/layout/gridMeta.js +1 -1
- package/dist/features/layout/gridMeta.js.map +1 -1
- package/dist/features/layout/screenMeta.js +1 -1
- package/dist/features/layout/screenMeta.js.map +1 -1
- package/dist/features/layout/scrollViewMeta.js +1 -1
- package/dist/features/layout/scrollViewMeta.js.map +1 -1
- package/dist/features/layout/utils/resolvePageMaxWidth.d.ts +3 -0
- package/dist/features/layout/utils/resolvePageMaxWidth.d.ts.map +1 -0
- package/dist/features/layout/utils/resolvePageMaxWidth.js +12 -0
- package/dist/features/layout/utils/resolvePageMaxWidth.js.map +1 -0
- package/dist/features/layout/viewMeta.js +1 -1
- package/dist/features/layout/viewMeta.js.map +1 -1
- package/dist/features/list/adapters/inbound/FlatList.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/FlatList.js +1 -1
- package/dist/features/list/adapters/inbound/FlatList.js.map +1 -1
- package/dist/features/list/adapters/inbound/List.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/List.js +1 -1
- package/dist/features/list/adapters/inbound/List.js.map +1 -1
- package/dist/features/list/adapters/inbound/ListItem.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/ListItem.js +2 -2
- package/dist/features/list/adapters/inbound/ListItem.js.map +1 -1
- package/dist/features/list/adapters/inbound/ListSection.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/ListSection.js +1 -1
- package/dist/features/list/adapters/inbound/ListSection.js.map +1 -1
- package/dist/features/list/adapters/inbound/SectionList.d.ts.map +1 -1
- package/dist/features/list/adapters/inbound/SectionList.js +1 -1
- package/dist/features/list/adapters/inbound/SectionList.js.map +1 -1
- package/dist/features/list/flatListMeta.js +1 -1
- package/dist/features/list/flatListMeta.js.map +1 -1
- package/dist/features/list/meta.js.map +1 -1
- package/dist/features/list/sectionListMeta.js.map +1 -1
- package/dist/features/missing-element/adapters/inbound/MissingElement.d.ts.map +1 -1
- package/dist/features/missing-element/adapters/inbound/MissingElement.js +2 -2
- package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -1
- package/dist/features/missing-element/missingElementMeta.js.map +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.d.ts.map +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.js +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -1
- package/dist/features/pagination/paginationMeta.js.map +1 -1
- package/dist/features/palette-item/adapters/inbound/PaletteItem.d.ts.map +1 -1
- package/dist/features/palette-item/adapters/inbound/PaletteItem.js +2 -2
- package/dist/features/palette-item/adapters/inbound/PaletteItem.js.map +1 -1
- package/dist/features/palette-item/paletteItemMeta.js.map +1 -1
- package/dist/{corePlugin.d.ts → features/plugin/ZORA_CORE_PLUGIN.d.ts} +2 -2
- package/dist/features/plugin/ZORA_CORE_PLUGIN.d.ts.map +1 -0
- package/dist/{corePlugin.js → features/plugin/ZORA_CORE_PLUGIN.js} +3 -3
- package/dist/features/plugin/ZORA_CORE_PLUGIN.js.map +1 -0
- package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.d.ts +3 -0
- package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.d.ts.map +1 -0
- package/dist/{corePluginMetadata.js → features/plugin/ZORA_CORE_PLUGIN_METADATA.js} +3 -3
- package/dist/features/plugin/ZORA_CORE_PLUGIN_METADATA.js.map +1 -0
- package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.d.ts +4 -0
- package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.d.ts.map +1 -0
- package/dist/{pluginComposition.js → features/plugin/application/use-cases/composeZoraPluginMetadata.js} +4 -51
- package/dist/features/plugin/application/use-cases/composeZoraPluginMetadata.js.map +1 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.d.ts +4 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.d.ts.map +1 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.js +41 -0
- package/dist/features/plugin/application/use-cases/composeZoraPlugins.js.map +1 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.d.ts +14 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.d.ts.map +1 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.js +14 -0
- package/dist/features/plugin/domain/ZoraPluginCompositionError.js.map +1 -0
- package/dist/features/plugin/public.d.ts +4 -0
- package/dist/features/plugin/public.d.ts.map +1 -0
- package/dist/features/plugin/public.js +4 -0
- package/dist/features/plugin/public.js.map +1 -0
- package/dist/features/plugin/runtime.d.ts +3 -0
- package/dist/features/plugin/runtime.d.ts.map +1 -0
- package/dist/features/plugin/runtime.js +3 -0
- package/dist/features/plugin/runtime.js.map +1 -0
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.d.ts.map +1 -1
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js +3 -3
- package/dist/features/popover-menu/adapters/inbound/PopoverMenu.js.map +1 -1
- package/dist/features/popover-menu/popoverMenuMeta.js.map +1 -1
- package/dist/features/progress/adapters/inbound/Progress.d.ts.map +1 -1
- package/dist/features/progress/adapters/inbound/Progress.js +2 -2
- package/dist/features/progress/adapters/inbound/Progress.js.map +1 -1
- package/dist/features/progress/adapters/inbound/ProgressRing.d.ts.map +1 -1
- package/dist/features/progress/adapters/inbound/ProgressRing.js +2 -2
- package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -1
- package/dist/features/progress/progressMeta.js +1 -1
- package/dist/features/progress/progressMeta.js.map +1 -1
- package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -1
- package/dist/features/rating/adapters/inbound/Rating.js +3 -3
- package/dist/features/rating/adapters/inbound/Rating.js.map +1 -1
- package/dist/features/rating/ratingMeta.js.map +1 -1
- package/dist/features/reader/adapters/inbound/ReaderSurface.d.ts.map +1 -1
- package/dist/features/reader/adapters/inbound/ReaderSurface.js +2 -2
- package/dist/features/reader/adapters/inbound/ReaderSurface.js.map +1 -1
- package/dist/features/reader/meta.d.ts +3 -3
- package/dist/features/reader/meta.js +2 -2
- package/dist/features/reader/meta.js.map +1 -1
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts +3 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +151 -0
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -0
- package/dist/features/registry/public.d.ts +2 -0
- package/dist/features/registry/public.d.ts.map +1 -0
- package/dist/features/registry/public.js +2 -0
- package/dist/features/registry/public.js.map +1 -0
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.d.ts.map +1 -1
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js +2 -2
- package/dist/features/scanner/adapters/inbound/BarcodeScannerView.js.map +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.d.ts.map +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.js +1 -1
- package/dist/features/scanner/adapters/inbound/CameraPermissionView.js.map +1 -1
- package/dist/features/scanner/adapters/inbound/ScanOverlay.d.ts.map +1 -1
- package/dist/features/scanner/adapters/inbound/ScanOverlay.js +2 -2
- package/dist/features/scanner/adapters/inbound/ScanOverlay.js.map +1 -1
- package/dist/features/scanner/meta.d.ts +9 -9
- package/dist/features/scanner/meta.js +4 -4
- package/dist/features/scanner/meta.js.map +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.d.ts.map +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.js +1 -1
- package/dist/features/section/adapters/inbound/ScreenSection.js.map +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.d.ts.map +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.js +1 -1
- package/dist/features/section/adapters/inbound/SectionHeader.js.map +1 -1
- package/dist/features/section/screenSectionMeta.js +1 -1
- package/dist/features/section/screenSectionMeta.js.map +1 -1
- package/dist/features/section/sectionHeaderMeta.js.map +1 -1
- package/dist/features/selection/meta.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/Skeleton.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/Skeleton.js +2 -2
- package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.d.ts.map +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -1
- package/dist/features/skeleton/skeletonMeta.js.map +1 -1
- package/dist/features/surface/adapters/inbound/Surface.d.ts.map +1 -1
- package/dist/features/surface/adapters/inbound/Surface.js +1 -1
- package/dist/features/surface/adapters/inbound/Surface.js.map +1 -1
- package/dist/features/surface/surfaceMeta.js +1 -1
- package/dist/features/surface/surfaceMeta.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.js +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabList.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabList.js +1 -1
- package/dist/features/tabs/adapters/inbound/TabList.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.js +1 -1
- package/dist/features/tabs/adapters/inbound/TabPanel.js.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.d.ts.map +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.js +1 -1
- package/dist/features/tabs/adapters/inbound/Tabs.js.map +1 -1
- package/dist/features/tabs/tabListMeta.js.map +1 -1
- package/dist/features/tabs/tabMeta.js.map +1 -1
- package/dist/features/tabs/tabPanelMeta.js +1 -1
- package/dist/features/tabs/tabPanelMeta.js.map +1 -1
- package/dist/features/tabs/tabsMeta.js.map +1 -1
- package/dist/features/theme/ThemeModeToggle.meta.d.ts.map +1 -0
- package/dist/features/theme/ThemeModeToggle.meta.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ThemeModeToggle.d.ts +1 -1
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.d.ts.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ThemeModeToggle.js +3 -3
- package/dist/features/theme/adapters/inbound/ThemeModeToggle.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ZoraProvider.d.ts +2 -2
- package/dist/features/theme/adapters/inbound/ZoraProvider.d.ts.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ZoraProvider.js +4 -4
- package/dist/features/theme/adapters/inbound/ZoraProvider.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/ZoraThemeScope.d.ts +2 -2
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.d.ts.map +1 -0
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js +24 -0
- package/dist/features/theme/adapters/inbound/ZoraThemeScope.js.map +1 -0
- package/dist/{theme → features/theme/adapters/inbound}/withZoraThemeScope.d.ts +1 -1
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.d.ts.map +1 -0
- package/dist/features/theme/adapters/inbound/withZoraThemeScope.js.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/compileZoraTheme.d.ts +1 -1
- package/dist/features/theme/application/use-cases/compileZoraTheme.d.ts.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/compileZoraTheme.js +2 -1
- package/dist/features/theme/application/use-cases/compileZoraTheme.js.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/createZoraThemeConfig.d.ts +1 -1
- package/dist/features/theme/application/use-cases/createZoraThemeConfig.d.ts.map +1 -0
- package/dist/{theme → features/theme/application/use-cases}/createZoraThemeConfig.js +1 -1
- package/dist/features/theme/application/use-cases/createZoraThemeConfig.js.map +1 -0
- package/dist/{internal → features/theme}/colorModel.d.ts +1 -5
- package/dist/features/theme/colorModel.d.ts.map +1 -0
- package/dist/features/theme/colorModel.js +6 -0
- package/dist/features/theme/colorModel.js.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.d.ts.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.js.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.d.ts +1 -1
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.native.d.ts.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.native.js.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.d.ts +1 -1
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.web.d.ts.map +1 -0
- package/dist/features/theme/composition/ZoraRuntimeCapabilities.web.js.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraThemeRuntimeContext.d.ts +1 -1
- package/dist/features/theme/composition/ZoraThemeRuntimeContext.d.ts.map +1 -0
- package/dist/{theme → features/theme/composition}/ZoraThemeRuntimeContext.js +1 -1
- package/dist/features/theme/composition/ZoraThemeRuntimeContext.js.map +1 -0
- package/dist/features/theme/composition/useZoraTheme.d.ts +2 -0
- package/dist/features/theme/composition/useZoraTheme.d.ts.map +1 -0
- package/dist/features/theme/composition/useZoraTheme.js.map +1 -0
- package/dist/features/theme/composition/useZoraThemeRecipe.d.ts.map +1 -0
- package/dist/{theme → features/theme/composition}/useZoraThemeRecipe.js +1 -1
- package/dist/features/theme/composition/useZoraThemeRecipe.js.map +1 -0
- package/dist/{theme → features/theme}/public.d.ts +3 -3
- package/dist/features/theme/public.d.ts.map +1 -0
- package/dist/features/theme/public.js +4 -0
- package/dist/features/theme/public.js.map +1 -0
- package/dist/features/theme/runtime.d.ts +10 -0
- package/dist/features/theme/runtime.d.ts.map +1 -0
- package/dist/features/theme/runtime.js +6 -0
- package/dist/features/theme/runtime.js.map +1 -0
- package/dist/{theme → features/theme/utils}/resolveThemeModeToggleState.d.ts +1 -1
- package/dist/features/theme/utils/resolveThemeModeToggleState.d.ts.map +1 -0
- package/dist/features/theme/utils/resolveThemeModeToggleState.js.map +1 -0
- package/dist/{theme → features/theme/utils}/resolveZoraScopedThemeId.d.ts +1 -1
- package/dist/features/theme/utils/resolveZoraScopedThemeId.d.ts.map +1 -0
- package/dist/features/theme/utils/resolveZoraScopedThemeId.js.map +1 -0
- package/dist/features/theme/utils/resolveZoraThemeRecipe.d.ts.map +1 -0
- package/dist/{theme → features/theme/utils}/resolveZoraThemeRecipe.js +1 -1
- package/dist/features/theme/utils/resolveZoraThemeRecipe.js.map +1 -0
- package/dist/features/theme/zoraDefaultTheme.d.ts +3 -0
- package/dist/features/theme/zoraDefaultTheme.d.ts.map +1 -0
- package/dist/features/theme/zoraDefaultTheme.js.map +1 -0
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.d.ts.map +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.js +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.native.js.map +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.d.ts.map +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.js +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.web.js.map +1 -1
- package/dist/features/time-picker/timePickerMeta.js.map +1 -1
- package/dist/features/timeline/adapters/inbound/Timeline.d.ts.map +1 -1
- package/dist/features/timeline/adapters/inbound/Timeline.js +3 -3
- package/dist/features/timeline/adapters/inbound/Timeline.js.map +1 -1
- package/dist/features/timeline/meta.js.map +1 -1
- package/dist/features/toast/adapters/inbound/Toast.d.ts.map +1 -1
- package/dist/features/toast/adapters/inbound/Toast.js +1 -1
- package/dist/features/toast/adapters/inbound/Toast.js.map +1 -1
- package/dist/features/toast/toastMeta.js.map +1 -1
- package/dist/features/toast/toastProviderMeta.js.map +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts.map +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.js +1 -1
- package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -1
- package/dist/features/toolbar/toolbarMeta.js.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.d.ts.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.js +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeItem.js.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.d.ts.map +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.js +1 -1
- package/dist/features/tree-view/adapters/inbound/TreeView.js.map +1 -1
- package/dist/features/tree-view/meta.js.map +1 -1
- package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -1
- package/dist/features/typography/adapters/inbound/Heading.js +3 -3
- package/dist/features/typography/adapters/inbound/Heading.js.map +1 -1
- package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -1
- package/dist/features/typography/adapters/inbound/Text.js +3 -3
- package/dist/features/typography/adapters/inbound/Text.js.map +1 -1
- package/dist/features/typography/headingMeta.js +2 -2
- package/dist/features/typography/headingMeta.js.map +1 -1
- package/dist/features/typography/textMeta.js +2 -2
- package/dist/features/typography/textMeta.js.map +1 -1
- package/dist/features/typography/utils/headingThemeRecipeMeta.js +1 -1
- package/dist/features/typography/utils/headingThemeRecipeMeta.js.map +1 -1
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/textThemeRecipeMeta.js +1 -1
- package/dist/features/typography/utils/textThemeRecipeMeta.js.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/features/uploader/uploaderMeta.js.map +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/types/accordion.d.ts +1 -1
- package/dist/types/accordion.d.ts.map +1 -1
- package/dist/types/accordion.js.map +1 -1
- package/dist/types/activity-indicator.d.ts +1 -1
- package/dist/types/activity-indicator.d.ts.map +1 -1
- package/dist/types/activity-indicator.js.map +1 -1
- package/dist/types/app-bar.d.ts +1 -1
- package/dist/types/app-bar.d.ts.map +1 -1
- package/dist/types/app-bar.js.map +1 -1
- package/dist/types/auth.d.ts +1 -1
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/auth.js.map +1 -1
- package/dist/{metadata/types.d.ts → types/authoring.d.ts} +1 -1
- package/dist/types/authoring.d.ts.map +1 -0
- package/dist/types/authoring.js +2 -0
- package/dist/types/authoring.js.map +1 -0
- package/dist/types/avatar-group.d.ts +2 -2
- package/dist/types/avatar-group.d.ts.map +1 -1
- package/dist/types/avatar-group.js.map +1 -1
- package/dist/types/avatar.d.ts +2 -2
- package/dist/types/avatar.d.ts.map +1 -1
- package/dist/types/avatar.js.map +1 -1
- package/dist/types/badge.d.ts +4 -2
- package/dist/types/badge.d.ts.map +1 -1
- package/dist/types/badge.js.map +1 -1
- package/dist/{theme/ZoraBaseProps.d.ts → types/base.d.ts} +2 -2
- package/dist/types/base.d.ts.map +1 -0
- package/dist/types/base.js +2 -0
- package/dist/types/base.js.map +1 -0
- package/dist/types/breadcrumbs.d.ts +1 -1
- package/dist/types/breadcrumbs.d.ts.map +1 -1
- package/dist/types/breadcrumbs.js.map +1 -1
- package/dist/types/button-group.d.ts +1 -1
- package/dist/types/button-group.d.ts.map +1 -1
- package/dist/types/button-group.js.map +1 -1
- package/dist/types/button.d.ts +4 -2
- package/dist/types/button.d.ts.map +1 -1
- package/dist/types/button.js.map +1 -1
- package/dist/types/card.d.ts +2 -2
- package/dist/types/card.d.ts.map +1 -1
- package/dist/types/card.js.map +1 -1
- package/dist/types/chat.d.ts +2 -2
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js.map +1 -1
- package/dist/types/checkbox.d.ts +1 -1
- package/dist/types/checkbox.d.ts.map +1 -1
- package/dist/types/checkbox.js.map +1 -1
- package/dist/types/chip-group.d.ts +3 -2
- package/dist/types/chip-group.d.ts.map +1 -1
- package/dist/types/chip-group.js.map +1 -1
- package/dist/types/chip.d.ts +3 -2
- package/dist/types/chip.d.ts.map +1 -1
- package/dist/types/chip.js.map +1 -1
- package/dist/types/collection-editor.d.ts +1 -1
- package/dist/types/collection-editor.d.ts.map +1 -1
- package/dist/types/collection-editor.js.map +1 -1
- package/dist/types/content-rail.d.ts +1 -1
- package/dist/types/content-rail.d.ts.map +1 -1
- package/dist/types/content-rail.js.map +1 -1
- package/dist/types/control.d.ts +3 -0
- package/dist/types/control.d.ts.map +1 -0
- package/dist/types/control.js +2 -0
- package/dist/types/control.js.map +1 -0
- package/dist/types/data-table.d.ts +1 -1
- package/dist/types/data-table.d.ts.map +1 -1
- package/dist/types/data-table.js.map +1 -1
- package/dist/types/date-picker.d.ts +1 -1
- package/dist/types/date-picker.d.ts.map +1 -1
- package/dist/types/date-picker.js.map +1 -1
- package/dist/types/dialog.d.ts +2 -2
- package/dist/types/dialog.d.ts.map +1 -1
- package/dist/types/dialog.js.map +1 -1
- package/dist/types/empty-state.d.ts +3 -2
- package/dist/types/empty-state.d.ts.map +1 -1
- package/dist/types/empty-state.js.map +1 -1
- package/dist/types/form.d.ts +1 -1
- package/dist/types/form.d.ts.map +1 -1
- package/dist/types/form.js.map +1 -1
- package/dist/types/gradient.d.ts +1 -1
- package/dist/types/gradient.d.ts.map +1 -1
- package/dist/types/gradient.js.map +1 -1
- package/dist/types/heading.d.ts +2 -2
- package/dist/types/heading.d.ts.map +1 -1
- package/dist/types/heading.js.map +1 -1
- package/dist/types/hero.d.ts +3 -2
- package/dist/types/hero.d.ts.map +1 -1
- package/dist/types/hero.js.map +1 -1
- package/dist/types/icon-button.d.ts +4 -2
- package/dist/types/icon-button.d.ts.map +1 -1
- package/dist/types/icon-button.js.map +1 -1
- package/dist/types/icon.d.ts +1 -1
- package/dist/types/icon.d.ts.map +1 -1
- package/dist/types/icon.js.map +1 -1
- package/dist/types/image.d.ts +1 -1
- package/dist/types/image.d.ts.map +1 -1
- package/dist/types/image.js.map +1 -1
- package/dist/types/keyboard-avoiding-view.d.ts +1 -1
- package/dist/types/keyboard-avoiding-view.d.ts.map +1 -1
- package/dist/types/keyboard-avoiding-view.js.map +1 -1
- package/dist/types/layout.d.ts +2 -2
- package/dist/types/layout.d.ts.map +1 -1
- package/dist/types/layout.js.map +1 -1
- package/dist/types/list.d.ts +1 -1
- package/dist/types/list.d.ts.map +1 -1
- package/dist/types/list.js.map +1 -1
- package/dist/types/manifest-bottom-sheet.d.ts +1 -1
- package/dist/types/manifest-bottom-sheet.d.ts.map +1 -1
- package/dist/types/manifest-bottom-sheet.js.map +1 -1
- package/dist/types/manifest-list.d.ts +1 -1
- package/dist/types/manifest-list.d.ts.map +1 -1
- package/dist/types/manifest-list.js.map +1 -1
- package/dist/types/media-card.d.ts +2 -2
- package/dist/types/media-card.d.ts.map +1 -1
- package/dist/types/media-card.js.map +1 -1
- package/dist/types/metric-card.d.ts +3 -2
- package/dist/types/metric-card.d.ts.map +1 -1
- package/dist/types/metric-card.js.map +1 -1
- package/dist/types/missing-element.d.ts +1 -1
- package/dist/types/missing-element.d.ts.map +1 -1
- package/dist/types/missing-element.js.map +1 -1
- package/dist/types/pagination.d.ts +1 -1
- package/dist/types/pagination.d.ts.map +1 -1
- package/dist/types/pagination.js.map +1 -1
- package/dist/types/palette-item.d.ts +1 -1
- package/dist/types/palette-item.d.ts.map +1 -1
- package/dist/types/palette-item.js.map +1 -1
- package/dist/{pluginComposition.d.ts → types/plugin.d.ts} +2 -18
- package/dist/types/plugin.d.ts.map +1 -0
- package/dist/types/plugin.js +2 -0
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/popover-menu.d.ts +1 -1
- package/dist/types/popover-menu.d.ts.map +1 -1
- package/dist/types/popover-menu.js.map +1 -1
- package/dist/types/post-card.d.ts +3 -2
- package/dist/types/post-card.d.ts.map +1 -1
- package/dist/types/post-card.js.map +1 -1
- package/dist/types/product-card.d.ts +1 -1
- package/dist/types/product-card.d.ts.map +1 -1
- package/dist/types/product-card.js.map +1 -1
- package/dist/types/progress.d.ts +3 -2
- package/dist/types/progress.d.ts.map +1 -1
- package/dist/types/progress.js.map +1 -1
- package/dist/types/provider.d.ts +1 -1
- package/dist/types/provider.d.ts.map +1 -1
- package/dist/types/provider.js.map +1 -1
- package/dist/types/radio.d.ts +1 -1
- package/dist/types/radio.d.ts.map +1 -1
- package/dist/types/radio.js.map +1 -1
- package/dist/types/rating.d.ts +3 -2
- package/dist/types/rating.d.ts.map +1 -1
- package/dist/types/rating.js.map +1 -1
- package/dist/types/reader.d.ts +1 -1
- package/dist/types/reader.d.ts.map +1 -1
- package/dist/types/reader.js.map +1 -1
- package/dist/{registry.d.ts → types/registry.d.ts} +0 -1
- package/dist/types/registry.d.ts.map +1 -0
- package/dist/types/registry.js +2 -0
- package/dist/types/registry.js.map +1 -0
- package/dist/types/scanner.d.ts +1 -1
- package/dist/types/scanner.d.ts.map +1 -1
- package/dist/types/scanner.js.map +1 -1
- package/dist/types/search-input.d.ts +2 -2
- package/dist/types/search-input.d.ts.map +1 -1
- package/dist/types/search-input.js.map +1 -1
- package/dist/types/section.d.ts +1 -1
- package/dist/types/section.d.ts.map +1 -1
- package/dist/types/section.js.map +1 -1
- package/dist/types/select.d.ts +1 -1
- package/dist/types/select.d.ts.map +1 -1
- package/dist/types/select.js.map +1 -1
- package/dist/types/skeleton.d.ts +1 -1
- package/dist/types/skeleton.d.ts.map +1 -1
- package/dist/types/skeleton.js.map +1 -1
- package/dist/types/surface.d.ts +1 -1
- package/dist/types/surface.d.ts.map +1 -1
- package/dist/types/surface.js.map +1 -1
- package/dist/types/switch.d.ts +1 -1
- package/dist/types/switch.d.ts.map +1 -1
- package/dist/types/switch.js.map +1 -1
- package/dist/types/tabs.d.ts +1 -1
- package/dist/types/tabs.d.ts.map +1 -1
- package/dist/types/tabs.js.map +1 -1
- package/dist/types/text-input.d.ts +2 -2
- package/dist/types/text-input.d.ts.map +1 -1
- package/dist/types/text-input.js.map +1 -1
- package/dist/types/text.d.ts +2 -2
- package/dist/types/text.d.ts.map +1 -1
- package/dist/types/text.js.map +1 -1
- package/dist/{theme/ThemeModeToggleProps.d.ts → types/theme-mode-toggle.d.ts} +1 -1
- package/dist/types/theme-mode-toggle.d.ts.map +1 -0
- package/dist/types/theme-mode-toggle.js +2 -0
- package/dist/types/theme-mode-toggle.js.map +1 -0
- package/dist/{metadata/themeRecipeTypes.d.ts → types/theme-recipe.d.ts} +2 -3
- package/dist/types/theme-recipe.d.ts.map +1 -0
- package/dist/types/theme-recipe.js +2 -0
- package/dist/types/theme-recipe.js.map +1 -0
- package/dist/{theme/types.d.ts → types/theme.d.ts} +6 -1
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/types/theme.js +2 -0
- package/dist/types/theme.js.map +1 -0
- package/dist/types/time-picker.d.ts +1 -1
- package/dist/types/time-picker.d.ts.map +1 -1
- package/dist/types/time-picker.js.map +1 -1
- package/dist/types/timeline.d.ts +2 -2
- package/dist/types/timeline.d.ts.map +1 -1
- package/dist/types/timeline.js.map +1 -1
- package/dist/types/toast.d.ts +1 -1
- package/dist/types/toast.d.ts.map +1 -1
- package/dist/types/toast.js.map +1 -1
- package/dist/types/toolbar.d.ts +1 -1
- package/dist/types/toolbar.d.ts.map +1 -1
- package/dist/types/toolbar.js.map +1 -1
- package/dist/types/tree-view.d.ts +1 -1
- package/dist/types/tree-view.d.ts.map +1 -1
- package/dist/types/tree-view.js.map +1 -1
- package/dist/types/upload.d.ts +1 -1
- package/dist/types/upload.d.ts.map +1 -1
- package/dist/types/upload.js.map +1 -1
- package/package.json +20 -19
- package/src/audit.test.ts +1 -1
- package/src/features/accordion/accordionItemMeta.ts +2 -2
- package/src/features/accordion/accordionMeta.ts +1 -1
- package/src/features/accordion/adapters/inbound/Accordion.tsx +1 -1
- package/src/features/accordion/adapters/inbound/AccordionItem.tsx +1 -1
- package/src/features/activity-indicator/activityIndicatorMeta.ts +1 -1
- package/src/features/activity-indicator/adapters/inbound/ActivityIndicator.tsx +2 -2
- package/src/features/app-bar/adapters/inbound/AppBar.tsx +2 -2
- package/src/features/app-bar/appBarMeta.ts +1 -1
- package/src/features/auth/adapters/inbound/AuthForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/AuthFormField.tsx +1 -1
- package/src/features/auth/adapters/inbound/ForgotPasswordForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/OAuthProviderButton.tsx +1 -1
- package/src/features/auth/adapters/inbound/OAuthProviderList.tsx +1 -1
- package/src/features/auth/adapters/inbound/OtpForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/SignInForm.tsx +1 -1
- package/src/features/auth/adapters/inbound/SignUpForm.tsx +1 -1
- package/src/features/auth/forgotPasswordFormMeta.ts +1 -1
- package/src/features/auth/oauthProviderButtonMeta.ts +2 -2
- package/src/features/auth/oauthProviderListMeta.ts +2 -2
- package/src/features/auth/otpFormMeta.ts +1 -1
- package/src/features/auth/public.test.ts +1 -1
- package/src/features/auth/signInFormMeta.ts +1 -1
- package/src/features/auth/signUpFormMeta.ts +1 -1
- package/src/{metadata → features/authoring}/bindableComponentMeta.ts +2 -2
- package/src/{metadata → features/authoring}/componentMeta.test.ts +4 -4
- package/src/features/authoring/componentMeta.ts +190 -0
- package/src/{constants.ts → features/authoring/constants.ts} +10 -0
- package/src/{featureManifest.test.ts → features/authoring/featureManifest.test.ts} +2 -2
- package/src/{metadata → features/authoring}/index.ts +24 -23
- package/src/features/authoring/themeRecipeMeta.ts +14 -0
- package/src/{utils → features/authoring/utils}/createManifestBindings.ts +1 -1
- package/src/{utils → features/authoring/utils}/finalizeFeatureMetadata.ts +1 -1
- package/src/features/avatar/adapters/inbound/Avatar.tsx +3 -3
- package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +2 -2
- package/src/features/avatar/avatarGroupMeta.ts +1 -1
- package/src/features/avatar/avatarMeta.ts +1 -1
- package/src/features/badge/adapters/inbound/Badge.tsx +2 -2
- package/src/features/badge/badgeMeta.ts +1 -1
- package/src/features/badge/utils/resolveBadgeRecipe.test.ts +9 -0
- package/src/features/badge/utils/resolveBadgeRecipe.ts +17 -0
- package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +3 -3
- package/src/features/bottom-sheet/bottomSheetMeta.ts +2 -2
- package/src/features/bottom-sheet/public.test.ts +3 -3
- package/src/features/breadcrumbs/adapters/inbound/Breadcrumbs.tsx +3 -3
- package/src/features/breadcrumbs/breadcrumbsMeta.ts +1 -1
- package/src/features/button/adapters/inbound/Button.tsx +2 -2
- package/src/features/button/adapters/inbound/ButtonGroup.tsx +1 -1
- package/src/features/button/adapters/inbound/IconButton.tsx +2 -2
- package/src/features/button/buttonGroupMeta.ts +1 -1
- package/src/features/button/buttonMeta.ts +3 -3
- package/src/features/button/iconButtonMeta.ts +1 -1
- package/src/features/button/utils/resolveButtonRecipe.test.ts +9 -0
- package/src/features/button/utils/resolveButtonRecipe.ts +17 -0
- package/src/features/button/utils/resolveButtonThemeRecipe.ts +4 -6
- package/src/features/button/utils/themeRecipeMeta.ts +2 -2
- package/src/features/card/adapters/inbound/Card.tsx +3 -3
- package/src/features/card/adapters/inbound/MediaCard.tsx +2 -2
- package/src/features/card/adapters/inbound/MetricCard.tsx +4 -3
- package/src/features/card/adapters/inbound/PostCard.test.tsx +1 -1
- package/src/features/card/adapters/inbound/PostCard.tsx +2 -2
- package/src/features/card/adapters/inbound/ProductCard.test.tsx +1 -1
- package/src/features/card/adapters/inbound/ProductCard.tsx +2 -2
- package/src/features/card/cardMeta.ts +3 -3
- package/src/features/card/mediaCardMeta.ts +2 -2
- package/src/features/card/metricCardMeta.ts +1 -1
- package/src/features/card/postCardMeta.ts +2 -2
- package/src/features/card/productCardMeta.ts +1 -1
- package/src/features/card/utils/resolveCardThemeRecipe.ts +1 -1
- package/src/features/card/utils/resolveCardVariant.test.ts +11 -0
- package/src/features/card/utils/resolveCardVariant.ts +15 -0
- package/src/features/card/utils/themeRecipeMeta.ts +1 -1
- package/src/features/chat/adapters/inbound/ChatListItem.test.tsx +1 -1
- package/src/features/chat/adapters/inbound/ChatListItem.tsx +2 -2
- package/src/features/chat/adapters/inbound/MessageBubble.tsx +2 -2
- package/src/features/chat/chatListItemMeta.ts +1 -1
- package/src/features/chat/messageBubbleMeta.ts +2 -2
- package/src/features/chip/adapters/inbound/Chip.tsx +3 -3
- package/src/features/chip/adapters/inbound/ChipGroup.tsx +1 -1
- package/src/features/chip/chipGroupMeta.ts +1 -1
- package/src/features/chip/chipMeta.ts +1 -1
- package/src/features/chip/utils/resolveChipColors.ts +1 -1
- package/src/features/collection-editor/adapters/inbound/CollectionEditor.tsx +1 -1
- package/src/features/collection-editor/meta.ts +1 -1
- package/src/features/content-rail/adapters/inbound/ContentRail.tsx +2 -2
- package/src/features/content-rail/adapters/inbound/ContentRailFlow.tsx +1 -1
- package/src/features/content-rail/contentRailMeta.ts +2 -2
- package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
- package/src/features/data-table/dataTableMeta.ts +1 -1
- package/src/features/date-picker/adapters/inbound/DatePicker.native.tsx +1 -1
- package/src/features/date-picker/adapters/inbound/DatePicker.web.tsx +1 -1
- package/src/features/date-picker/datePickerMeta.ts +1 -1
- package/src/features/date-picker/public.test.ts +1 -1
- package/src/features/dialog/adapters/inbound/Dialog.tsx +2 -2
- package/src/features/dialog/dialogMeta.ts +2 -2
- package/src/features/dialog/utils/resolveDialogWidth.test.ts +10 -0
- package/src/features/dialog/utils/resolveDialogWidth.ts +13 -0
- package/src/features/empty-state/adapters/inbound/EmptyState.tsx +1 -1
- package/src/features/empty-state/emptyStateMeta.ts +1 -1
- package/src/features/form/adapters/inbound/Form.tsx +1 -1
- package/src/features/form/adapters/inbound/FormActions.tsx +1 -1
- package/src/features/form/adapters/inbound/FormError.tsx +2 -2
- package/src/features/form/checkbox/adapters/inbound/Checkbox.tsx +1 -1
- package/src/features/form/checkbox/adapters/inbound/CheckboxGroup.tsx +1 -1
- package/src/features/form/checkbox/checkboxMeta.ts +1 -1
- package/src/features/form/field/adapters/inbound/Field.tsx +1 -1
- package/src/features/form/field/meta.ts +1 -1
- package/src/features/form/formActionsMeta.ts +1 -1
- package/src/features/form/formErrorMeta.ts +1 -1
- package/src/features/form/formMeta.ts +1 -1
- package/src/features/form/radio/adapters/inbound/Radio.tsx +1 -1
- package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +2 -2
- package/src/features/form/radio/radioMeta.ts +2 -2
- package/src/features/form/radio/themeRecipeMeta.ts +2 -2
- package/src/features/form/radio/utils/handleRadioOptionKeyDown.test.ts +1 -1
- package/src/features/form/radio/utils/handleRadioOptionKeyDown.ts +1 -1
- package/src/features/form/radio/utils/resolveRadioGroupThemeRecipe.ts +1 -1
- package/src/features/form/search-input/adapters/inbound/SearchInput.tsx +1 -1
- package/src/features/form/search-input/searchInputMeta.ts +1 -1
- package/src/features/form/select/adapters/inbound/Select.native.tsx +1 -1
- package/src/features/form/select/adapters/inbound/Select.web.tsx +1 -1
- package/src/features/form/select/selectMeta.ts +1 -1
- package/src/features/form/switch/adapters/inbound/Switch.tsx +1 -1
- package/src/features/form/switch/switchMeta.ts +1 -1
- package/src/features/form/text-input/adapters/inbound/TextInput.tsx +3 -3
- package/src/features/form/text-input/textInputMeta.ts +1 -1
- package/src/features/gradient/adapters/inbound/Gradient.tsx +1 -1
- package/src/features/gradient/gradientMeta.ts +2 -2
- package/src/features/gradient/public.test.ts +1 -1
- package/src/features/hero/adapters/inbound/Hero.tsx +1 -1
- package/src/features/hero/heroMeta.ts +1 -1
- package/src/features/icon/adapters/inbound/Icon.tsx +1 -1
- package/src/features/icon/iconMeta.ts +1 -1
- package/src/features/icon/utils/meta.test.ts +1 -1
- package/src/features/icon/utils/resolveIconSize.test.ts +11 -0
- package/src/features/icon/utils/resolveIconSize.ts +13 -0
- package/src/features/image/adapters/inbound/Image.tsx +2 -2
- package/src/features/image/imageMeta.ts +1 -1
- package/src/features/keyboard-avoiding-view/adapters/inbound/KeyboardAvoidingView.tsx +1 -1
- package/src/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.ts +2 -2
- package/src/features/layout/adapters/inbound/AppShell.tsx +1 -1
- package/src/features/layout/adapters/inbound/Divider.tsx +1 -1
- package/src/features/layout/adapters/inbound/Grid.tsx +1 -1
- package/src/features/layout/adapters/inbound/Screen.tsx +2 -2
- package/src/features/layout/adapters/inbound/ScrollView.tsx +1 -1
- package/src/features/layout/adapters/inbound/View.tsx +1 -1
- package/src/features/layout/appShellMeta.ts +1 -1
- package/src/features/layout/constants.ts +1 -1
- package/src/features/layout/dividerMeta.ts +1 -1
- package/src/features/layout/gridMeta.ts +2 -2
- package/src/features/layout/screenMeta.ts +2 -2
- package/src/features/layout/scrollViewMeta.ts +2 -2
- package/src/features/layout/utils/resolvePageMaxWidth.test.ts +10 -0
- package/src/features/layout/utils/resolvePageMaxWidth.ts +13 -0
- package/src/features/layout/viewMeta.ts +2 -2
- package/src/features/list/adapters/inbound/FlatList.tsx +1 -1
- package/src/features/list/adapters/inbound/List.tsx +1 -1
- package/src/features/list/adapters/inbound/ListItem.tsx +2 -2
- package/src/features/list/adapters/inbound/ListSection.tsx +1 -1
- package/src/features/list/adapters/inbound/SectionList.tsx +1 -1
- package/src/features/list/flatListMeta.ts +2 -2
- package/src/features/list/meta.ts +1 -1
- package/src/features/list/sectionListMeta.ts +1 -1
- package/src/features/missing-element/MissingElement.test.ts +1 -1
- package/src/features/missing-element/adapters/inbound/MissingElement.tsx +2 -2
- package/src/features/missing-element/missingElementMeta.ts +1 -1
- package/src/features/pagination/adapters/inbound/Pagination.tsx +1 -1
- package/src/features/pagination/paginationMeta.ts +1 -1
- package/src/features/palette-item/adapters/inbound/PaletteItem.tsx +2 -2
- package/src/features/palette-item/paletteItemMeta.ts +1 -1
- package/src/{corePlugin.ts → features/plugin/ZORA_CORE_PLUGIN.ts} +3 -3
- package/src/{corePluginMetadata.ts → features/plugin/ZORA_CORE_PLUGIN_METADATA.ts} +4 -4
- package/src/{pluginComposition.ts → features/plugin/application/use-cases/composeZoraPluginMetadata.ts} +10 -122
- package/src/features/plugin/application/use-cases/composeZoraPlugins.ts +76 -0
- package/src/features/plugin/domain/ZoraPluginCompositionError.ts +21 -0
- package/src/{pluginComposition.test.ts → features/plugin/pluginComposition.test.ts} +4 -6
- package/src/features/plugin/public.ts +3 -0
- package/src/features/plugin/runtime.ts +2 -0
- package/src/features/popover-menu/adapters/inbound/PopoverMenu.tsx +3 -3
- package/src/features/popover-menu/popoverMenuMeta.ts +1 -1
- package/src/features/progress/adapters/inbound/Progress.tsx +2 -2
- package/src/features/progress/adapters/inbound/ProgressRing.tsx +2 -2
- package/src/features/progress/progressMeta.ts +2 -2
- package/src/features/rating/adapters/inbound/Rating.tsx +4 -4
- package/src/features/rating/ratingMeta.ts +1 -1
- package/src/features/reader/adapters/inbound/ReaderSurface.tsx +2 -2
- package/src/features/reader/meta.ts +3 -3
- package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +186 -0
- package/src/features/registry/public.ts +1 -0
- package/src/{registry.test.ts → features/registry/registry.test.ts} +6 -3
- package/src/features/scanner/adapters/inbound/BarcodeScannerView.tsx +2 -2
- package/src/features/scanner/adapters/inbound/CameraPermissionView.tsx +1 -1
- package/src/features/scanner/adapters/inbound/ScanOverlay.tsx +2 -2
- package/src/features/scanner/meta.ts +5 -5
- package/src/features/section/adapters/inbound/ScreenSection.tsx +1 -1
- package/src/features/section/adapters/inbound/SectionHeader.tsx +1 -1
- package/src/features/section/screenSectionMeta.ts +2 -2
- package/src/features/section/sectionHeaderMeta.ts +1 -1
- package/src/features/selection/meta.ts +1 -1
- package/src/features/skeleton/adapters/inbound/Skeleton.tsx +2 -2
- package/src/features/skeleton/adapters/inbound/SkeletonCard.tsx +1 -1
- package/src/features/skeleton/adapters/inbound/SkeletonList.tsx +1 -1
- package/src/features/skeleton/adapters/inbound/SkeletonText.tsx +1 -1
- package/src/features/skeleton/public.test.ts +1 -1
- package/src/features/skeleton/skeletonMeta.ts +1 -1
- package/src/features/surface/adapters/inbound/Surface.tsx +1 -1
- package/src/features/surface/surfaceMeta.ts +2 -2
- package/src/features/tabs/adapters/inbound/Tab.tsx +1 -1
- package/src/features/tabs/adapters/inbound/TabList.tsx +1 -1
- package/src/features/tabs/adapters/inbound/TabPanel.tsx +1 -1
- package/src/features/tabs/adapters/inbound/Tabs.tsx +1 -1
- package/src/features/tabs/tabListMeta.ts +1 -1
- package/src/features/tabs/tabMeta.ts +1 -1
- package/src/features/tabs/tabPanelMeta.ts +2 -2
- package/src/features/tabs/tabsMeta.ts +1 -1
- package/src/{theme → features/theme}/ThemeModeToggle.meta.ts +1 -1
- package/src/{theme → features/theme/adapters/inbound}/ThemeModeToggle.tsx +4 -4
- package/src/{theme → features/theme/adapters/inbound}/ZoraProvider.tsx +6 -6
- package/src/features/theme/adapters/inbound/ZoraThemeScope.tsx +41 -0
- package/src/{theme → features/theme/adapters/inbound}/withZoraThemeScope.tsx +1 -1
- package/src/{theme → features/theme/application/use-cases}/compileZoraTheme.test.ts +5 -1
- package/src/{theme → features/theme/application/use-cases}/compileZoraTheme.ts +3 -2
- package/src/{theme → features/theme/application/use-cases}/createZoraThemeConfig.test.ts +1 -1
- package/src/{theme → features/theme/application/use-cases}/createZoraThemeConfig.ts +2 -2
- package/src/features/theme/colorModel.ts +13 -0
- package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.tsx +1 -1
- package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.tsx +1 -1
- package/src/{theme → features/theme/composition}/ZoraThemeRuntimeContext.tsx +2 -2
- package/src/{theme → features/theme/composition}/useZoraThemeRecipe.ts +1 -1
- package/src/{theme → features/theme}/public.ts +3 -3
- package/src/features/theme/runtime.ts +9 -0
- package/src/{theme → features/theme}/themeConfigScope.test.ts +16 -7
- package/src/{theme → features/theme}/themeScopeStructure.test.ts +16 -9
- package/src/{theme → features/theme/utils}/resolveThemeModeToggleState.ts +1 -1
- package/src/{theme → features/theme/utils}/resolveZoraScopedThemeId.ts +1 -1
- package/src/{theme → features/theme/utils}/resolveZoraThemeRecipe.ts +2 -2
- package/src/{theme → features/theme}/zoraDefaultTheme.ts +1 -1
- package/src/features/time-picker/adapters/inbound/TimePicker.native.tsx +1 -1
- package/src/features/time-picker/adapters/inbound/TimePicker.web.tsx +1 -1
- package/src/features/time-picker/public.test.ts +1 -1
- package/src/features/time-picker/timePickerMeta.ts +1 -1
- package/src/features/timeline/adapters/inbound/Timeline.tsx +4 -4
- package/src/features/timeline/meta.ts +1 -1
- package/src/features/toast/adapters/inbound/Toast.tsx +1 -1
- package/src/features/toast/public.test.ts +4 -4
- package/src/features/toast/toastMeta.ts +1 -1
- package/src/features/toast/toastProviderMeta.ts +1 -1
- package/src/features/toolbar/adapters/inbound/Toolbar.tsx +1 -1
- package/src/features/toolbar/toolbarMeta.ts +1 -1
- package/src/features/tree-view/adapters/inbound/TreeItem.tsx +2 -2
- package/src/features/tree-view/adapters/inbound/TreeView.tsx +1 -1
- package/src/features/tree-view/meta.ts +1 -1
- package/src/features/typography/adapters/inbound/Heading.tsx +3 -3
- package/src/features/typography/adapters/inbound/Text.tsx +3 -3
- package/src/features/typography/headingMeta.ts +3 -3
- package/src/features/typography/textMeta.ts +3 -3
- package/src/features/typography/utils/headingThemeRecipeMeta.ts +2 -2
- package/src/features/typography/utils/textThemeRecipeMeta.ts +2 -2
- package/src/features/uploader/adapters/inbound/Uploader.tsx +1 -1
- package/src/features/uploader/public.test.ts +2 -2
- package/src/features/uploader/uploaderMeta.ts +1 -1
- package/src/index.ts +56 -56
- package/src/interactionPolicy.test.ts +3 -3
- package/src/structureOwnership.test.ts +71 -0
- package/src/types/accordion.ts +1 -1
- package/src/types/activity-indicator.ts +1 -1
- package/src/types/app-bar.ts +1 -1
- package/src/types/auth.ts +1 -1
- package/src/types/avatar-group.ts +2 -2
- package/src/types/avatar.ts +2 -2
- package/src/types/badge.ts +5 -2
- package/src/{theme/ZoraBaseProps.ts → types/base.ts} +1 -1
- package/src/types/breadcrumbs.ts +1 -1
- package/src/types/button-group.ts +1 -1
- package/src/types/button.ts +5 -2
- package/src/types/card.ts +3 -2
- package/src/types/chat.ts +2 -2
- package/src/types/checkbox.ts +1 -1
- package/src/types/chip-group.ts +3 -2
- package/src/types/chip.ts +3 -2
- package/src/types/collection-editor.ts +1 -1
- package/src/types/content-rail.ts +1 -1
- package/src/types/control.ts +3 -0
- package/src/types/data-table.ts +1 -1
- package/src/types/date-picker.ts +1 -1
- package/src/types/dialog.ts +2 -2
- package/src/types/empty-state.ts +3 -2
- package/src/types/form.ts +1 -1
- package/src/types/gradient.ts +1 -1
- package/src/types/heading.ts +2 -2
- package/src/types/hero.ts +3 -2
- package/src/types/icon-button.ts +4 -2
- package/src/types/icon.ts +1 -1
- package/src/types/image.ts +1 -1
- package/src/types/keyboard-avoiding-view.ts +1 -1
- package/src/types/layout.ts +3 -2
- package/src/types/list.ts +1 -1
- package/src/types/manifest-bottom-sheet.ts +1 -1
- package/src/types/manifest-list.ts +1 -1
- package/src/types/media-card.ts +2 -2
- package/src/types/metric-card.ts +3 -2
- package/src/types/missing-element.ts +1 -1
- package/src/types/pagination.ts +1 -1
- package/src/types/palette-item.ts +1 -1
- package/src/types/plugin.ts +43 -0
- package/src/types/popover-menu.ts +1 -1
- package/src/types/post-card.ts +3 -2
- package/src/types/product-card.ts +1 -1
- package/src/types/progress.ts +3 -2
- package/src/types/provider.ts +1 -1
- package/src/types/radio.ts +1 -1
- package/src/types/rating.ts +3 -2
- package/src/types/reader.ts +1 -1
- package/src/types/registry.ts +3 -0
- package/src/types/scanner.ts +1 -1
- package/src/types/search-input.ts +2 -2
- package/src/types/section.ts +1 -1
- package/src/types/select.ts +1 -1
- package/src/types/skeleton.ts +1 -1
- package/src/types/surface.ts +1 -1
- package/src/types/switch.ts +1 -1
- package/src/types/tabs.ts +1 -1
- package/src/types/text-input.ts +2 -2
- package/src/types/text.ts +2 -2
- package/src/{metadata/themeRecipeTypes.ts → types/theme-recipe.ts} +1 -9
- package/src/{theme/types.ts → types/theme.ts} +11 -0
- package/src/types/time-picker.ts +1 -1
- package/src/types/timeline.ts +2 -2
- package/src/types/toast.ts +1 -1
- package/src/types/toolbar.ts +1 -1
- package/src/types/tree-view.ts +1 -1
- package/src/types/upload.ts +1 -1
- package/dist/constants/keyboard.d.ts.map +0 -1
- package/dist/constants/keyboard.js.map +0 -1
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/corePlugin.d.ts.map +0 -1
- package/dist/corePlugin.js.map +0 -1
- package/dist/corePluginMetadata.d.ts +0 -3
- package/dist/corePluginMetadata.d.ts.map +0 -1
- package/dist/corePluginMetadata.js.map +0 -1
- package/dist/internal/colorModel.d.ts.map +0 -1
- package/dist/internal/colorModel.js +0 -25
- package/dist/internal/colorModel.js.map +0 -1
- package/dist/internal/recipes.d.ts +0 -23
- package/dist/internal/recipes.d.ts.map +0 -1
- package/dist/internal/recipes.js +0 -59
- package/dist/internal/recipes.js.map +0 -1
- package/dist/metadata/allowedChildren.d.ts.map +0 -1
- package/dist/metadata/allowedChildren.js.map +0 -1
- package/dist/metadata/bindableComponentMeta.js.map +0 -1
- package/dist/metadata/componentMeta.d.ts +0 -3
- package/dist/metadata/componentMeta.d.ts.map +0 -1
- package/dist/metadata/componentMeta.js +0 -184
- package/dist/metadata/componentMeta.js.map +0 -1
- package/dist/metadata/index.d.ts.map +0 -1
- package/dist/metadata/index.js +0 -7
- package/dist/metadata/index.js.map +0 -1
- package/dist/metadata/themeRecipeMeta.d.ts +0 -3
- package/dist/metadata/themeRecipeMeta.d.ts.map +0 -1
- package/dist/metadata/themeRecipeMeta.js +0 -13
- package/dist/metadata/themeRecipeMeta.js.map +0 -1
- package/dist/metadata/themeRecipeTypes.d.ts.map +0 -1
- package/dist/metadata/themeRecipeTypes.js +0 -8
- package/dist/metadata/themeRecipeTypes.js.map +0 -1
- package/dist/metadata/types.d.ts.map +0 -1
- package/dist/metadata/types.js +0 -2
- package/dist/metadata/types.js.map +0 -1
- package/dist/pluginComposition.d.ts.map +0 -1
- package/dist/pluginComposition.js.map +0 -1
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -161
- package/dist/registry.js.map +0 -1
- package/dist/theme/ThemeModeToggle.d.ts.map +0 -1
- package/dist/theme/ThemeModeToggle.js.map +0 -1
- package/dist/theme/ThemeModeToggle.meta.d.ts.map +0 -1
- package/dist/theme/ThemeModeToggle.meta.js.map +0 -1
- package/dist/theme/ThemeModeToggleProps.d.ts.map +0 -1
- package/dist/theme/ThemeModeToggleProps.js +0 -2
- package/dist/theme/ThemeModeToggleProps.js.map +0 -1
- package/dist/theme/ZoraBaseProps.d.ts.map +0 -1
- package/dist/theme/ZoraBaseProps.js +0 -2
- package/dist/theme/ZoraBaseProps.js.map +0 -1
- package/dist/theme/ZoraProvider.d.ts.map +0 -1
- package/dist/theme/ZoraProvider.js.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.d.ts.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.js.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.native.d.ts.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.native.js.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.web.d.ts.map +0 -1
- package/dist/theme/ZoraRuntimeCapabilities.web.js.map +0 -1
- package/dist/theme/ZoraThemeRuntimeContext.d.ts.map +0 -1
- package/dist/theme/ZoraThemeRuntimeContext.js.map +0 -1
- package/dist/theme/ZoraThemeScope.d.ts.map +0 -1
- package/dist/theme/ZoraThemeScope.js +0 -37
- package/dist/theme/ZoraThemeScope.js.map +0 -1
- package/dist/theme/compileZoraTheme.d.ts.map +0 -1
- package/dist/theme/compileZoraTheme.js.map +0 -1
- package/dist/theme/createZoraThemeConfig.d.ts.map +0 -1
- package/dist/theme/createZoraThemeConfig.js.map +0 -1
- package/dist/theme/index.d.ts +0 -11
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -7
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/public.d.ts.map +0 -1
- package/dist/theme/public.js +0 -4
- package/dist/theme/public.js.map +0 -1
- package/dist/theme/resolveThemeModeToggleState.d.ts.map +0 -1
- package/dist/theme/resolveThemeModeToggleState.js.map +0 -1
- package/dist/theme/resolveZoraScopedThemeId.d.ts.map +0 -1
- package/dist/theme/resolveZoraScopedThemeId.js.map +0 -1
- package/dist/theme/resolveZoraThemeRecipe.d.ts.map +0 -1
- package/dist/theme/resolveZoraThemeRecipe.js.map +0 -1
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme/types.js +0 -2
- package/dist/theme/types.js.map +0 -1
- package/dist/theme/useZoraTheme.d.ts +0 -8
- package/dist/theme/useZoraTheme.d.ts.map +0 -1
- package/dist/theme/useZoraTheme.js.map +0 -1
- package/dist/theme/useZoraThemeRecipe.d.ts.map +0 -1
- package/dist/theme/useZoraThemeRecipe.js.map +0 -1
- package/dist/theme/withZoraThemeScope.d.ts.map +0 -1
- package/dist/theme/withZoraThemeScope.js.map +0 -1
- package/dist/theme/zoraDefaultTheme.d.ts +0 -3
- package/dist/theme/zoraDefaultTheme.d.ts.map +0 -1
- package/dist/theme/zoraDefaultTheme.js.map +0 -1
- package/dist/utils/createManifestBindings.d.ts.map +0 -1
- package/dist/utils/createManifestBindings.js.map +0 -1
- package/dist/utils/finalizeFeatureMetadata.d.ts.map +0 -1
- package/dist/utils/finalizeFeatureMetadata.js.map +0 -1
- package/src/internal/colorModel.ts +0 -39
- package/src/internal/recipes.test.ts +0 -46
- package/src/internal/recipes.ts +0 -92
- package/src/metadata/componentMeta.ts +0 -194
- package/src/metadata/themeRecipeMeta.ts +0 -14
- package/src/registry.ts +0 -197
- package/src/theme/ZoraThemeScope.tsx +0 -56
- package/src/theme/index.ts +0 -10
- /package/dist/{metadata → features/authoring}/allowedChildren.d.ts +0 -0
- /package/dist/{metadata → features/authoring}/allowedChildren.js +0 -0
- /package/dist/{utils → features/authoring/utils}/createManifestBindings.js +0 -0
- /package/dist/{utils → features/authoring/utils}/finalizeFeatureMetadata.js +0 -0
- /package/dist/{theme → features/theme}/ThemeModeToggle.meta.d.ts +0 -0
- /package/dist/{theme → features/theme}/ThemeModeToggle.meta.js +0 -0
- /package/dist/{theme → features/theme/adapters/inbound}/withZoraThemeScope.js +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.d.ts +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.js +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.native.js +0 -0
- /package/dist/{theme → features/theme/composition}/ZoraRuntimeCapabilities.web.js +0 -0
- /package/dist/{theme → features/theme/composition}/useZoraTheme.js +0 -0
- /package/dist/{theme → features/theme/composition}/useZoraThemeRecipe.d.ts +0 -0
- /package/dist/{theme → features/theme/utils}/resolveThemeModeToggleState.js +0 -0
- /package/dist/{theme → features/theme/utils}/resolveZoraScopedThemeId.js +0 -0
- /package/dist/{theme → features/theme/utils}/resolveZoraThemeRecipe.d.ts +0 -0
- /package/dist/{theme → features/theme}/zoraDefaultTheme.js +0 -0
- /package/src/{metadata → features/authoring}/allowedChildren.ts +0 -0
- /package/src/{metadata → features/authoring}/authoringMeta.test.ts +0 -0
- /package/src/{metadata → features/authoring}/bindableComponentMeta.test.ts +0 -0
- /package/src/{metadata → features/authoring}/radioGroupReachability.test.ts +0 -0
- /package/src/{metadata → features/authoring}/themeRecipeMeta.test.ts +0 -0
- /package/src/{constants/keyboard.ts → features/form/radio/constants.ts} +0 -0
- /package/src/{theme → features/theme/composition}/ZoraRuntimeCapabilities.tsx +0 -0
- /package/src/{theme → features/theme/composition}/useZoraTheme.ts +0 -0
- /package/src/{theme → features/theme/utils}/resolveThemeModeToggleState.test.ts +0 -0
- /package/src/{theme → features/theme/utils}/resolveZoraScopedThemeId.test.ts +0 -0
- /package/src/{theme → features/theme/utils}/resolveZoraThemeRecipe.test.ts +0 -0
- /package/src/{metadata/types.ts → types/authoring.ts} +0 -0
- /package/src/{theme/ThemeModeToggleProps.ts → types/theme-mode-toggle.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Uploader.js","sourceRoot":"","sources":["../../../../../src/features/uploader/adapters/inbound/Uploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE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C/C,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,OAAO,IAAI,IAAI,IAAI,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpD,IAAI,IAAI,IAAI,CAAC;QACb,SAAS,IAAI,CAAC,CAAC;IACjB,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC;IACxC,MAAM,OAAO,GAAG,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;IAChF,OAAO,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAC9B,CAAC","sourcesContent":["import React from 'react';\n\nimport { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';\nimport type { UploadAsset, UploaderProps, UploadType } from '../../../../types/upload';\nimport { Button } from '../../../button/public';\nimport { Dialog } from '../../../dialog/public';\nimport { Field } from '../../../form/public';\nimport { Icon } from '../../../icon/public';\nimport { Image } from '../../../image/public';\nimport { View } from '../../../layout/public';\nimport { Progress } from '../../../progress/public';\nimport { Text } from '../../../typography/public';\nimport { validateUploadAsset } from '../../application/use-cases/validateUploadAsset';\nimport { createUploadPicker } from '../../composition/createUploadPicker';\n\n/*** Picks, validates, uploads, previews, and removes one generic file asset. */\nexport const Uploader = withZoraThemeScope(UploaderInner);\n\n/*** Owns the interactive state for the generic uploader inbound adapter. */\nfunction UploaderInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n value = null,\n onChange,\n onValueChange,\n onUploadRequest,\n onRemoveRequest,\n onValidationError,\n uploadState = 'idle',\n uploadProgress,\n label = 'File',\n description,\n helperText,\n errorText,\n type = 'file',\n accept,\n maxSizeBytes,\n required,\n disabled = false,\n readOnly = false,\n validatePicked,\n onUpload,\n onRemove,\n aspectRatio = 1,\n interactionPolicy,\n}: UploaderProps) {\n const passive = interactionPolicy === 'passive';\n const picker = React.useMemo(() => createUploadPicker(), []);\n const [internalError, setInternalError] = React.useState<string | undefined>();\n const [internalUploading, setUploading] = React.useState(false);\n const [internalRemoving, setRemoving] = React.useState(false);\n const uploading = internalUploading || uploadState === 'uploading';\n const removing = internalRemoving || uploadState === 'removing';\n const [progress, setProgress] = React.useState<number | null>(null);\n const [previewOpen, setPreviewOpen] = React.useState(false);\n const mountedRef = React.useRef<boolean | null>(null);\n const resolvedAccept = resolveUploadAccept(type, accept);\n const actionsDisabled = disabled || readOnly;\n const effectiveError = errorText ?? internalError;\n const notifyValue = React.useCallback(\n (next: UploadAsset | null) => {\n onChange?.(next);\n onValueChange?.(next);\n },\n [onChange, onValueChange],\n );\n\n React.useEffect(() => {\n mountedRef.current = true;\n\n return () => {\n mountedRef.current = false;\n };\n }, []);\n\n const isMounted = React.useCallback(() => mountedRef.current === true, []);\n\n const setProgressSafe = React.useCallback(\n (next: number | null) => {\n if (!isMounted()) {\n return;\n }\n\n setProgress(clampProgress(next));\n },\n [isMounted],\n );\n\n const handlePick = React.useCallback(async () => {\n if (passive || actionsDisabled || uploading || removing) {\n return;\n }\n\n setInternalError(undefined);\n\n try {\n const picked = await picker.pickAsync({ accept: resolvedAccept, type });\n if (!picked || !isMounted()) {\n return;\n }\n\n const validationError = validateUploadAsset({\n accept: resolvedAccept,\n asset: picked,\n maxSizeBytes,\n validate: validatePicked,\n });\n if (validationError) {\n setInternalError(validationError);\n onValidationError?.({ message: validationError });\n return;\n }\n\n notifyValue(picked);\n onUploadRequest?.({ asset: picked });\n if (!onUpload) {\n return;\n }\n\n setUploading(true);\n setProgressSafe(0);\n\n try {\n const uploaded = await onUpload(picked, { setProgress: setProgressSafe });\n if (!isMounted()) {\n return;\n }\n\n notifyValue(uploaded);\n setUploading(false);\n setProgress(null);\n } catch (error) {\n if (!isMounted()) {\n return;\n }\n\n setInternalError(formatUnknownError(error));\n setUploading(false);\n setProgress(null);\n }\n } catch (error) {\n if (isMounted()) {\n setInternalError(formatUnknownError(error));\n }\n }\n }, [\n actionsDisabled,\n isMounted,\n maxSizeBytes,\n notifyValue,\n onUploadRequest,\n onValidationError,\n onUpload,\n passive,\n picker,\n removing,\n resolvedAccept,\n setProgressSafe,\n type,\n uploading,\n validatePicked,\n ]);\n\n const handleRemove = React.useCallback(async () => {\n if (passive || actionsDisabled || uploading || removing || !value) {\n return;\n }\n\n setInternalError(undefined);\n if (onRemoveRequest) {\n onRemoveRequest({ asset: value });\n return;\n }\n if (!onRemove) {\n notifyValue(null);\n return;\n }\n\n setRemoving(true);\n try {\n await onRemove(value);\n if (isMounted()) {\n notifyValue(null);\n setRemoving(false);\n }\n } catch (error) {\n if (isMounted()) {\n setInternalError(formatUnknownError(error));\n setRemoving(false);\n }\n }\n }, [\n actionsDisabled,\n isMounted,\n notifyValue,\n onRemove,\n onRemoveRequest,\n passive,\n removing,\n uploading,\n value,\n ]);\n\n const canPreviewImage = type === 'image' && resolveRenderableAssetUrl(value) !== null;\n\n return (\n <>\n <Field\n description={description}\n disabled={disabled}\n errorText={effectiveError}\n helperText={helperText}\n interactionPolicy={interactionPolicy}\n invalid={Boolean(effectiveError)}\n label={label}\n readOnly={readOnly}\n required={required}\n testID={testID}\n >\n <View gap=\"m\">\n <UploadPresentation asset={value} aspectRatio={aspectRatio} type={type} />\n\n {resolvedAccept || maxSizeBytes ? (\n <View gap=\"xs\">\n {resolvedAccept ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n Accepted: {resolvedAccept}\n </Text>\n ) : null}\n {maxSizeBytes ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n Max size: {formatBytes(maxSizeBytes)}\n </Text>\n ) : null}\n </View>\n ) : null}\n\n {uploading ? (\n <View gap=\"xs\">\n <Text emphasis=\"muted\" variant=\"caption\">\n Uploading…\n </Text>\n {uploadProgress !== undefined || progress !== null ? (\n <Progress max={1} value={clampProgress(uploadProgress ?? progress) ?? 0} />\n ) : null}\n </View>\n ) : null}\n\n <View direction={{ base: 'column', md: 'row' }} gap=\"s\">\n <Button\n disabled={actionsDisabled || uploading || removing}\n interactionPolicy={interactionPolicy}\n onPress={() => {\n void handlePick();\n }}\n >\n {value ? 'Replace file' : 'Select file'}\n </Button>\n\n {value ? (\n <Button\n color=\"danger\"\n disabled={actionsDisabled || uploading || removing}\n interactionPolicy={interactionPolicy}\n loading={removing}\n variant=\"outline\"\n onPress={() => {\n void handleRemove();\n }}\n >\n Remove\n </Button>\n ) : null}\n\n {canPreviewImage ? (\n <Button\n color=\"neutral\"\n interactionPolicy={interactionPolicy}\n variant=\"soft\"\n onPress={() => setPreviewOpen(true)}\n >\n Preview\n </Button>\n ) : null}\n </View>\n </View>\n </Field>\n\n {canPreviewImage ? (\n <Dialog\n closeOnBackdrop\n interactionPolicy={interactionPolicy}\n onDismiss={() => setPreviewOpen(false)}\n title=\"Image preview\"\n visible={previewOpen}\n >\n <View gap=\"m\">\n <Image aspectRatio={aspectRatio} fit=\"contain\" source={value} />\n <View direction=\"row\" justify=\"flex-end\">\n <Button\n color=\"neutral\"\n interactionPolicy={interactionPolicy}\n variant=\"soft\"\n onPress={() => setPreviewOpen(false)}\n >\n Close\n </Button>\n </View>\n </View>\n </Dialog>\n ) : null}\n </>\n );\n}\n\n/*** Renders image previews or generic file metadata without exposing picker-specific assets. */\nfunction UploadPresentation({\n asset,\n aspectRatio,\n type,\n}: {\n asset: UploadAsset | null;\n aspectRatio: number;\n type: UploadType;\n}) {\n if (type === 'image') {\n return <Image aspectRatio={aspectRatio} source={asset} />;\n }\n\n return (\n <View borderWidth={1} p=\"m\" radius=\"m\">\n <View direction=\"row\" gap=\"s\">\n <Icon name={resolveUploadIcon(type)} size={22} />\n <View gap=\"xs\">\n <Text variant=\"label\" weight=\"semiBold\">\n {asset?.fileName ?? 'No file selected'}\n </Text>\n {asset?.contentType ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n {asset.contentType}\n </Text>\n ) : null}\n </View>\n </View>\n </View>\n );\n}\n\n/*** Resolves the native picker default while allowing accept to remain the precise restriction. */\nfunction resolveUploadAccept(type: UploadType, accept: string | undefined): string | undefined {\n if (accept) {\n return accept;\n }\n\n if (type === 'image') {\n return 'image/*';\n }\n\n if (type === 'video') {\n return 'video/*';\n }\n\n return undefined;\n}\n\n/*** Resolves an upload asset URL when it can be rendered directly. */\nfunction resolveRenderableAssetUrl(asset: UploadAsset | null): string | null {\n if (!asset) {\n return null;\n }\n\n switch (asset.kind) {\n case 'local':\n return asset.uri;\n case 'url':\n return asset.url;\n case 'storage':\n return asset.publicUrl ?? null;\n }\n}\n\n/*** Resolves a generic icon for the selected upload mode. */\nfunction resolveUploadIcon(\n type: UploadType,\n): 'attach-outline' | 'document-text-outline' | 'videocam-outline' {\n switch (type) {\n case 'video':\n return 'videocam-outline';\n case 'document':\n return 'document-text-outline';\n case 'file':\n case 'image':\n return 'attach-outline';\n }\n}\n\n/*** Clamps progress callbacks into the normalized 0..1 range. */\nfunction clampProgress(value: number | null): number | null {\n if (value === null || !Number.isFinite(value)) {\n return null;\n }\n\n return Math.max(0, Math.min(1, value));\n}\n\n/*** Converts unknown picker/upload failures into user-facing text. */\nfunction formatUnknownError(error: unknown): string {\n if (error instanceof Error && error.message) {\n return error.message;\n }\n\n if (typeof error === 'string' && error.trim().length > 0) {\n return error;\n }\n\n return 'Something went wrong.';\n}\n\n/*** Formats an upload byte limit for concise helper text. */\nfunction formatBytes(value: number): string {\n if (!Number.isFinite(value) || value <= 0) {\n return '0 B';\n }\n\n const units = ['B', 'KB', 'MB', 'GB'] as const;\n let size = value;\n let unitIndex = 0;\n\n while (size >= 1024 && unitIndex < units.length - 1) {\n size /= 1024;\n unitIndex += 1;\n }\n\n const unit = units.at(unitIndex) ?? 'B';\n const rounded = unitIndex === 0 ? Math.round(size) : Math.round(size * 10) / 10;\n return `${rounded} ${unit}`;\n}\n"]}
|
|
1
|
+
{"version":3,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,IAAI,CAAC,EAAE,CAAC;QAC1C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;IAC/C,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,OAAO,IAAI,IAAI,IAAI,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpD,IAAI,IAAI,IAAI,CAAC;QACb,SAAS,IAAI,CAAC,CAAC;IACjB,CAAC;IAED,MAAM,IAAI,GAAG,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC;IACxC,MAAM,OAAO,GAAG,SAAS,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC;IAChF,OAAO,GAAG,OAAO,IAAI,IAAI,EAAE,CAAC;AAC9B,CAAC","sourcesContent":["import React from 'react';\n\nimport type { UploadAsset, UploaderProps, UploadType } from '../../../../types/upload';\nimport { Button } from '../../../button/public';\nimport { Dialog } from '../../../dialog/public';\nimport { Field } from '../../../form/public';\nimport { Icon } from '../../../icon/public';\nimport { Image } from '../../../image/public';\nimport { View } from '../../../layout/public';\nimport { Progress } from '../../../progress/public';\nimport { withZoraThemeScope } from '../../../theme/adapters/inbound/withZoraThemeScope';\nimport { Text } from '../../../typography/public';\nimport { validateUploadAsset } from '../../application/use-cases/validateUploadAsset';\nimport { createUploadPicker } from '../../composition/createUploadPicker';\n\n/*** Picks, validates, uploads, previews, and removes one generic file asset. */\nexport const Uploader = withZoraThemeScope(UploaderInner);\n\n/*** Owns the interactive state for the generic uploader inbound adapter. */\nfunction UploaderInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n value = null,\n onChange,\n onValueChange,\n onUploadRequest,\n onRemoveRequest,\n onValidationError,\n uploadState = 'idle',\n uploadProgress,\n label = 'File',\n description,\n helperText,\n errorText,\n type = 'file',\n accept,\n maxSizeBytes,\n required,\n disabled = false,\n readOnly = false,\n validatePicked,\n onUpload,\n onRemove,\n aspectRatio = 1,\n interactionPolicy,\n}: UploaderProps) {\n const passive = interactionPolicy === 'passive';\n const picker = React.useMemo(() => createUploadPicker(), []);\n const [internalError, setInternalError] = React.useState<string | undefined>();\n const [internalUploading, setUploading] = React.useState(false);\n const [internalRemoving, setRemoving] = React.useState(false);\n const uploading = internalUploading || uploadState === 'uploading';\n const removing = internalRemoving || uploadState === 'removing';\n const [progress, setProgress] = React.useState<number | null>(null);\n const [previewOpen, setPreviewOpen] = React.useState(false);\n const mountedRef = React.useRef<boolean | null>(null);\n const resolvedAccept = resolveUploadAccept(type, accept);\n const actionsDisabled = disabled || readOnly;\n const effectiveError = errorText ?? internalError;\n const notifyValue = React.useCallback(\n (next: UploadAsset | null) => {\n onChange?.(next);\n onValueChange?.(next);\n },\n [onChange, onValueChange],\n );\n\n React.useEffect(() => {\n mountedRef.current = true;\n\n return () => {\n mountedRef.current = false;\n };\n }, []);\n\n const isMounted = React.useCallback(() => mountedRef.current === true, []);\n\n const setProgressSafe = React.useCallback(\n (next: number | null) => {\n if (!isMounted()) {\n return;\n }\n\n setProgress(clampProgress(next));\n },\n [isMounted],\n );\n\n const handlePick = React.useCallback(async () => {\n if (passive || actionsDisabled || uploading || removing) {\n return;\n }\n\n setInternalError(undefined);\n\n try {\n const picked = await picker.pickAsync({ accept: resolvedAccept, type });\n if (!picked || !isMounted()) {\n return;\n }\n\n const validationError = validateUploadAsset({\n accept: resolvedAccept,\n asset: picked,\n maxSizeBytes,\n validate: validatePicked,\n });\n if (validationError) {\n setInternalError(validationError);\n onValidationError?.({ message: validationError });\n return;\n }\n\n notifyValue(picked);\n onUploadRequest?.({ asset: picked });\n if (!onUpload) {\n return;\n }\n\n setUploading(true);\n setProgressSafe(0);\n\n try {\n const uploaded = await onUpload(picked, { setProgress: setProgressSafe });\n if (!isMounted()) {\n return;\n }\n\n notifyValue(uploaded);\n setUploading(false);\n setProgress(null);\n } catch (error) {\n if (!isMounted()) {\n return;\n }\n\n setInternalError(formatUnknownError(error));\n setUploading(false);\n setProgress(null);\n }\n } catch (error) {\n if (isMounted()) {\n setInternalError(formatUnknownError(error));\n }\n }\n }, [\n actionsDisabled,\n isMounted,\n maxSizeBytes,\n notifyValue,\n onUploadRequest,\n onValidationError,\n onUpload,\n passive,\n picker,\n removing,\n resolvedAccept,\n setProgressSafe,\n type,\n uploading,\n validatePicked,\n ]);\n\n const handleRemove = React.useCallback(async () => {\n if (passive || actionsDisabled || uploading || removing || !value) {\n return;\n }\n\n setInternalError(undefined);\n if (onRemoveRequest) {\n onRemoveRequest({ asset: value });\n return;\n }\n if (!onRemove) {\n notifyValue(null);\n return;\n }\n\n setRemoving(true);\n try {\n await onRemove(value);\n if (isMounted()) {\n notifyValue(null);\n setRemoving(false);\n }\n } catch (error) {\n if (isMounted()) {\n setInternalError(formatUnknownError(error));\n setRemoving(false);\n }\n }\n }, [\n actionsDisabled,\n isMounted,\n notifyValue,\n onRemove,\n onRemoveRequest,\n passive,\n removing,\n uploading,\n value,\n ]);\n\n const canPreviewImage = type === 'image' && resolveRenderableAssetUrl(value) !== null;\n\n return (\n <>\n <Field\n description={description}\n disabled={disabled}\n errorText={effectiveError}\n helperText={helperText}\n interactionPolicy={interactionPolicy}\n invalid={Boolean(effectiveError)}\n label={label}\n readOnly={readOnly}\n required={required}\n testID={testID}\n >\n <View gap=\"m\">\n <UploadPresentation asset={value} aspectRatio={aspectRatio} type={type} />\n\n {resolvedAccept || maxSizeBytes ? (\n <View gap=\"xs\">\n {resolvedAccept ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n Accepted: {resolvedAccept}\n </Text>\n ) : null}\n {maxSizeBytes ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n Max size: {formatBytes(maxSizeBytes)}\n </Text>\n ) : null}\n </View>\n ) : null}\n\n {uploading ? (\n <View gap=\"xs\">\n <Text emphasis=\"muted\" variant=\"caption\">\n Uploading…\n </Text>\n {uploadProgress !== undefined || progress !== null ? (\n <Progress max={1} value={clampProgress(uploadProgress ?? progress) ?? 0} />\n ) : null}\n </View>\n ) : null}\n\n <View direction={{ base: 'column', md: 'row' }} gap=\"s\">\n <Button\n disabled={actionsDisabled || uploading || removing}\n interactionPolicy={interactionPolicy}\n onPress={() => {\n void handlePick();\n }}\n >\n {value ? 'Replace file' : 'Select file'}\n </Button>\n\n {value ? (\n <Button\n color=\"danger\"\n disabled={actionsDisabled || uploading || removing}\n interactionPolicy={interactionPolicy}\n loading={removing}\n variant=\"outline\"\n onPress={() => {\n void handleRemove();\n }}\n >\n Remove\n </Button>\n ) : null}\n\n {canPreviewImage ? (\n <Button\n color=\"neutral\"\n interactionPolicy={interactionPolicy}\n variant=\"soft\"\n onPress={() => setPreviewOpen(true)}\n >\n Preview\n </Button>\n ) : null}\n </View>\n </View>\n </Field>\n\n {canPreviewImage ? (\n <Dialog\n closeOnBackdrop\n interactionPolicy={interactionPolicy}\n onDismiss={() => setPreviewOpen(false)}\n title=\"Image preview\"\n visible={previewOpen}\n >\n <View gap=\"m\">\n <Image aspectRatio={aspectRatio} fit=\"contain\" source={value} />\n <View direction=\"row\" justify=\"flex-end\">\n <Button\n color=\"neutral\"\n interactionPolicy={interactionPolicy}\n variant=\"soft\"\n onPress={() => setPreviewOpen(false)}\n >\n Close\n </Button>\n </View>\n </View>\n </Dialog>\n ) : null}\n </>\n );\n}\n\n/*** Renders image previews or generic file metadata without exposing picker-specific assets. */\nfunction UploadPresentation({\n asset,\n aspectRatio,\n type,\n}: {\n asset: UploadAsset | null;\n aspectRatio: number;\n type: UploadType;\n}) {\n if (type === 'image') {\n return <Image aspectRatio={aspectRatio} source={asset} />;\n }\n\n return (\n <View borderWidth={1} p=\"m\" radius=\"m\">\n <View direction=\"row\" gap=\"s\">\n <Icon name={resolveUploadIcon(type)} size={22} />\n <View gap=\"xs\">\n <Text variant=\"label\" weight=\"semiBold\">\n {asset?.fileName ?? 'No file selected'}\n </Text>\n {asset?.contentType ? (\n <Text emphasis=\"muted\" variant=\"caption\">\n {asset.contentType}\n </Text>\n ) : null}\n </View>\n </View>\n </View>\n );\n}\n\n/*** Resolves the native picker default while allowing accept to remain the precise restriction. */\nfunction resolveUploadAccept(type: UploadType, accept: string | undefined): string | undefined {\n if (accept) {\n return accept;\n }\n\n if (type === 'image') {\n return 'image/*';\n }\n\n if (type === 'video') {\n return 'video/*';\n }\n\n return undefined;\n}\n\n/*** Resolves an upload asset URL when it can be rendered directly. */\nfunction resolveRenderableAssetUrl(asset: UploadAsset | null): string | null {\n if (!asset) {\n return null;\n }\n\n switch (asset.kind) {\n case 'local':\n return asset.uri;\n case 'url':\n return asset.url;\n case 'storage':\n return asset.publicUrl ?? null;\n }\n}\n\n/*** Resolves a generic icon for the selected upload mode. */\nfunction resolveUploadIcon(\n type: UploadType,\n): 'attach-outline' | 'document-text-outline' | 'videocam-outline' {\n switch (type) {\n case 'video':\n return 'videocam-outline';\n case 'document':\n return 'document-text-outline';\n case 'file':\n case 'image':\n return 'attach-outline';\n }\n}\n\n/*** Clamps progress callbacks into the normalized 0..1 range. */\nfunction clampProgress(value: number | null): number | null {\n if (value === null || !Number.isFinite(value)) {\n return null;\n }\n\n return Math.max(0, Math.min(1, value));\n}\n\n/*** Converts unknown picker/upload failures into user-facing text. */\nfunction formatUnknownError(error: unknown): string {\n if (error instanceof Error && error.message) {\n return error.message;\n }\n\n if (typeof error === 'string' && error.trim().length > 0) {\n return error;\n }\n\n return 'Something went wrong.';\n}\n\n/*** Formats an upload byte limit for concise helper text. */\nfunction formatBytes(value: number): string {\n if (!Number.isFinite(value) || value <= 0) {\n return '0 B';\n }\n\n const units = ['B', 'KB', 'MB', 'GB'] as const;\n let size = value;\n let unitIndex = 0;\n\n while (size >= 1024 && unitIndex < units.length - 1) {\n size /= 1024;\n unitIndex += 1;\n }\n\n const unit = units.at(unitIndex) ?? 'B';\n const rounded = unitIndex === 0 ? Math.round(size) : Math.round(size * 10) / 10;\n return `${rounded} ${unit}`;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploaderMeta.js","sourceRoot":"","sources":["../../../src/features/uploader/uploaderMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,WAAW,EACT,2FAA2F;IAC7F,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE;wBACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAChC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC/B,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACpC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACvC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACrC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAClC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAChC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,EAAE;qBACtC;iBACF;gBACD,eAAe,EAAE,IAAI;aACtB;SACF;KACF;IACD,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,cAAc;YACrB,SAAS,EAAE,sBAAsB;YAC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E,QAAQ,EAAE,SAAS,EAAE;QACpD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QAChD,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE;QACzF,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QACrD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACpD;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../
|
|
1
|
+
{"version":3,"file":"uploaderMeta.js","sourceRoot":"","sources":["../../../src/features/uploader/uploaderMeta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,IAAI;IACxB,eAAe,EAAE,EAAE;IACnB,WAAW,EACT,2FAA2F;IAC7F,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,MAAM,EAAE;wBACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAChC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC/B,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACpC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACvC,EAAE,IAAI,EAAE,WAAW,EAAE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,EAAE;QACxD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE;QACrD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;QAChD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE;QAChD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QAC9C,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACpD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE;QACnD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QAChD,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE;QACzF,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;QACrD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;KACpD;CACmC,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../types/authoring';\n\nexport const uploaderMeta = {\n name: 'Uploader',\n category: 'pattern',\n directManifestNode: true,\n allowedChildren: [],\n description:\n 'Selects files with Expo pickers; bind upload and removal requests to application actions.',\n bindings: {\n props: {\n value: {\n value: {\n type: 'object',\n fields: [\n { path: 'kind', type: 'string' },\n { path: 'uri', type: 'string' },\n { path: 'url', type: 'string' },\n { path: 'fileName', type: 'string' },\n { path: 'contentType', type: 'string' },\n { path: 'sizeBytes', type: 'number' },\n { path: 'bucket', type: 'string' },\n { path: 'path', type: 'string' },\n { path: 'publicUrl', type: 'string' },\n ],\n },\n acceptsFallback: true,\n },\n },\n },\n events: {\n valueChange: {\n label: 'Value change',\n eventType: 'uploader.valueChange',\n payloadFields: [{ path: 'value', type: 'object' }],\n },\n uploadRequest: {\n label: 'Upload request',\n eventType: 'uploader.uploadRequest',\n payloadFields: [{ path: 'asset', type: 'object' }],\n },\n removeRequest: {\n label: 'Remove request',\n eventType: 'uploader.removeRequest',\n payloadFields: [{ path: 'asset', type: 'object' }],\n },\n validationError: {\n label: 'Validation error',\n eventType: 'uploader.validationError',\n payloadFields: [{ path: 'message', type: 'string' }],\n },\n },\n props: {\n type: { type: 'enum', category: 'Selection', enum: ['image', 'video', 'document', 'file'] },\n accept: { type: 'string', category: 'Validation' },\n maxSizeBytes: { type: 'number', category: 'Validation' },\n required: { type: 'boolean', category: 'Validation' },\n disabled: { type: 'boolean', category: 'State' },\n readOnly: { type: 'boolean', category: 'State' },\n label: { type: 'string', category: 'Content' },\n description: { type: 'string', category: 'Content' },\n helperText: { type: 'string', category: 'Content' },\n errorText: { type: 'string', category: 'State' },\n uploadState: { type: 'enum', category: 'State', enum: ['idle', 'uploading', 'removing'] },\n uploadProgress: { type: 'number', category: 'State' },\n aspectRatio: { type: 'number', category: 'Layout' },\n },\n} as const satisfies ZoraComponentMeta;\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { ZORA_CORE_PLUGIN } from './corePlugin';
|
|
2
|
-
export { ZORA_CORE_PLUGIN_METADATA } from './corePluginMetadata';
|
|
3
1
|
export { Accordion, AccordionItem, type AccordionItemProps, type AccordionMode, type AccordionMultipleProps, type AccordionProps, type AccordionSingleProps, } from './features/accordion/public';
|
|
4
2
|
export { ActivityIndicator, type ActivityIndicatorProps, } from './features/activity-indicator/public';
|
|
5
3
|
export type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';
|
|
6
4
|
export { AppBar } from './features/app-bar/public';
|
|
7
5
|
export type { AuthFormBaseProps, AuthIdentifierKind, ForgotPasswordFormProps, ForgotPasswordFormValues, OAuthProviderButtonProps, OAuthProviderIconSpec, OAuthProviderItem, OAuthProviderListLayout, OAuthProviderListProps, OtpFormProps, OtpFormValues, SignInFormProps, SignInFormValues, SignUpFormField, SignUpFormProps, SignUpFormValues, } from './features/auth/public';
|
|
8
6
|
export { DEFAULT_OAUTH_PROVIDER_ICONS, ForgotPasswordForm, OAuthProviderButton, OAuthProviderList, OtpForm, resolveOAuthProviderIcon, resolveOAuthProviderLabel, SignInForm, SignUpForm, } from './features/auth/public';
|
|
7
|
+
export type { ZoraBindableComponentType, ZoraComponentBlueprint, ZoraComponentCategory, ZoraComponentEventMeta, ZoraComponentEventPayloadFieldMeta, ZoraComponentEventPayloadFieldType, ZoraComponentEventPayloadKind, ZoraComponentI18nMeta, ZoraComponentManifestPolicy, ZoraComponentMeta, ZoraComponentMetaRegistry, ZoraComponentPropArrayItemSchema, ZoraComponentPropAuthoring, ZoraComponentPropSchema, ZoraComponentPropType, ZoraComponentPropValue, ZoraComponentSlotMeta, ZoraThemeRecipeBooleanFieldMeta, ZoraThemeRecipeChoiceFieldMeta, ZoraThemeRecipeFieldMeta, ZoraThemeRecipeKind, ZoraThemeRecipeMeta, ZoraThemeRecipeMetaRegistry, ZoraThemeRecipeTokenFieldMeta, ZoraThemeTokenFamily, } from './features/authoring';
|
|
8
|
+
export { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META, ZORA_THEME_RECIPE_META, ZORA_THEME_TOKEN_FAMILIES, } from './features/authoring';
|
|
9
9
|
export type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';
|
|
10
10
|
export type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';
|
|
11
11
|
export { Avatar, resolveAvatarInitials } from './features/avatar/public';
|
|
@@ -72,11 +72,14 @@ export { MissingElement, type MissingElementProps } from './features/missing-ele
|
|
|
72
72
|
export { Pagination, type PaginationProps } from './features/pagination/public';
|
|
73
73
|
export type { PaletteItemProps } from './features/palette-item/public';
|
|
74
74
|
export { PaletteItem } from './features/palette-item/public';
|
|
75
|
+
export { composeZoraPluginMetadata, ZORA_CORE_PLUGIN_METADATA, ZoraPluginCompositionError, } from './features/plugin/public';
|
|
76
|
+
export { composeZoraPlugins, ZORA_CORE_PLUGIN } from './features/plugin/runtime';
|
|
75
77
|
export { PopoverMenu, type PopoverMenuAction, type PopoverMenuActionIntent, type PopoverMenuProps, } from './features/popover-menu/public';
|
|
76
78
|
export { Progress, type ProgressProps, ProgressRing, type ProgressRingProps, } from './features/progress/public';
|
|
77
79
|
export { Rating, type RatingProps } from './features/rating/public';
|
|
78
80
|
export type { ReaderColorScheme, ReaderDocumentFormat, ReaderErrorCode, ReaderErrorEvent, ReaderExternalLinkEvent, ReaderLineHeight, ReaderLocationChangeEvent, ReaderNavigationTrigger, ReaderResolvedSource, ReaderStatus, ReaderSurfaceProps, } from './features/reader/public';
|
|
79
81
|
export { ReaderSurface, resolveReaderProgress } from './features/reader/public';
|
|
82
|
+
export { ZORA_COMPONENT_REGISTRY } from './features/registry/public';
|
|
80
83
|
export type { BarcodeScannerViewProps, BarcodeScanResult, CameraPermissionStatus, CameraPermissionViewProps, ScanOverlayProps, } from './features/scanner/public';
|
|
81
84
|
export { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';
|
|
82
85
|
export { ScreenSection, type ScreenSectionProps, SectionHeader, type SectionHeaderProps, } from './features/section/public';
|
|
@@ -86,6 +89,10 @@ export { Skeleton, SkeletonCard, type SkeletonCardProps, type SkeletonDimension,
|
|
|
86
89
|
export type { SurfaceProps, SurfaceVariant } from './features/surface/public';
|
|
87
90
|
export { Surface } from './features/surface/public';
|
|
88
91
|
export { Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Tabs, type TabsProps, } from './features/tabs/public';
|
|
92
|
+
export type { ZoraColor, ZoraEmphasis, ZoraPaletteColor, ZoraStatusColor, } from './features/theme/colorModel';
|
|
93
|
+
export { ZORA_COLORS, ZORA_EMPHASES, ZORA_PALETTE_COLORS, ZORA_STATUS_COLORS, } from './features/theme/colorModel';
|
|
94
|
+
export * from './features/theme/public';
|
|
95
|
+
export * from './features/theme/runtime';
|
|
89
96
|
export { TimePicker, type TimePickerProps, type TimePickerValue, } from './features/time-picker/public';
|
|
90
97
|
export type { TimelineItem, TimelineProps } from './features/timeline/public';
|
|
91
98
|
export { Timeline } from './features/timeline/public';
|
|
@@ -100,13 +107,6 @@ export { Heading } from './features/typography/public';
|
|
|
100
107
|
export { Text } from './features/typography/public';
|
|
101
108
|
export type { UploadAsset, UploadAssetBase, UploaderProps, UploadProgressContext, UploadType, ValidateUploadAssetInput, } from './features/uploader/public';
|
|
102
109
|
export { Uploader, validateUploadAsset } from './features/uploader/public';
|
|
103
|
-
export type {
|
|
104
|
-
export {
|
|
105
|
-
export type { ZoraBindableComponentType, ZoraComponentBlueprint, ZoraComponentCategory, ZoraComponentEventMeta, ZoraComponentEventPayloadFieldMeta, ZoraComponentEventPayloadFieldType, ZoraComponentEventPayloadKind, ZoraComponentI18nMeta, ZoraComponentManifestPolicy, ZoraComponentMeta, ZoraComponentMetaRegistry, ZoraComponentPropArrayItemSchema, ZoraComponentPropAuthoring, ZoraComponentPropSchema, ZoraComponentPropType, ZoraComponentPropValue, ZoraComponentSlotMeta, ZoraThemeRecipeBooleanFieldMeta, ZoraThemeRecipeChoiceFieldMeta, ZoraThemeRecipeFieldMeta, ZoraThemeRecipeKind, ZoraThemeRecipeMeta, ZoraThemeRecipeMetaRegistry, ZoraThemeRecipeTokenFieldMeta, ZoraThemeTokenFamily, } from './metadata';
|
|
106
|
-
export { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META, ZORA_THEME_RECIPE_META, ZORA_THEME_TOKEN_FAMILIES, } from './metadata';
|
|
107
|
-
export type { ComposedZoraPluginCatalog, ComposedZoraPluginMetadataCatalog, ZoraPluginCompositionErrorCode, ZoraPluginDescriptor, ZoraPluginMetadata, ZoraPluginPlacement, } from './pluginComposition';
|
|
108
|
-
export { composeZoraPluginMetadata, composeZoraPlugins, ZoraPluginCompositionError, } from './pluginComposition';
|
|
109
|
-
export type { ZoraComponentRegistry } from './registry';
|
|
110
|
-
export { ZORA_COMPONENT_REGISTRY } from './registry';
|
|
111
|
-
export * from './theme';
|
|
110
|
+
export type { ComposedZoraPluginCatalog, ComposedZoraPluginMetadataCatalog, ZoraPluginCompositionErrorCode, ZoraPluginDescriptor, ZoraPluginMetadata, ZoraPluginPlacement, } from './types/plugin';
|
|
111
|
+
export type { ZoraComponentRegistry } from './types/registry';
|
|
112
112
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,4BAA4B,EAC5B,k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,4BAA4B,CAAC;AAC3E,YAAY,EACV,yBAAyB,EACzB,iCAAiC,EACjC,8BAA8B,EAC9B,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { ZORA_CORE_PLUGIN } from './corePlugin';
|
|
2
|
-
export { ZORA_CORE_PLUGIN_METADATA } from './corePluginMetadata';
|
|
3
1
|
export { Accordion, AccordionItem, } from './features/accordion/public';
|
|
4
2
|
export { ActivityIndicator, } from './features/activity-indicator/public';
|
|
5
3
|
export { AppBar } from './features/app-bar/public';
|
|
6
4
|
export { DEFAULT_OAUTH_PROVIDER_ICONS, ForgotPasswordForm, OAuthProviderButton, OAuthProviderList, OtpForm, resolveOAuthProviderIcon, resolveOAuthProviderLabel, SignInForm, SignUpForm, } from './features/auth/public';
|
|
5
|
+
export { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META, ZORA_THEME_RECIPE_META, ZORA_THEME_TOKEN_FAMILIES, } from './features/authoring';
|
|
7
6
|
export { Avatar, resolveAvatarInitials } from './features/avatar/public';
|
|
8
7
|
export { AvatarGroup } from './features/avatar/public';
|
|
9
8
|
export { Badge } from './features/badge/public';
|
|
@@ -44,16 +43,22 @@ export { List, ListItem, ListSection } from './features/list/public';
|
|
|
44
43
|
export { MissingElement } from './features/missing-element/public';
|
|
45
44
|
export { Pagination } from './features/pagination/public';
|
|
46
45
|
export { PaletteItem } from './features/palette-item/public';
|
|
46
|
+
export { composeZoraPluginMetadata, ZORA_CORE_PLUGIN_METADATA, ZoraPluginCompositionError, } from './features/plugin/public';
|
|
47
|
+
export { composeZoraPlugins, ZORA_CORE_PLUGIN } from './features/plugin/runtime';
|
|
47
48
|
export { PopoverMenu, } from './features/popover-menu/public';
|
|
48
49
|
export { Progress, ProgressRing, } from './features/progress/public';
|
|
49
50
|
export { Rating } from './features/rating/public';
|
|
50
51
|
export { ReaderSurface, resolveReaderProgress } from './features/reader/public';
|
|
52
|
+
export { ZORA_COMPONENT_REGISTRY } from './features/registry/public';
|
|
51
53
|
export { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';
|
|
52
54
|
export { ScreenSection, SectionHeader, } from './features/section/public';
|
|
53
55
|
export { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';
|
|
54
56
|
export { Skeleton, SkeletonCard, SkeletonList, SkeletonText, } from './features/skeleton/public';
|
|
55
57
|
export { Surface } from './features/surface/public';
|
|
56
58
|
export { Tab, TabList, TabPanel, Tabs, } from './features/tabs/public';
|
|
59
|
+
export { ZORA_COLORS, ZORA_EMPHASES, ZORA_PALETTE_COLORS, ZORA_STATUS_COLORS, } from './features/theme/colorModel';
|
|
60
|
+
export * from './features/theme/public';
|
|
61
|
+
export * from './features/theme/runtime';
|
|
57
62
|
export { TimePicker, } from './features/time-picker/public';
|
|
58
63
|
export { Timeline } from './features/timeline/public';
|
|
59
64
|
export { Toast, ToastProvider, useToast } from './features/toast/public';
|
|
@@ -62,9 +67,4 @@ export { TreeItem, TreeView } from './features/tree-view/public';
|
|
|
62
67
|
export { Heading } from './features/typography/public';
|
|
63
68
|
export { Text } from './features/typography/public';
|
|
64
69
|
export { Uploader, validateUploadAsset } from './features/uploader/public';
|
|
65
|
-
export { ZORA_COLORS, ZORA_EMPHASES, ZORA_PALETTE_COLORS, ZORA_STATUS_COLORS, } from './internal/colorModel';
|
|
66
|
-
export { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META, ZORA_THEME_RECIPE_META, ZORA_THEME_TOKEN_FAMILIES, } from './metadata';
|
|
67
|
-
export { composeZoraPluginMetadata, composeZoraPlugins, ZoraPluginCompositionError, } from './pluginComposition';
|
|
68
|
-
export { ZORA_COMPONENT_REGISTRY } from './registry';
|
|
69
|
-
export * from './theme';
|
|
70
70
|
//# sourceMappingURL=index.js.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,CAAC;AACzE,OAAO,EAAE,OAAO,EAAqB,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAkBjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AASpD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAO3E,OAAO,EACL,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AA4B/B,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AASpB,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,cAAc,SAAS,CAAC","sourcesContent":["export { ZORA_CORE_PLUGIN } from './corePlugin';\nexport { ZORA_CORE_PLUGIN_METADATA } from './corePluginMetadata';\nexport {\n Accordion,\n AccordionItem,\n type AccordionItemProps,\n type AccordionMode,\n type AccordionMultipleProps,\n type AccordionProps,\n type AccordionSingleProps,\n} from './features/accordion/public';\nexport {\n ActivityIndicator,\n type ActivityIndicatorProps,\n} from './features/activity-indicator/public';\nexport type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';\nexport { AppBar } from './features/app-bar/public';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OAuthProviderButtonProps,\n OAuthProviderIconSpec,\n OAuthProviderItem,\n OAuthProviderListLayout,\n OAuthProviderListProps,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './features/auth/public';\nexport {\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';\nexport type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';\nexport { Avatar, resolveAvatarInitials } from './features/avatar/public';\nexport { AvatarGroup } from './features/avatar/public';\nexport type { BadgeProps } from './features/badge/public';\nexport { Badge } from './features/badge/public';\nexport type { BottomSheetProps } from './features/bottom-sheet/public';\nexport { BottomSheet } from './features/bottom-sheet/public';\nexport {\n type BreadcrumbItem,\n type BreadcrumbPressEvent,\n Breadcrumbs,\n type BreadcrumbsProps,\n} from './features/breadcrumbs/public';\nexport type { ButtonProps } from './features/button/public';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './features/button/public';\nexport type { IconButtonProps } from './features/button/public';\nexport { Button } from './features/button/public';\nexport { ButtonGroup } from './features/button/public';\nexport { IconButton } from './features/button/public';\nexport type { CardProps } from './features/card/public';\nexport type { MediaCardImageProps, MediaCardProps } from './features/card/public';\nexport type { MetricCardProps } from './features/card/public';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './features/card/public';\nexport type { ProductCardProps } from './features/card/public';\nexport { Card } from './features/card/public';\nexport { MediaCard } from './features/card/public';\nexport { MetricCard } from './features/card/public';\nexport { PostCard } from './features/card/public';\nexport { ProductCard } from './features/card/public';\nexport type {\n ChatListAvatar,\n ChatListItemProps,\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './features/chat/public';\nexport { ChatListItem, MessageBubble } from './features/chat/public';\nexport type { ChipProps } from './features/chip/public';\nexport type { ChipGroupItem, ChipGroupProps } from './features/chip/public';\nexport { Chip } from './features/chip/public';\nexport { ChipGroup } from './features/chip/public';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './features/collection-editor/public';\nexport { CollectionEditor } from './features/collection-editor/public';\nexport type {\n ContentRailControlPressEvent,\n ContentRailDirection,\n ContentRailItemSize,\n ContentRailMotion,\n ContentRailProps,\n ContentRailSpacing,\n ContentRailVisibleRangeChangeEvent,\n} from './features/content-rail/public';\nexport { ContentRail } from './features/content-rail/public';\nexport type {\n DataTableCellContext,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableSortDirection,\n DataTableSortState,\n} from './features/data-table/public';\nexport { DataTable } from './features/data-table/public';\nexport {\n DatePicker,\n type DatePickerProps,\n type DatePickerValue,\n} from './features/date-picker/public';\nexport { Dialog, type DialogProps } from './features/dialog/public';\nexport {\n EmptyState,\n type EmptyStateAction,\n type EmptyStateProps,\n} from './features/empty-state/public';\nexport {\n Checkbox,\n CheckboxGroup,\n type CheckboxGroupOption,\n type CheckboxGroupProps,\n type CheckboxProps,\n} from './features/form/checkbox/public';\nexport type {\n FieldProps,\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldInputType,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './features/form/public';\nexport {\n Field,\n Form,\n FormActions,\n FormError,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './features/form/public';\nexport {\n Radio,\n RadioGroup,\n type RadioGroupOption,\n type RadioGroupProps,\n type RadioProps,\n} from './features/form/radio/public';\nexport { SearchInput, type SearchInputProps } from './features/form/search-input/public';\nexport { Select, type SelectOption, type SelectProps } from './features/form/select/public';\nexport { Switch, type SwitchProps } from './features/form/switch/public';\nexport {\n TextInput,\n type TextInputProps,\n type TextInputTrailingAction,\n} from './features/form/text-input/public';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n GradientRenderer,\n GradientRendererProps,\n GradientRendererProviderProps,\n} from './features/gradient/public';\nexport { Gradient, GradientRendererProvider } from './features/gradient/public';\nexport {\n Hero,\n type HeroAction,\n type HeroAlign,\n type HeroLayout,\n type HeroProps,\n type HeroTone,\n} from './features/hero/public';\nexport type { IconProps } from './features/icon/public';\nexport { Icon } from './features/icon/public';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';\nexport { Image } from './features/image/public';\nexport {\n KeyboardAvoidingView,\n type KeyboardAvoidingViewBehavior,\n type KeyboardAvoidingViewProps,\n} from './features/keyboard-avoiding-view/public';\nexport type {\n AppShellProps,\n DividerProps,\n GridProps,\n ScreenProps,\n ScrollViewProps,\n ViewProps,\n} from './features/layout/public';\nexport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nexport type {\n ManifestListProps,\n ManifestListSection,\n ManifestSectionListProps,\n} from './features/list/public';\nexport type {\n ListChildrenProps,\n ListItemProps,\n ListItemsProps,\n ListItemVariant,\n ListProps,\n ListSectionProps,\n} from './features/list/public';\nexport { FlatList, SectionList } from './features/list/public';\nexport { List, ListItem, ListSection } from './features/list/public';\nexport { MissingElement, type MissingElementProps } from './features/missing-element/public';\nexport { Pagination, type PaginationProps } from './features/pagination/public';\nexport type { PaletteItemProps } from './features/palette-item/public';\nexport { PaletteItem } from './features/palette-item/public';\nexport {\n PopoverMenu,\n type PopoverMenuAction,\n type PopoverMenuActionIntent,\n type PopoverMenuProps,\n} from './features/popover-menu/public';\nexport {\n Progress,\n type ProgressProps,\n ProgressRing,\n type ProgressRingProps,\n} from './features/progress/public';\nexport { Rating, type RatingProps } from './features/rating/public';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderResolvedSource,\n ReaderStatus,\n ReaderSurfaceProps,\n} from './features/reader/public';\nexport { ReaderSurface, resolveReaderProgress } from './features/reader/public';\nexport type {\n BarcodeScannerViewProps,\n BarcodeScanResult,\n CameraPermissionStatus,\n CameraPermissionViewProps,\n ScanOverlayProps,\n} from './features/scanner/public';\nexport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nexport {\n ScreenSection,\n type ScreenSectionProps,\n SectionHeader,\n type SectionHeaderProps,\n} from './features/section/public';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './features/selection/public';\nexport { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';\nexport {\n Skeleton,\n SkeletonCard,\n type SkeletonCardProps,\n type SkeletonDimension,\n SkeletonList,\n type SkeletonListProps,\n type SkeletonListVariant,\n type SkeletonProps,\n type SkeletonRadius,\n SkeletonText,\n type SkeletonTextProps,\n} from './features/skeleton/public';\nexport type { SurfaceProps, SurfaceVariant } from './features/surface/public';\nexport { Surface } from './features/surface/public';\nexport {\n Tab,\n TabList,\n type TabListProps,\n TabPanel,\n type TabPanelProps,\n type TabProps,\n Tabs,\n type TabsProps,\n} from './features/tabs/public';\nexport {\n TimePicker,\n type TimePickerProps,\n type TimePickerValue,\n} from './features/time-picker/public';\nexport type { TimelineItem, TimelineProps } from './features/timeline/public';\nexport { Timeline } from './features/timeline/public';\nexport type {\n ToastController,\n ToastOptions,\n ToastProps,\n ToastProviderProps,\n ToastStatus,\n} from './features/toast/public';\nexport { Toast, ToastProvider, useToast } from './features/toast/public';\nexport { Toolbar, type ToolbarProps } from './features/toolbar/public';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';\nexport { TreeItem, TreeView } from './features/tree-view/public';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './features/typography/public';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './features/typography/public';\nexport { Heading } from './features/typography/public';\nexport { Text } from './features/typography/public';\nexport type {\n UploadAsset,\n UploadAssetBase,\n UploaderProps,\n UploadProgressContext,\n UploadType,\n ValidateUploadAssetInput,\n} from './features/uploader/public';\nexport { Uploader, validateUploadAsset } from './features/uploader/public';\nexport type {\n ZoraColor,\n ZoraEmphasis,\n ZoraPaletteColor,\n ZoraStatusColor,\n} from './internal/colorModel';\nexport {\n ZORA_COLORS,\n ZORA_EMPHASES,\n ZORA_PALETTE_COLORS,\n ZORA_STATUS_COLORS,\n} from './internal/colorModel';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentManifestPolicy,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropAuthoring,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n ZoraThemeRecipeBooleanFieldMeta,\n ZoraThemeRecipeChoiceFieldMeta,\n ZoraThemeRecipeFieldMeta,\n ZoraThemeRecipeKind,\n ZoraThemeRecipeMeta,\n ZoraThemeRecipeMetaRegistry,\n ZoraThemeRecipeTokenFieldMeta,\n ZoraThemeTokenFamily,\n} from './metadata';\nexport {\n ZORA_BINDABLE_COMPONENT_META,\n ZORA_COMPONENT_META,\n ZORA_THEME_RECIPE_META,\n ZORA_THEME_TOKEN_FAMILIES,\n} from './metadata';\nexport type {\n ComposedZoraPluginCatalog,\n ComposedZoraPluginMetadataCatalog,\n ZoraPluginCompositionErrorCode,\n ZoraPluginDescriptor,\n ZoraPluginMetadata,\n ZoraPluginPlacement,\n} from './pluginComposition';\nexport {\n composeZoraPluginMetadata,\n composeZoraPlugins,\n ZoraPluginCompositionError,\n} from './pluginComposition';\nexport type { ZoraComponentRegistry } from './registry';\nexport { ZORA_COMPONENT_REGISTRY } from './registry';\nexport * from './theme';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,GAMd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,iBAAiB,GAElB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAmBnD,OAAO,EACL,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,OAAO,EACP,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,UAAU,GACX,MAAM,wBAAwB,CAAC;AA4BhC,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAGL,WAAW,GAEZ,MAAM,+BAA+B,CAAC;AAQvC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAYtD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,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EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EACL,GAAG,EACH,OAAO,EAEP,QAAQ,EAGR,IAAI,GAEL,MAAM,wBAAwB,CAAC;AAOhC,OAAO,EACL,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EACL,UAAU,GAGX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQtD,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAqB,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAkBjE,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AASpD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC","sourcesContent":["export {\n Accordion,\n AccordionItem,\n type AccordionItemProps,\n type AccordionMode,\n type AccordionMultipleProps,\n type AccordionProps,\n type AccordionSingleProps,\n} from './features/accordion/public';\nexport {\n ActivityIndicator,\n type ActivityIndicatorProps,\n} from './features/activity-indicator/public';\nexport type { AppBarMode, AppBarOverflowMenu, AppBarProps } from './features/app-bar/public';\nexport { AppBar } from './features/app-bar/public';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OAuthProviderButtonProps,\n OAuthProviderIconSpec,\n OAuthProviderItem,\n OAuthProviderListLayout,\n OAuthProviderListProps,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './features/auth/public';\nexport {\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './features/auth/public';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentManifestPolicy,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropAuthoring,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n ZoraThemeRecipeBooleanFieldMeta,\n ZoraThemeRecipeChoiceFieldMeta,\n ZoraThemeRecipeFieldMeta,\n ZoraThemeRecipeKind,\n ZoraThemeRecipeMeta,\n ZoraThemeRecipeMetaRegistry,\n ZoraThemeRecipeTokenFieldMeta,\n ZoraThemeTokenFamily,\n} from './features/authoring';\nexport {\n ZORA_BINDABLE_COMPONENT_META,\n ZORA_COMPONENT_META,\n ZORA_THEME_RECIPE_META,\n ZORA_THEME_TOKEN_FAMILIES,\n} from './features/authoring';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';\nexport type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';\nexport { Avatar, resolveAvatarInitials } from './features/avatar/public';\nexport { AvatarGroup } from './features/avatar/public';\nexport type { BadgeProps } from './features/badge/public';\nexport { Badge } from './features/badge/public';\nexport type { BottomSheetProps } from './features/bottom-sheet/public';\nexport { BottomSheet } from './features/bottom-sheet/public';\nexport {\n type BreadcrumbItem,\n type BreadcrumbPressEvent,\n Breadcrumbs,\n type BreadcrumbsProps,\n} from './features/breadcrumbs/public';\nexport type { ButtonProps } from './features/button/public';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './features/button/public';\nexport type { IconButtonProps } from './features/button/public';\nexport { Button } from './features/button/public';\nexport { ButtonGroup } from './features/button/public';\nexport { IconButton } from './features/button/public';\nexport type { CardProps } from './features/card/public';\nexport type { MediaCardImageProps, MediaCardProps } from './features/card/public';\nexport type { MetricCardProps } from './features/card/public';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './features/card/public';\nexport type { ProductCardProps } from './features/card/public';\nexport { Card } from './features/card/public';\nexport { MediaCard } from './features/card/public';\nexport { MetricCard } from './features/card/public';\nexport { PostCard } from './features/card/public';\nexport { ProductCard } from './features/card/public';\nexport type {\n ChatListAvatar,\n ChatListItemProps,\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './features/chat/public';\nexport { ChatListItem, MessageBubble } from './features/chat/public';\nexport type { ChipProps } from './features/chip/public';\nexport type { ChipGroupItem, ChipGroupProps } from './features/chip/public';\nexport { Chip } from './features/chip/public';\nexport { ChipGroup } from './features/chip/public';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './features/collection-editor/public';\nexport { CollectionEditor } from './features/collection-editor/public';\nexport type {\n ContentRailControlPressEvent,\n ContentRailDirection,\n ContentRailItemSize,\n ContentRailMotion,\n ContentRailProps,\n ContentRailSpacing,\n ContentRailVisibleRangeChangeEvent,\n} from './features/content-rail/public';\nexport { ContentRail } from './features/content-rail/public';\nexport type {\n DataTableCellContext,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableSortDirection,\n DataTableSortState,\n} from './features/data-table/public';\nexport { DataTable } from './features/data-table/public';\nexport {\n DatePicker,\n type DatePickerProps,\n type DatePickerValue,\n} from './features/date-picker/public';\nexport { Dialog, type DialogProps } from './features/dialog/public';\nexport {\n EmptyState,\n type EmptyStateAction,\n type EmptyStateProps,\n} from './features/empty-state/public';\nexport {\n Checkbox,\n CheckboxGroup,\n type CheckboxGroupOption,\n type CheckboxGroupProps,\n type CheckboxProps,\n} from './features/form/checkbox/public';\nexport type {\n FieldProps,\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldInputType,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './features/form/public';\nexport {\n Field,\n Form,\n FormActions,\n FormError,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './features/form/public';\nexport {\n Radio,\n RadioGroup,\n type RadioGroupOption,\n type RadioGroupProps,\n type RadioProps,\n} from './features/form/radio/public';\nexport { SearchInput, type SearchInputProps } from './features/form/search-input/public';\nexport { Select, type SelectOption, type SelectProps } from './features/form/select/public';\nexport { Switch, type SwitchProps } from './features/form/switch/public';\nexport {\n TextInput,\n type TextInputProps,\n type TextInputTrailingAction,\n} from './features/form/text-input/public';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n GradientRenderer,\n GradientRendererProps,\n GradientRendererProviderProps,\n} from './features/gradient/public';\nexport { Gradient, GradientRendererProvider } from './features/gradient/public';\nexport {\n Hero,\n type HeroAction,\n type HeroAlign,\n type HeroLayout,\n type HeroProps,\n type HeroTone,\n} from './features/hero/public';\nexport type { IconProps } from './features/icon/public';\nexport { Icon } from './features/icon/public';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';\nexport { Image } from './features/image/public';\nexport {\n KeyboardAvoidingView,\n type KeyboardAvoidingViewBehavior,\n type KeyboardAvoidingViewProps,\n} from './features/keyboard-avoiding-view/public';\nexport type {\n AppShellProps,\n DividerProps,\n GridProps,\n ScreenProps,\n ScrollViewProps,\n ViewProps,\n} from './features/layout/public';\nexport { AppShell, Divider, Grid, Screen, ScrollView, View } from './features/layout/public';\nexport type {\n ManifestListProps,\n ManifestListSection,\n ManifestSectionListProps,\n} from './features/list/public';\nexport type {\n ListChildrenProps,\n ListItemProps,\n ListItemsProps,\n ListItemVariant,\n ListProps,\n ListSectionProps,\n} from './features/list/public';\nexport { FlatList, SectionList } from './features/list/public';\nexport { List, ListItem, ListSection } from './features/list/public';\nexport { MissingElement, type MissingElementProps } from './features/missing-element/public';\nexport { Pagination, type PaginationProps } from './features/pagination/public';\nexport type { PaletteItemProps } from './features/palette-item/public';\nexport { PaletteItem } from './features/palette-item/public';\nexport {\n composeZoraPluginMetadata,\n ZORA_CORE_PLUGIN_METADATA,\n ZoraPluginCompositionError,\n} from './features/plugin/public';\nexport { composeZoraPlugins, ZORA_CORE_PLUGIN } from './features/plugin/runtime';\nexport {\n PopoverMenu,\n type PopoverMenuAction,\n type PopoverMenuActionIntent,\n type PopoverMenuProps,\n} from './features/popover-menu/public';\nexport {\n Progress,\n type ProgressProps,\n ProgressRing,\n type ProgressRingProps,\n} from './features/progress/public';\nexport { Rating, type RatingProps } from './features/rating/public';\nexport type {\n ReaderColorScheme,\n ReaderDocumentFormat,\n ReaderErrorCode,\n ReaderErrorEvent,\n ReaderExternalLinkEvent,\n ReaderLineHeight,\n ReaderLocationChangeEvent,\n ReaderNavigationTrigger,\n ReaderResolvedSource,\n ReaderStatus,\n ReaderSurfaceProps,\n} from './features/reader/public';\nexport { ReaderSurface, resolveReaderProgress } from './features/reader/public';\nexport { ZORA_COMPONENT_REGISTRY } from './features/registry/public';\nexport type {\n BarcodeScannerViewProps,\n BarcodeScanResult,\n CameraPermissionStatus,\n CameraPermissionViewProps,\n ScanOverlayProps,\n} from './features/scanner/public';\nexport { BarcodeScannerView, CameraPermissionView, ScanOverlay } from './features/scanner/public';\nexport {\n ScreenSection,\n type ScreenSectionProps,\n SectionHeader,\n type SectionHeaderProps,\n} from './features/section/public';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './features/selection/public';\nexport { SelectableItem, SelectionProvider, useSelection } from './features/selection/public';\nexport {\n Skeleton,\n SkeletonCard,\n type SkeletonCardProps,\n type SkeletonDimension,\n SkeletonList,\n type SkeletonListProps,\n type SkeletonListVariant,\n type SkeletonProps,\n type SkeletonRadius,\n SkeletonText,\n type SkeletonTextProps,\n} from './features/skeleton/public';\nexport type { SurfaceProps, SurfaceVariant } from './features/surface/public';\nexport { Surface } from './features/surface/public';\nexport {\n Tab,\n TabList,\n type TabListProps,\n TabPanel,\n type TabPanelProps,\n type TabProps,\n Tabs,\n type TabsProps,\n} from './features/tabs/public';\nexport type {\n ZoraColor,\n ZoraEmphasis,\n ZoraPaletteColor,\n ZoraStatusColor,\n} from './features/theme/colorModel';\nexport {\n ZORA_COLORS,\n ZORA_EMPHASES,\n ZORA_PALETTE_COLORS,\n ZORA_STATUS_COLORS,\n} from './features/theme/colorModel';\nexport * from './features/theme/public';\nexport * from './features/theme/runtime';\nexport {\n TimePicker,\n type TimePickerProps,\n type TimePickerValue,\n} from './features/time-picker/public';\nexport type { TimelineItem, TimelineProps } from './features/timeline/public';\nexport { Timeline } from './features/timeline/public';\nexport type {\n ToastController,\n ToastOptions,\n ToastProps,\n ToastProviderProps,\n ToastStatus,\n} from './features/toast/public';\nexport { Toast, ToastProvider, useToast } from './features/toast/public';\nexport { Toolbar, type ToolbarProps } from './features/toolbar/public';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './features/tree-view/public';\nexport { TreeItem, TreeView } from './features/tree-view/public';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './features/typography/public';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './features/typography/public';\nexport { Heading } from './features/typography/public';\nexport { Text } from './features/typography/public';\nexport type {\n UploadAsset,\n UploadAssetBase,\n UploaderProps,\n UploadProgressContext,\n UploadType,\n ValidateUploadAssetInput,\n} from './features/uploader/public';\nexport { Uploader, validateUploadAsset } from './features/uploader/public';\nexport type {\n ComposedZoraPluginCatalog,\n ComposedZoraPluginMetadataCatalog,\n ZoraPluginCompositionErrorCode,\n ZoraPluginDescriptor,\n ZoraPluginMetadata,\n ZoraPluginPlacement,\n} from './types/plugin';\nexport type { ZoraComponentRegistry } from './types/registry';\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AccordionItemProps as SurfaceAccordionItemProps, AccordionMode, AccordionMultipleProps as SurfaceAccordionMultipleProps, AccordionSingleProps as SurfaceAccordionSingleProps, ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraBaseProps } from './base';
|
|
4
4
|
export type { AccordionMode } from '@ankhorage/surface';
|
|
5
5
|
export type AccordionSingleProps = ZoraBaseProps & Omit<SurfaceAccordionSingleProps, 'children'> & {
|
|
6
6
|
children?: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,aAAa,EACb,sBAAsB,IAAI,6BAA6B,EACvD,oBAAoB,IAAI,2BAA2B,EACnD,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/types/accordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,aAAa,EACb,sBAAsB,IAAI,6BAA6B,EACvD,oBAAoB,IAAI,2BAA2B,EACnD,cAAc,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAC9C,IAAI,CAAC,2BAA2B,EAAE,UAAU,CAAC,GAAG;IAC9C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEJ,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAChD,IAAI,CAAC,6BAA6B,EAAE,UAAU,CAAC,GAAG;IAChD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAE3E,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAC5C,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC,GAAG;IAC5C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEJ,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../src/types/accordion.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccordionItemProps as SurfaceAccordionItemProps,\n AccordionMode,\n AccordionMultipleProps as SurfaceAccordionMultipleProps,\n AccordionSingleProps as SurfaceAccordionSingleProps,\n ButtonIconSpec,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../src/types/accordion.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccordionItemProps as SurfaceAccordionItemProps,\n AccordionMode,\n AccordionMultipleProps as SurfaceAccordionMultipleProps,\n AccordionSingleProps as SurfaceAccordionSingleProps,\n ButtonIconSpec,\n} from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\n\nexport type { AccordionMode } from '@ankhorage/surface';\n\nexport type AccordionSingleProps = ZoraBaseProps &\n Omit<SurfaceAccordionSingleProps, 'children'> & {\n children?: React.ReactNode;\n };\n\nexport type AccordionMultipleProps = ZoraBaseProps &\n Omit<SurfaceAccordionMultipleProps, 'children'> & {\n children?: React.ReactNode;\n };\n\nexport type AccordionProps = AccordionSingleProps | AccordionMultipleProps;\n\nexport type AccordionItemProps = ZoraBaseProps &\n Omit<SurfaceAccordionItemProps, 'children'> & {\n title: React.ReactNode;\n description?: React.ReactNode;\n icon?: ButtonIconSpec;\n actions?: React.ReactNode;\n children?: React.ReactNode;\n };\n\nexport interface AccordionPresentationContextValue {\n mode: AccordionMode;\n openValues: readonly string[];\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ActivityIndicatorProps as ReactNativeActivityIndicatorProps } from 'react-native';
|
|
2
|
-
import type { ZoraBaseProps } from '
|
|
2
|
+
import type { ZoraBaseProps } from './base';
|
|
3
3
|
export interface ActivityIndicatorProps extends ZoraBaseProps, Omit<ReactNativeActivityIndicatorProps, 'color'> {
|
|
4
4
|
color?: ReactNativeActivityIndicatorProps['color'];
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.d.ts","sourceRoot":"","sources":["../../src/types/activity-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,IAAI,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAEhG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"activity-indicator.d.ts","sourceRoot":"","sources":["../../src/types/activity-indicator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,IAAI,iCAAiC,EAAE,MAAM,cAAc,CAAC;AAEhG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,MAAM,WAAW,sBACf,SAAQ,aAAa,EAAE,IAAI,CAAC,iCAAiC,EAAE,OAAO,CAAC;IACvE,KAAK,CAAC,EAAE,iCAAiC,CAAC,OAAO,CAAC,CAAC;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-indicator.js","sourceRoot":"","sources":["../../src/types/activity-indicator.ts"],"names":[],"mappings":"","sourcesContent":["import type { ActivityIndicatorProps as ReactNativeActivityIndicatorProps } from 'react-native';\n\nimport type { ZoraBaseProps } from '
|
|
1
|
+
{"version":3,"file":"activity-indicator.js","sourceRoot":"","sources":["../../src/types/activity-indicator.ts"],"names":[],"mappings":"","sourcesContent":["import type { ActivityIndicatorProps as ReactNativeActivityIndicatorProps } from 'react-native';\n\nimport type { ZoraBaseProps } from './base';\n\nexport interface ActivityIndicatorProps\n extends ZoraBaseProps, Omit<ReactNativeActivityIndicatorProps, 'color'> {\n color?: ReactNativeActivityIndicatorProps['color'];\n}\n"]}
|
package/dist/types/app-bar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraBaseProps } from './base';
|
|
4
4
|
import type { PopoverMenuAction } from './popover-menu';
|
|
5
5
|
export type AppBarMode = {
|
|
6
6
|
type: 'default';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar.d.ts","sourceRoot":"","sources":["../../src/types/app-bar.ts"],"names":[],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C1B,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-bar.js","sourceRoot":"","sources":["../../src/types/app-bar.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from '
|
|
1
|
+
{"version":3,"file":"app-bar.js","sourceRoot":"","sources":["../../src/types/app-bar.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraBaseProps } from './base';\nimport type { PopoverMenuAction } from './popover-menu';\n\nexport type AppBarMode =\n | {\n type: 'default';\n }\n | {\n type: 'selection';\n label: string;\n count?: number;\n onCancel: () => void;\n cancelLabel?: string;\n cancelIcon?: ButtonIconSpec;\n };\n\nexport interface AppBarOverflowMenu {\n actions: readonly PopoverMenuAction[];\n label?: string;\n icon?: ButtonIconSpec;\n disabled?: boolean;\n closeOnSelect?: boolean;\n onDismiss?: () => void;\n}\n\nexport interface AppBarProps extends ZoraBaseProps {\n title?: React.ReactNode;\n subtitle?: React.ReactNode;\n leading?: React.ReactNode;\n actions?: React.ReactNode;\n overflow?: AppBarOverflowMenu;\n appMode?: AppBarMode;\n children?: React.ReactNode;\n safeAreaTop?: boolean;\n divider?: boolean;\n}\n"]}
|
package/dist/types/auth.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { ButtonProps } from '../features/button/public';
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
4
|
+
import type { ZoraBaseProps } from './base';
|
|
5
5
|
import type { FormFieldConfig, FormValues } from './form';
|
|
6
6
|
export type AuthIdentifierKind = 'email' | 'phone' | 'username';
|
|
7
7
|
export interface AuthFormBaseProps extends ZoraBaseProps {
|
package/dist/types/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAEhE,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,kBAAkB,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;CA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W,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,sBAAuB,SAAQ,aAAa;IAC3D,SAAS,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE"}
|
package/dist/types/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ButtonProps } from '../features/button/public';\nimport type { ZoraBaseProps } from '
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/types/auth.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ButtonProps } from '../features/button/public';\nimport type { ZoraBaseProps } from './base';\nimport type { FormFieldConfig, FormValues } from './form';\n\nexport type AuthIdentifierKind = 'email' | 'phone' | 'username';\n\nexport interface AuthFormBaseProps extends ZoraBaseProps {\n loading?: boolean;\n disabled?: boolean;\n error?: React.ReactNode;\n submitLabel?: React.ReactNode;\n}\n\nexport interface SignInFormValues {\n identifier: string;\n identifierKind: AuthIdentifierKind;\n secret: string;\n}\n\nexport interface SignInFormProps extends AuthFormBaseProps {\n identifiers?: readonly AuthIdentifierKind[];\n identifierLabel?: React.ReactNode;\n secretLabel?: React.ReactNode;\n forgotPasswordLabel?: React.ReactNode;\n signUpLabel?: React.ReactNode;\n onSubmit?: (values: SignInFormValues) => void | Promise<void>;\n onForgotPassword?: () => void | Promise<void>;\n onSignUp?: () => void | Promise<void>;\n}\n\nexport type SignUpFormValues = FormValues;\nexport type SignUpFormField = FormFieldConfig;\n\nexport interface SignUpFormProps extends AuthFormBaseProps {\n fields?: readonly SignUpFormField[];\n signInLabel?: React.ReactNode;\n onSubmit?: (values: SignUpFormValues) => void | Promise<void>;\n onSignIn?: () => void | Promise<void>;\n}\n\nexport interface ForgotPasswordFormValues {\n identifier: string;\n identifierKind: AuthIdentifierKind;\n}\n\nexport interface ForgotPasswordFormProps extends AuthFormBaseProps {\n identifiers?: readonly AuthIdentifierKind[];\n identifierLabel?: React.ReactNode;\n signInLabel?: React.ReactNode;\n onSubmit?: (values: ForgotPasswordFormValues) => void | Promise<void>;\n onSignIn?: () => void | Promise<void>;\n}\n\nexport interface OtpFormValues {\n otp: string;\n}\n\nexport interface OtpFormProps extends AuthFormBaseProps {\n length?: number;\n otpLabel?: React.ReactNode;\n resendLabel?: React.ReactNode;\n resendDisabled?: boolean;\n resendLoading?: boolean;\n onSubmit?: (values: OtpFormValues) => void | Promise<void>;\n onResend?: () => void | Promise<void>;\n}\n\nexport type OAuthProviderIconSpec = ButtonIconSpec;\n\nexport interface OAuthProviderItem {\n id: string;\n label?: React.ReactNode;\n icon?: OAuthProviderIconSpec;\n disabled?: boolean;\n loading?: boolean;\n}\n\nexport interface OAuthProviderButtonProps extends ZoraBaseProps {\n providerId: string;\n label?: React.ReactNode;\n icon?: OAuthProviderIconSpec;\n disabled?: boolean;\n loading?: boolean;\n fullWidth?: boolean;\n size?: ButtonProps['size'];\n variant?: ButtonProps['variant'];\n color?: ButtonProps['color'];\n onPress?: (providerId: string) => void | Promise<void>;\n}\n\nexport type OAuthProviderListLayout = 'stack' | 'inline';\n\nexport interface OAuthProviderListProps extends ZoraBaseProps {\n providers: readonly OAuthProviderItem[];\n disabled?: boolean;\n loading?: boolean;\n fullWidth?: boolean;\n layout?: OAuthProviderListLayout;\n size?: ButtonProps['size'];\n variant?: ButtonProps['variant'];\n color?: ButtonProps['color'];\n onProviderPress?: (providerId: string) => void | Promise<void>;\n}\n"]}
|
|
@@ -79,4 +79,4 @@ export interface ZoraComponentMeta {
|
|
|
79
79
|
props: Readonly<Record<string, ZoraComponentPropSchema>>;
|
|
80
80
|
}
|
|
81
81
|
export type ZoraComponentMetaRegistry = Readonly<Record<string, ZoraComponentMeta>>;
|
|
82
|
-
//# sourceMappingURL=
|
|
82
|
+
//# sourceMappingURL=authoring.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring.d.ts","sourceRoot":"","sources":["../../src/types/authoring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEtF,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,CAAC;AAExD,MAAM,MAAM,sBAAsB,GAC9B,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,sBAAsB,EAAE,GACjC;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,sBAAsB,CAAA;CAAE,CAAC;AAEvD,MAA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,CAAC,EAAE,qBAAqB,CAAC;IAC7B,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC,CAAC;CAC1D;AAED,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring.js","sourceRoot":"","sources":["../../src/types/authoring.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n ComponentEventDtoKind,\n ComponentRequirements,\n MediaAssetKind,\n UiComponentBindingMeta,\n UiComponentPropType,\n} from '@ankhorage/contracts';\n\nexport type ZoraComponentCategory = 'foundation' | 'component' | 'pattern' | 'layout';\n\nexport type ZoraComponentPropType = UiComponentPropType;\n\nexport type ZoraComponentPropValue =\n | string\n | number\n | boolean\n | null\n | readonly ZoraComponentPropValue[]\n | { readonly [key: string]: ZoraComponentPropValue };\n\nexport type ZoraComponentPropAuthoring =\n | { readonly authority: 'instance' }\n | {\n readonly authority: 'theme';\n readonly scope: 'global' | 'component' | 'pattern';\n readonly allowInstanceOverride?: boolean;\n };\n\nexport interface ZoraComponentPropArrayItemSchema {\n key: string;\n schema: ZoraComponentPropSchema;\n}\n\nexport interface ZoraComponentPropSchema {\n type: ZoraComponentPropType;\n category: string;\n label?: string;\n enum?: readonly (string | number)[];\n default?: ZoraComponentPropValue;\n itemSchema?: readonly ZoraComponentPropArrayItemSchema[];\n mediaKinds?: readonly MediaAssetKind[];\n authoring?: ZoraComponentPropAuthoring;\n}\n\nexport interface ZoraComponentBlueprint {\n label: string;\n icon?: { name: string; provider?: string };\n defaultProps?: Readonly<Record<string, ZoraComponentPropValue>>;\n}\n\nexport interface ZoraComponentI18nMeta {\n fields: readonly { keyProp: string; defaultTextProp: string }[];\n}\n\nexport type ZoraComponentEventPayloadKind = ComponentEventDtoKind | (string & {});\nexport type ZoraComponentEventPayloadFieldType =\n 'boolean' | 'number' | 'object' | 'record' | 'string' | 'unknown';\n\nexport interface ZoraComponentEventPayloadFieldMeta {\n readonly path: string;\n readonly type: ZoraComponentEventPayloadFieldType;\n readonly label?: string;\n readonly description?: string;\n}\n\nexport interface ZoraComponentEventMeta {\n readonly label: string;\n readonly eventType: ZoraComponentEventPayloadKind;\n readonly description?: string;\n readonly payloadFields?: readonly ZoraComponentEventPayloadFieldMeta[];\n}\n\nexport interface ZoraComponentSlotMeta {\n label?: string;\n allowedChildren?: readonly string[];\n}\n\nexport interface ZoraComponentManifestPolicy {\n kind: 'unresolved-element';\n availability: 'draft-only';\n releaseGate: 'blocked';\n}\n\nexport interface ZoraComponentMeta {\n name: string;\n category: ZoraComponentCategory;\n description?: string;\n directManifestNode: boolean;\n allowedChildren: readonly string[];\n bindings?: UiComponentBindingMeta;\n manifestPolicy?: ZoraComponentManifestPolicy;\n requirements?: ComponentRequirements;\n blueprint?: ZoraComponentBlueprint;\n events?: Readonly<Record<string, ZoraComponentEventMeta>>;\n i18n?: ZoraComponentI18nMeta;\n slots?: Readonly<Record<string, ZoraComponentSlotMeta>>;\n note?: string;\n props: Readonly<Record<string, ZoraComponentPropSchema>>;\n}\n\nexport type ZoraComponentMetaRegistry = Readonly<Record<string, ZoraComponentMeta>>;\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type { ImageSourcePropType } from 'react-native';
|
|
3
3
|
import type { AvatarShape, AvatarSize } from '../features/avatar/public';
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
4
|
+
import type { ZoraBaseProps } from './base';
|
|
5
|
+
import type { ZoraColor } from './theme';
|
|
6
6
|
export interface AvatarGroupItem {
|
|
7
7
|
id?: string;
|
|
8
8
|
source?: ImageSourcePropType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/types/avatar-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../src/types/avatar-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAClC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,MAAM,CAAC;CACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar-group.js","sourceRoot":"","sources":["../../src/types/avatar-group.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type { ImageSourcePropType } from 'react-native';\n\nimport type { AvatarShape, AvatarSize } from '../features/avatar/public';\nimport type {
|
|
1
|
+
{"version":3,"file":"avatar-group.js","sourceRoot":"","sources":["../../src/types/avatar-group.ts"],"names":[],"mappings":"","sourcesContent":["import type { ButtonIconSpec } from '@ankhorage/surface';\nimport type { ImageSourcePropType } from 'react-native';\n\nimport type { AvatarShape, AvatarSize } from '../features/avatar/public';\nimport type { ZoraBaseProps } from './base';\nimport type { ZoraColor } from './theme';\n\nexport interface AvatarGroupItem {\n id?: string;\n source?: ImageSourcePropType;\n name?: string;\n initials?: string;\n iconFallback?: ButtonIconSpec;\n label?: string;\n color?: ZoraColor;\n}\n\nexport interface AvatarGroupProps extends ZoraBaseProps {\n items: readonly AvatarGroupItem[];\n max?: number;\n size?: AvatarSize;\n shape?: AvatarShape;\n overflowLabel?: (overflowCount: number) => string;\n}\n"]}
|