@ankhorage/zora 23.0.0 → 23.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/constants/authoring.d.ts +4 -4
- package/dist/constants/authoring.d.ts.map +1 -1
- package/dist/constants/authoring.js +2 -0
- package/dist/constants/authoring.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/AuthScreen.d.ts +10 -0
- package/dist/features/auth/adapters/inbound/AuthScreen.d.ts.map +1 -0
- package/dist/features/auth/adapters/inbound/AuthScreen.js +67 -0
- package/dist/features/auth/adapters/inbound/AuthScreen.js.map +1 -0
- package/dist/features/auth/authScreenMeta.d.ts +204 -0
- package/dist/features/auth/authScreenMeta.d.ts.map +1 -0
- package/dist/features/auth/authScreenMeta.js +112 -0
- package/dist/features/auth/authScreenMeta.js.map +1 -0
- package/dist/features/auth/public.d.ts +2 -1
- package/dist/features/auth/public.d.ts.map +1 -1
- package/dist/features/auth/public.js +1 -0
- package/dist/features/auth/public.js.map +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/chat/messageBubbleMeta.d.ts +1 -1
- package/dist/features/dialog/dialogMeta.d.ts +2 -2
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/screenMeta.d.ts +1 -1
- package/dist/features/layout/scrollViewMeta.d.ts +1 -1
- package/dist/features/layout/viewMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/reader/meta.d.ts +2 -2
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.d.ts.map +1 -1
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js +2 -1
- package/dist/features/registry/ZORA_COMPONENT_REGISTRY.js.map +1 -1
- package/dist/features/registry/bindableComponentMeta.d.ts +2 -2
- package/dist/features/registry/componentMeta.d.ts.map +1 -1
- package/dist/features/registry/componentMeta.js +2 -0
- package/dist/features/registry/componentMeta.js.map +1 -1
- package/dist/features/scanner/meta.d.ts +2 -2
- package/dist/features/section/screenSectionMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/tabPanelMeta.d.ts +1 -1
- package/dist/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/types/auth.d.ts +19 -0
- package/dist/types/auth.d.ts.map +1 -1
- package/dist/types/auth.js.map +1 -1
- package/package.json +2 -2
- package/src/constants/authoring.ts +2 -0
- package/src/features/auth/adapters/inbound/AuthScreen.tsx +202 -0
- package/src/features/auth/authScreenMeta.ts +114 -0
- package/src/features/auth/public.test.ts +6 -0
- package/src/features/auth/public.ts +3 -0
- package/src/features/registry/ZORA_COMPONENT_REGISTRY.ts +2 -0
- package/src/features/registry/componentMeta.test.ts +1 -0
- package/src/features/registry/componentMeta.ts +2 -0
- package/src/index.ts +3 -0
- package/src/showcaseCoverage.test.ts +1 -0
- package/src/types/auth.ts +21 -0
- package/web-dist/chunks/{Accordion-q165k3az.js → Accordion-2ak69ntj.js} +9 -9
- package/web-dist/chunks/{Accordion-rx2gzadh.js → Accordion-46vwm9xv.js} +2 -2
- package/web-dist/chunks/{Accordion-xf8cj8z4.js → Accordion-4r9a9qny.js} +3 -3
- package/web-dist/chunks/{Accordion-w0k7gnn9.js → Accordion-5pskbqss.js} +5 -5
- package/web-dist/chunks/{Accordion-09se459d.js → Accordion-8xdet564.js} +13 -13
- package/web-dist/chunks/{Accordion-czmnsspb.js → Accordion-9n7h9hag.js} +6 -6
- package/web-dist/chunks/{Accordion-x1dg1f47.js → Accordion-b9myvfep.js} +3 -3
- package/web-dist/chunks/{Accordion-rspy7gjb.js → Accordion-bmp1ab7m.js} +494 -301
- package/web-dist/chunks/{Accordion-x13vca75.js → Accordion-cqgbx1pw.js} +3 -3
- package/web-dist/chunks/{Accordion-e633pb7z.js → Accordion-cydzrpk2.js} +1 -1
- package/web-dist/chunks/{Accordion-89q14src.js → Accordion-ejns5mga.js} +4 -4
- package/web-dist/chunks/{Accordion-f1t3rzgg.js → Accordion-ejy7gr0a.js} +4 -4
- package/web-dist/chunks/{Accordion-83hfn3y4.js → Accordion-f2mfgcx6.js} +13 -13
- package/web-dist/chunks/{Accordion-bsy1jrak.js → Accordion-ff583p4q.js} +2 -2
- package/web-dist/chunks/{Accordion-k7wwyx5x.js → Accordion-jksn8783.js} +3 -3
- package/web-dist/chunks/{Accordion-w7jv9y5t.js → Accordion-jnwa02s7.js} +2 -2
- package/web-dist/chunks/{Accordion-gkzhd3zk.js → Accordion-kmv2fp6m.js} +4 -4
- package/web-dist/chunks/{Accordion-cn8tbdvk.js → Accordion-mm4kx13n.js} +8 -8
- package/web-dist/chunks/{Accordion-b3ymabze.js → Accordion-nggjwm07.js} +3 -3
- package/web-dist/chunks/{Accordion-zx0jc0kg.js → Accordion-qb8ppq9t.js} +5 -5
- package/web-dist/chunks/Accordion-r23sx4gf.js +34 -0
- package/web-dist/chunks/{Accordion-q3z741vt.js → Accordion-rev0zb75.js} +4 -4
- package/web-dist/chunks/{Accordion-w1afjp87.js → Accordion-rnjt5z4y.js} +17 -17
- package/web-dist/chunks/{Accordion-swys7qts.js → Accordion-tyqds4zr.js} +4 -4
- package/web-dist/chunks/{Accordion-xzd0tx46.js → Accordion-v166qr59.js} +3 -3
- package/web-dist/chunks/{Accordion-gj63vb6b.js → Accordion-xw1gkpfk.js} +3 -3
- package/web-dist/chunks/{Accordion-dp638q63.js → Accordion-yms7x22j.js} +7 -7
- package/web-dist/chunks/{Accordion-fm3jxs1f.js → Accordion-z1trs7s1.js} +22 -22
- package/web-dist/chunks/{Accordion-5qmfa7vr.js → Accordion-z8h1hn96.js} +5 -5
- package/web-dist/components/accordion/Accordion.js +2 -2
- package/web-dist/components/accordion-item/AccordionItem.js +2 -2
- package/web-dist/components/app-bar/AppBar.js +6 -6
- package/web-dist/components/auth-screen/AuthScreen.d.ts +9 -0
- package/web-dist/components/auth-screen/AuthScreen.js +43 -0
- package/web-dist/components/auth-screen/index.d.ts +1 -0
- package/web-dist/components/auth-screen/index.js +2 -0
- package/web-dist/components/avatar/Avatar.js +2 -2
- package/web-dist/components/avatar-group/AvatarGroup.js +2 -2
- package/web-dist/components/badge/Badge.js +2 -2
- package/web-dist/components/barcode-scanner-view/BarcodeScannerView.js +8 -8
- package/web-dist/components/breadcrumbs/Breadcrumbs.js +8 -8
- package/web-dist/components/button/Button.js +3 -3
- package/web-dist/components/button-group/ButtonGroup.js +3 -3
- package/web-dist/components/camera-permission-view/CameraPermissionView.js +8 -8
- package/web-dist/components/card/Card.js +7 -7
- package/web-dist/components/chat-list-item/ChatListItem.js +6 -6
- package/web-dist/components/checkbox/Checkbox.js +4 -4
- package/web-dist/components/checkbox-group/CheckboxGroup.js +4 -4
- package/web-dist/components/chip/Chip.js +2 -2
- package/web-dist/components/chip-group/ChipGroup.js +2 -2
- package/web-dist/components/collection-editor/CollectionEditor.js +9 -9
- package/web-dist/components/content-rail/ContentRail.js +6 -6
- package/web-dist/components/data-table/DataTable.js +18 -18
- package/web-dist/components/date-picker/DatePicker.js +12 -12
- package/web-dist/components/dialog/Dialog.js +3 -3
- package/web-dist/components/empty-state/EmptyState.js +8 -8
- package/web-dist/components/field/Field.js +5 -5
- package/web-dist/components/flat-list/FlatList.js +5 -5
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.d.ts +1 -0
- package/web-dist/components/forgot-password-form/ForgotPasswordForm.js +21 -16
- package/web-dist/components/form/Form.js +7 -7
- package/web-dist/components/form-actions/FormActions.js +7 -7
- package/web-dist/components/form-error/FormError.js +7 -7
- package/web-dist/components/heading/Heading.js +3 -3
- package/web-dist/components/hero/Hero.js +10 -10
- package/web-dist/components/icon-button/IconButton.js +3 -3
- package/web-dist/components/keyboard-avoiding-view/KeyboardAvoidingView.js +5 -32
- package/web-dist/components/list/List.js +5 -5
- package/web-dist/components/list-item/ListItem.js +5 -5
- package/web-dist/components/list-section/ListSection.js +5 -5
- package/web-dist/components/media-card/MediaCard.js +7 -7
- package/web-dist/components/message-bubble/MessageBubble.js +6 -6
- package/web-dist/components/metric-card/MetricCard.js +7 -7
- package/web-dist/components/missing-element/MissingElement.js +8 -8
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.d.ts +1 -0
- package/web-dist/components/o-auth-provider-button/OAuthProviderButton.js +21 -16
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.d.ts +1 -0
- package/web-dist/components/o-auth-provider-list/OAuthProviderList.js +21 -16
- package/web-dist/components/otp-form/OtpForm.d.ts +1 -0
- package/web-dist/components/otp-form/OtpForm.js +21 -16
- package/web-dist/components/pagination/Pagination.js +6 -6
- package/web-dist/components/palette-item/PaletteItem.js +9 -9
- package/web-dist/components/popover-menu/PopoverMenu.js +3 -3
- package/web-dist/components/post-card/PostCard.js +7 -7
- package/web-dist/components/product-card/ProductCard.js +7 -7
- package/web-dist/components/progress/Progress.js +2 -2
- package/web-dist/components/progress-ring/ProgressRing.js +2 -2
- package/web-dist/components/radio/Radio.js +4 -4
- package/web-dist/components/radio-group/RadioGroup.js +4 -4
- package/web-dist/components/reader-surface/ReaderSurface.js +11 -11
- package/web-dist/components/scan-overlay/ScanOverlay.js +8 -8
- package/web-dist/components/screen-section/ScreenSection.js +2 -2
- package/web-dist/components/search-input/SearchInput.js +4 -4
- package/web-dist/components/section-header/SectionHeader.js +2 -2
- package/web-dist/components/section-list/SectionList.js +5 -5
- package/web-dist/components/select/Select.js +4 -4
- package/web-dist/components/sign-in-form/SignInForm.d.ts +1 -0
- package/web-dist/components/sign-in-form/SignInForm.js +21 -16
- package/web-dist/components/sign-up-form/SignUpForm.d.ts +1 -0
- package/web-dist/components/sign-up-form/SignUpForm.js +21 -16
- package/web-dist/components/skeleton/Skeleton.js +10 -10
- package/web-dist/components/skeleton-card/SkeletonCard.js +10 -10
- package/web-dist/components/skeleton-list/SkeletonList.js +10 -10
- package/web-dist/components/skeleton-text/SkeletonText.js +10 -10
- package/web-dist/components/switch/Switch.js +3 -3
- package/web-dist/components/tab/Tab.js +2 -2
- package/web-dist/components/tab-list/TabList.js +2 -2
- package/web-dist/components/tab-panel/TabPanel.js +2 -2
- package/web-dist/components/tabs/Tabs.js +2 -2
- package/web-dist/components/text/Text.js +3 -3
- package/web-dist/components/text-input/TextInput.js +4 -4
- package/web-dist/components/time-picker/TimePicker.js +10 -10
- package/web-dist/components/timeline/Timeline.js +4 -4
- package/web-dist/components/toast/Toast.js +3 -3
- package/web-dist/components/toast-provider/ToastProvider.js +3 -3
- package/web-dist/components/toolbar/Toolbar.js +7 -7
- package/web-dist/components/tree-item/TreeItem.js +6 -6
- package/web-dist/components/uploader/Uploader.js +15 -15
- package/web-dist/manifest.json +444 -384
- package/web-dist/runtime/ZoraProvider.js +3 -3
|
@@ -6,6 +6,7 @@ import { Accordion, AccordionItem } from '../accordion/public';
|
|
|
6
6
|
import { ActivityIndicator } from '../activity-indicator/public';
|
|
7
7
|
import { AppBar } from '../app-bar/public';
|
|
8
8
|
import {
|
|
9
|
+
AuthScreen,
|
|
9
10
|
ForgotPasswordForm,
|
|
10
11
|
OAuthProviderButton,
|
|
11
12
|
OAuthProviderList,
|
|
@@ -175,6 +176,7 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
175
176
|
AppShell,
|
|
176
177
|
Screen,
|
|
177
178
|
ScreenSection,
|
|
179
|
+
AuthScreen,
|
|
178
180
|
ForgotPasswordForm,
|
|
179
181
|
OAuthProviderButton,
|
|
180
182
|
OAuthProviderList,
|
|
@@ -166,6 +166,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
166
166
|
test('direct manifest node leaf/container rules', () => {
|
|
167
167
|
const expectedLeafNodes = new Set([
|
|
168
168
|
'ActivityIndicator',
|
|
169
|
+
'AuthScreen',
|
|
169
170
|
'ForgotPasswordForm',
|
|
170
171
|
'OAuthProviderButton',
|
|
171
172
|
'OAuthProviderList',
|
|
@@ -3,6 +3,7 @@ import { accordionItemMeta } from '../accordion/accordionItemMeta';
|
|
|
3
3
|
import { accordionMeta } from '../accordion/accordionMeta';
|
|
4
4
|
import { activityIndicatorMeta } from '../activity-indicator/activityIndicatorMeta';
|
|
5
5
|
import { appBarMeta } from '../app-bar/appBarMeta';
|
|
6
|
+
import { authScreenMeta } from '../auth/authScreenMeta';
|
|
6
7
|
import { forgotPasswordFormMeta } from '../auth/forgotPasswordFormMeta';
|
|
7
8
|
import { oauthProviderButtonMeta } from '../auth/oauthProviderButtonMeta';
|
|
8
9
|
import { oauthProviderListMeta } from '../auth/oauthProviderListMeta';
|
|
@@ -178,6 +179,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
178
179
|
AppShell: appShellMeta,
|
|
179
180
|
Screen: screenMeta,
|
|
180
181
|
ScreenSection: screenSectionMeta,
|
|
182
|
+
AuthScreen: authScreenMeta,
|
|
181
183
|
ForgotPasswordForm: forgotPasswordFormMeta,
|
|
182
184
|
OAuthProviderButton: oauthProviderButtonMeta,
|
|
183
185
|
OAuthProviderList: oauthProviderListMeta,
|
package/src/index.ts
CHANGED
|
@@ -16,6 +16,8 @@ export { AppBar } from './features/app-bar/public';
|
|
|
16
16
|
export type {
|
|
17
17
|
AuthFormBaseProps,
|
|
18
18
|
AuthIdentifierKind,
|
|
19
|
+
AuthScreenMode,
|
|
20
|
+
AuthScreenProps,
|
|
19
21
|
ForgotPasswordFormProps,
|
|
20
22
|
ForgotPasswordFormValues,
|
|
21
23
|
OAuthProviderButtonProps,
|
|
@@ -32,6 +34,7 @@ export type {
|
|
|
32
34
|
SignUpFormValues,
|
|
33
35
|
} from './features/auth/public';
|
|
34
36
|
export {
|
|
37
|
+
AuthScreen,
|
|
35
38
|
DEFAULT_OAUTH_PROVIDER_ICONS,
|
|
36
39
|
ForgotPasswordForm,
|
|
37
40
|
OAuthProviderButton,
|
package/src/types/auth.ts
CHANGED
|
@@ -7,6 +7,27 @@ import type { FormFieldConfig, FormValues } from './form';
|
|
|
7
7
|
|
|
8
8
|
export type AuthIdentifierKind = 'email' | 'phone' | 'username';
|
|
9
9
|
|
|
10
|
+
export type AuthScreenMode = 'signIn' | 'signUp';
|
|
11
|
+
|
|
12
|
+
export interface AuthScreenProps extends ZoraBaseProps {
|
|
13
|
+
authMode: AuthScreenMode;
|
|
14
|
+
title?: React.ReactNode;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
info?: React.ReactNode;
|
|
17
|
+
error?: React.ReactNode;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
identifiers?: readonly AuthIdentifierKind[];
|
|
21
|
+
identifierLabel?: React.ReactNode;
|
|
22
|
+
signUpFields?: readonly SignUpFormField[];
|
|
23
|
+
oauthProviders?: readonly OAuthProviderItem[];
|
|
24
|
+
oauthSeparatorLabel?: React.ReactNode;
|
|
25
|
+
onModeChange?: (mode: AuthScreenMode) => void | Promise<void>;
|
|
26
|
+
onOAuthProviderPress?: (providerId: string) => void | Promise<void>;
|
|
27
|
+
onSignInSubmit?: (values: SignInFormValues) => void | Promise<void>;
|
|
28
|
+
onSignUpSubmit?: (values: SignUpFormValues) => void | Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
|
|
10
31
|
export interface AuthFormBaseProps extends ZoraBaseProps {
|
|
11
32
|
loading?: boolean;
|
|
12
33
|
disabled?: boolean;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./Accordion-7hn324r1.js";
|
|
5
5
|
import {
|
|
6
6
|
Button2
|
|
7
|
-
} from "./Accordion-
|
|
7
|
+
} from "./Accordion-yms7x22j.js";
|
|
8
8
|
import {
|
|
9
9
|
withZoraThemeScope
|
|
10
10
|
} from "./Accordion-13y3zx87.js";
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
} from "./Accordion-01e56hb5.js";
|
|
14
14
|
import {
|
|
15
15
|
Card2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-z1trs7s1.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./Accordion-
|
|
18
|
+
Text3
|
|
19
|
+
} from "./Accordion-46vwm9xv.js";
|
|
20
20
|
import {
|
|
21
21
|
Badge2
|
|
22
|
-
} from "./Accordion-
|
|
22
|
+
} from "./Accordion-cqgbx1pw.js";
|
|
23
23
|
import {
|
|
24
24
|
useZoraTheme2
|
|
25
25
|
} from "./Accordion-7zfskq1s.js";
|
|
@@ -82,7 +82,7 @@ function CameraPermissionViewInner({
|
|
|
82
82
|
children: /* @__PURE__ */ jsxs(View2, {
|
|
83
83
|
gap: "m",
|
|
84
84
|
children: [
|
|
85
|
-
/* @__PURE__ */ jsxs(
|
|
85
|
+
/* @__PURE__ */ jsxs(Text3, {
|
|
86
86
|
emphasis: "muted",
|
|
87
87
|
variant: "bodySmall",
|
|
88
88
|
children: [
|
|
@@ -167,13 +167,13 @@ function ScanOverlayInner({
|
|
|
167
167
|
/* @__PURE__ */ jsxs2(View2, {
|
|
168
168
|
gap: "xs",
|
|
169
169
|
children: [
|
|
170
|
-
/* @__PURE__ */ jsx2(
|
|
170
|
+
/* @__PURE__ */ jsx2(Text3, {
|
|
171
171
|
align: "center",
|
|
172
172
|
variant: "label",
|
|
173
173
|
weight: "semiBold",
|
|
174
174
|
children: title
|
|
175
175
|
}),
|
|
176
|
-
/* @__PURE__ */ jsx2(
|
|
176
|
+
/* @__PURE__ */ jsx2(Text3, {
|
|
177
177
|
align: "center",
|
|
178
178
|
emphasis: "muted",
|
|
179
179
|
variant: "bodySmall",
|
|
@@ -304,7 +304,7 @@ function BarcodeScannerViewInner({
|
|
|
304
304
|
children ? /* @__PURE__ */ jsx3(View2, {
|
|
305
305
|
children
|
|
306
306
|
}) : null,
|
|
307
|
-
/* @__PURE__ */ jsx3(
|
|
307
|
+
/* @__PURE__ */ jsx3(Text3, {
|
|
308
308
|
emphasis: "muted",
|
|
309
309
|
variant: "caption",
|
|
310
310
|
children: "Native scanning belongs to an app adapter such as expo-camera. ZORA owns this visible scanner surface."
|
|
@@ -577,7 +577,7 @@ var textThemeRecipeMeta = {
|
|
|
577
577
|
|
|
578
578
|
// src/features/typography/adapters/inbound/Text.tsx
|
|
579
579
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
580
|
-
var
|
|
580
|
+
var Text3 = withZoraThemeScope(TextInner);
|
|
581
581
|
var textLayoutStyle = {
|
|
582
582
|
flexShrink: 1,
|
|
583
583
|
maxWidth: "100%",
|
|
@@ -656,4 +656,4 @@ function TextInner({
|
|
|
656
656
|
children: content
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
export { Heading2,
|
|
659
|
+
export { Heading2, Text3 };
|
|
@@ -24,8 +24,8 @@ import {
|
|
|
24
24
|
} from "./Accordion-01e56hb5.js";
|
|
25
25
|
import {
|
|
26
26
|
Heading2,
|
|
27
|
-
|
|
28
|
-
} from "./Accordion-
|
|
27
|
+
Text3
|
|
28
|
+
} from "./Accordion-46vwm9xv.js";
|
|
29
29
|
import {
|
|
30
30
|
resolveOverlayAnimation
|
|
31
31
|
} from "./Accordion-2d8xn32m.js";
|
|
@@ -158,7 +158,7 @@ function DialogInner({
|
|
|
158
158
|
level: 3,
|
|
159
159
|
children: title
|
|
160
160
|
}) : null,
|
|
161
|
-
description !== undefined ? /* @__PURE__ */ jsx2(
|
|
161
|
+
description !== undefined ? /* @__PURE__ */ jsx2(Text3, {
|
|
162
162
|
emphasis: "muted",
|
|
163
163
|
variant: "bodySmall",
|
|
164
164
|
children: description
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
Field3
|
|
4
|
-
} from "./Accordion-
|
|
4
|
+
} from "./Accordion-qb8ppq9t.js";
|
|
5
5
|
import {
|
|
6
6
|
withZoraThemeScope
|
|
7
7
|
} from "./Accordion-13y3zx87.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
View2
|
|
10
10
|
} from "./Accordion-01e56hb5.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./Accordion-
|
|
12
|
+
Text3
|
|
13
|
+
} from "./Accordion-46vwm9xv.js";
|
|
14
14
|
|
|
15
15
|
// src/features/form/field/adapters/inbound/Field.tsx
|
|
16
16
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -30,12 +30,12 @@ function FieldInner({
|
|
|
30
30
|
label: /* @__PURE__ */ jsxs(View2, {
|
|
31
31
|
gap: "xs",
|
|
32
32
|
children: [
|
|
33
|
-
/* @__PURE__ */ jsx(
|
|
33
|
+
/* @__PURE__ */ jsx(Text3, {
|
|
34
34
|
variant: "label",
|
|
35
35
|
weight: "semiBold",
|
|
36
36
|
children: label
|
|
37
37
|
}),
|
|
38
|
-
description ? /* @__PURE__ */ jsx(
|
|
38
|
+
description ? /* @__PURE__ */ jsx(Text3, {
|
|
39
39
|
emphasis: "muted",
|
|
40
40
|
variant: "bodySmall",
|
|
41
41
|
children: description
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
Pressable
|
|
14
14
|
} from "./Accordion-cdppbyad.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./Accordion-
|
|
16
|
+
Text2
|
|
17
|
+
} from "./Accordion-ff583p4q.js";
|
|
18
18
|
import {
|
|
19
19
|
withZoraThemeScope
|
|
20
20
|
} from "./Accordion-13y3zx87.js";
|
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
View2
|
|
23
23
|
} from "./Accordion-01e56hb5.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./Accordion-
|
|
25
|
+
Text3
|
|
26
|
+
} from "./Accordion-46vwm9xv.js";
|
|
27
27
|
import {
|
|
28
28
|
Icon2
|
|
29
29
|
} from "./Accordion-x4rjd7yn.js";
|
|
30
|
-
import {
|
|
31
|
-
useZoraThemeRecipe,
|
|
32
|
-
ZORA_COLORS
|
|
33
|
-
} from "./Accordion-e1nn8m46.js";
|
|
34
30
|
import {
|
|
35
31
|
resolveFieldState,
|
|
36
32
|
resolveIndicatorSize,
|
|
37
33
|
resolveSelectionControlNextChecked,
|
|
38
34
|
resolveSelectionControlColors
|
|
39
35
|
} from "./Accordion-2d8xn32m.js";
|
|
36
|
+
import {
|
|
37
|
+
useZoraThemeRecipe,
|
|
38
|
+
ZORA_COLORS
|
|
39
|
+
} from "./Accordion-e1nn8m46.js";
|
|
40
40
|
import {
|
|
41
41
|
__toESM
|
|
42
42
|
} from "./Accordion-9qvmwkxe.js";
|
|
@@ -156,7 +156,7 @@ function renderRadioContent(input) {
|
|
|
156
156
|
hasContent ? /* @__PURE__ */ jsx(View3, {
|
|
157
157
|
flex: 1,
|
|
158
158
|
ml: "s",
|
|
159
|
-
children: isRadioTextContent(input.children) ? /* @__PURE__ */ jsx(
|
|
159
|
+
children: isRadioTextContent(input.children) ? /* @__PURE__ */ jsx(Text2, {
|
|
160
160
|
emphasis: labelEmphasis,
|
|
161
161
|
children: input.children
|
|
162
162
|
}) : input.children
|
|
@@ -404,13 +404,13 @@ function RadioOptionControlContent({
|
|
|
404
404
|
/* @__PURE__ */ jsxs2(import_react_native.View, {
|
|
405
405
|
style: layout === "horizontal" ? styles.label : styles.centerLabel,
|
|
406
406
|
children: [
|
|
407
|
-
/* @__PURE__ */ jsx3(
|
|
407
|
+
/* @__PURE__ */ jsx3(Text3, {
|
|
408
408
|
variant: size === "l" ? "body" : "bodySmall",
|
|
409
409
|
weight: "semiBold",
|
|
410
410
|
align: layout === "vertical" || !option.iconSource ? "center" : "left",
|
|
411
411
|
children: option.label
|
|
412
412
|
}),
|
|
413
|
-
option.description ? /* @__PURE__ */ jsx3(
|
|
413
|
+
option.description ? /* @__PURE__ */ jsx3(Text3, {
|
|
414
414
|
emphasis: "muted",
|
|
415
415
|
variant: "bodySmall",
|
|
416
416
|
align: layout === "vertical" || !option.iconSource ? "center" : "left",
|
|
@@ -562,10 +562,10 @@ function RadioGroupItem(props) {
|
|
|
562
562
|
children: /* @__PURE__ */ jsxs3(View2, {
|
|
563
563
|
gap: "xs",
|
|
564
564
|
children: [
|
|
565
|
-
/* @__PURE__ */ jsx4(
|
|
565
|
+
/* @__PURE__ */ jsx4(Text3, {
|
|
566
566
|
children: option.label
|
|
567
567
|
}),
|
|
568
|
-
option.description ? /* @__PURE__ */ jsx4(
|
|
568
|
+
option.description ? /* @__PURE__ */ jsx4(Text3, {
|
|
569
569
|
emphasis: "muted",
|
|
570
570
|
variant: "caption",
|
|
571
571
|
children: option.description
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./Accordion-7hn324r1.js";
|
|
10
10
|
import {
|
|
11
11
|
IconButton2
|
|
12
|
-
} from "./Accordion-
|
|
12
|
+
} from "./Accordion-yms7x22j.js";
|
|
13
13
|
import {
|
|
14
14
|
withZoraThemeScope
|
|
15
15
|
} from "./Accordion-13y3zx87.js";
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
} from "./Accordion-01e56hb5.js";
|
|
19
19
|
import {
|
|
20
20
|
PopoverMenu2
|
|
21
|
-
} from "./Accordion-
|
|
21
|
+
} from "./Accordion-kmv2fp6m.js";
|
|
22
22
|
import {
|
|
23
23
|
Heading2,
|
|
24
|
-
|
|
25
|
-
} from "./Accordion-
|
|
24
|
+
Text3
|
|
25
|
+
} from "./Accordion-46vwm9xv.js";
|
|
26
26
|
import {
|
|
27
27
|
useZoraTheme2
|
|
28
28
|
} from "./Accordion-7zfskq1s.js";
|
|
@@ -243,7 +243,7 @@ function resolveCenter({
|
|
|
243
243
|
if (children !== undefined)
|
|
244
244
|
return children;
|
|
245
245
|
if (isSelectionMode && resolvedMode.type === "selection") {
|
|
246
|
-
return /* @__PURE__ */ jsx2(
|
|
246
|
+
return /* @__PURE__ */ jsx2(Text3, {
|
|
247
247
|
emphasis: "default",
|
|
248
248
|
numberOfLines: 1,
|
|
249
249
|
variant: "label",
|
|
@@ -263,7 +263,7 @@ function resolveCenter({
|
|
|
263
263
|
size: "h5",
|
|
264
264
|
children: title
|
|
265
265
|
}) : null,
|
|
266
|
-
subtitle != null ? /* @__PURE__ */ jsx2(
|
|
266
|
+
subtitle != null ? /* @__PURE__ */ jsx2(Text3, {
|
|
267
267
|
ellipsizeMode: "tail",
|
|
268
268
|
emphasis: "muted",
|
|
269
269
|
numberOfLines: 1,
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
} from "./Accordion-01e56hb5.js";
|
|
8
8
|
import {
|
|
9
9
|
ButtonGroup2
|
|
10
|
-
} from "./Accordion-
|
|
10
|
+
} from "./Accordion-yms7x22j.js";
|
|
11
11
|
import {
|
|
12
12
|
Card2
|
|
13
|
-
} from "./Accordion-
|
|
13
|
+
} from "./Accordion-z1trs7s1.js";
|
|
14
14
|
import {
|
|
15
15
|
List2
|
|
16
|
-
} from "./Accordion-
|
|
16
|
+
} from "./Accordion-rnjt5z4y.js";
|
|
17
17
|
import {
|
|
18
18
|
useZoraTheme2
|
|
19
19
|
} from "./Accordion-7zfskq1s.js";
|