@ankhorage/zora 2.5.5 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +3 -1
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/patterns/auth/OAuthProviderButton.d.ts +10 -0
- package/dist/patterns/auth/OAuthProviderButton.d.ts.map +1 -0
- package/dist/patterns/auth/OAuthProviderButton.js +21 -0
- package/dist/patterns/auth/OAuthProviderButton.js.map +1 -0
- package/dist/patterns/auth/OAuthProviderList.d.ts +7 -0
- package/dist/patterns/auth/OAuthProviderList.d.ts.map +1 -0
- package/dist/patterns/auth/OAuthProviderList.js +16 -0
- package/dist/patterns/auth/OAuthProviderList.js.map +1 -0
- package/dist/patterns/auth/index.d.ts +4 -1
- package/dist/patterns/auth/index.d.ts.map +1 -1
- package/dist/patterns/auth/index.js +3 -0
- package/dist/patterns/auth/index.js.map +1 -1
- package/dist/patterns/auth/meta.d.ts +16 -0
- package/dist/patterns/auth/meta.d.ts.map +1 -1
- package/dist/patterns/auth/meta.js +16 -0
- package/dist/patterns/auth/meta.js.map +1 -1
- package/dist/patterns/auth/oauthProviders.d.ts +74 -0
- package/dist/patterns/auth/oauthProviders.d.ts.map +1 -0
- package/dist/patterns/auth/oauthProviders.js +66 -0
- package/dist/patterns/auth/oauthProviders.js.map +1 -0
- package/dist/patterns/auth/types.d.ts +38 -0
- package/dist/patterns/auth/types.d.ts.map +1 -1
- package/dist/patterns/auth/types.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +16 -1
- package/src/metadata/componentMeta.ts +4 -0
- package/src/patterns/auth/OAuthProviderButton.tsx +51 -0
- package/src/patterns/auth/OAuthProviderList.tsx +54 -0
- package/src/patterns/auth/index.ts +12 -0
- package/src/patterns/auth/meta.ts +18 -0
- package/src/patterns/auth/oauthProviders.test.ts +31 -0
- package/src/patterns/auth/oauthProviders.ts +79 -0
- package/src/patterns/auth/types.ts +43 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# ZORA
|
|
5
5
|
|
|
6
|
-
         
