@ankhorage/zora 11.0.0 → 12.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 +18 -0
- package/README.md +2 -1
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +12 -0
- package/dist/constants.js.map +1 -1
- package/dist/{patterns/auth → features/auth/adapters/inbound}/AuthForm.d.ts +3 -3
- package/dist/features/auth/adapters/inbound/AuthForm.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/AuthForm.js +2 -2
- package/dist/features/auth/adapters/inbound/AuthForm.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/AuthFormField.d.ts +2 -2
- package/dist/features/auth/adapters/inbound/AuthFormField.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/AuthFormField.js +2 -2
- package/dist/features/auth/adapters/inbound/AuthFormField.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/ForgotPasswordForm.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/ForgotPasswordForm.js +5 -5
- package/dist/features/auth/adapters/inbound/ForgotPasswordForm.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/OAuthProviderButton.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/OAuthProviderButton.js +3 -3
- package/dist/features/auth/adapters/inbound/OAuthProviderButton.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/OAuthProviderList.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/OAuthProviderList.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/OAuthProviderList.js +2 -2
- package/dist/features/auth/adapters/inbound/OAuthProviderList.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/OtpForm.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/OtpForm.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/OtpForm.js +4 -4
- package/dist/features/auth/adapters/inbound/OtpForm.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/SignInForm.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/SignInForm.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/SignInForm.js +5 -5
- package/dist/features/auth/adapters/inbound/SignInForm.js.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/SignUpForm.d.ts +1 -1
- package/dist/features/auth/adapters/inbound/SignUpForm.d.ts.map +1 -0
- package/dist/{patterns/auth → features/auth/adapters/inbound}/SignUpForm.js +3 -3
- package/dist/features/auth/adapters/inbound/SignUpForm.js.map +1 -0
- package/dist/features/auth/forgotPasswordFormMeta.d.ts +79 -0
- package/dist/features/auth/forgotPasswordFormMeta.d.ts.map +1 -0
- package/dist/features/auth/forgotPasswordFormMeta.js +48 -0
- package/dist/features/auth/forgotPasswordFormMeta.js.map +1 -0
- package/dist/features/auth/oauthProviderButtonMeta.d.ts +83 -0
- package/dist/features/auth/oauthProviderButtonMeta.d.ts.map +1 -0
- package/dist/features/auth/oauthProviderButtonMeta.js +61 -0
- package/dist/features/auth/oauthProviderButtonMeta.js.map +1 -0
- package/dist/features/auth/oauthProviderListMeta.d.ts +109 -0
- package/dist/features/auth/oauthProviderListMeta.d.ts.map +1 -0
- package/dist/features/auth/oauthProviderListMeta.js +66 -0
- package/dist/features/auth/oauthProviderListMeta.js.map +1 -0
- package/dist/features/auth/otpFormMeta.d.ts +89 -0
- package/dist/features/auth/otpFormMeta.d.ts.map +1 -0
- package/dist/features/auth/otpFormMeta.js +54 -0
- package/dist/features/auth/otpFormMeta.js.map +1 -0
- package/dist/features/auth/public.d.ts +9 -0
- package/dist/features/auth/public.d.ts.map +1 -0
- package/dist/features/auth/public.js +8 -0
- package/dist/features/auth/public.js.map +1 -0
- package/dist/features/auth/signInFormMeta.d.ts +100 -0
- package/dist/features/auth/signInFormMeta.d.ts.map +1 -0
- package/dist/features/auth/signInFormMeta.js +62 -0
- package/dist/features/auth/signInFormMeta.js.map +1 -0
- package/dist/features/auth/signUpFormMeta.d.ts +111 -0
- package/dist/features/auth/signUpFormMeta.d.ts.map +1 -0
- package/dist/features/auth/signUpFormMeta.js +66 -0
- package/dist/features/auth/signUpFormMeta.js.map +1 -0
- package/dist/{patterns/auth/utils.d.ts → features/auth/utils/authForm.d.ts} +3 -3
- package/dist/features/auth/utils/authForm.d.ts.map +1 -0
- package/dist/{patterns/auth/utils.js → features/auth/utils/authForm.js} +1 -1
- package/dist/features/auth/utils/authForm.js.map +1 -0
- package/dist/{patterns/auth → features/auth/utils}/oauthProviders.d.ts +1 -1
- package/dist/features/auth/utils/oauthProviders.d.ts.map +1 -0
- package/dist/features/auth/utils/oauthProviders.js.map +1 -0
- 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/data-table/adapters/inbound/DataTable.d.ts.map +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js +1 -1
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -1
- package/dist/{components/date-picker → features/date-picker/adapters/inbound}/DatePicker.d.ts +1 -1
- package/dist/features/date-picker/adapters/inbound/DatePicker.d.ts.map +1 -0
- package/dist/{components/date-picker → features/date-picker/adapters/inbound}/DatePicker.js +23 -26
- package/dist/features/date-picker/adapters/inbound/DatePicker.js.map +1 -0
- package/dist/features/date-picker/datePickerMeta.d.ts +83 -0
- package/dist/features/date-picker/datePickerMeta.d.ts.map +1 -0
- package/dist/features/date-picker/datePickerMeta.js +57 -0
- package/dist/features/date-picker/datePickerMeta.js.map +1 -0
- package/dist/features/date-picker/public.d.ts +3 -0
- package/dist/features/date-picker/public.d.ts.map +1 -0
- package/dist/features/date-picker/public.js +2 -0
- package/dist/features/date-picker/public.js.map +1 -0
- package/dist/features/date-picker/utils/localDate.d.ts +5 -0
- package/dist/features/date-picker/utils/localDate.d.ts.map +1 -0
- package/dist/features/date-picker/utils/localDate.js +27 -0
- package/dist/features/date-picker/utils/localDate.js.map +1 -0
- package/dist/{components/gradient → features/gradient/adapters/inbound}/Gradient.d.ts +1 -1
- package/dist/features/gradient/adapters/inbound/Gradient.d.ts.map +1 -0
- package/dist/{components/gradient → features/gradient/adapters/inbound}/Gradient.js +2 -2
- package/dist/features/gradient/adapters/inbound/Gradient.js.map +1 -0
- package/dist/{components/gradient → features/gradient/adapters/inbound}/GradientRendererContext.d.ts +3 -2
- package/dist/features/gradient/adapters/inbound/GradientRendererContext.d.ts.map +1 -0
- package/dist/{components/gradient → features/gradient/adapters/inbound}/GradientRendererContext.js +2 -1
- package/dist/features/gradient/adapters/inbound/GradientRendererContext.js.map +1 -0
- package/dist/features/gradient/gradientMeta.d.ts +48 -0
- package/dist/features/gradient/gradientMeta.d.ts.map +1 -0
- package/dist/features/gradient/gradientMeta.js +25 -0
- package/dist/features/gradient/gradientMeta.js.map +1 -0
- package/dist/features/gradient/public.d.ts +4 -0
- package/dist/features/gradient/public.d.ts.map +1 -0
- package/dist/features/gradient/public.js +3 -0
- package/dist/features/gradient/public.js.map +1 -0
- package/dist/{patterns/hero → features/hero/adapters/inbound}/Hero.d.ts +1 -1
- package/dist/features/hero/adapters/inbound/Hero.d.ts.map +1 -0
- package/dist/{patterns/hero → features/hero/adapters/inbound}/Hero.js +5 -6
- package/dist/features/hero/adapters/inbound/Hero.js.map +1 -0
- package/dist/{patterns/hero/meta.d.ts → features/hero/heroMeta.d.ts} +1 -1
- package/dist/features/hero/heroMeta.d.ts.map +1 -0
- package/dist/{patterns/hero/meta.js → features/hero/heroMeta.js} +1 -1
- package/dist/features/hero/heroMeta.js.map +1 -0
- package/dist/features/hero/public.d.ts +3 -0
- package/dist/features/hero/public.d.ts.map +1 -0
- package/dist/features/hero/public.js +2 -0
- package/dist/features/hero/public.js.map +1 -0
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/boxMeta.d.ts +1 -1
- package/dist/features/layout/containerMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/stackMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/{patterns/missing-element → features/missing-element/adapters/inbound}/MissingElement.d.ts +1 -1
- package/dist/features/missing-element/adapters/inbound/MissingElement.d.ts.map +1 -0
- package/dist/{patterns/missing-element → features/missing-element/adapters/inbound}/MissingElement.js +5 -5
- package/dist/features/missing-element/adapters/inbound/MissingElement.js.map +1 -0
- package/dist/{patterns/missing-element/meta.d.ts → features/missing-element/missingElementMeta.d.ts} +1 -1
- package/dist/features/missing-element/missingElementMeta.d.ts.map +1 -0
- package/dist/{patterns/missing-element/meta.js → features/missing-element/missingElementMeta.js} +1 -1
- package/dist/features/missing-element/missingElementMeta.js.map +1 -0
- package/dist/features/missing-element/public.d.ts +3 -0
- package/dist/features/missing-element/public.d.ts.map +1 -0
- package/dist/features/missing-element/public.js +2 -0
- package/dist/features/missing-element/public.js.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/Skeleton.d.ts +1 -1
- package/dist/features/skeleton/adapters/inbound/Skeleton.d.ts.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/Skeleton.js +3 -3
- package/dist/features/skeleton/adapters/inbound/Skeleton.js.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonCard.d.ts +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.d.ts.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonCard.js +4 -4
- package/dist/features/skeleton/adapters/inbound/SkeletonCard.js.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonList.d.ts +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonList.d.ts.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonList.js +2 -2
- package/dist/features/skeleton/adapters/inbound/SkeletonList.js.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonText.d.ts +1 -1
- package/dist/features/skeleton/adapters/inbound/SkeletonText.d.ts.map +1 -0
- package/dist/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonText.js +2 -2
- package/dist/features/skeleton/adapters/inbound/SkeletonText.js.map +1 -0
- package/dist/features/skeleton/public.d.ts +6 -0
- package/dist/features/skeleton/public.d.ts.map +1 -0
- package/dist/features/skeleton/public.js +5 -0
- package/dist/features/skeleton/public.js.map +1 -0
- package/dist/features/skeleton/skeletonMeta.d.ts +178 -0
- package/dist/features/skeleton/skeletonMeta.d.ts.map +1 -0
- package/dist/features/skeleton/skeletonMeta.js +84 -0
- package/dist/features/skeleton/skeletonMeta.js.map +1 -0
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/{components/time-picker → features/time-picker/adapters/inbound}/TimePicker.d.ts +1 -1
- package/dist/features/time-picker/adapters/inbound/TimePicker.d.ts.map +1 -0
- package/dist/{components/time-picker → features/time-picker/adapters/inbound}/TimePicker.js +8 -11
- package/dist/features/time-picker/adapters/inbound/TimePicker.js.map +1 -0
- package/dist/features/time-picker/public.d.ts +3 -0
- package/dist/features/time-picker/public.d.ts.map +1 -0
- package/dist/features/time-picker/public.js +2 -0
- package/dist/features/time-picker/public.js.map +1 -0
- package/dist/features/time-picker/timePickerMeta.d.ts +90 -0
- package/dist/features/time-picker/timePickerMeta.d.ts.map +1 -0
- package/dist/features/time-picker/timePickerMeta.js +64 -0
- package/dist/features/time-picker/timePickerMeta.js.map +1 -0
- package/dist/index.d.ts +9 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/layout/screen/meta.d.ts +1 -1
- package/dist/layout/screen-section/meta.d.ts +1 -1
- package/dist/metadata/allowedChildren.d.ts +3 -3
- package/dist/metadata/allowedChildren.d.ts.map +1 -1
- package/dist/metadata/allowedChildren.js +14 -0
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +2 -2
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +12 -7
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/patterns/message-bubble/meta.d.ts +1 -1
- package/dist/patterns/notice/meta.d.ts +1 -1
- package/dist/patterns/panel/meta.d.ts +1 -1
- package/dist/patterns/reader/meta.d.ts +2 -2
- package/dist/patterns/scanner/meta.d.ts +2 -2
- package/dist/registry.js +7 -7
- package/dist/registry.js.map +1 -1
- package/dist/{patterns/auth/types.d.ts → types/auth.d.ts} +8 -8
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/auth.js +2 -0
- package/dist/types/auth.js.map +1 -0
- package/dist/{components/date-picker/types.d.ts → types/date-picker.d.ts} +6 -6
- package/dist/types/date-picker.d.ts.map +1 -0
- package/dist/types/date-picker.js +2 -0
- package/dist/types/date-picker.js.map +1 -0
- package/dist/{components/gradient/types.d.ts → types/gradient.d.ts} +3 -3
- package/dist/types/gradient.d.ts.map +1 -0
- package/dist/types/gradient.js +2 -0
- package/dist/types/gradient.js.map +1 -0
- package/dist/{patterns/hero/types.d.ts → types/hero.d.ts} +3 -3
- package/dist/types/hero.d.ts.map +1 -0
- package/dist/types/hero.js +2 -0
- package/dist/types/hero.js.map +1 -0
- package/dist/{patterns/missing-element/types.d.ts → types/missing-element.d.ts} +2 -2
- package/dist/types/missing-element.d.ts.map +1 -0
- package/dist/types/missing-element.js +2 -0
- package/dist/types/missing-element.js.map +1 -0
- package/dist/{components/skeleton/types.d.ts → types/skeleton.d.ts} +3 -3
- package/dist/types/skeleton.d.ts.map +1 -0
- package/dist/types/skeleton.js +2 -0
- package/dist/types/skeleton.js.map +1 -0
- package/dist/{components/time-picker/types.d.ts → types/time-picker.d.ts} +2 -2
- package/dist/types/time-picker.d.ts.map +1 -0
- package/dist/types/time-picker.js +2 -0
- package/dist/types/time-picker.js.map +1 -0
- package/package.json +1 -1
- package/src/constants.ts +12 -0
- package/src/expo57Migration.test.ts +1 -1
- package/src/featureManifest.test.ts +14 -0
- package/src/{patterns/auth → features/auth/adapters/inbound}/AuthForm.tsx +5 -5
- package/src/{patterns/auth → features/auth/adapters/inbound}/AuthFormField.tsx +4 -4
- package/src/{patterns/auth → features/auth/adapters/inbound}/ForgotPasswordForm.tsx +8 -8
- package/src/{patterns/auth → features/auth/adapters/inbound}/OAuthProviderButton.tsx +4 -4
- package/src/{patterns/auth → features/auth/adapters/inbound}/OAuthProviderList.tsx +3 -3
- package/src/{patterns/auth → features/auth/adapters/inbound}/OtpForm.tsx +6 -6
- package/src/{patterns/auth → features/auth/adapters/inbound}/SignInForm.tsx +8 -8
- package/src/{patterns/auth → features/auth/adapters/inbound}/SignUpForm.tsx +5 -5
- package/src/features/auth/forgotPasswordFormMeta.ts +49 -0
- package/src/features/auth/oauthProviderButtonMeta.ts +62 -0
- package/src/features/auth/oauthProviderListMeta.ts +67 -0
- package/src/features/auth/otpFormMeta.ts +55 -0
- package/src/features/auth/public.test.ts +34 -0
- package/src/{patterns/auth/index.ts → features/auth/public.ts} +12 -12
- package/src/features/auth/signInFormMeta.ts +63 -0
- package/src/features/auth/signUpFormMeta.ts +67 -0
- package/src/{patterns/auth/utils.ts → features/auth/utils/authForm.ts} +2 -2
- package/src/{patterns/auth → features/auth/utils}/oauthProviders.test.ts +1 -1
- package/src/{patterns/auth → features/auth/utils}/oauthProviders.ts +1 -1
- package/src/features/bottom-sheet/public.test.ts +2 -2
- package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
- package/src/{components/date-picker → features/date-picker/adapters/inbound}/DatePicker.tsx +41 -32
- package/src/features/date-picker/datePickerMeta.ts +58 -0
- package/src/features/date-picker/public.test.ts +15 -0
- package/src/features/date-picker/public.ts +2 -0
- package/src/features/date-picker/utils/localDate.test.ts +18 -0
- package/src/features/date-picker/utils/localDate.ts +29 -0
- package/src/{components/gradient → features/gradient/adapters/inbound}/Gradient.tsx +3 -3
- package/src/{components/gradient → features/gradient/adapters/inbound}/GradientRendererContext.tsx +3 -2
- package/src/features/gradient/gradientMeta.ts +26 -0
- package/src/features/gradient/public.test.ts +15 -0
- package/src/{components/gradient/index.ts → features/gradient/public.ts} +3 -3
- package/src/{patterns/hero → features/hero/adapters/inbound}/Hero.tsx +6 -7
- package/src/features/hero/public.ts +2 -0
- package/src/{patterns → features}/missing-element/MissingElement.test.ts +6 -4
- package/src/{patterns/missing-element → features/missing-element/adapters/inbound}/MissingElement.tsx +6 -6
- package/src/features/missing-element/public.ts +2 -0
- package/src/{components/skeleton → features/skeleton/adapters/inbound}/Skeleton.tsx +4 -4
- package/src/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonCard.tsx +5 -5
- package/src/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonList.tsx +3 -3
- package/src/{components/skeleton → features/skeleton/adapters/inbound}/SkeletonText.tsx +3 -3
- package/src/features/skeleton/public.test.ts +24 -0
- package/src/features/skeleton/public.ts +13 -0
- package/src/features/skeleton/skeletonMeta.ts +88 -0
- package/src/{components/time-picker → features/time-picker/adapters/inbound}/TimePicker.tsx +9 -12
- package/src/features/time-picker/public.test.ts +14 -0
- package/src/features/time-picker/public.ts +2 -0
- package/src/features/time-picker/timePickerMeta.ts +65 -0
- package/src/index.ts +72 -58
- package/src/interactionPolicy.test.ts +3 -3
- package/src/metadata/allowedChildren.ts +14 -0
- package/src/metadata/componentMeta.test.ts +13 -0
- package/src/metadata/componentMeta.ts +17 -19
- package/src/registry.ts +14 -14
- package/src/theme/themeScopeStructure.test.ts +7 -5
- package/src/{patterns/auth/types.ts → types/auth.ts} +7 -7
- package/src/{components/date-picker/types.ts → types/date-picker.ts} +5 -5
- package/src/{components/gradient/types.ts → types/gradient.ts} +2 -2
- package/src/{patterns/hero/types.ts → types/hero.ts} +2 -2
- package/src/{patterns/missing-element/types.ts → types/missing-element.ts} +1 -1
- package/src/{components/skeleton/types.ts → types/skeleton.ts} +2 -2
- package/src/{components/time-picker/types.ts → types/time-picker.ts} +1 -1
- package/dist/components/date-picker/DatePicker.d.ts.map +0 -1
- package/dist/components/date-picker/DatePicker.js.map +0 -1
- package/dist/components/date-picker/index.d.ts +0 -3
- package/dist/components/date-picker/index.d.ts.map +0 -1
- package/dist/components/date-picker/index.js +0 -2
- package/dist/components/date-picker/index.js.map +0 -1
- package/dist/components/date-picker/meta.d.ts +0 -9
- package/dist/components/date-picker/meta.d.ts.map +0 -1
- package/dist/components/date-picker/meta.js +0 -9
- package/dist/components/date-picker/meta.js.map +0 -1
- package/dist/components/date-picker/types.d.ts.map +0 -1
- package/dist/components/date-picker/types.js +0 -2
- package/dist/components/date-picker/types.js.map +0 -1
- package/dist/components/gradient/Gradient.d.ts.map +0 -1
- package/dist/components/gradient/Gradient.js.map +0 -1
- package/dist/components/gradient/GradientRendererContext.d.ts.map +0 -1
- package/dist/components/gradient/GradientRendererContext.js.map +0 -1
- package/dist/components/gradient/index.d.ts +0 -4
- package/dist/components/gradient/index.d.ts.map +0 -1
- package/dist/components/gradient/index.js +0 -3
- package/dist/components/gradient/index.js.map +0 -1
- package/dist/components/gradient/meta.d.ts +0 -9
- package/dist/components/gradient/meta.d.ts.map +0 -1
- package/dist/components/gradient/meta.js +0 -9
- package/dist/components/gradient/meta.js.map +0 -1
- package/dist/components/gradient/types.d.ts.map +0 -1
- package/dist/components/gradient/types.js +0 -2
- package/dist/components/gradient/types.js.map +0 -1
- package/dist/components/skeleton/Skeleton.d.ts.map +0 -1
- package/dist/components/skeleton/Skeleton.js.map +0 -1
- package/dist/components/skeleton/SkeletonCard.d.ts.map +0 -1
- package/dist/components/skeleton/SkeletonCard.js.map +0 -1
- package/dist/components/skeleton/SkeletonList.d.ts.map +0 -1
- package/dist/components/skeleton/SkeletonList.js.map +0 -1
- package/dist/components/skeleton/SkeletonText.d.ts.map +0 -1
- package/dist/components/skeleton/SkeletonText.js.map +0 -1
- package/dist/components/skeleton/index.d.ts +0 -6
- package/dist/components/skeleton/index.d.ts.map +0 -1
- package/dist/components/skeleton/index.js +0 -5
- package/dist/components/skeleton/index.js.map +0 -1
- package/dist/components/skeleton/meta.d.ts +0 -33
- package/dist/components/skeleton/meta.d.ts.map +0 -1
- package/dist/components/skeleton/meta.js +0 -33
- package/dist/components/skeleton/meta.js.map +0 -1
- package/dist/components/skeleton/types.d.ts.map +0 -1
- package/dist/components/skeleton/types.js +0 -2
- package/dist/components/skeleton/types.js.map +0 -1
- package/dist/components/time-picker/TimePicker.d.ts.map +0 -1
- package/dist/components/time-picker/TimePicker.js.map +0 -1
- package/dist/components/time-picker/index.d.ts +0 -3
- package/dist/components/time-picker/index.d.ts.map +0 -1
- package/dist/components/time-picker/index.js +0 -2
- package/dist/components/time-picker/index.js.map +0 -1
- package/dist/components/time-picker/meta.d.ts +0 -9
- package/dist/components/time-picker/meta.d.ts.map +0 -1
- package/dist/components/time-picker/meta.js +0 -9
- package/dist/components/time-picker/meta.js.map +0 -1
- package/dist/components/time-picker/types.d.ts.map +0 -1
- package/dist/components/time-picker/types.js +0 -2
- package/dist/components/time-picker/types.js.map +0 -1
- package/dist/patterns/auth/AuthForm.d.ts.map +0 -1
- package/dist/patterns/auth/AuthForm.js.map +0 -1
- package/dist/patterns/auth/AuthFormField.d.ts.map +0 -1
- package/dist/patterns/auth/AuthFormField.js.map +0 -1
- package/dist/patterns/auth/ForgotPasswordForm.d.ts.map +0 -1
- package/dist/patterns/auth/ForgotPasswordForm.js.map +0 -1
- package/dist/patterns/auth/OAuthProviderButton.d.ts.map +0 -1
- package/dist/patterns/auth/OAuthProviderButton.js.map +0 -1
- package/dist/patterns/auth/OAuthProviderList.d.ts.map +0 -1
- package/dist/patterns/auth/OAuthProviderList.js.map +0 -1
- package/dist/patterns/auth/OtpForm.d.ts.map +0 -1
- package/dist/patterns/auth/OtpForm.js.map +0 -1
- package/dist/patterns/auth/SignInForm.d.ts.map +0 -1
- package/dist/patterns/auth/SignInForm.js.map +0 -1
- package/dist/patterns/auth/SignUpForm.d.ts.map +0 -1
- package/dist/patterns/auth/SignUpForm.js.map +0 -1
- package/dist/patterns/auth/index.d.ts +0 -9
- package/dist/patterns/auth/index.d.ts.map +0 -1
- package/dist/patterns/auth/index.js +0 -8
- package/dist/patterns/auth/index.js.map +0 -1
- package/dist/patterns/auth/meta.d.ts +0 -49
- package/dist/patterns/auth/meta.d.ts.map +0 -1
- package/dist/patterns/auth/meta.js +0 -50
- package/dist/patterns/auth/meta.js.map +0 -1
- package/dist/patterns/auth/oauthProviders.d.ts.map +0 -1
- package/dist/patterns/auth/oauthProviders.js.map +0 -1
- package/dist/patterns/auth/types.d.ts.map +0 -1
- package/dist/patterns/auth/types.js +0 -2
- package/dist/patterns/auth/types.js.map +0 -1
- package/dist/patterns/auth/utils.d.ts.map +0 -1
- package/dist/patterns/auth/utils.js.map +0 -1
- package/dist/patterns/hero/Hero.d.ts.map +0 -1
- package/dist/patterns/hero/Hero.js.map +0 -1
- package/dist/patterns/hero/index.d.ts +0 -3
- package/dist/patterns/hero/index.d.ts.map +0 -1
- package/dist/patterns/hero/index.js +0 -2
- package/dist/patterns/hero/index.js.map +0 -1
- package/dist/patterns/hero/meta.d.ts.map +0 -1
- package/dist/patterns/hero/meta.js.map +0 -1
- package/dist/patterns/hero/types.d.ts.map +0 -1
- package/dist/patterns/hero/types.js +0 -2
- package/dist/patterns/hero/types.js.map +0 -1
- package/dist/patterns/missing-element/MissingElement.d.ts.map +0 -1
- package/dist/patterns/missing-element/MissingElement.js.map +0 -1
- package/dist/patterns/missing-element/index.d.ts +0 -3
- package/dist/patterns/missing-element/index.d.ts.map +0 -1
- package/dist/patterns/missing-element/index.js +0 -2
- package/dist/patterns/missing-element/index.js.map +0 -1
- package/dist/patterns/missing-element/meta.d.ts.map +0 -1
- package/dist/patterns/missing-element/meta.js.map +0 -1
- package/dist/patterns/missing-element/types.d.ts.map +0 -1
- package/dist/patterns/missing-element/types.js +0 -2
- package/dist/patterns/missing-element/types.js.map +0 -1
- package/src/components/date-picker/index.ts +0 -2
- package/src/components/date-picker/meta.ts +0 -10
- package/src/components/gradient/meta.ts +0 -10
- package/src/components/skeleton/index.ts +0 -13
- package/src/components/skeleton/meta.ts +0 -37
- package/src/components/time-picker/index.ts +0 -2
- package/src/components/time-picker/meta.ts +0 -10
- package/src/patterns/auth/meta.ts +0 -57
- package/src/patterns/hero/index.ts +0 -2
- package/src/patterns/missing-element/index.ts +0 -2
- /package/dist/{patterns/auth → features/auth/utils}/oauthProviders.js +0 -0
- /package/src/{patterns/hero/meta.ts → features/hero/heroMeta.ts} +0 -0
- /package/src/{patterns/missing-element/meta.ts → features/missing-element/missingElementMeta.ts} +0 -0
package/src/index.ts
CHANGED
|
@@ -2,19 +2,6 @@ export type { AppBarMode, AppBarOverflowAction, AppBarProps } from './components
|
|
|
2
2
|
export { AppBar } from './components/app-bar';
|
|
3
3
|
export type { BreadcrumbItem, BreadcrumbsProps } from './components/breadcrumbs';
|
|
4
4
|
export { Breadcrumbs } from './components/breadcrumbs';
|
|
5
|
-
export type { DatePickerProps, DatePickerValue } from './components/date-picker';
|
|
6
|
-
export { DatePicker } from './components/date-picker';
|
|
7
|
-
export type {
|
|
8
|
-
GradientColor,
|
|
9
|
-
GradientColors,
|
|
10
|
-
GradientLocations,
|
|
11
|
-
GradientPoint,
|
|
12
|
-
GradientProps,
|
|
13
|
-
GradientRenderer,
|
|
14
|
-
GradientRendererProps,
|
|
15
|
-
GradientRendererProviderProps,
|
|
16
|
-
} from './components/gradient';
|
|
17
|
-
export { Gradient, GradientRendererProvider } from './components/gradient';
|
|
18
5
|
export type { DropdownMenuProps, MenuAction, MenuActionIntent, MenuProps } from './components/menu';
|
|
19
6
|
export { DropdownMenu, Menu } from './components/menu';
|
|
20
7
|
export type { ModalProps } from './components/modal';
|
|
@@ -27,20 +14,8 @@ export type { SearchBarProps } from './components/search-bar';
|
|
|
27
14
|
export { SearchBar } from './components/search-bar';
|
|
28
15
|
export type { SelectOption, SelectProps } from './components/select';
|
|
29
16
|
export { Select } from './components/select';
|
|
30
|
-
export type {
|
|
31
|
-
SkeletonCardProps,
|
|
32
|
-
SkeletonDimension,
|
|
33
|
-
SkeletonListProps,
|
|
34
|
-
SkeletonListVariant,
|
|
35
|
-
SkeletonProps,
|
|
36
|
-
SkeletonRadius,
|
|
37
|
-
SkeletonTextProps,
|
|
38
|
-
} from './components/skeleton';
|
|
39
|
-
export { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';
|
|
40
17
|
export type { TabItem, TabsProps, TabsVariant } from './components/tabs';
|
|
41
18
|
export { Tabs } from './components/tabs';
|
|
42
|
-
export type { TimePickerProps, TimePickerValue } from './components/time-picker';
|
|
43
|
-
export { TimePicker } from './components/time-picker';
|
|
44
19
|
export type { ToastOptions, ToastProps, ToastProviderProps, ToastStatus } from './components/toast';
|
|
45
20
|
export { Toast, ToastProvider, useToast } from './components/toast';
|
|
46
21
|
export type { ToolbarActionProps, ToolbarPosition, ToolbarProps } from './components/toolbar';
|
|
@@ -51,6 +26,35 @@ export {
|
|
|
51
26
|
ActivityIndicator,
|
|
52
27
|
type ActivityIndicatorProps,
|
|
53
28
|
} from './features/activity-indicator/public';
|
|
29
|
+
export type {
|
|
30
|
+
AuthFormBaseProps,
|
|
31
|
+
AuthIdentifierKind,
|
|
32
|
+
ForgotPasswordFormProps,
|
|
33
|
+
ForgotPasswordFormValues,
|
|
34
|
+
OAuthProviderButtonProps,
|
|
35
|
+
OAuthProviderIconSpec,
|
|
36
|
+
OAuthProviderItem,
|
|
37
|
+
OAuthProviderListLayout,
|
|
38
|
+
OAuthProviderListProps,
|
|
39
|
+
OtpFormProps,
|
|
40
|
+
OtpFormValues,
|
|
41
|
+
SignInFormProps,
|
|
42
|
+
SignInFormValues,
|
|
43
|
+
SignUpFormField,
|
|
44
|
+
SignUpFormProps,
|
|
45
|
+
SignUpFormValues,
|
|
46
|
+
} from './features/auth/public';
|
|
47
|
+
export {
|
|
48
|
+
DEFAULT_OAUTH_PROVIDER_ICONS,
|
|
49
|
+
ForgotPasswordForm,
|
|
50
|
+
OAuthProviderButton,
|
|
51
|
+
OAuthProviderList,
|
|
52
|
+
OtpForm,
|
|
53
|
+
resolveOAuthProviderIcon,
|
|
54
|
+
resolveOAuthProviderLabel,
|
|
55
|
+
SignInForm,
|
|
56
|
+
SignUpForm,
|
|
57
|
+
} from './features/auth/public';
|
|
54
58
|
export type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';
|
|
55
59
|
export type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';
|
|
56
60
|
export { Avatar, resolveAvatarInitials } from './features/avatar/public';
|
|
@@ -100,6 +104,11 @@ export type {
|
|
|
100
104
|
DataTableSortState,
|
|
101
105
|
} from './features/data-table/public';
|
|
102
106
|
export { DataTable } from './features/data-table/public';
|
|
107
|
+
export {
|
|
108
|
+
DatePicker,
|
|
109
|
+
type DatePickerProps,
|
|
110
|
+
type DatePickerValue,
|
|
111
|
+
} from './features/date-picker/public';
|
|
103
112
|
export {
|
|
104
113
|
EmptyState,
|
|
105
114
|
type EmptyStateAction,
|
|
@@ -150,6 +159,25 @@ export {
|
|
|
150
159
|
type TextInputProps,
|
|
151
160
|
type TextInputTrailingAction,
|
|
152
161
|
} from './features/form/text-input/public';
|
|
162
|
+
export type {
|
|
163
|
+
GradientColor,
|
|
164
|
+
GradientColors,
|
|
165
|
+
GradientLocations,
|
|
166
|
+
GradientPoint,
|
|
167
|
+
GradientProps,
|
|
168
|
+
GradientRenderer,
|
|
169
|
+
GradientRendererProps,
|
|
170
|
+
GradientRendererProviderProps,
|
|
171
|
+
} from './features/gradient/public';
|
|
172
|
+
export { Gradient, GradientRendererProvider } from './features/gradient/public';
|
|
173
|
+
export {
|
|
174
|
+
Hero,
|
|
175
|
+
type HeroAction,
|
|
176
|
+
type HeroAlign,
|
|
177
|
+
type HeroLayout,
|
|
178
|
+
type HeroProps,
|
|
179
|
+
type HeroTone,
|
|
180
|
+
} from './features/hero/public';
|
|
153
181
|
export type { IconProps } from './features/icon/public';
|
|
154
182
|
export { Icon } from './features/icon/public';
|
|
155
183
|
export type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';
|
|
@@ -183,14 +211,33 @@ export type {
|
|
|
183
211
|
ManifestSectionListProps,
|
|
184
212
|
} from './features/list/public';
|
|
185
213
|
export { FlatList, SectionList } from './features/list/public';
|
|
214
|
+
export { MissingElement, type MissingElementProps } from './features/missing-element/public';
|
|
186
215
|
export {
|
|
187
216
|
Progress,
|
|
188
217
|
type ProgressProps,
|
|
189
218
|
ProgressRing,
|
|
190
219
|
type ProgressRingProps,
|
|
191
220
|
} from './features/progress/public';
|
|
221
|
+
export {
|
|
222
|
+
Skeleton,
|
|
223
|
+
SkeletonCard,
|
|
224
|
+
type SkeletonCardProps,
|
|
225
|
+
type SkeletonDimension,
|
|
226
|
+
SkeletonList,
|
|
227
|
+
type SkeletonListProps,
|
|
228
|
+
type SkeletonListVariant,
|
|
229
|
+
type SkeletonProps,
|
|
230
|
+
type SkeletonRadius,
|
|
231
|
+
SkeletonText,
|
|
232
|
+
type SkeletonTextProps,
|
|
233
|
+
} from './features/skeleton/public';
|
|
192
234
|
export type { SurfaceProps, SurfaceVariant } from './features/surface/public';
|
|
193
235
|
export { Surface } from './features/surface/public';
|
|
236
|
+
export {
|
|
237
|
+
TimePicker,
|
|
238
|
+
type TimePickerProps,
|
|
239
|
+
type TimePickerValue,
|
|
240
|
+
} from './features/time-picker/public';
|
|
194
241
|
export type {
|
|
195
242
|
HeadingAlign,
|
|
196
243
|
HeadingColor,
|
|
@@ -278,35 +325,6 @@ export {
|
|
|
278
325
|
ZORA_THEME_RECIPE_META,
|
|
279
326
|
ZORA_THEME_TOKEN_FAMILIES,
|
|
280
327
|
} from './metadata';
|
|
281
|
-
export type {
|
|
282
|
-
AuthFormBaseProps,
|
|
283
|
-
AuthIdentifierKind,
|
|
284
|
-
ForgotPasswordFormProps,
|
|
285
|
-
ForgotPasswordFormValues,
|
|
286
|
-
OAuthProviderButtonProps,
|
|
287
|
-
OAuthProviderIconSpec,
|
|
288
|
-
OAuthProviderItem,
|
|
289
|
-
OAuthProviderListLayout,
|
|
290
|
-
OAuthProviderListProps,
|
|
291
|
-
OtpFormProps,
|
|
292
|
-
OtpFormValues,
|
|
293
|
-
SignInFormProps,
|
|
294
|
-
SignInFormValues,
|
|
295
|
-
SignUpFormField,
|
|
296
|
-
SignUpFormProps,
|
|
297
|
-
SignUpFormValues,
|
|
298
|
-
} from './patterns/auth';
|
|
299
|
-
export {
|
|
300
|
-
DEFAULT_OAUTH_PROVIDER_ICONS,
|
|
301
|
-
ForgotPasswordForm,
|
|
302
|
-
OAuthProviderButton,
|
|
303
|
-
OAuthProviderList,
|
|
304
|
-
OtpForm,
|
|
305
|
-
resolveOAuthProviderIcon,
|
|
306
|
-
resolveOAuthProviderLabel,
|
|
307
|
-
SignInForm,
|
|
308
|
-
SignUpForm,
|
|
309
|
-
} from './patterns/auth';
|
|
310
328
|
export type { ChatListAvatar, ChatListItemProps } from './patterns/chat-list-item';
|
|
311
329
|
export { ChatListItem } from './patterns/chat-list-item';
|
|
312
330
|
export type {
|
|
@@ -320,8 +338,6 @@ export type { DisclosureSectionProps } from './patterns/disclosure-section';
|
|
|
320
338
|
export { DisclosureSection } from './patterns/disclosure-section';
|
|
321
339
|
export type { FilterBarProps } from './patterns/filter-bar';
|
|
322
340
|
export { FilterBar } from './patterns/filter-bar';
|
|
323
|
-
export type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';
|
|
324
|
-
export { Hero } from './patterns/hero';
|
|
325
341
|
export type { InspectorFieldProps } from './patterns/inspector-field';
|
|
326
342
|
export { InspectorField } from './patterns/inspector-field';
|
|
327
343
|
export type {
|
|
@@ -340,8 +356,6 @@ export type {
|
|
|
340
356
|
MessageBubbleStatus,
|
|
341
357
|
} from './patterns/message-bubble';
|
|
342
358
|
export { MessageBubble } from './patterns/message-bubble';
|
|
343
|
-
export type { MissingElementProps } from './patterns/missing-element';
|
|
344
|
-
export { MissingElement } from './patterns/missing-element';
|
|
345
359
|
export type { NoticeProps } from './patterns/notice';
|
|
346
360
|
export { Notice } from './patterns/notice';
|
|
347
361
|
export type { PanelProps } from './patterns/panel';
|
|
@@ -40,7 +40,7 @@ describe('InteractionPolicy declaration', () => {
|
|
|
40
40
|
readComponent('app-bar', 'types.ts'),
|
|
41
41
|
readComponent('breadcrumbs', 'types.ts'),
|
|
42
42
|
readSource('types/empty-state.ts'),
|
|
43
|
-
|
|
43
|
+
readSource('types/hero.ts'),
|
|
44
44
|
readSource('types/product-card.ts'),
|
|
45
45
|
readPattern('reader', 'types.ts'),
|
|
46
46
|
readPattern('scanner', 'types.ts'),
|
|
@@ -115,14 +115,14 @@ describe('EmptyState', () => {
|
|
|
115
115
|
|
|
116
116
|
describe('Hero', () => {
|
|
117
117
|
test('forwards interactionPolicy to Card', () => {
|
|
118
|
-
const source =
|
|
118
|
+
const source = readSource('features/hero/adapters/inbound/Hero.tsx');
|
|
119
119
|
|
|
120
120
|
expect(source).not.toMatch(/interactionPolicy:\s*_interactionPolicy/);
|
|
121
121
|
expect(source).toMatch(/<Card[\s\S]*?interactionPolicy=\{interactionPolicy\}/);
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
test('passes interactionPolicy through renderAction to internal Buttons', () => {
|
|
125
|
-
const source =
|
|
125
|
+
const source = readSource('features/hero/adapters/inbound/Hero.tsx');
|
|
126
126
|
|
|
127
127
|
expect(source).toMatch(
|
|
128
128
|
/function renderAction\([\s\S]*?interactionPolicy: HeroProps\['interactionPolicy'\]/,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export const CONTAINER_ALLOWED_CHILDREN = [
|
|
2
2
|
'ActivityIndicator',
|
|
3
|
+
'ForgotPasswordForm',
|
|
4
|
+
'OAuthProviderButton',
|
|
5
|
+
'OAuthProviderList',
|
|
6
|
+
'OtpForm',
|
|
7
|
+
'SignInForm',
|
|
8
|
+
'SignUpForm',
|
|
3
9
|
'Surface',
|
|
4
10
|
'Avatar',
|
|
5
11
|
'AvatarGroup',
|
|
@@ -9,6 +15,11 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
9
15
|
'Chip',
|
|
10
16
|
'ChipGroup',
|
|
11
17
|
'DataTable',
|
|
18
|
+
'DatePicker',
|
|
19
|
+
'Skeleton',
|
|
20
|
+
'SkeletonCard',
|
|
21
|
+
'SkeletonList',
|
|
22
|
+
'SkeletonText',
|
|
12
23
|
'IconButton',
|
|
13
24
|
'Uploader',
|
|
14
25
|
'FlatList',
|
|
@@ -18,18 +29,21 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
18
29
|
'Box',
|
|
19
30
|
'Stack',
|
|
20
31
|
'Grid',
|
|
32
|
+
'Gradient',
|
|
21
33
|
'Container',
|
|
22
34
|
'Divider',
|
|
23
35
|
'Text',
|
|
24
36
|
'Heading',
|
|
25
37
|
'Icon',
|
|
26
38
|
'Image',
|
|
39
|
+
'Hero',
|
|
27
40
|
'KeyboardAvoidingView',
|
|
28
41
|
'Button',
|
|
29
42
|
'ButtonGroup',
|
|
30
43
|
'RadioGroup',
|
|
31
44
|
'ThemeModeToggle',
|
|
32
45
|
'TextInput',
|
|
46
|
+
'TimePicker',
|
|
33
47
|
'Form',
|
|
34
48
|
'Card',
|
|
35
49
|
'Panel',
|
|
@@ -137,12 +137,23 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
137
137
|
test('direct manifest node leaf/container rules', () => {
|
|
138
138
|
const expectedLeafNodes = new Set([
|
|
139
139
|
'ActivityIndicator',
|
|
140
|
+
'ForgotPasswordForm',
|
|
141
|
+
'OAuthProviderButton',
|
|
142
|
+
'OAuthProviderList',
|
|
143
|
+
'OtpForm',
|
|
144
|
+
'SignInForm',
|
|
145
|
+
'SignUpForm',
|
|
140
146
|
'Avatar',
|
|
141
147
|
'AvatarGroup',
|
|
142
148
|
'Badge',
|
|
143
149
|
'Chip',
|
|
144
150
|
'ChipGroup',
|
|
145
151
|
'DataTable',
|
|
152
|
+
'DatePicker',
|
|
153
|
+
'Skeleton',
|
|
154
|
+
'SkeletonCard',
|
|
155
|
+
'SkeletonList',
|
|
156
|
+
'SkeletonText',
|
|
146
157
|
'IconButton',
|
|
147
158
|
'MetricCard',
|
|
148
159
|
'Uploader',
|
|
@@ -171,10 +182,12 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
171
182
|
'ProgressRing',
|
|
172
183
|
'ReaderSurface',
|
|
173
184
|
'MissingElement',
|
|
185
|
+
'TimePicker',
|
|
174
186
|
]);
|
|
175
187
|
|
|
176
188
|
const expectedContainerNodes = new Set([
|
|
177
189
|
'Form',
|
|
190
|
+
'Gradient',
|
|
178
191
|
'Surface',
|
|
179
192
|
'MediaCard',
|
|
180
193
|
'FlatList',
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { appBarMeta } from '../components/app-bar/meta';
|
|
2
2
|
import { breadcrumbsMeta } from '../components/breadcrumbs/meta';
|
|
3
|
-
import { datePickerMeta } from '../components/date-picker/meta';
|
|
4
|
-
import { gradientMeta } from '../components/gradient/meta';
|
|
5
3
|
import { dropdownMenuMeta, menuMeta } from '../components/menu/meta';
|
|
6
4
|
import { modalMeta } from '../components/modal/meta';
|
|
7
5
|
import { paginationMeta } from '../components/pagination/meta';
|
|
8
6
|
import { ratingMeta } from '../components/rating/meta';
|
|
9
7
|
import { searchBarMeta } from '../components/search-bar/meta';
|
|
10
8
|
import { selectMeta } from '../components/select/meta';
|
|
11
|
-
import {
|
|
12
|
-
skeletonCardMeta,
|
|
13
|
-
skeletonListMeta,
|
|
14
|
-
skeletonMeta,
|
|
15
|
-
skeletonTextMeta,
|
|
16
|
-
} from '../components/skeleton/meta';
|
|
17
9
|
import { tabsMeta } from '../components/tabs/meta';
|
|
18
|
-
import { timePickerMeta } from '../components/time-picker/meta';
|
|
19
10
|
import { toastMeta, toastProviderMeta } from '../components/toast/meta';
|
|
20
11
|
import { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';
|
|
21
12
|
import { activityIndicatorMeta } from '../features/activity-indicator/activityIndicatorMeta';
|
|
13
|
+
import { forgotPasswordFormMeta } from '../features/auth/forgotPasswordFormMeta';
|
|
14
|
+
import { oauthProviderButtonMeta } from '../features/auth/oauthProviderButtonMeta';
|
|
15
|
+
import { oauthProviderListMeta } from '../features/auth/oauthProviderListMeta';
|
|
16
|
+
import { otpFormMeta } from '../features/auth/otpFormMeta';
|
|
17
|
+
import { signInFormMeta } from '../features/auth/signInFormMeta';
|
|
18
|
+
import { signUpFormMeta } from '../features/auth/signUpFormMeta';
|
|
22
19
|
import { avatarGroupMeta } from '../features/avatar/avatarGroupMeta';
|
|
23
20
|
import { avatarMeta } from '../features/avatar/avatarMeta';
|
|
24
21
|
import { badgeMeta } from '../features/badge/badgeMeta';
|
|
@@ -34,6 +31,7 @@ import { productCardMeta } from '../features/card/productCardMeta';
|
|
|
34
31
|
import { chipGroupMeta } from '../features/chip/chipGroupMeta';
|
|
35
32
|
import { chipMeta } from '../features/chip/chipMeta';
|
|
36
33
|
import { dataTableMeta } from '../features/data-table/dataTableMeta';
|
|
34
|
+
import { datePickerMeta } from '../features/date-picker/datePickerMeta';
|
|
37
35
|
import { emptyStateMeta } from '../features/empty-state/emptyStateMeta';
|
|
38
36
|
import { checkboxGroupMeta, checkboxMeta } from '../features/form/checkbox/checkboxMeta';
|
|
39
37
|
import { formActionsMeta } from '../features/form/formActionsMeta';
|
|
@@ -42,6 +40,8 @@ import { formFieldMeta } from '../features/form/formFieldMeta';
|
|
|
42
40
|
import { formMeta } from '../features/form/formMeta';
|
|
43
41
|
import { radioGroupMeta, radioMeta } from '../features/form/radio/radioMeta';
|
|
44
42
|
import { textInputMeta } from '../features/form/text-input/textInputMeta';
|
|
43
|
+
import { gradientMeta } from '../features/gradient/gradientMeta';
|
|
44
|
+
import { heroMeta } from '../features/hero/heroMeta';
|
|
45
45
|
import { iconMeta } from '../features/icon/iconMeta';
|
|
46
46
|
import { imageMeta } from '../features/image/imageMeta';
|
|
47
47
|
import { keyboardAvoidingViewMeta } from '../features/keyboard-avoiding-view/keyboardAvoidingViewMeta';
|
|
@@ -53,8 +53,16 @@ import { gridMeta } from '../features/layout/gridMeta';
|
|
|
53
53
|
import { stackMeta } from '../features/layout/stackMeta';
|
|
54
54
|
import { flatListMeta } from '../features/list/flatListMeta';
|
|
55
55
|
import { sectionListMeta } from '../features/list/sectionListMeta';
|
|
56
|
+
import { missingElementMeta } from '../features/missing-element/missingElementMeta';
|
|
56
57
|
import { progressMeta, progressRingMeta } from '../features/progress/progressMeta';
|
|
58
|
+
import {
|
|
59
|
+
skeletonCardMeta,
|
|
60
|
+
skeletonListMeta,
|
|
61
|
+
skeletonMeta,
|
|
62
|
+
skeletonTextMeta,
|
|
63
|
+
} from '../features/skeleton/skeletonMeta';
|
|
57
64
|
import { surfaceMeta } from '../features/surface/surfaceMeta';
|
|
65
|
+
import { timePickerMeta } from '../features/time-picker/timePickerMeta';
|
|
58
66
|
import { headingMeta } from '../features/typography/headingMeta';
|
|
59
67
|
import { textMeta } from '../features/typography/textMeta';
|
|
60
68
|
import { uploaderMeta } from '../features/uploader/uploaderMeta';
|
|
@@ -65,24 +73,14 @@ import { screenSectionMeta } from '../layout/screen-section/meta';
|
|
|
65
73
|
import { settingsLayoutMeta } from '../layout/settings-layout/meta';
|
|
66
74
|
import { sidebarLayoutMeta } from '../layout/sidebar-layout/meta';
|
|
67
75
|
import { topbarLayoutMeta } from '../layout/topbar-layout/meta';
|
|
68
|
-
import {
|
|
69
|
-
forgotPasswordFormMeta,
|
|
70
|
-
oauthProviderButtonMeta,
|
|
71
|
-
oauthProviderListMeta,
|
|
72
|
-
otpFormMeta,
|
|
73
|
-
signInFormMeta,
|
|
74
|
-
signUpFormMeta,
|
|
75
|
-
} from '../patterns/auth/meta';
|
|
76
76
|
import { chatListItemMeta } from '../patterns/chat-list-item/meta';
|
|
77
77
|
import { collectionEditorMeta } from '../patterns/collection-editor/meta';
|
|
78
78
|
import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
|
|
79
79
|
import { disclosureSectionMeta } from '../patterns/disclosure-section/meta';
|
|
80
80
|
import { filterBarMeta } from '../patterns/filter-bar/meta';
|
|
81
|
-
import { heroMeta } from '../patterns/hero/meta';
|
|
82
81
|
import { inspectorFieldMeta } from '../patterns/inspector-field/meta';
|
|
83
82
|
import { listMeta, listRowMeta, listSectionMeta } from '../patterns/list/meta';
|
|
84
83
|
import { messageBubbleMeta } from '../patterns/message-bubble/meta';
|
|
85
|
-
import { missingElementMeta } from '../patterns/missing-element/meta';
|
|
86
84
|
import { noticeMeta } from '../patterns/notice/meta';
|
|
87
85
|
import { panelMeta } from '../patterns/panel/meta';
|
|
88
86
|
import { readerSurfaceMeta } from '../patterns/reader/meta';
|
package/src/registry.ts
CHANGED
|
@@ -3,20 +3,24 @@ import type React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { AppBar } from './components/app-bar';
|
|
5
5
|
import { Breadcrumbs } from './components/breadcrumbs';
|
|
6
|
-
import { DatePicker } from './components/date-picker';
|
|
7
|
-
import { Gradient } from './components/gradient';
|
|
8
6
|
import { DropdownMenu, Menu } from './components/menu';
|
|
9
7
|
import { Modal } from './components/modal';
|
|
10
8
|
import { Pagination } from './components/pagination';
|
|
11
9
|
import { Rating } from './components/rating';
|
|
12
10
|
import { SearchBar } from './components/search-bar';
|
|
13
11
|
import { Select } from './components/select';
|
|
14
|
-
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';
|
|
15
12
|
import { Tabs } from './components/tabs';
|
|
16
|
-
import { TimePicker } from './components/time-picker';
|
|
17
13
|
import { Toast } from './components/toast';
|
|
18
14
|
import { Toolbar, ToolbarAction } from './components/toolbar';
|
|
19
15
|
import { ActivityIndicator } from './features/activity-indicator/public';
|
|
16
|
+
import {
|
|
17
|
+
ForgotPasswordForm,
|
|
18
|
+
OAuthProviderButton,
|
|
19
|
+
OAuthProviderList,
|
|
20
|
+
OtpForm,
|
|
21
|
+
SignInForm,
|
|
22
|
+
SignUpForm,
|
|
23
|
+
} from './features/auth/public';
|
|
20
24
|
import { Avatar } from './features/avatar/public';
|
|
21
25
|
import { AvatarGroup } from './features/avatar/public';
|
|
22
26
|
import { Badge } from './features/badge/public';
|
|
@@ -32,19 +36,25 @@ import { ProductCard } from './features/card/public';
|
|
|
32
36
|
import { Chip } from './features/chip/public';
|
|
33
37
|
import { ChipGroup } from './features/chip/public';
|
|
34
38
|
import { DataTable } from './features/data-table/public';
|
|
39
|
+
import { DatePicker } from './features/date-picker/public';
|
|
35
40
|
import { EmptyState } from './features/empty-state/public';
|
|
36
41
|
import { Checkbox, CheckboxGroup } from './features/form/checkbox/public';
|
|
37
42
|
import { Form, FormActions, FormError, FormField } from './features/form/public';
|
|
38
43
|
import { Radio, RadioGroup } from './features/form/radio/public';
|
|
39
44
|
import { TextInput } from './features/form/text-input/public';
|
|
45
|
+
import { Gradient } from './features/gradient/public';
|
|
46
|
+
import { Hero } from './features/hero/public';
|
|
40
47
|
import { Icon } from './features/icon/public';
|
|
41
48
|
import { Image } from './features/image/public';
|
|
42
49
|
import { KeyboardAvoidingView } from './features/keyboard-avoiding-view/public';
|
|
43
50
|
import { Box, Container, Divider, Grid, Stack } from './features/layout/public';
|
|
44
51
|
import { ContentRail } from './features/layout/public';
|
|
45
52
|
import { FlatList, SectionList } from './features/list/public';
|
|
53
|
+
import { MissingElement } from './features/missing-element/public';
|
|
46
54
|
import { Progress, ProgressRing } from './features/progress/public';
|
|
55
|
+
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';
|
|
47
56
|
import { Surface } from './features/surface/public';
|
|
57
|
+
import { TimePicker } from './features/time-picker/public';
|
|
48
58
|
import { Heading } from './features/typography/public';
|
|
49
59
|
import { Text } from './features/typography/public';
|
|
50
60
|
import { Uploader } from './features/uploader/public';
|
|
@@ -55,24 +65,14 @@ import { ScreenSection } from './layout/screen-section';
|
|
|
55
65
|
import { SettingsLayout } from './layout/settings-layout';
|
|
56
66
|
import { SidebarLayout } from './layout/sidebar-layout';
|
|
57
67
|
import { TopbarLayout } from './layout/topbar-layout';
|
|
58
|
-
import {
|
|
59
|
-
ForgotPasswordForm,
|
|
60
|
-
OAuthProviderButton,
|
|
61
|
-
OAuthProviderList,
|
|
62
|
-
OtpForm,
|
|
63
|
-
SignInForm,
|
|
64
|
-
SignUpForm,
|
|
65
|
-
} from './patterns/auth';
|
|
66
68
|
import { ChatListItem } from './patterns/chat-list-item';
|
|
67
69
|
import { CollectionEditor } from './patterns/collection-editor';
|
|
68
70
|
import { ConfirmDialog } from './patterns/confirm-dialog';
|
|
69
71
|
import { DisclosureSection } from './patterns/disclosure-section';
|
|
70
72
|
import { FilterBar } from './patterns/filter-bar';
|
|
71
|
-
import { Hero } from './patterns/hero';
|
|
72
73
|
import { InspectorField } from './patterns/inspector-field';
|
|
73
74
|
import { List, ListRow, ListSection } from './patterns/list';
|
|
74
75
|
import { MessageBubble } from './patterns/message-bubble';
|
|
75
|
-
import { MissingElement } from './patterns/missing-element';
|
|
76
76
|
import { Notice } from './patterns/notice';
|
|
77
77
|
import { Panel } from './patterns/panel';
|
|
78
78
|
import { ReaderSurface } from './patterns/reader';
|
|
@@ -91,10 +91,11 @@ const scopedComponentFiles = [
|
|
|
91
91
|
join(srcDir, 'layout', 'sidebar-layout', 'SidebarLayout.tsx'),
|
|
92
92
|
join(srcDir, 'layout', 'topbar-layout', 'TopbarLayout.tsx'),
|
|
93
93
|
|
|
94
|
-
join(srcDir, '
|
|
95
|
-
join(srcDir, '
|
|
96
|
-
join(srcDir, '
|
|
97
|
-
join(srcDir, '
|
|
94
|
+
join(srcDir, 'features', 'auth', 'adapters', 'inbound', 'ForgotPasswordForm.tsx'),
|
|
95
|
+
join(srcDir, 'features', 'auth', 'adapters', 'inbound', 'OtpForm.tsx'),
|
|
96
|
+
join(srcDir, 'features', 'auth', 'adapters', 'inbound', 'SignInForm.tsx'),
|
|
97
|
+
join(srcDir, 'features', 'auth', 'adapters', 'inbound', 'SignUpForm.tsx'),
|
|
98
|
+
join(srcDir, 'features', 'gradient', 'adapters', 'inbound', 'Gradient.tsx'),
|
|
98
99
|
join(srcDir, 'patterns', 'collection-editor', 'CollectionEditor.tsx'),
|
|
99
100
|
join(srcDir, 'patterns', 'confirm-dialog', 'ConfirmDialog.tsx'),
|
|
100
101
|
join(srcDir, 'patterns', 'disclosure-section', 'DisclosureSection.tsx'),
|
|
@@ -156,7 +157,8 @@ const scopedPropTypeFiles = [
|
|
|
156
157
|
join(srcDir, 'layout', 'sidebar-layout', 'types.ts'),
|
|
157
158
|
join(srcDir, 'layout', 'topbar-layout', 'types.ts'),
|
|
158
159
|
|
|
159
|
-
join(srcDir, '
|
|
160
|
+
join(srcDir, 'types', 'auth.ts'),
|
|
161
|
+
join(srcDir, 'types', 'gradient.ts'),
|
|
160
162
|
join(srcDir, 'patterns', 'collection-editor', 'types.ts'),
|
|
161
163
|
join(srcDir, 'patterns', 'confirm-dialog', 'types.ts'),
|
|
162
164
|
join(srcDir, 'patterns', 'disclosure-section', 'types.ts'),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ButtonIconSpec } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
|
-
import type { ButtonProps } from '
|
|
5
|
-
import type { ZoraBaseProps } from '
|
|
6
|
-
import type { FormFieldConfig, FormValues } from '
|
|
4
|
+
import type { ButtonProps } from '../features/button/public';
|
|
5
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
6
|
+
import type { FormFieldConfig, FormValues } from './form';
|
|
7
7
|
|
|
8
8
|
export type AuthIdentifierKind = 'email' | 'phone' | 'username';
|
|
9
9
|
|
|
@@ -26,7 +26,7 @@ export interface SignInFormProps extends AuthFormBaseProps {
|
|
|
26
26
|
secretLabel?: React.ReactNode;
|
|
27
27
|
forgotPasswordLabel?: React.ReactNode;
|
|
28
28
|
signUpLabel?: React.ReactNode;
|
|
29
|
-
onSubmit
|
|
29
|
+
onSubmit?: (values: SignInFormValues) => void | Promise<void>;
|
|
30
30
|
onForgotPassword?: () => void | Promise<void>;
|
|
31
31
|
onSignUp?: () => void | Promise<void>;
|
|
32
32
|
}
|
|
@@ -37,7 +37,7 @@ export type SignUpFormField = FormFieldConfig;
|
|
|
37
37
|
export interface SignUpFormProps extends AuthFormBaseProps {
|
|
38
38
|
fields?: readonly SignUpFormField[];
|
|
39
39
|
signInLabel?: React.ReactNode;
|
|
40
|
-
onSubmit
|
|
40
|
+
onSubmit?: (values: SignUpFormValues) => void | Promise<void>;
|
|
41
41
|
onSignIn?: () => void | Promise<void>;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -50,7 +50,7 @@ export interface ForgotPasswordFormProps extends AuthFormBaseProps {
|
|
|
50
50
|
identifiers?: readonly AuthIdentifierKind[];
|
|
51
51
|
identifierLabel?: React.ReactNode;
|
|
52
52
|
signInLabel?: React.ReactNode;
|
|
53
|
-
onSubmit
|
|
53
|
+
onSubmit?: (values: ForgotPasswordFormValues) => void | Promise<void>;
|
|
54
54
|
onSignIn?: () => void | Promise<void>;
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -64,7 +64,7 @@ export interface OtpFormProps extends AuthFormBaseProps {
|
|
|
64
64
|
resendLabel?: React.ReactNode;
|
|
65
65
|
resendDisabled?: boolean;
|
|
66
66
|
resendLoading?: boolean;
|
|
67
|
-
onSubmit
|
|
67
|
+
onSubmit?: (values: OtpFormValues) => void | Promise<void>;
|
|
68
68
|
onResend?: () => void | Promise<void>;
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
4
|
|
|
5
|
-
export type DatePickerValue =
|
|
5
|
+
export type DatePickerValue = string | null;
|
|
6
6
|
|
|
7
7
|
export interface DatePickerProps extends ZoraBaseProps {
|
|
8
8
|
value: DatePickerValue;
|
|
@@ -11,10 +11,10 @@ export interface DatePickerProps extends ZoraBaseProps {
|
|
|
11
11
|
description?: React.ReactNode;
|
|
12
12
|
error?: React.ReactNode;
|
|
13
13
|
placeholder?: React.ReactNode;
|
|
14
|
-
minDate?:
|
|
15
|
-
maxDate?:
|
|
14
|
+
minDate?: string;
|
|
15
|
+
maxDate?: string;
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
required?: boolean;
|
|
18
|
-
formatDate?: (value:
|
|
18
|
+
formatDate?: (value: string) => React.ReactNode;
|
|
19
19
|
testID?: string;
|
|
20
20
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
|
|
4
|
-
import type { BoxProps } from '
|
|
5
|
-
import type { ZoraBaseProps } from '
|
|
4
|
+
import type { BoxProps } from '../features/layout/public';
|
|
5
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
6
6
|
|
|
7
7
|
export type GradientColor = string;
|
|
8
8
|
export type GradientColors = readonly [GradientColor, GradientColor, ...GradientColor[]];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
-
import type { ZoraButtonVariant, ZoraColor } from '
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraButtonVariant, ZoraColor } from '../internal/recipes';
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
5
|
|
|
6
6
|
export type HeroAlign = 'start' | 'center';
|
|
7
7
|
export type HeroLayout = 'stack' | 'split' | 'mediaFirst';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BoxProps, StackProps } from '
|
|
2
|
-
import type { ZoraBaseProps } from '
|
|
1
|
+
import type { BoxProps, StackProps } from '../features/layout/public';
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
3
3
|
|
|
4
4
|
export type SkeletonRadius = BoxProps['radius'];
|
|
5
5
|
export type SkeletonDimension = BoxProps['width'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/DatePicker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA+U/C;;GAEG;AACH,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
|