|
|
7
7
|
|
|
8
8
|
Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.
|
|
9
9
|
|
|
@@ -60,6 +60,8 @@ export default function BasicApp() {
|
|
|
60
60
|
- [Export graph](././paradox/diagrams/export-graph.mmd)
|
|
61
61
|
- [createZoraThemeConfig sequence](././paradox/diagrams/sequences/create-zora-theme-config.mmd)
|
|
62
62
|
- [resolveAvatarInitials sequence](././paradox/diagrams/sequences/resolve-avatar-initials.mmd)
|
|
63
|
+
- [resolveOAuthProviderIcon sequence](././paradox/diagrams/sequences/resolve-oauth-provider-icon.mmd)
|
|
64
|
+
- [resolveOAuthProviderLabel sequence](././paradox/diagrams/sequences/resolve-oauth-provider-label.mmd)
|
|
63
65
|
- [SelectableItem sequence](././paradox/diagrams/sequences/selectable-item.mmd)
|
|
64
66
|
- [SelectionProvider sequence](././paradox/diagrams/sequences/selection-provider.mmd)
|
|
65
67
|
- [useFormController sequence](././paradox/diagrams/sequences/use-form-controller.mmd)
|
package/dist/index.d.ts
CHANGED
|
@@ -100,8 +100,8 @@ export type { TopbarLayoutProps } from './layout/topbar-layout';
|
|
|
100
100
|
export { TopbarLayout } from './layout/topbar-layout';
|
|
101
101
|
export type { ZoraBindableComponentType, ZoraComponentBlueprint, ZoraComponentCategory, ZoraComponentEventMeta, ZoraComponentEventPayloadFieldMeta, ZoraComponentEventPayloadFieldType, ZoraComponentEventPayloadKind, ZoraComponentI18nMeta, ZoraComponentMeta, ZoraComponentMetaRegistry, ZoraComponentPropArrayItemSchema, ZoraComponentPropSchema, ZoraComponentPropType, ZoraComponentPropValue, ZoraComponentSlotMeta, } from './metadata';
|
|
102
102
|
export { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META } from './metadata';
|
|
103
|
-
export type { AuthFormBaseProps, AuthIdentifierKind, ForgotPasswordFormProps, ForgotPasswordFormValues, OtpFormProps, OtpFormValues, SignInFormProps, SignInFormValues, SignUpFormField, SignUpFormProps, SignUpFormValues, } from './patterns/auth';
|
|
104
|
-
export { ForgotPasswordForm, OtpForm, SignInForm, SignUpForm } from './patterns/auth';
|
|
103
|
+
export type { AuthFormBaseProps, AuthIdentifierKind, ForgotPasswordFormProps, ForgotPasswordFormValues, OAuthProviderButtonProps, OAuthProviderIconSpec, OAuthProviderItem, OAuthProviderListLayout, OAuthProviderListProps, OtpFormProps, OtpFormValues, SignInFormProps, SignInFormValues, SignUpFormField, SignUpFormProps, SignUpFormValues, } from './patterns/auth';
|
|
104
|
+
export { DEFAULT_OAUTH_PROVIDER_ICONS, ForgotPasswordForm, OAuthProviderButton, OAuthProviderList, OtpForm, resolveOAuthProviderIcon, resolveOAuthProviderLabel, SignInForm, SignUpForm, } from './patterns/auth';
|
|
105
105
|
export type { ChatListAvatar, ChatListItemProps } from './patterns/chat-list-item';
|
|
106
106
|
export { ChatListItem } from './patterns/chat-list-item';
|
|
107
107
|
export type { CollectionEditorProps, CollectionEditorRenderItemProps, } from './patterns/collection-editor';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACzE,YAAY,EAAE,UAAU,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,MAAM,sB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AO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -49,7 +49,7 @@ export { SettingsLayout } from './layout/settings-layout';
|
|
|
49
49
|
export { SidebarLayout } from './layout/sidebar-layout';
|
|
50
50
|
export { TopbarLayout } from './layout/topbar-layout';
|
|
51
51
|
export { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META } from './metadata';
|
|
52
|
-
export { ForgotPasswordForm, OtpForm, SignInForm, SignUpForm } from './patterns/auth';
|
|
52
|
+
export { DEFAULT_OAUTH_PROVIDER_ICONS, ForgotPasswordForm, OAuthProviderButton, OAuthProviderList, OtpForm, resolveOAuthProviderIcon, resolveOAuthProviderLabel, SignInForm, SignUpForm, } from './patterns/auth';
|
|
53
53
|
export { ChatListItem } from './patterns/chat-list-item';
|
|
54
54
|
export { CollectionEditor } from './patterns/collection-editor';
|
|
55
55
|
export { ConfirmDialog } from './patterns/confirm-dialog';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,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O,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,cAAc,SAAS,CAAC","sourcesContent":["export type { ActionSheetItemProps, ActionSheetProps } from './components/action-sheet';\nexport { ActionSheet, ActionSheetItem } from './components/action-sheet';\nexport type { AppBarMode, AppBarOverflowAction, AppBarProps } from './components/app-bar';\nexport { AppBar } from './components/app-bar';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './components/avatar';\nexport { Avatar, resolveAvatarInitials } from './components/avatar';\nexport type { AvatarGroupItem, AvatarGroupProps } from './components/avatar-group';\nexport { AvatarGroup } from './components/avatar-group';\nexport type { BadgeProps } from './components/badge';\nexport { Badge } from './components/badge';\nexport type { BreadcrumbItem, BreadcrumbsProps } from './components/breadcrumbs';\nexport { Breadcrumbs } from './components/breadcrumbs';\nexport type { ButtonProps } from './components/button';\nexport { Button } from './components/button';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './components/button-group';\nexport { ButtonGroup } from './components/button-group';\nexport type { CardProps } from './components/card';\nexport { Card } from './components/card';\nexport type { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps } from './components/checkbox';\nexport { Checkbox, CheckboxGroup } from './components/checkbox';\nexport type { ChipProps } from './components/chip';\nexport { Chip } from './components/chip';\nexport type { ChipGroupItem, ChipGroupProps } from './components/chip-group';\nexport { ChipGroup } from './components/chip-group';\nexport type {\n DataTableCellContext,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableSortDirection,\n DataTableSortState,\n} from './components/data-table';\nexport { DataTable } from './components/data-table';\nexport type { DatePickerProps, DatePickerValue } from './components/date-picker';\nexport { DatePicker } from './components/date-picker';\nexport type { DrawerProps } from './components/drawer';\nexport { Drawer } from './components/drawer';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './components/form';\nexport {\n Form,\n FormActions,\n FormError,\n FormField,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './components/form';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n} from './components/gradient';\nexport { Gradient } from './components/gradient';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './components/heading';\nexport { Heading } from './components/heading';\nexport type { IconProps } from './components/icon';\nexport { Icon } from './components/icon';\nexport type { IconButtonProps } from './components/icon-button';\nexport { IconButton } from './components/icon-button';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './components/image';\nexport { Image } from './components/image';\nexport type { InputProps, InputTrailingAction } from './components/input';\nexport { Input } from './components/input';\nexport type { MediaCardImageProps, MediaCardProps } from './components/media-card';\nexport { MediaCard } from './components/media-card';\nexport type { DropdownMenuProps, MenuAction, MenuActionIntent, MenuProps } from './components/menu';\nexport { DropdownMenu, Menu } from './components/menu';\nexport type { MetricCardProps } from './components/metric-card';\nexport { MetricCard } from './components/metric-card';\nexport type { ModalProps } from './components/modal';\nexport { Modal } from './components/modal';\nexport type {\n NavigationItemProps,\n ZoraNavigationRouteMetadata,\n ZoraNavigationRouteState,\n} from './components/navigation-item';\nexport { NavigationItem } from './components/navigation-item';\nexport type { NavigationListProps, ZoraNavigationRouteMap } from './components/navigation-list';\nexport { NavigationList } from './components/navigation-list';\nexport type { PaginationProps } from './components/pagination';\nexport { Pagination } from './components/pagination';\nexport type { ProgressProps } from './components/progress';\nexport { Progress } from './components/progress';\nexport type { RadioGroupOption, RadioGroupProps, RadioProps } from './components/radio';\nexport { Radio, RadioGroup } from './components/radio';\nexport type { RatingProps } from './components/rating';\nexport { Rating } from './components/rating';\nexport type { SearchBarProps } from './components/search-bar';\nexport { SearchBar } from './components/search-bar';\nexport type { SelectOption, SelectProps } from './components/select';\nexport { Select } from './components/select';\nexport type {\n SkeletonCardProps,\n SkeletonDimension,\n SkeletonListProps,\n SkeletonListVariant,\n SkeletonProps,\n SkeletonRadius,\n SkeletonTextProps,\n} from './components/skeleton';\nexport { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';\nexport type { SplashScreenLogoShape, SplashScreenProps } from './components/splash-screen';\nexport { SplashScreen } from './components/splash-screen';\nexport type { TabItem, TabsProps, TabsVariant } from './components/tabs';\nexport { Tabs } from './components/tabs';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './components/text';\nexport { Text } from './components/text';\nexport type { TextareaProps } from './components/textarea';\nexport { Textarea } from './components/textarea';\nexport type { TimePickerProps, TimePickerValue } from './components/time-picker';\nexport { TimePicker } from './components/time-picker';\nexport type { ToastOptions, ToastProps, ToastProviderProps, ToastStatus } from './components/toast';\nexport { Toast, ToastProvider, useToast } from './components/toast';\nexport type { ToolbarActionProps, ToolbarPosition, ToolbarProps } from './components/toolbar';\nexport { Toolbar, ToolbarAction } from './components/toolbar';\nexport type {\n BoxProps,\n CenterProps,\n ContainerProps,\n DividerProps,\n GridProps,\n InlineProps,\n ShowProps,\n SpacerProps,\n StackProps,\n SurfaceProps,\n SurfaceVariant,\n} from './foundation';\nexport {\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n} from './foundation';\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 { AppShellProps } from './layout/app-shell';\nexport { AppShell } from './layout/app-shell';\nexport type { ScreenProps } from './layout/screen';\nexport { Screen } from './layout/screen';\nexport type { ScreenSectionProps } from './layout/screen-section';\nexport { ScreenSection } from './layout/screen-section';\nexport type { SettingsLayoutProps } from './layout/settings-layout';\nexport { SettingsLayout } from './layout/settings-layout';\nexport type { SidebarLayoutProps } from './layout/sidebar-layout';\nexport { SidebarLayout } from './layout/sidebar-layout';\nexport type { TopbarLayoutProps } from './layout/topbar-layout';\nexport { TopbarLayout } from './layout/topbar-layout';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n} from './metadata';\nexport { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META } from './metadata';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './patterns/auth';\nexport { ForgotPasswordForm, OtpForm, SignInForm, SignUpForm } from './patterns/auth';\nexport type { ChatListAvatar, ChatListItemProps } from './patterns/chat-list-item';\nexport { ChatListItem } from './patterns/chat-list-item';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './patterns/collection-editor';\nexport { CollectionEditor } from './patterns/collection-editor';\nexport type { ConfirmDialogProps } from './patterns/confirm-dialog';\nexport { ConfirmDialog } from './patterns/confirm-dialog';\nexport type { DisclosureSectionProps } from './patterns/disclosure-section';\nexport { DisclosureSection } from './patterns/disclosure-section';\nexport type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';\nexport { EmptyState } from './patterns/empty-state';\nexport type { FilterBarProps } from './patterns/filter-bar';\nexport { FilterBar } from './patterns/filter-bar';\nexport type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';\nexport { Hero } from './patterns/hero';\nexport type {\n ImagePreviewProps,\n ZoraImageAsset,\n ZoraImageMetadata,\n} from './patterns/image-preview';\nexport { ImagePreview } from './patterns/image-preview';\nexport type {\n ImageUploadFieldProps,\n ImageUploadProgressContext,\n ZoraPickedImage,\n} from './patterns/image-upload-field';\nexport { ImageUploadField } from './patterns/image-upload-field';\nexport type { InspectorFieldProps } from './patterns/inspector-field';\nexport { InspectorField } from './patterns/inspector-field';\nexport type {\n ListChildrenProps,\n ListItemsProps,\n ListProps,\n ListRowProps,\n ListRowVariant,\n} from './patterns/list';\nexport { List, ListRow, ListSection } from './patterns/list';\nexport type {\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './patterns/message-bubble';\nexport { MessageBubble } from './patterns/message-bubble';\nexport type { NoticeProps } from './patterns/notice';\nexport { Notice } from './patterns/notice';\nexport type { PanelProps } from './patterns/panel';\nexport { Panel } from './patterns/panel';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './patterns/post-card';\nexport { PostCard } from './patterns/post-card';\nexport type {\n ResponsivePanelDesktopMode,\n ResponsivePanelMobileMode,\n ResponsivePanelProps,\n ResponsivePanelScroll,\n ResponsivePanelSide,\n ResponsivePanelSize,\n} from './patterns/responsive-panel';\nexport { ResponsivePanel } from './patterns/responsive-panel';\nexport type { SectionHeaderProps } from './patterns/section-header';\nexport { SectionHeader } from './patterns/section-header';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './patterns/selection';\nexport { SelectableItem, SelectionProvider, useSelection } from './patterns/selection';\nexport type { SettingsRowProps } from './patterns/settings-row';\nexport { SettingsRow } from './patterns/settings-row';\nexport type { SwitchFieldProps } from './patterns/switch-field';\nexport { SwitchField } from './patterns/switch-field';\nexport type { ThemeComposerProps } from './patterns/theme-composer';\nexport { ThemeComposer } from './patterns/theme-composer';\nexport type { PaletteItemProps, TileGridProps } from './patterns/tile-grid';\nexport { PaletteItem, TileGrid } from './patterns/tile-grid';\nexport type { TimelineItem, TimelineProps } from './patterns/timeline';\nexport { Timeline } from './patterns/timeline';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './patterns/tree-view';\nexport { TreeItem, TreeView } from './patterns/tree-view';\nexport type { ZoraDrawerContentProps } from './patterns/zora-drawer-content';\nexport { ZoraDrawerContent } from './patterns/zora-drawer-content';\nexport type { ZoraTabBarProps } from './patterns/zora-tab-bar';\nexport { ZoraTabBar } from './patterns/zora-tab-bar';\nexport * from './theme';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,MAAM,EA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EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAQzC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAShD,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAS1D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,cAAc,SAAS,CAAC","sourcesContent":["export type { ActionSheetItemProps, ActionSheetProps } from './components/action-sheet';\nexport { ActionSheet, ActionSheetItem } from './components/action-sheet';\nexport type { AppBarMode, AppBarOverflowAction, AppBarProps } from './components/app-bar';\nexport { AppBar } from './components/app-bar';\nexport type { AvatarProps, AvatarShape, AvatarSize } from './components/avatar';\nexport { Avatar, resolveAvatarInitials } from './components/avatar';\nexport type { AvatarGroupItem, AvatarGroupProps } from './components/avatar-group';\nexport { AvatarGroup } from './components/avatar-group';\nexport type { BadgeProps } from './components/badge';\nexport { Badge } from './components/badge';\nexport type { BreadcrumbItem, BreadcrumbsProps } from './components/breadcrumbs';\nexport { Breadcrumbs } from './components/breadcrumbs';\nexport type { ButtonProps } from './components/button';\nexport { Button } from './components/button';\nexport type {\n ButtonGroupAlign,\n ButtonGroupOrientation,\n ButtonGroupProps,\n} from './components/button-group';\nexport { ButtonGroup } from './components/button-group';\nexport type { CardProps } from './components/card';\nexport { Card } from './components/card';\nexport type { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps } from './components/checkbox';\nexport { Checkbox, CheckboxGroup } from './components/checkbox';\nexport type { ChipProps } from './components/chip';\nexport { Chip } from './components/chip';\nexport type { ChipGroupItem, ChipGroupProps } from './components/chip-group';\nexport { ChipGroup } from './components/chip-group';\nexport type {\n DataTableCellContext,\n DataTableColumn,\n DataTableColumnAlign,\n DataTableDensity,\n DataTableProps,\n DataTableRowAction,\n DataTableSortDirection,\n DataTableSortState,\n} from './components/data-table';\nexport { DataTable } from './components/data-table';\nexport type { DatePickerProps, DatePickerValue } from './components/date-picker';\nexport { DatePicker } from './components/date-picker';\nexport type { DrawerProps } from './components/drawer';\nexport { Drawer } from './components/drawer';\nexport type {\n FormActionsProps,\n FormErrorProps,\n FormErrors,\n FormFieldConfig,\n FormFieldControlProps,\n FormFieldInputType,\n FormFieldProps,\n FormProps,\n FormValidationErrors,\n FormValidationResult,\n FormValues,\n UseFormControllerOptions,\n UseFormControllerResult,\n ValidationRule,\n} from './components/form';\nexport {\n Form,\n FormActions,\n FormError,\n FormField,\n hasRequiredRule,\n useFormController,\n validateField,\n validateFields,\n validateValue,\n} from './components/form';\nexport type {\n GradientColor,\n GradientColors,\n GradientLocations,\n GradientPoint,\n GradientProps,\n} from './components/gradient';\nexport { Gradient } from './components/gradient';\nexport type {\n HeadingAlign,\n HeadingColor,\n HeadingEmphasis,\n HeadingLevel,\n HeadingProps,\n HeadingSize,\n HeadingWeight,\n} from './components/heading';\nexport { Heading } from './components/heading';\nexport type { IconProps } from './components/icon';\nexport { Icon } from './components/icon';\nexport type { IconButtonProps } from './components/icon-button';\nexport { IconButton } from './components/icon-button';\nexport type { ImageFit, ImageProps, SurfaceImageSource } from './components/image';\nexport { Image } from './components/image';\nexport type { InputProps, InputTrailingAction } from './components/input';\nexport { Input } from './components/input';\nexport type { MediaCardImageProps, MediaCardProps } from './components/media-card';\nexport { MediaCard } from './components/media-card';\nexport type { DropdownMenuProps, MenuAction, MenuActionIntent, MenuProps } from './components/menu';\nexport { DropdownMenu, Menu } from './components/menu';\nexport type { MetricCardProps } from './components/metric-card';\nexport { MetricCard } from './components/metric-card';\nexport type { ModalProps } from './components/modal';\nexport { Modal } from './components/modal';\nexport type {\n NavigationItemProps,\n ZoraNavigationRouteMetadata,\n ZoraNavigationRouteState,\n} from './components/navigation-item';\nexport { NavigationItem } from './components/navigation-item';\nexport type { NavigationListProps, ZoraNavigationRouteMap } from './components/navigation-list';\nexport { NavigationList } from './components/navigation-list';\nexport type { PaginationProps } from './components/pagination';\nexport { Pagination } from './components/pagination';\nexport type { ProgressProps } from './components/progress';\nexport { Progress } from './components/progress';\nexport type { RadioGroupOption, RadioGroupProps, RadioProps } from './components/radio';\nexport { Radio, RadioGroup } from './components/radio';\nexport type { RatingProps } from './components/rating';\nexport { Rating } from './components/rating';\nexport type { SearchBarProps } from './components/search-bar';\nexport { SearchBar } from './components/search-bar';\nexport type { SelectOption, SelectProps } from './components/select';\nexport { Select } from './components/select';\nexport type {\n SkeletonCardProps,\n SkeletonDimension,\n SkeletonListProps,\n SkeletonListVariant,\n SkeletonProps,\n SkeletonRadius,\n SkeletonTextProps,\n} from './components/skeleton';\nexport { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';\nexport type { SplashScreenLogoShape, SplashScreenProps } from './components/splash-screen';\nexport { SplashScreen } from './components/splash-screen';\nexport type { TabItem, TabsProps, TabsVariant } from './components/tabs';\nexport { Tabs } from './components/tabs';\nexport type {\n TextAlign,\n TextColor,\n TextEmphasis,\n TextProps,\n TextVariant,\n TextWeight,\n} from './components/text';\nexport { Text } from './components/text';\nexport type { TextareaProps } from './components/textarea';\nexport { Textarea } from './components/textarea';\nexport type { TimePickerProps, TimePickerValue } from './components/time-picker';\nexport { TimePicker } from './components/time-picker';\nexport type { ToastOptions, ToastProps, ToastProviderProps, ToastStatus } from './components/toast';\nexport { Toast, ToastProvider, useToast } from './components/toast';\nexport type { ToolbarActionProps, ToolbarPosition, ToolbarProps } from './components/toolbar';\nexport { Toolbar, ToolbarAction } from './components/toolbar';\nexport type {\n BoxProps,\n CenterProps,\n ContainerProps,\n DividerProps,\n GridProps,\n InlineProps,\n ShowProps,\n SpacerProps,\n StackProps,\n SurfaceProps,\n SurfaceVariant,\n} from './foundation';\nexport {\n Box,\n Center,\n Container,\n Divider,\n Grid,\n Inline,\n Show,\n Spacer,\n Stack,\n Surface,\n} from './foundation';\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 { AppShellProps } from './layout/app-shell';\nexport { AppShell } from './layout/app-shell';\nexport type { ScreenProps } from './layout/screen';\nexport { Screen } from './layout/screen';\nexport type { ScreenSectionProps } from './layout/screen-section';\nexport { ScreenSection } from './layout/screen-section';\nexport type { SettingsLayoutProps } from './layout/settings-layout';\nexport { SettingsLayout } from './layout/settings-layout';\nexport type { SidebarLayoutProps } from './layout/sidebar-layout';\nexport { SidebarLayout } from './layout/sidebar-layout';\nexport type { TopbarLayoutProps } from './layout/topbar-layout';\nexport { TopbarLayout } from './layout/topbar-layout';\nexport type {\n ZoraBindableComponentType,\n ZoraComponentBlueprint,\n ZoraComponentCategory,\n ZoraComponentEventMeta,\n ZoraComponentEventPayloadFieldMeta,\n ZoraComponentEventPayloadFieldType,\n ZoraComponentEventPayloadKind,\n ZoraComponentI18nMeta,\n ZoraComponentMeta,\n ZoraComponentMetaRegistry,\n ZoraComponentPropArrayItemSchema,\n ZoraComponentPropSchema,\n ZoraComponentPropType,\n ZoraComponentPropValue,\n ZoraComponentSlotMeta,\n} from './metadata';\nexport { ZORA_BINDABLE_COMPONENT_META, ZORA_COMPONENT_META } from './metadata';\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 './patterns/auth';\nexport {\n DEFAULT_OAUTH_PROVIDER_ICONS,\n ForgotPasswordForm,\n OAuthProviderButton,\n OAuthProviderList,\n OtpForm,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n SignInForm,\n SignUpForm,\n} from './patterns/auth';\nexport type { ChatListAvatar, ChatListItemProps } from './patterns/chat-list-item';\nexport { ChatListItem } from './patterns/chat-list-item';\nexport type {\n CollectionEditorProps,\n CollectionEditorRenderItemProps,\n} from './patterns/collection-editor';\nexport { CollectionEditor } from './patterns/collection-editor';\nexport type { ConfirmDialogProps } from './patterns/confirm-dialog';\nexport { ConfirmDialog } from './patterns/confirm-dialog';\nexport type { DisclosureSectionProps } from './patterns/disclosure-section';\nexport { DisclosureSection } from './patterns/disclosure-section';\nexport type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';\nexport { EmptyState } from './patterns/empty-state';\nexport type { FilterBarProps } from './patterns/filter-bar';\nexport { FilterBar } from './patterns/filter-bar';\nexport type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';\nexport { Hero } from './patterns/hero';\nexport type {\n ImagePreviewProps,\n ZoraImageAsset,\n ZoraImageMetadata,\n} from './patterns/image-preview';\nexport { ImagePreview } from './patterns/image-preview';\nexport type {\n ImageUploadFieldProps,\n ImageUploadProgressContext,\n ZoraPickedImage,\n} from './patterns/image-upload-field';\nexport { ImageUploadField } from './patterns/image-upload-field';\nexport type { InspectorFieldProps } from './patterns/inspector-field';\nexport { InspectorField } from './patterns/inspector-field';\nexport type {\n ListChildrenProps,\n ListItemsProps,\n ListProps,\n ListRowProps,\n ListRowVariant,\n} from './patterns/list';\nexport { List, ListRow, ListSection } from './patterns/list';\nexport type {\n MessageBubbleAuthor,\n MessageBubbleAvatar,\n MessageBubbleDirection,\n MessageBubbleProps,\n MessageBubbleStatus,\n} from './patterns/message-bubble';\nexport { MessageBubble } from './patterns/message-bubble';\nexport type { NoticeProps } from './patterns/notice';\nexport { Notice } from './patterns/notice';\nexport type { PanelProps } from './patterns/panel';\nexport { Panel } from './patterns/panel';\nexport type {\n PostAction,\n PostAuthor,\n PostAuthorAvatar,\n PostCardMedia,\n PostCardProps,\n} from './patterns/post-card';\nexport { PostCard } from './patterns/post-card';\nexport type {\n ResponsivePanelDesktopMode,\n ResponsivePanelMobileMode,\n ResponsivePanelProps,\n ResponsivePanelScroll,\n ResponsivePanelSide,\n ResponsivePanelSize,\n} from './patterns/responsive-panel';\nexport { ResponsivePanel } from './patterns/responsive-panel';\nexport type { SectionHeaderProps } from './patterns/section-header';\nexport { SectionHeader } from './patterns/section-header';\nexport type {\n SelectableItemProps,\n SelectableItemState,\n SelectionMode,\n SelectionProviderProps,\n SelectionTrigger,\n UseSelectionResult,\n} from './patterns/selection';\nexport { SelectableItem, SelectionProvider, useSelection } from './patterns/selection';\nexport type { SettingsRowProps } from './patterns/settings-row';\nexport { SettingsRow } from './patterns/settings-row';\nexport type { SwitchFieldProps } from './patterns/switch-field';\nexport { SwitchField } from './patterns/switch-field';\nexport type { ThemeComposerProps } from './patterns/theme-composer';\nexport { ThemeComposer } from './patterns/theme-composer';\nexport type { PaletteItemProps, TileGridProps } from './patterns/tile-grid';\nexport { PaletteItem, TileGrid } from './patterns/tile-grid';\nexport type { TimelineItem, TimelineProps } from './patterns/timeline';\nexport { Timeline } from './patterns/timeline';\nexport type { TreeItemNode, TreeItemRenderProps, TreeViewProps } from './patterns/tree-view';\nexport { TreeItem, TreeView } from './patterns/tree-view';\nexport type { ZoraDrawerContentProps } from './patterns/zora-drawer-content';\nexport { ZoraDrawerContent } from './patterns/zora-drawer-content';\nexport type { ZoraTabBarProps } from './patterns/zora-tab-bar';\nexport { ZoraTabBar } from './patterns/zora-tab-bar';\nexport * from './theme';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentMeta.d.ts","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"componentMeta.d.ts","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,eAAO,MAAM,mBAAmB,EAAE,yBAmGjC,CAAC"}
|
|
@@ -47,7 +47,7 @@ import { screenSectionMeta } from '../layout/screen-section/meta';
|
|
|
47
47
|
import { settingsLayoutMeta } from '../layout/settings-layout/meta';
|
|
48
48
|
import { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';
|
|
49
49
|
import { topbarLayoutMeta } from '../layout/topbar-layout/meta';
|
|
50
|
-
import { forgotPasswordFormMeta, otpFormMeta, signInFormMeta, signUpFormMeta, } from '../patterns/auth/meta';
|
|
50
|
+
import { forgotPasswordFormMeta, oauthProviderButtonMeta, oauthProviderListMeta, otpFormMeta, signInFormMeta, signUpFormMeta, } from '../patterns/auth/meta';
|
|
51
51
|
import { chatListItemMeta } from '../patterns/chat-list-item/meta';
|
|
52
52
|
import { collectionEditorMeta } from '../patterns/collection-editor/meta';
|
|
53
53
|
import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
|
|
@@ -137,6 +137,8 @@ export const ZORA_COMPONENT_META = {
|
|
|
137
137
|
SidebarLayout: sidebarLayoutMeta,
|
|
138
138
|
TopbarLayout: topbarLayoutMeta,
|
|
139
139
|
ForgotPasswordForm: forgotPasswordFormMeta,
|
|
140
|
+
OAuthProviderButton: oauthProviderButtonMeta,
|
|
141
|
+
OAuthProviderList: oauthProviderListMeta,
|
|
140
142
|
OtpForm: otpFormMeta,
|
|
141
143
|
SignInForm: signInFormMeta,
|
|
142
144
|
SignUpForm: signUpFormMeta,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentMeta.js","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAClG,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO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,EAAE,iBAAiB;IAChC,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE,gBAAgB;IAC9B,gBAAgB,EAAE,oBAAoB;IACtC,cAAc,EAAE,kBAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;IAClC,iBAAiB,EAAE,qBAAqB;IACxC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;CAC3B,CAAC","sourcesContent":["import { actionSheetItemMeta, actionSheetMeta } from '../components/action-sheet/meta';\nimport { appBarMeta } from '../components/app-bar/meta';\nimport { avatarMeta } from '../components/avatar/meta';\nimport { avatarGroupMeta } from '../components/avatar-group/meta';\nimport { badgeMeta } from '../components/badge/meta';\nimport { breadcrumbsMeta } from '../components/breadcrumbs/meta';\nimport { buttonMeta } from '../components/button/meta';\nimport { buttonGroupMeta } from '../components/button-group/meta';\nimport { cardMeta } from '../components/card/meta';\nimport { checkboxGroupMeta, checkboxMeta } from '../components/checkbox/meta';\nimport { chipMeta } from '../components/chip/meta';\nimport { chipGroupMeta } from '../components/chip-group/meta';\nimport { dataTableMeta } from '../components/data-table/meta';\nimport { datePickerMeta } from '../components/date-picker/meta';\nimport { drawerMeta } from '../components/drawer/meta';\nimport { formActionsMeta, formErrorMeta, formFieldMeta, formMeta } from '../components/form/meta';\nimport { gradientMeta } from '../components/gradient/meta';\nimport { headingMeta } from '../components/heading/meta';\nimport { iconMeta } from '../components/icon/meta';\nimport { iconButtonMeta } from '../components/icon-button/meta';\nimport { imageMeta } from '../components/image/meta';\nimport { inputMeta } from '../components/input/meta';\nimport { mediaCardMeta } from '../components/media-card/meta';\nimport { dropdownMenuMeta, menuMeta } from '../components/menu/meta';\nimport { metricCardMeta } from '../components/metric-card/meta';\nimport { modalMeta } from '../components/modal/meta';\nimport { navigationItemMeta } from '../components/navigation-item/meta';\nimport { navigationListMeta } from '../components/navigation-list/meta';\nimport { paginationMeta } from '../components/pagination/meta';\nimport { progressMeta } from '../components/progress/meta';\nimport { radioGroupMeta, radioMeta } from '../components/radio/meta';\nimport { ratingMeta } from '../components/rating/meta';\nimport { searchBarMeta } from '../components/search-bar/meta';\nimport { selectMeta } from '../components/select/meta';\nimport {\n skeletonCardMeta,\n skeletonListMeta,\n skeletonMeta,\n skeletonTextMeta,\n} from '../components/skeleton/meta';\nimport { splashScreenMeta } from '../components/splash-screen/meta';\nimport { tabsMeta } from '../components/tabs/meta';\nimport { textMeta } from '../components/text/meta';\nimport { textareaMeta } from '../components/textarea/meta';\nimport { timePickerMeta } from '../components/time-picker/meta';\nimport { toastMeta, toastProviderMeta } from '../components/toast/meta';\nimport { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';\nimport { foundationMetas } from '../foundation/meta';\nimport { appShellMeta } from '../layout/app-shell/meta';\nimport { screenMeta } from '../layout/screen/meta';\nimport { screenSectionMeta } from '../layout/screen-section/meta';\nimport { settingsLayoutMeta } from '../layout/settings-layout/meta';\nimport { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';\nimport { topbarLayoutMeta } from '../layout/topbar-layout/meta';\nimport {\n forgotPasswordFormMeta,\n otpFormMeta,\n signInFormMeta,\n signUpFormMeta,\n} from '../patterns/auth/meta';\nimport { chatListItemMeta } from '../patterns/chat-list-item/meta';\nimport { collectionEditorMeta } from '../patterns/collection-editor/meta';\nimport { confirmDialogMeta } from '../patterns/confirm-dialog/meta';\nimport { disclosureSectionMeta } from '../patterns/disclosure-section/meta';\nimport { emptyStateMeta } from '../patterns/empty-state/meta';\nimport { filterBarMeta } from '../patterns/filter-bar/meta';\nimport { heroMeta } from '../patterns/hero/meta';\nimport { imagePreviewMeta } from '../patterns/image-preview/meta';\nimport { imageUploadFieldMeta } from '../patterns/image-upload-field/meta';\nimport { inspectorFieldMeta } from '../patterns/inspector-field/meta';\nimport { listMeta, listRowMeta, listSectionMeta } from '../patterns/list/meta';\nimport { messageBubbleMeta } from '../patterns/message-bubble/meta';\nimport { noticeMeta } from '../patterns/notice/meta';\nimport { panelMeta } from '../patterns/panel/meta';\nimport { postCardMeta } from '../patterns/post-card/meta';\nimport { responsivePanelMeta } from '../patterns/responsive-panel/meta';\nimport { sectionHeaderMeta } from '../patterns/section-header/meta';\nimport { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';\nimport { settingsRowMeta } from '../patterns/settings-row/meta';\nimport { switchFieldMeta } from '../patterns/switch-field/meta';\nimport { themeComposerMeta } from '../patterns/theme-composer/meta';\nimport { paletteItemMeta, tileGridMeta } from '../patterns/tile-grid/meta';\nimport { timelineMeta } from '../patterns/timeline/meta';\nimport { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';\nimport { zoraDrawerContentMeta } from '../patterns/zora-drawer-content/meta';\nimport { zoraTabBarMeta } from '../patterns/zora-tab-bar/meta';\nimport type { ZoraComponentMetaRegistry } from './types';\n\nexport const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = {\n ...foundationMetas,\n ActionSheet: actionSheetMeta,\n ActionSheetItem: actionSheetItemMeta,\n AppBar: appBarMeta,\n Avatar: avatarMeta,\n AvatarGroup: avatarGroupMeta,\n Badge: badgeMeta,\n Breadcrumbs: breadcrumbsMeta,\n Button: buttonMeta,\n ButtonGroup: buttonGroupMeta,\n Card: cardMeta,\n Checkbox: checkboxMeta,\n CheckboxGroup: checkboxGroupMeta,\n Chip: chipMeta,\n ChipGroup: chipGroupMeta,\n DataTable: dataTableMeta,\n DatePicker: datePickerMeta,\n Drawer: drawerMeta,\n DropdownMenu: dropdownMenuMeta,\n Form: formMeta,\n FormActions: formActionsMeta,\n FormError: formErrorMeta,\n FormField: formFieldMeta,\n Gradient: gradientMeta,\n Heading: headingMeta,\n Icon: iconMeta,\n IconButton: iconButtonMeta,\n Image: imageMeta,\n Input: inputMeta,\n MediaCard: mediaCardMeta,\n Menu: menuMeta,\n MetricCard: metricCardMeta,\n Modal: modalMeta,\n NavigationItem: navigationItemMeta,\n NavigationList: navigationListMeta,\n Pagination: paginationMeta,\n Progress: progressMeta,\n Radio: radioMeta,\n RadioGroup: radioGroupMeta,\n Rating: ratingMeta,\n SearchBar: searchBarMeta,\n Select: selectMeta,\n Skeleton: skeletonMeta,\n SkeletonCard: skeletonCardMeta,\n SkeletonList: skeletonListMeta,\n SkeletonText: skeletonTextMeta,\n SplashScreen: splashScreenMeta,\n Tabs: tabsMeta,\n Text: textMeta,\n Textarea: textareaMeta,\n TimePicker: timePickerMeta,\n Toast: toastMeta,\n ToastProvider: toastProviderMeta,\n Toolbar: toolbarMeta,\n ToolbarAction: toolbarActionMeta,\n AppShell: appShellMeta,\n Screen: screenMeta,\n ScreenSection: screenSectionMeta,\n SettingsLayout: settingsLayoutMeta,\n SidebarLayout: sidebarLayoutMeta,\n TopbarLayout: topbarLayoutMeta,\n ForgotPasswordForm: forgotPasswordFormMeta,\n OtpForm: otpFormMeta,\n SignInForm: signInFormMeta,\n SignUpForm: signUpFormMeta,\n ChatListItem: chatListItemMeta,\n CollectionEditor: collectionEditorMeta,\n ConfirmDialog: confirmDialogMeta,\n DisclosureSection: disclosureSectionMeta,\n EmptyState: emptyStateMeta,\n FilterBar: filterBarMeta,\n Hero: heroMeta,\n ImagePreview: imagePreviewMeta,\n ImageUploadField: imageUploadFieldMeta,\n InspectorField: inspectorFieldMeta,\n List: listMeta,\n ListRow: listRowMeta,\n ListSection: listSectionMeta,\n MessageBubble: messageBubbleMeta,\n Notice: noticeMeta,\n Panel: panelMeta,\n PostCard: postCardMeta,\n ResponsivePanel: responsivePanelMeta,\n SectionHeader: sectionHeaderMeta,\n SelectableItem: selectableItemMeta,\n SelectionProvider: selectionProviderMeta,\n SettingsRow: settingsRowMeta,\n SwitchField: switchFieldMeta,\n ThemeComposer: themeComposerMeta,\n PaletteItem: paletteItemMeta,\n TileGrid: tileGridMeta,\n Timeline: timelineMeta,\n TreeItem: treeItemMeta,\n TreeView: treeViewMeta,\n ZoraDrawerContent: zoraDrawerContentMeta,\n ZoraTabBar: zoraTabBarMeta,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"componentMeta.js","sourceRoot":"","sources":["../../src/metadata/componentMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+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AE,iBAAiB;IAChC,QAAQ,EAAE,YAAY;IACtB,MAAM,EAAE,UAAU;IAClB,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,iBAAiB;IAChC,YAAY,EAAE,gBAAgB;IAC9B,kBAAkB,EAAE,sBAAsB;IAC1C,mBAAmB,EAAE,uBAAuB;IAC5C,iBAAiB,EAAE,qBAAqB;IACxC,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,cAAc;IAC1B,UAAU,EAAE,cAAc;IAC1B,YAAY,EAAE,gBAAgB;IAC9B,gBAAgB,EAAE,oBAAoB;IACtC,aAAa,EAAE,iBAAiB;IAChC,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE,gBAAgB;IAC9B,gBAAgB,EAAE,oBAAoB;IACtC,cAAc,EAAE,kBAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,iBAAiB;IAChC,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,YAAY;IACtB,eAAe,EAAE,mBAAmB;IACpC,aAAa,EAAE,iBAAiB;IAChC,cAAc,EAAE,kBAAkB;IAClC,iBAAiB,EAAE,qBAAqB;IACxC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,cAAc;CAC3B,CAAC","sourcesContent":["import { actionSheetItemMeta, actionSheetMeta } from '../components/action-sheet/meta';\nimport { appBarMeta } from '../components/app-bar/meta';\nimport { avatarMeta } from '../components/avatar/meta';\nimport { avatarGroupMeta } from '../components/avatar-group/meta';\nimport { badgeMeta } from '../components/badge/meta';\nimport { breadcrumbsMeta } from '../components/breadcrumbs/meta';\nimport { buttonMeta } from '../components/button/meta';\nimport { buttonGroupMeta } from '../components/button-group/meta';\nimport { cardMeta } from '../components/card/meta';\nimport { checkboxGroupMeta, checkboxMeta } from '../components/checkbox/meta';\nimport { chipMeta } from '../components/chip/meta';\nimport { chipGroupMeta } from '../components/chip-group/meta';\nimport { dataTableMeta } from '../components/data-table/meta';\nimport { datePickerMeta } from '../components/date-picker/meta';\nimport { drawerMeta } from '../components/drawer/meta';\nimport { formActionsMeta, formErrorMeta, formFieldMeta, formMeta } from '../components/form/meta';\nimport { gradientMeta } from '../components/gradient/meta';\nimport { headingMeta } from '../components/heading/meta';\nimport { iconMeta } from '../components/icon/meta';\nimport { iconButtonMeta } from '../components/icon-button/meta';\nimport { imageMeta } from '../components/image/meta';\nimport { inputMeta } from '../components/input/meta';\nimport { mediaCardMeta } from '../components/media-card/meta';\nimport { dropdownMenuMeta, menuMeta } from '../components/menu/meta';\nimport { metricCardMeta } from '../components/metric-card/meta';\nimport { modalMeta } from '../components/modal/meta';\nimport { navigationItemMeta } from '../components/navigation-item/meta';\nimport { navigationListMeta } from '../components/navigation-list/meta';\nimport { paginationMeta } from '../components/pagination/meta';\nimport { progressMeta } from '../components/progress/meta';\nimport { radioGroupMeta, radioMeta } from '../components/radio/meta';\nimport { ratingMeta } from '../components/rating/meta';\nimport { searchBarMeta } from '../components/search-bar/meta';\nimport { selectMeta } from '../components/select/meta';\nimport {\n skeletonCardMeta,\n skeletonListMeta,\n skeletonMeta,\n skeletonTextMeta,\n} from '../components/skeleton/meta';\nimport { splashScreenMeta } from '../components/splash-screen/meta';\nimport { tabsMeta } from '../components/tabs/meta';\nimport { textMeta } from '../components/text/meta';\nimport { textareaMeta } from '../components/textarea/meta';\nimport { timePickerMeta } from '../components/time-picker/meta';\nimport { toastMeta, toastProviderMeta } from '../components/toast/meta';\nimport { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';\nimport { foundationMetas } from '../foundation/meta';\nimport { appShellMeta } from '../layout/app-shell/meta';\nimport { screenMeta } from '../layout/screen/meta';\nimport { screenSectionMeta } from '../layout/screen-section/meta';\nimport { settingsLayoutMeta } from '../layout/settings-layout/meta';\nimport { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';\nimport { topbarLayoutMeta } from '../layout/topbar-layout/meta';\nimport {\n forgotPasswordFormMeta,\n oauthProviderButtonMeta,\n oauthProviderListMeta,\n otpFormMeta,\n signInFormMeta,\n signUpFormMeta,\n} from '../patterns/auth/meta';\nimport { chatListItemMeta } from '../patterns/chat-list-item/meta';\nimport { collectionEditorMeta } from '../patterns/collection-editor/meta';\nimport { confirmDialogMeta } from '../patterns/confirm-dialog/meta';\nimport { disclosureSectionMeta } from '../patterns/disclosure-section/meta';\nimport { emptyStateMeta } from '../patterns/empty-state/meta';\nimport { filterBarMeta } from '../patterns/filter-bar/meta';\nimport { heroMeta } from '../patterns/hero/meta';\nimport { imagePreviewMeta } from '../patterns/image-preview/meta';\nimport { imageUploadFieldMeta } from '../patterns/image-upload-field/meta';\nimport { inspectorFieldMeta } from '../patterns/inspector-field/meta';\nimport { listMeta, listRowMeta, listSectionMeta } from '../patterns/list/meta';\nimport { messageBubbleMeta } from '../patterns/message-bubble/meta';\nimport { noticeMeta } from '../patterns/notice/meta';\nimport { panelMeta } from '../patterns/panel/meta';\nimport { postCardMeta } from '../patterns/post-card/meta';\nimport { responsivePanelMeta } from '../patterns/responsive-panel/meta';\nimport { sectionHeaderMeta } from '../patterns/section-header/meta';\nimport { selectableItemMeta, selectionProviderMeta } from '../patterns/selection/meta';\nimport { settingsRowMeta } from '../patterns/settings-row/meta';\nimport { switchFieldMeta } from '../patterns/switch-field/meta';\nimport { themeComposerMeta } from '../patterns/theme-composer/meta';\nimport { paletteItemMeta, tileGridMeta } from '../patterns/tile-grid/meta';\nimport { timelineMeta } from '../patterns/timeline/meta';\nimport { treeItemMeta, treeViewMeta } from '../patterns/tree-view/meta';\nimport { zoraDrawerContentMeta } from '../patterns/zora-drawer-content/meta';\nimport { zoraTabBarMeta } from '../patterns/zora-tab-bar/meta';\nimport type { ZoraComponentMetaRegistry } from './types';\n\nexport const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = {\n ...foundationMetas,\n ActionSheet: actionSheetMeta,\n ActionSheetItem: actionSheetItemMeta,\n AppBar: appBarMeta,\n Avatar: avatarMeta,\n AvatarGroup: avatarGroupMeta,\n Badge: badgeMeta,\n Breadcrumbs: breadcrumbsMeta,\n Button: buttonMeta,\n ButtonGroup: buttonGroupMeta,\n Card: cardMeta,\n Checkbox: checkboxMeta,\n CheckboxGroup: checkboxGroupMeta,\n Chip: chipMeta,\n ChipGroup: chipGroupMeta,\n DataTable: dataTableMeta,\n DatePicker: datePickerMeta,\n Drawer: drawerMeta,\n DropdownMenu: dropdownMenuMeta,\n Form: formMeta,\n FormActions: formActionsMeta,\n FormError: formErrorMeta,\n FormField: formFieldMeta,\n Gradient: gradientMeta,\n Heading: headingMeta,\n Icon: iconMeta,\n IconButton: iconButtonMeta,\n Image: imageMeta,\n Input: inputMeta,\n MediaCard: mediaCardMeta,\n Menu: menuMeta,\n MetricCard: metricCardMeta,\n Modal: modalMeta,\n NavigationItem: navigationItemMeta,\n NavigationList: navigationListMeta,\n Pagination: paginationMeta,\n Progress: progressMeta,\n Radio: radioMeta,\n RadioGroup: radioGroupMeta,\n Rating: ratingMeta,\n SearchBar: searchBarMeta,\n Select: selectMeta,\n Skeleton: skeletonMeta,\n SkeletonCard: skeletonCardMeta,\n SkeletonList: skeletonListMeta,\n SkeletonText: skeletonTextMeta,\n SplashScreen: splashScreenMeta,\n Tabs: tabsMeta,\n Text: textMeta,\n Textarea: textareaMeta,\n TimePicker: timePickerMeta,\n Toast: toastMeta,\n ToastProvider: toastProviderMeta,\n Toolbar: toolbarMeta,\n ToolbarAction: toolbarActionMeta,\n AppShell: appShellMeta,\n Screen: screenMeta,\n ScreenSection: screenSectionMeta,\n SettingsLayout: settingsLayoutMeta,\n SidebarLayout: sidebarLayoutMeta,\n TopbarLayout: topbarLayoutMeta,\n ForgotPasswordForm: forgotPasswordFormMeta,\n OAuthProviderButton: oauthProviderButtonMeta,\n OAuthProviderList: oauthProviderListMeta,\n OtpForm: otpFormMeta,\n SignInForm: signInFormMeta,\n SignUpForm: signUpFormMeta,\n ChatListItem: chatListItemMeta,\n CollectionEditor: collectionEditorMeta,\n ConfirmDialog: confirmDialogMeta,\n DisclosureSection: disclosureSectionMeta,\n EmptyState: emptyStateMeta,\n FilterBar: filterBarMeta,\n Hero: heroMeta,\n ImagePreview: imagePreviewMeta,\n ImageUploadField: imageUploadFieldMeta,\n InspectorField: inspectorFieldMeta,\n List: listMeta,\n ListRow: listRowMeta,\n ListSection: listSectionMeta,\n MessageBubble: messageBubbleMeta,\n Notice: noticeMeta,\n Panel: panelMeta,\n PostCard: postCardMeta,\n ResponsivePanel: responsivePanelMeta,\n SectionHeader: sectionHeaderMeta,\n SelectableItem: selectableItemMeta,\n SelectionProvider: selectionProviderMeta,\n SettingsRow: settingsRowMeta,\n SwitchField: switchFieldMeta,\n ThemeComposer: themeComposerMeta,\n PaletteItem: paletteItemMeta,\n TileGrid: tileGridMeta,\n Timeline: timelineMeta,\n TreeItem: treeItemMeta,\n TreeView: treeViewMeta,\n ZoraDrawerContent: zoraDrawerContentMeta,\n ZoraTabBar: zoraTabBarMeta,\n};\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { OAuthProviderButtonProps } from './types';
|
|
3
|
+
/***
|
|
4
|
+
* Renders a provider-branded OAuth action button without owning auth behavior.
|
|
5
|
+
*
|
|
6
|
+
* The component only renders UI and forwards the provider id through `onPress`.
|
|
7
|
+
* Adapters, redirects, and callback handling belong to app/runtime layers.
|
|
8
|
+
*/
|
|
9
|
+
export declare const OAuthProviderButton: (props: OAuthProviderButtonProps) => React.ReactElement | null;
|
|
10
|
+
//# sourceMappingURL=OAuthProviderButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthProviderButton.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/OAuthProviderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAuCxD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,gEAA+C,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button } from '../../components/button';
|
|
3
|
+
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
+
import { resolveOAuthProviderIcon, resolveOAuthProviderLabel } from './oauthProviders';
|
|
5
|
+
function OAuthProviderButtonInner({ themeId: _themeId, mode: _mode, providerId, label, icon, disabled = false, loading = false, fullWidth = true, size = 'l', variant = 'outline', color = 'neutral', onPress, testID, }) {
|
|
6
|
+
const resolvedIcon = icon ?? resolveOAuthProviderIcon(providerId);
|
|
7
|
+
const resolvedLabel = label ?? `Continue with ${resolveOAuthProviderLabel(providerId)}`;
|
|
8
|
+
return (<Button color={color} disabled={disabled || loading || onPress === undefined} fullWidth={fullWidth} leadingIcon={resolvedIcon} loading={loading} onPress={() => {
|
|
9
|
+
void onPress?.(providerId);
|
|
10
|
+
}} size={size} testID={testID} variant={variant}>
|
|
11
|
+
{resolvedLabel}
|
|
12
|
+
</Button>);
|
|
13
|
+
}
|
|
14
|
+
/***
|
|
15
|
+
* Renders a provider-branded OAuth action button without owning auth behavior.
|
|
16
|
+
*
|
|
17
|
+
* The component only renders UI and forwards the provider id through `onPress`.
|
|
18
|
+
* Adapters, redirects, and callback handling belong to app/runtime layers.
|
|
19
|
+
*/
|
|
20
|
+
export const OAuthProviderButton = withZoraThemeScope(OAuthProviderButtonInner);
|
|
21
|
+
//# sourceMappingURL=OAuthProviderButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthProviderButton.js","sourceRoot":"","sources":["../../../src/patterns/auth/OAuthProviderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAGvF,SAAS,wBAAwB,CAAC,EAChC,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,UAAU,EACV,KAAK,EACL,IAAI,EACJ,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,SAAS,GAAG,IAAI,EAChB,IAAI,GAAG,GAAG,EACV,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,SAAS,EACjB,OAAO,EACP,MAAM,GACmB;IACzB,MAAM,YAAY,GAAG,IAAI,IAAI,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAClE,MAAM,aAAa,GAAG,KAAK,IAAI,iBAAiB,yBAAyB,CAAC,UAAU,CAAC,EAAE,CAAC;IAExF,OAAO,CACL,CAAC,MAAM,CACL,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,QAAQ,CAAC,CAAC,QAAQ,IAAI,OAAO,IAAI,OAAO,KAAK,SAAS,CAAC,CACvD,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,WAAW,CAAC,CAAC,YAAY,CAAC,CAC1B,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,OAAO,CAAC,CAAC,GAAG,EAAE;YACZ,KAAK,OAAO,EAAE,CAAC,UAAU,CAAC,CAAC;QAC7B,CAAC,CAAC,CACF,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,OAAO,CAAC,CAAC,OAAO,CAAC,CAEjB;MAAA,CAAC,aAAa,CAChB;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../components/button';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { resolveOAuthProviderIcon, resolveOAuthProviderLabel } from './oauthProviders';\nimport type { OAuthProviderButtonProps } from './types';\n\nfunction OAuthProviderButtonInner({\n themeId: _themeId,\n mode: _mode,\n providerId,\n label,\n icon,\n disabled = false,\n loading = false,\n fullWidth = true,\n size = 'l',\n variant = 'outline',\n color = 'neutral',\n onPress,\n testID,\n}: OAuthProviderButtonProps) {\n const resolvedIcon = icon ?? resolveOAuthProviderIcon(providerId);\n const resolvedLabel = label ?? `Continue with ${resolveOAuthProviderLabel(providerId)}`;\n\n return (\n <Button\n color={color}\n disabled={disabled || loading || onPress === undefined}\n fullWidth={fullWidth}\n leadingIcon={resolvedIcon}\n loading={loading}\n onPress={() => {\n void onPress?.(providerId);\n }}\n size={size}\n testID={testID}\n variant={variant}\n >\n {resolvedLabel}\n </Button>\n );\n}\n\n/***\n * Renders a provider-branded OAuth action button without owning auth behavior.\n *\n * The component only renders UI and forwards the provider id through `onPress`.\n * Adapters, redirects, and callback handling belong to app/runtime layers.\n */\nexport const OAuthProviderButton = withZoraThemeScope(OAuthProviderButtonInner);\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { OAuthProviderListProps } from './types';
|
|
3
|
+
/***
|
|
4
|
+
* Renders a group of OAuth provider buttons for sign-in and auth settings flows.
|
|
5
|
+
*/
|
|
6
|
+
export declare const OAuthProviderList: (props: OAuthProviderListProps) => React.ReactElement | null;
|
|
7
|
+
//# sourceMappingURL=OAuthProviderList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthProviderList.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/OAuthProviderList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AA6CtD;;GAEG;AACH,eAAO,MAAM,iBAAiB,8DAA6C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Stack } from '../../foundation';
|
|
3
|
+
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
+
import { OAuthProviderButton } from './OAuthProviderButton';
|
|
5
|
+
function OAuthProviderListInner({ themeId: _themeId, mode: _mode, providers, disabled = false, loading = false, fullWidth, layout = 'stack', size, variant, color, onProviderPress, testID, }) {
|
|
6
|
+
const direction = layout === 'inline' ? 'row' : 'column';
|
|
7
|
+
const resolvedFullWidth = fullWidth ?? layout === 'stack';
|
|
8
|
+
return (<Stack direction={direction} gap="s" testID={testID} wrap={layout === 'inline' ? 'wrap' : undefined}>
|
|
9
|
+
{providers.map((provider) => (<OAuthProviderButton color={color} disabled={disabled || provider.disabled} fullWidth={resolvedFullWidth} icon={provider.icon} key={provider.id} label={provider.label} loading={loading || provider.loading} onPress={onProviderPress} providerId={provider.id} size={size} variant={variant}/>))}
|
|
10
|
+
</Stack>);
|
|
11
|
+
}
|
|
12
|
+
/***
|
|
13
|
+
* Renders a group of OAuth provider buttons for sign-in and auth settings flows.
|
|
14
|
+
*/
|
|
15
|
+
export const OAuthProviderList = withZoraThemeScope(OAuthProviderListInner);
|
|
16
|
+
//# sourceMappingURL=OAuthProviderList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OAuthProviderList.js","sourceRoot":"","sources":["../../../src/patterns/auth/OAuthProviderList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,C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AO,CAAC,CAAC,eAAe,CAAC,CACzB,UAAU,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CACxB,IAAI,CAAC,CAAC,IAAI,CAAC,CACX,OAAO,CAAC,CAAC,OAAO,CAAC,EACjB,CACH,CAAC,CACJ;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,sBAAsB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Stack } from '../../foundation';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { OAuthProviderButton } from './OAuthProviderButton';\nimport type { OAuthProviderListProps } from './types';\n\nfunction OAuthProviderListInner({\n themeId: _themeId,\n mode: _mode,\n providers,\n disabled = false,\n loading = false,\n fullWidth,\n layout = 'stack',\n size,\n variant,\n color,\n onProviderPress,\n testID,\n}: OAuthProviderListProps) {\n const direction = layout === 'inline' ? 'row' : 'column';\n const resolvedFullWidth = fullWidth ?? layout === 'stack';\n\n return (\n <Stack\n direction={direction}\n gap=\"s\"\n testID={testID}\n wrap={layout === 'inline' ? 'wrap' : undefined}\n >\n {providers.map((provider) => (\n <OAuthProviderButton\n color={color}\n disabled={disabled || provider.disabled}\n fullWidth={resolvedFullWidth}\n icon={provider.icon}\n key={provider.id}\n label={provider.label}\n loading={loading || provider.loading}\n onPress={onProviderPress}\n providerId={provider.id}\n size={size}\n variant={variant}\n />\n ))}\n </Stack>\n );\n}\n\n/***\n * Renders a group of OAuth provider buttons for sign-in and auth settings flows.\n */\nexport const OAuthProviderList = withZoraThemeScope(OAuthProviderListInner);\n"]}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { ForgotPasswordForm } from './ForgotPasswordForm';
|
|
2
|
+
export { OAuthProviderButton } from './OAuthProviderButton';
|
|
3
|
+
export { OAuthProviderList } from './OAuthProviderList';
|
|
4
|
+
export { DEFAULT_OAUTH_PROVIDER_ICONS, resolveOAuthProviderIcon, resolveOAuthProviderLabel, } from './oauthProviders';
|
|
2
5
|
export { OtpForm } from './OtpForm';
|
|
3
6
|
export { SignInForm } from './SignInForm';
|
|
4
7
|
export { SignUpForm } from './SignUpForm';
|
|
5
|
-
export type { AuthFormBaseProps, AuthIdentifierKind, ForgotPasswordFormProps, ForgotPasswordFormValues, OtpFormProps, OtpFormValues, SignInFormProps, SignInFormValues, SignUpFormField, SignUpFormProps, SignUpFormValues, } from './types';
|
|
8
|
+
export type { AuthFormBaseProps, AuthIdentifierKind, ForgotPasswordFormProps, ForgotPasswordFormValues, OAuthProviderButtonProps, OAuthProviderIconSpec, OAuthProviderItem, OAuthProviderListLayout, OAuthProviderListProps, OtpFormProps, OtpFormValues, SignInFormProps, SignInFormValues, SignUpFormField, SignUpFormProps, SignUpFormValues, } from './types';
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EACV,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,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,SAAS,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { ForgotPasswordForm } from './ForgotPasswordForm';
|
|
2
|
+
export { OAuthProviderButton } from './OAuthProviderButton';
|
|
3
|
+
export { OAuthProviderList } from './OAuthProviderList';
|
|
4
|
+
export { DEFAULT_OAUTH_PROVIDER_ICONS, resolveOAuthProviderIcon, resolveOAuthProviderLabel, } from './oauthProviders';
|
|
2
5
|
export { OtpForm } from './OtpForm';
|
|
3
6
|
export { SignInForm } from './SignInForm';
|
|
4
7
|
export { SignUpForm } from './SignUpForm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { ForgotPasswordForm } from './ForgotPasswordForm';\nexport { OtpForm } from './OtpForm';\nexport { SignInForm } from './SignInForm';\nexport { SignUpForm } from './SignUpForm';\nexport type {\n AuthFormBaseProps,\n AuthIdentifierKind,\n ForgotPasswordFormProps,\n ForgotPasswordFormValues,\n OtpFormProps,\n OtpFormValues,\n SignInFormProps,\n SignInFormValues,\n SignUpFormField,\n SignUpFormProps,\n SignUpFormValues,\n} from './types';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { ForgotPasswordForm } from './ForgotPasswordForm';\nexport { OAuthProviderButton } from './OAuthProviderButton';\nexport { OAuthProviderList } from './OAuthProviderList';\nexport {\n DEFAULT_OAUTH_PROVIDER_ICONS,\n resolveOAuthProviderIcon,\n resolveOAuthProviderLabel,\n} from './oauthProviders';\nexport { OtpForm } from './OtpForm';\nexport { SignInForm } from './SignInForm';\nexport { SignUpForm } from './SignUpForm';\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 './types';\n"]}
|
|
@@ -6,6 +6,22 @@ export declare const forgotPasswordFormMeta: {
|
|
|
6
6
|
readonly note: "Auth pattern component; not represented as a manifest node in v1.";
|
|
7
7
|
readonly props: {};
|
|
8
8
|
};
|
|
9
|
+
export declare const oauthProviderButtonMeta: {
|
|
10
|
+
readonly name: "OAuthProviderButton";
|
|
11
|
+
readonly category: "pattern";
|
|
12
|
+
readonly directManifestNode: false;
|
|
13
|
+
readonly allowedChildren: readonly [];
|
|
14
|
+
readonly note: "Auth pattern component; not represented as a manifest node in v1.";
|
|
15
|
+
readonly props: {};
|
|
16
|
+
};
|
|
17
|
+
export declare const oauthProviderListMeta: {
|
|
18
|
+
readonly name: "OAuthProviderList";
|
|
19
|
+
readonly category: "pattern";
|
|
20
|
+
readonly directManifestNode: false;
|
|
21
|
+
readonly allowedChildren: readonly [];
|
|
22
|
+
readonly note: "Auth pattern component; not represented as a manifest node in v1.";
|
|
23
|
+
readonly props: {};
|
|
24
|
+
};
|
|
9
25
|
export declare const otpFormMeta: {
|
|
10
26
|
readonly name: "OtpForm";
|
|
11
27
|
readonly category: "pattern";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/meta.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;;;;;CAOG,CAAC;AAEvC,eAAO,MAAM,WAAW;;;;;;;CAOc,CAAC;AAEvC,eAAO,MAAM,cAAc;;;;;;;CAOW,CAAC;AAEvC,eAAO,MAAM,cAAc;;;;;;;CAOW,CAAC"}
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/meta.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB;;;;;;;CAOG,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;;;;CAOE,CAAC;AAEvC,eAAO,MAAM,qBAAqB;;;;;;;CAOI,CAAC;AAEvC,eAAO,MAAM,WAAW;;;;;;;CAOc,CAAC;AAEvC,eAAO,MAAM,cAAc;;;;;;;CAOW,CAAC;AAEvC,eAAO,MAAM,cAAc;;;;;;;CAOW,CAAC"}
|
|
@@ -7,6 +7,22 @@ export const forgotPasswordFormMeta = {
|
|
|
7
7
|
note: AUTH_NOTE,
|
|
8
8
|
props: {},
|
|
9
9
|
};
|
|
10
|
+
export const oauthProviderButtonMeta = {
|
|
11
|
+
name: 'OAuthProviderButton',
|
|
12
|
+
category: 'pattern',
|
|
13
|
+
directManifestNode: false,
|
|
14
|
+
allowedChildren: [],
|
|
15
|
+
note: AUTH_NOTE,
|
|
16
|
+
props: {},
|
|
17
|
+
};
|
|
18
|
+
export const oauthProviderListMeta = {
|
|
19
|
+
name: 'OAuthProviderList',
|
|
20
|
+
category: 'pattern',
|
|
21
|
+
directManifestNode: false,
|
|
22
|
+
allowedChildren: [],
|
|
23
|
+
note: AUTH_NOTE,
|
|
24
|
+
props: {},
|
|
25
|
+
};
|
|
10
26
|
export const otpFormMeta = {
|
|
11
27
|
name: 'OtpForm',
|
|
12
28
|
category: 'pattern',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/auth/meta.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,mEAAmE,CAAC;AAEtF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nconst AUTH_NOTE = 'Auth pattern component; not represented as a manifest node in v1.';\n\nexport const forgotPasswordFormMeta = {\n name: 'ForgotPasswordForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const otpFormMeta = {\n name: 'OtpForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const signInFormMeta = {\n name: 'SignInForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const signUpFormMeta = {\n name: 'SignUpForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/patterns/auth/meta.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAG,mEAAmE,CAAC;AAEtF,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC;AAEvC,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,SAAS;IACnB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nconst AUTH_NOTE = 'Auth pattern component; not represented as a manifest node in v1.';\n\nexport const forgotPasswordFormMeta = {\n name: 'ForgotPasswordForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const oauthProviderButtonMeta = {\n name: 'OAuthProviderButton',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const oauthProviderListMeta = {\n name: 'OAuthProviderList',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const otpFormMeta = {\n name: 'OtpForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const signInFormMeta = {\n name: 'SignInForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n\nexport const signUpFormMeta = {\n name: 'SignUpForm',\n category: 'pattern',\n directManifestNode: false,\n allowedChildren: [],\n note: AUTH_NOTE,\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { OAuthProviderIconSpec } from './types';
|
|
2
|
+
export declare const DEFAULT_OAUTH_PROVIDER_ICONS: {
|
|
3
|
+
readonly apple: {
|
|
4
|
+
readonly provider: "FontAwesome";
|
|
5
|
+
readonly name: "apple";
|
|
6
|
+
};
|
|
7
|
+
readonly azure: {
|
|
8
|
+
readonly provider: "FontAwesome5";
|
|
9
|
+
readonly name: "microsoft";
|
|
10
|
+
};
|
|
11
|
+
readonly bitbucket: {
|
|
12
|
+
readonly provider: "FontAwesome";
|
|
13
|
+
readonly name: "bitbucket";
|
|
14
|
+
};
|
|
15
|
+
readonly discord: {
|
|
16
|
+
readonly provider: "FontAwesome5";
|
|
17
|
+
readonly name: "discord";
|
|
18
|
+
};
|
|
19
|
+
readonly facebook: {
|
|
20
|
+
readonly provider: "FontAwesome";
|
|
21
|
+
readonly name: "facebook";
|
|
22
|
+
};
|
|
23
|
+
readonly figma: {
|
|
24
|
+
readonly provider: "FontAwesome5";
|
|
25
|
+
readonly name: "figma";
|
|
26
|
+
};
|
|
27
|
+
readonly github: {
|
|
28
|
+
readonly provider: "FontAwesome";
|
|
29
|
+
readonly name: "github";
|
|
30
|
+
};
|
|
31
|
+
readonly gitlab: {
|
|
32
|
+
readonly provider: "FontAwesome5";
|
|
33
|
+
readonly name: "gitlab";
|
|
34
|
+
};
|
|
35
|
+
readonly google: {
|
|
36
|
+
readonly provider: "FontAwesome";
|
|
37
|
+
readonly name: "google";
|
|
38
|
+
};
|
|
39
|
+
readonly linkedin: {
|
|
40
|
+
readonly provider: "FontAwesome";
|
|
41
|
+
readonly name: "linkedin";
|
|
42
|
+
};
|
|
43
|
+
readonly microsoft: {
|
|
44
|
+
readonly provider: "FontAwesome5";
|
|
45
|
+
readonly name: "microsoft";
|
|
46
|
+
};
|
|
47
|
+
readonly slack: {
|
|
48
|
+
readonly provider: "FontAwesome5";
|
|
49
|
+
readonly name: "slack";
|
|
50
|
+
};
|
|
51
|
+
readonly spotify: {
|
|
52
|
+
readonly provider: "FontAwesome";
|
|
53
|
+
readonly name: "spotify";
|
|
54
|
+
};
|
|
55
|
+
readonly twitch: {
|
|
56
|
+
readonly provider: "FontAwesome5";
|
|
57
|
+
readonly name: "twitch";
|
|
58
|
+
};
|
|
59
|
+
readonly twitter: {
|
|
60
|
+
readonly provider: "FontAwesome";
|
|
61
|
+
readonly name: "twitter";
|
|
62
|
+
};
|
|
63
|
+
readonly x: {
|
|
64
|
+
readonly provider: "FontAwesome6";
|
|
65
|
+
readonly name: "x-twitter";
|
|
66
|
+
};
|
|
67
|
+
readonly zoom: {
|
|
68
|
+
readonly provider: "FontAwesome5";
|
|
69
|
+
readonly name: "video";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export declare function resolveOAuthProviderIcon(providerId: string): OAuthProviderIconSpec | undefined;
|
|
73
|
+
export declare function resolveOAuthProviderLabel(providerId: string): string;
|
|
74
|
+
//# sourceMappingURL=oauthProviders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauthProviders.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/oauthProviders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBiB,CAAC;AA4B3D,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAM9F;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAKpE"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export const DEFAULT_OAUTH_PROVIDER_ICONS = {
|
|
2
|
+
apple: { provider: 'FontAwesome', name: 'apple' },
|
|
3
|
+
azure: { provider: 'FontAwesome5', name: 'microsoft' },
|
|
4
|
+
bitbucket: { provider: 'FontAwesome', name: 'bitbucket' },
|
|
5
|
+
discord: { provider: 'FontAwesome5', name: 'discord' },
|
|
6
|
+
facebook: { provider: 'FontAwesome', name: 'facebook' },
|
|
7
|
+
figma: { provider: 'FontAwesome5', name: 'figma' },
|
|
8
|
+
github: { provider: 'FontAwesome', name: 'github' },
|
|
9
|
+
gitlab: { provider: 'FontAwesome5', name: 'gitlab' },
|
|
10
|
+
google: { provider: 'FontAwesome', name: 'google' },
|
|
11
|
+
linkedin: { provider: 'FontAwesome', name: 'linkedin' },
|
|
12
|
+
microsoft: { provider: 'FontAwesome5', name: 'microsoft' },
|
|
13
|
+
slack: { provider: 'FontAwesome5', name: 'slack' },
|
|
14
|
+
spotify: { provider: 'FontAwesome', name: 'spotify' },
|
|
15
|
+
twitch: { provider: 'FontAwesome5', name: 'twitch' },
|
|
16
|
+
twitter: { provider: 'FontAwesome', name: 'twitter' },
|
|
17
|
+
x: { provider: 'FontAwesome6', name: 'x-twitter' },
|
|
18
|
+
zoom: { provider: 'FontAwesome5', name: 'video' },
|
|
19
|
+
};
|
|
20
|
+
const DEFAULT_OAUTH_PROVIDER_LABELS = {
|
|
21
|
+
apple: 'Apple',
|
|
22
|
+
azure: 'Microsoft',
|
|
23
|
+
bitbucket: 'Bitbucket',
|
|
24
|
+
discord: 'Discord',
|
|
25
|
+
facebook: 'Facebook',
|
|
26
|
+
figma: 'Figma',
|
|
27
|
+
github: 'GitHub',
|
|
28
|
+
gitlab: 'GitLab',
|
|
29
|
+
google: 'Google',
|
|
30
|
+
kakao: 'Kakao',
|
|
31
|
+
keycloak: 'Keycloak',
|
|
32
|
+
linkedin: 'LinkedIn',
|
|
33
|
+
microsoft: 'Microsoft',
|
|
34
|
+
notion: 'Notion',
|
|
35
|
+
slack: 'Slack',
|
|
36
|
+
spotify: 'Spotify',
|
|
37
|
+
twitch: 'Twitch',
|
|
38
|
+
twitter: 'Twitter',
|
|
39
|
+
workos: 'WorkOS',
|
|
40
|
+
x: 'X',
|
|
41
|
+
zoom: 'Zoom',
|
|
42
|
+
};
|
|
43
|
+
const oauthProviderLabels = DEFAULT_OAUTH_PROVIDER_LABELS;
|
|
44
|
+
export function resolveOAuthProviderIcon(providerId) {
|
|
45
|
+
const normalizedProviderId = normalizeOAuthProviderId(providerId);
|
|
46
|
+
return DEFAULT_OAUTH_PROVIDER_ICONS[normalizedProviderId];
|
|
47
|
+
}
|
|
48
|
+
export function resolveOAuthProviderLabel(providerId) {
|
|
49
|
+
const normalizedProviderId = normalizeOAuthProviderId(providerId);
|
|
50
|
+
const knownLabel = oauthProviderLabels[normalizedProviderId];
|
|
51
|
+
return knownLabel ?? titleCaseProviderId(normalizedProviderId);
|
|
52
|
+
}
|
|
53
|
+
function normalizeOAuthProviderId(providerId) {
|
|
54
|
+
return providerId.trim().toLowerCase();
|
|
55
|
+
}
|
|
56
|
+
function titleCaseProviderId(providerId) {
|
|
57
|
+
const words = providerId
|
|
58
|
+
.split(/[-_\s]+/u)
|
|
59
|
+
.map((word) => word.trim())
|
|
60
|
+
.filter((word) => word.length > 0);
|
|
61
|
+
if (words.length === 0) {
|
|
62
|
+
return 'Provider';
|
|
63
|
+
}
|
|
64
|
+
return words.map((word) => `${word.charAt(0).toUpperCase()}${word.slice(1)}`).join(' ');
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=oauthProviders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauthProviders.js","sourceRoot":"","sources":["../../../src/patterns/auth/oauthProviders.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE;IACjD,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,WAAW,EAAE;IACtD,SAAS,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,WAAW,EAAE;IACzD,OAAO,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE;IACtD,QAAQ,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE;IACvD,KAAK,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE;IAClD,MAAM,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;IACnD,MAAM,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE;IACpD,MAAM,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,QAAQ,EAAE;IACnD,QAAQ,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,EAAE;IACvD,SAAS,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EA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,UAAU,yBAAyB,CAAC,UAAkB;IAC1D,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,UAAU,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;IAE7D,OAAO,UAAU,IAAI,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AACjE,CAAC;AAED,SAAS,wBAAwB,CAAC,UAAkB;IAClD,OAAO,UAAU,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;AACzC,CAAC;AAED,SAAS,mBAAmB,CAAC,UAAkB;IAC7C,MAAM,KAAK,GAAG,UAAU;SACrB,KAAK,CAAC,UAAU,CAAC;SACjB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAErC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvB,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC1F,CAAC","sourcesContent":["import type { OAuthProviderIconSpec } from './types';\n\nexport const DEFAULT_OAUTH_PROVIDER_ICONS = {\n apple: { provider: 'FontAwesome', name: 'apple' },\n azure: { provider: 'FontAwesome5', name: 'microsoft' },\n bitbucket: { provider: 'FontAwesome', name: 'bitbucket' },\n discord: { provider: 'FontAwesome5', name: 'discord' },\n facebook: { provider: 'FontAwesome', name: 'facebook' },\n figma: { provider: 'FontAwesome5', name: 'figma' },\n github: { provider: 'FontAwesome', name: 'github' },\n gitlab: { provider: 'FontAwesome5', name: 'gitlab' },\n google: { provider: 'FontAwesome', name: 'google' },\n linkedin: { provider: 'FontAwesome', name: 'linkedin' },\n microsoft: { provider: 'FontAwesome5', name: 'microsoft' },\n slack: { provider: 'FontAwesome5', name: 'slack' },\n spotify: { provider: 'FontAwesome', name: 'spotify' },\n twitch: { provider: 'FontAwesome5', name: 'twitch' },\n twitter: { provider: 'FontAwesome', name: 'twitter' },\n x: { provider: 'FontAwesome6', name: 'x-twitter' },\n zoom: { provider: 'FontAwesome5', name: 'video' },\n} as const satisfies Record<string, OAuthProviderIconSpec>;\n\nconst DEFAULT_OAUTH_PROVIDER_LABELS = {\n apple: 'Apple',\n azure: 'Microsoft',\n bitbucket: 'Bitbucket',\n discord: 'Discord',\n facebook: 'Facebook',\n figma: 'Figma',\n github: 'GitHub',\n gitlab: 'GitLab',\n google: 'Google',\n kakao: 'Kakao',\n keycloak: 'Keycloak',\n linkedin: 'LinkedIn',\n microsoft: 'Microsoft',\n notion: 'Notion',\n slack: 'Slack',\n spotify: 'Spotify',\n twitch: 'Twitch',\n twitter: 'Twitter',\n workos: 'WorkOS',\n x: 'X',\n zoom: 'Zoom',\n} as const satisfies Record<string, string>;\n\nconst oauthProviderLabels: Partial<Record<string, string>> = DEFAULT_OAUTH_PROVIDER_LABELS;\n\nexport function resolveOAuthProviderIcon(providerId: string): OAuthProviderIconSpec | undefined {\n const normalizedProviderId = normalizeOAuthProviderId(providerId);\n\n return DEFAULT_OAUTH_PROVIDER_ICONS[\n normalizedProviderId as keyof typeof DEFAULT_OAUTH_PROVIDER_ICONS\n ];\n}\n\nexport function resolveOAuthProviderLabel(providerId: string): string {\n const normalizedProviderId = normalizeOAuthProviderId(providerId);\n const knownLabel = oauthProviderLabels[normalizedProviderId];\n\n return knownLabel ?? titleCaseProviderId(normalizedProviderId);\n}\n\nfunction normalizeOAuthProviderId(providerId: string): string {\n return providerId.trim().toLowerCase();\n}\n\nfunction titleCaseProviderId(providerId: string): string {\n const words = providerId\n .split(/[-_\\s]+/u)\n .map((word) => word.trim())\n .filter((word) => word.length > 0);\n\n if (words.length === 0) {\n return 'Provider';\n }\n\n return words.map((word) => `${word.charAt(0).toUpperCase()}${word.slice(1)}`).join(' ');\n}\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import type { ButtonProps } from '../../components/button';
|
|
2
3
|
import type { FormFieldConfig, FormValues } from '../../components/form';
|
|
3
4
|
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
4
5
|
export type AuthIdentifierKind = 'email' | 'phone' | 'username';
|
|
@@ -54,4 +55,41 @@ export interface OtpFormProps extends AuthFormBaseProps {
|
|
|
54
55
|
onSubmit: (values: OtpFormValues) => void | Promise<void>;
|
|
55
56
|
onResend?: () => void | Promise<void>;
|
|
56
57
|
}
|
|
58
|
+
export interface OAuthProviderIconSpec {
|
|
59
|
+
name: string;
|
|
60
|
+
provider?: string;
|
|
61
|
+
size?: number | string;
|
|
62
|
+
color?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface OAuthProviderItem {
|
|
65
|
+
id: string;
|
|
66
|
+
label?: React.ReactNode;
|
|
67
|
+
icon?: OAuthProviderIconSpec;
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
loading?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface OAuthProviderButtonProps extends ZoraBaseProps {
|
|
72
|
+
providerId: string;
|
|
73
|
+
label?: React.ReactNode;
|
|
74
|
+
icon?: OAuthProviderIconSpec;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
loading?: boolean;
|
|
77
|
+
fullWidth?: boolean;
|
|
78
|
+
size?: ButtonProps['size'];
|
|
79
|
+
variant?: ButtonProps['variant'];
|
|
80
|
+
color?: ButtonProps['color'];
|
|
81
|
+
onPress?: (providerId: string) => void | Promise<void>;
|
|
82
|
+
}
|
|
83
|
+
export type OAuthProviderListLayout = 'stack' | 'inline';
|
|
84
|
+
export interface OAuthProviderListProps extends ZoraBaseProps {
|
|
85
|
+
providers: readonly OAuthProviderItem[];
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
loading?: boolean;
|
|
88
|
+
fullWidth?: boolean;
|
|
89
|
+
layout?: OAuthProviderListLayout;
|
|
90
|
+
size?: ButtonProps['size'];
|
|
91
|
+
variant?: ButtonProps['variant'];
|
|
92
|
+
color?: ButtonProps['color'];
|
|
93
|
+
onProviderPress?: (providerId: string) => void | Promise<void>;
|
|
94
|
+
}
|
|
57
95
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/auth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,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;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,WAAW,CAAC,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAC5C,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,mBAAmB,CAAC,EAAE,K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ACpB,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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/auth/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { FormFieldConfig, FormValues } from '../../components/form';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\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"]}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/patterns/auth/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\n\nimport type { ButtonProps } from '../../components/button';\nimport type { FormFieldConfig, FormValues } from '../../components/form';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\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 interface OAuthProviderIconSpec {\n name: string;\n provider?: string;\n size?: number | string;\n color?: string;\n}\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"]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.6.0",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
package/src/index.ts
CHANGED
|
@@ -225,6 +225,11 @@ export type {
|
|
|
225
225
|
AuthIdentifierKind,
|
|
226
226
|
ForgotPasswordFormProps,
|
|
227
227
|
ForgotPasswordFormValues,
|
|
228
|
+
OAuthProviderButtonProps,
|
|
229
|
+
OAuthProviderIconSpec,
|
|
230
|
+
OAuthProviderItem,
|
|
231
|
+
OAuthProviderListLayout,
|
|
232
|
+
OAuthProviderListProps,
|
|
228
233
|
OtpFormProps,
|
|
229
234
|
OtpFormValues,
|
|
230
235
|
SignInFormProps,
|
|
@@ -233,7 +238,17 @@ export type {
|
|
|
233
238
|
SignUpFormProps,
|
|
234
239
|
SignUpFormValues,
|
|
235
240
|
} from './patterns/auth';
|
|
236
|
-
export {
|
|
241
|
+
export {
|
|
242
|
+
DEFAULT_OAUTH_PROVIDER_ICONS,
|
|
243
|
+
ForgotPasswordForm,
|
|
244
|
+
OAuthProviderButton,
|
|
245
|
+
OAuthProviderList,
|
|
246
|
+
OtpForm,
|
|
247
|
+
resolveOAuthProviderIcon,
|
|
248
|
+
resolveOAuthProviderLabel,
|
|
249
|
+
SignInForm,
|
|
250
|
+
SignUpForm,
|
|
251
|
+
} from './patterns/auth';
|
|
237
252
|
export type { ChatListAvatar, ChatListItemProps } from './patterns/chat-list-item';
|
|
238
253
|
export { ChatListItem } from './patterns/chat-list-item';
|
|
239
254
|
export type {
|
|
@@ -54,6 +54,8 @@ import { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';
|
|
|
54
54
|
import { topbarLayoutMeta } from '../layout/topbar-layout/meta';
|
|
55
55
|
import {
|
|
56
56
|
forgotPasswordFormMeta,
|
|
57
|
+
oauthProviderButtonMeta,
|
|
58
|
+
oauthProviderListMeta,
|
|
57
59
|
otpFormMeta,
|
|
58
60
|
signInFormMeta,
|
|
59
61
|
signUpFormMeta,
|
|
@@ -149,6 +151,8 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = {
|
|
|
149
151
|
SidebarLayout: sidebarLayoutMeta,
|
|
150
152
|
TopbarLayout: topbarLayoutMeta,
|
|
151
153
|
ForgotPasswordForm: forgotPasswordFormMeta,
|
|
154
|
+
OAuthProviderButton: oauthProviderButtonMeta,
|
|
155
|
+
OAuthProviderList: oauthProviderListMeta,
|
|
152
156
|
OtpForm: otpFormMeta,
|
|
153
157
|
SignInForm: signInFormMeta,
|
|
154
158
|
SignUpForm: signUpFormMeta,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Button } from '../../components/button';
|
|
4
|
+
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
+
import { resolveOAuthProviderIcon, resolveOAuthProviderLabel } from './oauthProviders';
|
|
6
|
+
import type { OAuthProviderButtonProps } from './types';
|
|
7
|
+
|
|
8
|
+
function OAuthProviderButtonInner({
|
|
9
|
+
themeId: _themeId,
|
|
10
|
+
mode: _mode,
|
|
11
|
+
providerId,
|
|
12
|
+
label,
|
|
13
|
+
icon,
|
|
14
|
+
disabled = false,
|
|
15
|
+
loading = false,
|
|
16
|
+
fullWidth = true,
|
|
17
|
+
size = 'l',
|
|
18
|
+
variant = 'outline',
|
|
19
|
+
color = 'neutral',
|
|
20
|
+
onPress,
|
|
21
|
+
testID,
|
|
22
|
+
}: OAuthProviderButtonProps) {
|
|
23
|
+
const resolvedIcon = icon ?? resolveOAuthProviderIcon(providerId);
|
|
24
|
+
const resolvedLabel = label ?? `Continue with ${resolveOAuthProviderLabel(providerId)}`;
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<Button
|
|
28
|
+
color={color}
|
|
29
|
+
disabled={disabled || loading || onPress === undefined}
|
|
30
|
+
fullWidth={fullWidth}
|
|
31
|
+
leadingIcon={resolvedIcon}
|
|
32
|
+
loading={loading}
|
|
33
|
+
onPress={() => {
|
|
34
|
+
void onPress?.(providerId);
|
|
35
|
+
}}
|
|
36
|
+
size={size}
|
|
37
|
+
testID={testID}
|
|
38
|
+
variant={variant}
|
|
39
|
+
>
|
|
40
|
+
{resolvedLabel}
|
|
41
|
+
</Button>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/***
|
|
46
|
+
* Renders a provider-branded OAuth action button without owning auth behavior.
|
|
47
|
+
*
|
|
48
|
+
* The component only renders UI and forwards the provider id through `onPress`.
|
|
49
|
+
* Adapters, redirects, and callback handling belong to app/runtime layers.
|
|
50
|
+
*/
|
|
51
|
+
export const OAuthProviderButton = withZoraThemeScope(OAuthProviderButtonInner);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Stack } from '../../foundation';
|
|
4
|
+
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
+
import { OAuthProviderButton } from './OAuthProviderButton';
|
|
6
|
+
import type { OAuthProviderListProps } from './types';
|
|
7
|
+
|
|
8
|
+
function OAuthProviderListInner({
|
|
9
|
+
themeId: _themeId,
|
|
10
|
+
mode: _mode,
|
|
11
|
+
providers,
|
|
12
|
+
disabled = false,
|
|
13
|
+
loading = false,
|
|
14
|
+
fullWidth,
|
|
15
|
+
layout = 'stack',
|
|
16
|
+
size,
|
|
17
|
+
variant,
|
|
18
|
+
color,
|
|
19
|
+
onProviderPress,
|
|
20
|
+
testID,
|
|
21
|
+
}: OAuthProviderListProps) {
|
|
22
|
+
const direction = layout === 'inline' ? 'row' : 'column';
|
|
23
|
+
const resolvedFullWidth = fullWidth ?? layout === 'stack';
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Stack
|
|
27
|
+
direction={direction}
|
|
28
|
+
gap="s"
|
|
29
|
+
testID={testID}
|
|
30
|
+
wrap={layout === 'inline' ? 'wrap' : undefined}
|
|
31
|
+
>
|
|
32
|
+
{providers.map((provider) => (
|
|
33
|
+
<OAuthProviderButton
|
|
34
|
+
color={color}
|
|
35
|
+
disabled={disabled || provider.disabled}
|
|
36
|
+
fullWidth={resolvedFullWidth}
|
|
37
|
+
icon={provider.icon}
|
|
38
|
+
key={provider.id}
|
|
39
|
+
label={provider.label}
|
|
40
|
+
loading={loading || provider.loading}
|
|
41
|
+
onPress={onProviderPress}
|
|
42
|
+
providerId={provider.id}
|
|
43
|
+
size={size}
|
|
44
|
+
variant={variant}
|
|
45
|
+
/>
|
|
46
|
+
))}
|
|
47
|
+
</Stack>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/***
|
|
52
|
+
* Renders a group of OAuth provider buttons for sign-in and auth settings flows.
|
|
53
|
+
*/
|
|
54
|
+
export const OAuthProviderList = withZoraThemeScope(OAuthProviderListInner);
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export { ForgotPasswordForm } from './ForgotPasswordForm';
|
|
2
|
+
export { OAuthProviderButton } from './OAuthProviderButton';
|
|
3
|
+
export { OAuthProviderList } from './OAuthProviderList';
|
|
4
|
+
export {
|
|
5
|
+
DEFAULT_OAUTH_PROVIDER_ICONS,
|
|
6
|
+
resolveOAuthProviderIcon,
|
|
7
|
+
resolveOAuthProviderLabel,
|
|
8
|
+
} from './oauthProviders';
|
|
2
9
|
export { OtpForm } from './OtpForm';
|
|
3
10
|
export { SignInForm } from './SignInForm';
|
|
4
11
|
export { SignUpForm } from './SignUpForm';
|
|
@@ -7,6 +14,11 @@ export type {
|
|
|
7
14
|
AuthIdentifierKind,
|
|
8
15
|
ForgotPasswordFormProps,
|
|
9
16
|
ForgotPasswordFormValues,
|
|
17
|
+
OAuthProviderButtonProps,
|
|
18
|
+
OAuthProviderIconSpec,
|
|
19
|
+
OAuthProviderItem,
|
|
20
|
+
OAuthProviderListLayout,
|
|
21
|
+
OAuthProviderListProps,
|
|
10
22
|
OtpFormProps,
|
|
11
23
|
OtpFormValues,
|
|
12
24
|
SignInFormProps,
|
|
@@ -11,6 +11,24 @@ export const forgotPasswordFormMeta = {
|
|
|
11
11
|
props: {},
|
|
12
12
|
} as const satisfies ZoraComponentMeta;
|
|
13
13
|
|
|
14
|
+
export const oauthProviderButtonMeta = {
|
|
15
|
+
name: 'OAuthProviderButton',
|
|
16
|
+
category: 'pattern',
|
|
17
|
+
directManifestNode: false,
|
|
18
|
+
allowedChildren: [],
|
|
19
|
+
note: AUTH_NOTE,
|
|
20
|
+
props: {},
|
|
21
|
+
} as const satisfies ZoraComponentMeta;
|
|
22
|
+
|
|
23
|
+
export const oauthProviderListMeta = {
|
|
24
|
+
name: 'OAuthProviderList',
|
|
25
|
+
category: 'pattern',
|
|
26
|
+
directManifestNode: false,
|
|
27
|
+
allowedChildren: [],
|
|
28
|
+
note: AUTH_NOTE,
|
|
29
|
+
props: {},
|
|
30
|
+
} as const satisfies ZoraComponentMeta;
|
|
31
|
+
|
|
14
32
|
export const otpFormMeta = {
|
|
15
33
|
name: 'OtpForm',
|
|
16
34
|
category: 'pattern',
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { describe, expect, it } from 'bun:test';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
DEFAULT_OAUTH_PROVIDER_ICONS,
|
|
5
|
+
resolveOAuthProviderIcon,
|
|
6
|
+
resolveOAuthProviderLabel,
|
|
7
|
+
} from './oauthProviders';
|
|
8
|
+
|
|
9
|
+
describe('OAuth provider UI helpers', () => {
|
|
10
|
+
it('resolves known provider labels', () => {
|
|
11
|
+
expect(resolveOAuthProviderLabel('google')).toBe('Google');
|
|
12
|
+
expect(resolveOAuthProviderLabel('github')).toBe('GitHub');
|
|
13
|
+
expect(resolveOAuthProviderLabel('linkedin')).toBe('LinkedIn');
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it('formats custom provider labels', () => {
|
|
17
|
+
expect(resolveOAuthProviderLabel('custom-sso')).toBe('Custom Sso');
|
|
18
|
+
expect(resolveOAuthProviderLabel(' enterprise_idp ')).toBe('Enterprise Idp');
|
|
19
|
+
expect(resolveOAuthProviderLabel('')).toBe('Provider');
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('resolves known provider icons', () => {
|
|
23
|
+
expect(resolveOAuthProviderIcon('google')).toEqual({ provider: 'FontAwesome', name: 'google' });
|
|
24
|
+
expect(resolveOAuthProviderIcon('github')).toEqual({ provider: 'FontAwesome', name: 'github' });
|
|
25
|
+
expect(DEFAULT_OAUTH_PROVIDER_ICONS.apple).toEqual({ provider: 'FontAwesome', name: 'apple' });
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it('returns undefined for custom provider icons', () => {
|
|
29
|
+
expect(resolveOAuthProviderIcon('custom-sso')).toBeUndefined();
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { OAuthProviderIconSpec } from './types';
|
|
2
|
+
|
|
3
|
+
export const DEFAULT_OAUTH_PROVIDER_ICONS = {
|
|
4
|
+
apple: { provider: 'FontAwesome', name: 'apple' },
|
|
5
|
+
azure: { provider: 'FontAwesome5', name: 'microsoft' },
|
|
6
|
+
bitbucket: { provider: 'FontAwesome', name: 'bitbucket' },
|
|
7
|
+
discord: { provider: 'FontAwesome5', name: 'discord' },
|
|
8
|
+
facebook: { provider: 'FontAwesome', name: 'facebook' },
|
|
9
|
+
figma: { provider: 'FontAwesome5', name: 'figma' },
|
|
10
|
+
github: { provider: 'FontAwesome', name: 'github' },
|
|
11
|
+
gitlab: { provider: 'FontAwesome5', name: 'gitlab' },
|
|
12
|
+
google: { provider: 'FontAwesome', name: 'google' },
|
|
13
|
+
linkedin: { provider: 'FontAwesome', name: 'linkedin' },
|
|
14
|
+
microsoft: { provider: 'FontAwesome5', name: 'microsoft' },
|
|
15
|
+
slack: { provider: 'FontAwesome5', name: 'slack' },
|
|
16
|
+
spotify: { provider: 'FontAwesome', name: 'spotify' },
|
|
17
|
+
twitch: { provider: 'FontAwesome5', name: 'twitch' },
|
|
18
|
+
twitter: { provider: 'FontAwesome', name: 'twitter' },
|
|
19
|
+
x: { provider: 'FontAwesome6', name: 'x-twitter' },
|
|
20
|
+
zoom: { provider: 'FontAwesome5', name: 'video' },
|
|
21
|
+
} as const satisfies Record<string, OAuthProviderIconSpec>;
|
|
22
|
+
|
|
23
|
+
const DEFAULT_OAUTH_PROVIDER_LABELS = {
|
|
24
|
+
apple: 'Apple',
|
|
25
|
+
azure: 'Microsoft',
|
|
26
|
+
bitbucket: 'Bitbucket',
|
|
27
|
+
discord: 'Discord',
|
|
28
|
+
facebook: 'Facebook',
|
|
29
|
+
figma: 'Figma',
|
|
30
|
+
github: 'GitHub',
|
|
31
|
+
gitlab: 'GitLab',
|
|
32
|
+
google: 'Google',
|
|
33
|
+
kakao: 'Kakao',
|
|
34
|
+
keycloak: 'Keycloak',
|
|
35
|
+
linkedin: 'LinkedIn',
|
|
36
|
+
microsoft: 'Microsoft',
|
|
37
|
+
notion: 'Notion',
|
|
38
|
+
slack: 'Slack',
|
|
39
|
+
spotify: 'Spotify',
|
|
40
|
+
twitch: 'Twitch',
|
|
41
|
+
twitter: 'Twitter',
|
|
42
|
+
workos: 'WorkOS',
|
|
43
|
+
x: 'X',
|
|
44
|
+
zoom: 'Zoom',
|
|
45
|
+
} as const satisfies Record<string, string>;
|
|
46
|
+
|
|
47
|
+
const oauthProviderLabels: Partial<Record<string, string>> = DEFAULT_OAUTH_PROVIDER_LABELS;
|
|
48
|
+
|
|
49
|
+
export function resolveOAuthProviderIcon(providerId: string): OAuthProviderIconSpec | undefined {
|
|
50
|
+
const normalizedProviderId = normalizeOAuthProviderId(providerId);
|
|
51
|
+
|
|
52
|
+
return DEFAULT_OAUTH_PROVIDER_ICONS[
|
|
53
|
+
normalizedProviderId as keyof typeof DEFAULT_OAUTH_PROVIDER_ICONS
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function resolveOAuthProviderLabel(providerId: string): string {
|
|
58
|
+
const normalizedProviderId = normalizeOAuthProviderId(providerId);
|
|
59
|
+
const knownLabel = oauthProviderLabels[normalizedProviderId];
|
|
60
|
+
|
|
61
|
+
return knownLabel ?? titleCaseProviderId(normalizedProviderId);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function normalizeOAuthProviderId(providerId: string): string {
|
|
65
|
+
return providerId.trim().toLowerCase();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function titleCaseProviderId(providerId: string): string {
|
|
69
|
+
const words = providerId
|
|
70
|
+
.split(/[-_\s]+/u)
|
|
71
|
+
.map((word) => word.trim())
|
|
72
|
+
.filter((word) => word.length > 0);
|
|
73
|
+
|
|
74
|
+
if (words.length === 0) {
|
|
75
|
+
return 'Provider';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return words.map((word) => `${word.charAt(0).toUpperCase()}${word.slice(1)}`).join(' ');
|
|
79
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
+
import type { ButtonProps } from '../../components/button';
|
|
3
4
|
import type { FormFieldConfig, FormValues } from '../../components/form';
|
|
4
5
|
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
5
6
|
|
|
@@ -65,3 +66,45 @@ export interface OtpFormProps extends AuthFormBaseProps {
|
|
|
65
66
|
onSubmit: (values: OtpFormValues) => void | Promise<void>;
|
|
66
67
|
onResend?: () => void | Promise<void>;
|
|
67
68
|
}
|
|
69
|
+
|
|
70
|
+
export interface OAuthProviderIconSpec {
|
|
71
|
+
name: string;
|
|
72
|
+
provider?: string;
|
|
73
|
+
size?: number | string;
|
|
74
|
+
color?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface OAuthProviderItem {
|
|
78
|
+
id: string;
|
|
79
|
+
label?: React.ReactNode;
|
|
80
|
+
icon?: OAuthProviderIconSpec;
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
loading?: boolean;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface OAuthProviderButtonProps extends ZoraBaseProps {
|
|
86
|
+
providerId: string;
|
|
87
|
+
label?: React.ReactNode;
|
|
88
|
+
icon?: OAuthProviderIconSpec;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
loading?: boolean;
|
|
91
|
+
fullWidth?: boolean;
|
|
92
|
+
size?: ButtonProps['size'];
|
|
93
|
+
variant?: ButtonProps['variant'];
|
|
94
|
+
color?: ButtonProps['color'];
|
|
95
|
+
onPress?: (providerId: string) => void | Promise<void>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type OAuthProviderListLayout = 'stack' | 'inline';
|
|
99
|
+
|
|
100
|
+
export interface OAuthProviderListProps extends ZoraBaseProps {
|
|
101
|
+
providers: readonly OAuthProviderItem[];
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
loading?: boolean;
|
|
104
|
+
fullWidth?: boolean;
|
|
105
|
+
layout?: OAuthProviderListLayout;
|
|
106
|
+
size?: ButtonProps['size'];
|
|
107
|
+
variant?: ButtonProps['variant'];
|
|
108
|
+
color?: ButtonProps['color'];
|
|
109
|
+
onProviderPress?: (providerId: string) => void | Promise<void>;
|
|
110
|
+
}
|