@ankhorage/zora 8.0.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/components/form/FormField.js +2 -2
- package/dist/components/form/FormField.js.map +1 -1
- package/dist/components/form/meta.d.ts +1 -1
- package/dist/components/form/meta.js +1 -1
- package/dist/components/form/meta.js.map +1 -1
- package/dist/components/form/types.d.ts +6 -6
- package/dist/components/form/types.d.ts.map +1 -1
- package/dist/components/form/types.js.map +1 -1
- package/dist/components/search-bar/SearchBar.js +2 -2
- package/dist/components/search-bar/SearchBar.js.map +1 -1
- package/dist/features/activity-indicator/activityIndicatorMeta.d.ts +32 -0
- package/dist/features/activity-indicator/activityIndicatorMeta.d.ts.map +1 -0
- package/dist/features/activity-indicator/activityIndicatorMeta.js +13 -0
- package/dist/features/activity-indicator/activityIndicatorMeta.js.map +1 -0
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts +5 -0
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.d.ts.map +1 -0
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js +12 -0
- package/dist/features/activity-indicator/adapters/inbound/ActivityIndicator.js.map +1 -0
- package/dist/features/activity-indicator/public.d.ts +3 -0
- package/dist/features/activity-indicator/public.d.ts.map +1 -0
- package/dist/features/activity-indicator/public.js +2 -0
- package/dist/features/activity-indicator/public.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/{patterns/empty-state → features/empty-state/adapters/inbound}/EmptyState.d.ts +1 -1
- package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -0
- package/dist/{patterns/empty-state → features/empty-state/adapters/inbound}/EmptyState.js +4 -4
- package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -0
- package/dist/{patterns/empty-state/meta.d.ts → features/empty-state/emptyStateMeta.d.ts} +1 -1
- package/dist/features/empty-state/emptyStateMeta.d.ts.map +1 -0
- package/dist/{patterns/empty-state/meta.js → features/empty-state/emptyStateMeta.js} +1 -1
- package/dist/features/empty-state/emptyStateMeta.js.map +1 -0
- package/dist/features/empty-state/public.d.ts +3 -0
- package/dist/features/empty-state/public.d.ts.map +1 -0
- package/dist/features/empty-state/public.js +2 -0
- package/dist/features/empty-state/public.js.map +1 -0
- package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/Checkbox.d.ts +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.d.ts.map +1 -0
- package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/Checkbox.js +1 -1
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js.map +1 -0
- package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/CheckboxGroup.d.ts +1 -1
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -0
- package/dist/{components/checkbox → features/form/checkbox/adapters/inbound}/CheckboxGroup.js +3 -3
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js.map +1 -0
- package/dist/features/form/checkbox/checkboxMeta.d.ts +67 -0
- package/dist/features/form/checkbox/checkboxMeta.d.ts.map +1 -0
- package/dist/features/form/checkbox/checkboxMeta.js +28 -0
- package/dist/features/form/checkbox/checkboxMeta.js.map +1 -0
- package/dist/features/form/checkbox/public.d.ts +4 -0
- package/dist/features/form/checkbox/public.d.ts.map +1 -0
- package/dist/features/form/checkbox/public.js +3 -0
- package/dist/features/form/checkbox/public.js.map +1 -0
- package/dist/{components/radio → features/form/radio/adapters/inbound}/Radio.d.ts +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.d.ts.map +1 -0
- package/dist/{components/radio → features/form/radio/adapters/inbound}/Radio.js +1 -1
- package/dist/features/form/radio/adapters/inbound/Radio.js.map +1 -0
- package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.d.ts +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -0
- package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.js +5 -5
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -0
- package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioOptionControl.d.ts +1 -1
- package/dist/features/form/radio/adapters/inbound/RadioOptionControl.d.ts.map +1 -0
- package/dist/{components/radio → features/form/radio/adapters/inbound}/RadioOptionControl.js +4 -4
- package/dist/features/form/radio/adapters/inbound/RadioOptionControl.js.map +1 -0
- package/dist/features/form/radio/public.d.ts +4 -0
- package/dist/features/form/radio/public.d.ts.map +1 -0
- package/dist/features/form/radio/public.js +3 -0
- package/dist/features/form/radio/public.js.map +1 -0
- package/dist/{components/radio/meta.d.ts → features/form/radio/radioMeta.d.ts} +28 -4
- package/dist/features/form/radio/radioMeta.d.ts.map +1 -0
- package/dist/{components/radio/meta.js → features/form/radio/radioMeta.js} +9 -5
- package/dist/features/form/radio/radioMeta.js.map +1 -0
- package/dist/features/form/radio/themeRecipeMeta.d.ts.map +1 -0
- package/dist/{components → features/form}/radio/themeRecipeMeta.js +1 -1
- package/dist/features/form/radio/themeRecipeMeta.js.map +1 -0
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.d.ts.map +1 -0
- package/dist/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.js +1 -1
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js.map +1 -0
- package/dist/{components/radio → features/form/radio/utils}/resolveRadioGroupThemeRecipe.d.ts +2 -2
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts.map +1 -0
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.js.map +1 -0
- package/dist/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.d.ts +1 -1
- package/dist/features/form/radio/utils/resolveRadioOptionColors.d.ts.map +1 -0
- package/dist/features/form/radio/utils/resolveRadioOptionColors.js.map +1 -0
- package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts +14 -0
- package/dist/features/form/text-input/adapters/inbound/TextInput.d.ts.map +1 -0
- package/dist/{components/input/Input.js → features/form/text-input/adapters/inbound/TextInput.js} +9 -10
- package/dist/features/form/text-input/adapters/inbound/TextInput.js.map +1 -0
- package/dist/features/form/text-input/public.d.ts +3 -0
- package/dist/features/form/text-input/public.d.ts.map +1 -0
- package/dist/features/form/text-input/public.js +2 -0
- package/dist/features/form/text-input/public.js.map +1 -0
- package/dist/{components/input/meta.d.ts → features/form/text-input/textInputMeta.d.ts} +16 -4
- package/dist/features/form/text-input/textInputMeta.d.ts.map +1 -0
- package/dist/{components/input/meta.js → features/form/text-input/textInputMeta.js} +16 -4
- package/dist/features/form/text-input/textInputMeta.js.map +1 -0
- 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/{components/progress → features/progress/adapters/inbound}/Progress.d.ts +1 -1
- package/dist/features/progress/adapters/inbound/Progress.d.ts.map +1 -0
- package/dist/{components/progress → features/progress/adapters/inbound}/Progress.js +5 -5
- package/dist/features/progress/adapters/inbound/Progress.js.map +1 -0
- package/dist/{components/progress → features/progress/adapters/inbound}/ProgressRing.d.ts +1 -1
- package/dist/features/progress/adapters/inbound/ProgressRing.d.ts.map +1 -0
- package/dist/{components/progress → features/progress/adapters/inbound}/ProgressRing.js +7 -7
- package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -0
- package/dist/{components/progress/meta.d.ts → features/progress/progressMeta.d.ts} +1 -1
- package/dist/features/progress/progressMeta.d.ts.map +1 -0
- package/dist/{components/progress/meta.js → features/progress/progressMeta.js} +1 -1
- package/dist/features/progress/progressMeta.js.map +1 -0
- package/dist/features/progress/public.d.ts +4 -0
- package/dist/features/progress/public.d.ts.map +1 -0
- package/dist/features/progress/public.js +3 -0
- package/dist/features/progress/public.js.map +1 -0
- package/dist/features/progress/utils/resolveProgressFraction.d.ts.map +1 -0
- package/dist/features/progress/utils/resolveProgressFraction.js.map +1 -0
- package/dist/features/progress/utils/resolveProgressRingGeometry.d.ts.map +1 -0
- package/dist/features/progress/utils/resolveProgressRingGeometry.js.map +1 -0
- package/dist/features/splash-screen/splashScreenMeta.d.ts +1 -1
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/index.d.ts +6 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- 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 +2 -2
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +9 -76
- package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
- package/dist/metadata/bindableComponentMeta.js +7 -62
- package/dist/metadata/bindableComponentMeta.js.map +1 -1
- package/dist/metadata/componentMeta.js +8 -8
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/metadata/themeRecipeMeta.js +1 -1
- package/dist/metadata/themeRecipeMeta.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/ReaderSurface.js +1 -1
- package/dist/patterns/reader/ReaderSurface.js.map +1 -1
- package/dist/patterns/reader/meta.d.ts +2 -2
- package/dist/patterns/scanner/meta.d.ts +2 -2
- package/dist/patterns/theme-composer/ThemeComposer.js +3 -3
- package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
- package/dist/registry.js +8 -8
- package/dist/registry.js.map +1 -1
- package/dist/types/activity-indicator.d.ts +6 -0
- package/dist/types/activity-indicator.d.ts.map +1 -0
- package/dist/types/activity-indicator.js +2 -0
- package/dist/types/activity-indicator.js.map +1 -0
- package/dist/{components/checkbox/types.d.ts → types/checkbox.d.ts} +2 -2
- package/dist/types/checkbox.d.ts.map +1 -0
- package/dist/types/checkbox.js +2 -0
- package/dist/types/checkbox.js.map +1 -0
- package/dist/{patterns/empty-state/types.d.ts → types/empty-state.d.ts} +3 -3
- package/dist/types/empty-state.d.ts.map +1 -0
- package/dist/types/empty-state.js +2 -0
- package/dist/types/empty-state.js.map +1 -0
- package/dist/{components/progress/types.d.ts → types/progress.d.ts} +3 -3
- package/dist/types/progress.d.ts.map +1 -0
- package/dist/{components/progress/types.js → types/progress.js} +1 -1
- package/dist/types/progress.js.map +1 -0
- package/dist/{components/radio/types.d.ts → types/radio.d.ts} +3 -3
- package/dist/types/radio.d.ts.map +1 -0
- package/dist/types/radio.js +2 -0
- package/dist/types/radio.js.map +1 -0
- package/dist/types/text-input.d.ts +22 -0
- package/dist/types/text-input.d.ts.map +1 -0
- package/dist/types/text-input.js +2 -0
- package/dist/types/text-input.js.map +1 -0
- package/package.json +1 -1
- package/src/audit.test.ts +1 -1
- package/src/components/form/FormField.tsx +2 -2
- package/src/components/form/meta.ts +1 -1
- package/src/components/form/types.ts +6 -6
- package/src/components/search-bar/SearchBar.tsx +3 -3
- package/src/features/activity-indicator/activityIndicatorMeta.ts +14 -0
- package/src/features/activity-indicator/adapters/inbound/ActivityIndicator.tsx +21 -0
- package/src/features/activity-indicator/public.ts +2 -0
- package/src/features/data-table/adapters/inbound/DataTable.tsx +1 -1
- package/src/{patterns/empty-state → features/empty-state/adapters/inbound}/EmptyState.tsx +5 -5
- package/src/features/empty-state/public.ts +2 -0
- package/src/{components/checkbox → features/form/checkbox/adapters/inbound}/Checkbox.tsx +2 -2
- package/src/{components/checkbox → features/form/checkbox/adapters/inbound}/CheckboxGroup.tsx +4 -4
- package/src/features/form/checkbox/checkboxMeta.ts +30 -0
- package/src/features/form/checkbox/public.ts +7 -0
- package/src/{components/radio → features/form/radio/adapters/inbound}/Radio.tsx +2 -2
- package/src/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.test.ts +3 -3
- package/src/{components/radio → features/form/radio/adapters/inbound}/RadioGroup.tsx +6 -6
- package/src/{components/radio → features/form/radio/adapters/inbound}/RadioOptionControl.tsx +5 -5
- package/src/features/form/radio/public.ts +3 -0
- package/src/{components/radio/meta.ts → features/form/radio/radioMeta.ts} +9 -5
- package/src/{components → features/form}/radio/themeRecipeMeta.ts +2 -2
- package/src/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.test.ts +1 -1
- package/src/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.ts +1 -1
- package/src/{components/radio → features/form/radio/utils}/resolveRadioGroupThemeRecipe.ts +2 -2
- package/src/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.ts +1 -1
- package/src/{components/input/Input.tsx → features/form/text-input/adapters/inbound/TextInput.tsx} +10 -11
- package/src/features/form/text-input/public.ts +2 -0
- package/src/{components/input/meta.ts → features/form/text-input/textInputMeta.ts} +16 -4
- package/src/{components/progress → features/progress/adapters/inbound}/Progress.tsx +5 -5
- package/src/{components/progress → features/progress/adapters/inbound}/ProgressRing.test.ts +9 -6
- package/src/{components/progress → features/progress/adapters/inbound}/ProgressRing.tsx +7 -7
- package/src/features/progress/public.ts +3 -0
- package/src/features/uploader/adapters/inbound/Uploader.tsx +1 -1
- package/src/index.ts +34 -12
- package/src/interactionPolicy.test.ts +2 -2
- package/src/metadata/allowedChildren.ts +2 -2
- package/src/metadata/bindableComponentMeta.test.ts +1 -1
- package/src/metadata/bindableComponentMeta.ts +7 -62
- package/src/metadata/componentMeta.test.ts +5 -2
- package/src/metadata/componentMeta.ts +8 -8
- package/src/metadata/themeRecipeMeta.ts +1 -1
- package/src/patterns/reader/ReaderSurface.tsx +1 -1
- package/src/patterns/theme-composer/ThemeComposer.tsx +3 -3
- package/src/registry.ts +8 -8
- package/src/showcaseCoverage.test.ts +1 -2
- package/src/theme/themeScopeStructure.test.ts +12 -14
- package/src/types/activity-indicator.ts +8 -0
- package/src/{components/checkbox/types.ts → types/checkbox.ts} +1 -1
- package/src/{patterns/empty-state/types.ts → types/empty-state.ts} +2 -2
- package/src/{components/progress/types.ts → types/progress.ts} +2 -2
- package/src/{components/radio/types.ts → types/radio.ts} +2 -2
- package/src/{components/input/types.ts → types/text-input.ts} +7 -7
- package/dist/components/checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/Checkbox.js.map +0 -1
- package/dist/components/checkbox/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/checkbox/CheckboxGroup.js.map +0 -1
- package/dist/components/checkbox/index.d.ts +0 -4
- package/dist/components/checkbox/index.d.ts.map +0 -1
- package/dist/components/checkbox/index.js +0 -3
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/checkbox/meta.d.ts +0 -17
- package/dist/components/checkbox/meta.d.ts.map +0 -1
- package/dist/components/checkbox/meta.js +0 -17
- package/dist/components/checkbox/meta.js.map +0 -1
- package/dist/components/checkbox/types.d.ts.map +0 -1
- package/dist/components/checkbox/types.js +0 -2
- package/dist/components/checkbox/types.js.map +0 -1
- package/dist/components/input/Input.d.ts +0 -15
- package/dist/components/input/Input.d.ts.map +0 -1
- package/dist/components/input/Input.js.map +0 -1
- package/dist/components/input/index.d.ts +0 -3
- package/dist/components/input/index.d.ts.map +0 -1
- package/dist/components/input/index.js +0 -2
- package/dist/components/input/index.js.map +0 -1
- package/dist/components/input/meta.d.ts.map +0 -1
- package/dist/components/input/meta.js.map +0 -1
- package/dist/components/input/types.d.ts +0 -22
- package/dist/components/input/types.d.ts.map +0 -1
- package/dist/components/input/types.js +0 -2
- package/dist/components/input/types.js.map +0 -1
- package/dist/components/progress/Progress.d.ts.map +0 -1
- package/dist/components/progress/Progress.js.map +0 -1
- package/dist/components/progress/ProgressRing.d.ts.map +0 -1
- package/dist/components/progress/ProgressRing.js.map +0 -1
- package/dist/components/progress/index.d.ts +0 -4
- package/dist/components/progress/index.d.ts.map +0 -1
- package/dist/components/progress/index.js +0 -3
- package/dist/components/progress/index.js.map +0 -1
- package/dist/components/progress/meta.d.ts.map +0 -1
- package/dist/components/progress/meta.js.map +0 -1
- package/dist/components/progress/resolveProgressFraction.d.ts.map +0 -1
- package/dist/components/progress/resolveProgressFraction.js.map +0 -1
- package/dist/components/progress/resolveProgressRingGeometry.d.ts.map +0 -1
- package/dist/components/progress/resolveProgressRingGeometry.js.map +0 -1
- package/dist/components/progress/types.d.ts.map +0 -1
- package/dist/components/progress/types.js.map +0 -1
- package/dist/components/radio/Radio.d.ts.map +0 -1
- package/dist/components/radio/Radio.js.map +0 -1
- package/dist/components/radio/RadioGroup.d.ts.map +0 -1
- package/dist/components/radio/RadioGroup.js.map +0 -1
- package/dist/components/radio/RadioOptionControl.d.ts.map +0 -1
- package/dist/components/radio/RadioOptionControl.js.map +0 -1
- package/dist/components/radio/handleRadioOptionKeyDown.d.ts.map +0 -1
- package/dist/components/radio/handleRadioOptionKeyDown.js.map +0 -1
- package/dist/components/radio/index.d.ts +0 -4
- package/dist/components/radio/index.d.ts.map +0 -1
- package/dist/components/radio/index.js +0 -3
- package/dist/components/radio/index.js.map +0 -1
- package/dist/components/radio/meta.d.ts.map +0 -1
- package/dist/components/radio/meta.js.map +0 -1
- package/dist/components/radio/resolveRadioGroupThemeRecipe.d.ts.map +0 -1
- package/dist/components/radio/resolveRadioGroupThemeRecipe.js.map +0 -1
- package/dist/components/radio/resolveRadioOptionColors.d.ts.map +0 -1
- package/dist/components/radio/resolveRadioOptionColors.js.map +0 -1
- package/dist/components/radio/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/radio/themeRecipeMeta.js.map +0 -1
- package/dist/components/radio/types.d.ts.map +0 -1
- package/dist/components/radio/types.js +0 -2
- package/dist/components/radio/types.js.map +0 -1
- package/dist/components/textarea/Textarea.d.ts +0 -9
- package/dist/components/textarea/Textarea.d.ts.map +0 -1
- package/dist/components/textarea/Textarea.js +0 -18
- package/dist/components/textarea/Textarea.js.map +0 -1
- package/dist/components/textarea/index.d.ts +0 -3
- package/dist/components/textarea/index.d.ts.map +0 -1
- package/dist/components/textarea/index.js +0 -2
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/meta.d.ts +0 -45
- package/dist/components/textarea/meta.d.ts.map +0 -1
- package/dist/components/textarea/meta.js +0 -45
- package/dist/components/textarea/meta.js.map +0 -1
- package/dist/components/textarea/types.d.ts +0 -9
- package/dist/components/textarea/types.d.ts.map +0 -1
- package/dist/components/textarea/types.js +0 -2
- package/dist/components/textarea/types.js.map +0 -1
- package/dist/patterns/empty-state/EmptyState.d.ts.map +0 -1
- package/dist/patterns/empty-state/EmptyState.js.map +0 -1
- package/dist/patterns/empty-state/index.d.ts +0 -3
- package/dist/patterns/empty-state/index.d.ts.map +0 -1
- package/dist/patterns/empty-state/index.js +0 -2
- package/dist/patterns/empty-state/index.js.map +0 -1
- package/dist/patterns/empty-state/meta.d.ts.map +0 -1
- package/dist/patterns/empty-state/meta.js.map +0 -1
- package/dist/patterns/empty-state/types.d.ts.map +0 -1
- package/dist/patterns/empty-state/types.js +0 -2
- package/dist/patterns/empty-state/types.js.map +0 -1
- package/src/components/checkbox/index.ts +0 -3
- package/src/components/checkbox/meta.ts +0 -19
- package/src/components/input/index.ts +0 -2
- package/src/components/progress/index.ts +0 -3
- package/src/components/radio/index.ts +0 -3
- package/src/components/textarea/Textarea.tsx +0 -46
- package/src/components/textarea/index.ts +0 -2
- package/src/components/textarea/meta.ts +0 -46
- package/src/components/textarea/types.ts +0 -16
- package/src/patterns/empty-state/index.ts +0 -2
- /package/dist/{components → features/form}/radio/themeRecipeMeta.d.ts +0 -0
- /package/dist/{components/radio → features/form/radio/utils}/handleRadioOptionKeyDown.d.ts +0 -0
- /package/dist/{components/radio → features/form/radio/utils}/resolveRadioGroupThemeRecipe.js +0 -0
- /package/dist/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.js +0 -0
- /package/dist/{components/progress → features/progress/utils}/resolveProgressFraction.d.ts +0 -0
- /package/dist/{components/progress → features/progress/utils}/resolveProgressFraction.js +0 -0
- /package/dist/{components/progress → features/progress/utils}/resolveProgressRingGeometry.d.ts +0 -0
- /package/dist/{components/progress → features/progress/utils}/resolveProgressRingGeometry.js +0 -0
- /package/src/{patterns/empty-state/meta.ts → features/empty-state/emptyStateMeta.ts} +0 -0
- /package/src/{components/radio → features/form/radio/utils}/resolveRadioOptionColors.test.ts +0 -0
- /package/src/{components/progress/meta.ts → features/progress/progressMeta.ts} +0 -0
- /package/src/{components/progress → features/progress/utils}/resolveProgressFraction.test.ts +0 -0
- /package/src/{components/progress → features/progress/utils}/resolveProgressFraction.ts +0 -0
- /package/src/{components/progress → features/progress/utils}/resolveProgressRingGeometry.test.ts +0 -0
- /package/src/{components/progress → features/progress/utils}/resolveProgressRingGeometry.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { Modal } from '../../../../components/modal';
|
|
4
|
-
import { Progress } from '../../../../components/progress';
|
|
5
4
|
import { FormField } from '../../../../patterns/form-field';
|
|
6
5
|
import { withZoraThemeScope } from '../../../../theme/withZoraThemeScope';
|
|
7
6
|
import type { UploadAsset, UploaderProps, UploadType } from '../../../../types/upload';
|
|
@@ -9,6 +8,7 @@ import { Button } from '../../../button/public';
|
|
|
9
8
|
import { Icon } from '../../../icon/public';
|
|
10
9
|
import { Image } from '../../../image/public';
|
|
11
10
|
import { Box, Stack } from '../../../layout/public';
|
|
11
|
+
import { Progress } from '../../../progress/public';
|
|
12
12
|
import { Text } from '../../../typography/public';
|
|
13
13
|
import { validateUploadAsset } from '../../application/use-cases/validateUploadAsset';
|
|
14
14
|
import { createUploadPicker } from '../../composition/createUploadPicker';
|
package/src/index.ts
CHANGED
|
@@ -2,8 +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 { CheckboxGroupOption, CheckboxGroupProps, CheckboxProps } from './components/checkbox';
|
|
6
|
-
export { Checkbox, CheckboxGroup } from './components/checkbox';
|
|
7
5
|
export type { DatePickerProps, DatePickerValue } from './components/date-picker';
|
|
8
6
|
export { DatePicker } from './components/date-picker';
|
|
9
7
|
export type {
|
|
@@ -44,18 +42,12 @@ export type {
|
|
|
44
42
|
GradientRendererProviderProps,
|
|
45
43
|
} from './components/gradient';
|
|
46
44
|
export { Gradient, GradientRendererProvider } from './components/gradient';
|
|
47
|
-
export type { InputProps, InputTrailingAction } from './components/input';
|
|
48
|
-
export { Input } from './components/input';
|
|
49
45
|
export type { DropdownMenuProps, MenuAction, MenuActionIntent, MenuProps } from './components/menu';
|
|
50
46
|
export { DropdownMenu, Menu } from './components/menu';
|
|
51
47
|
export type { ModalProps } from './components/modal';
|
|
52
48
|
export { Modal } from './components/modal';
|
|
53
49
|
export type { PaginationProps } from './components/pagination';
|
|
54
50
|
export { Pagination } from './components/pagination';
|
|
55
|
-
export type { ProgressProps, ProgressRingProps } from './components/progress';
|
|
56
|
-
export { Progress, ProgressRing } from './components/progress';
|
|
57
|
-
export type { RadioGroupOption, RadioGroupProps, RadioProps } from './components/radio';
|
|
58
|
-
export { Radio, RadioGroup } from './components/radio';
|
|
59
51
|
export type { RatingProps } from './components/rating';
|
|
60
52
|
export { Rating } from './components/rating';
|
|
61
53
|
export type { SearchBarProps } from './components/search-bar';
|
|
@@ -74,8 +66,6 @@ export type {
|
|
|
74
66
|
export { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';
|
|
75
67
|
export type { TabItem, TabsProps, TabsVariant } from './components/tabs';
|
|
76
68
|
export { Tabs } from './components/tabs';
|
|
77
|
-
export type { TextareaProps } from './components/textarea';
|
|
78
|
-
export { Textarea } from './components/textarea';
|
|
79
69
|
export type { TimePickerProps, TimePickerValue } from './components/time-picker';
|
|
80
70
|
export { TimePicker } from './components/time-picker';
|
|
81
71
|
export type { ToastOptions, ToastProps, ToastProviderProps, ToastStatus } from './components/toast';
|
|
@@ -84,6 +74,10 @@ export type { ToolbarActionProps, ToolbarPosition, ToolbarProps } from './compon
|
|
|
84
74
|
export { Toolbar, ToolbarAction } from './components/toolbar';
|
|
85
75
|
export { ZORA_CORE_PLUGIN } from './corePlugin';
|
|
86
76
|
export { ZORA_CORE_PLUGIN_METADATA } from './corePluginMetadata';
|
|
77
|
+
export {
|
|
78
|
+
ActivityIndicator,
|
|
79
|
+
type ActivityIndicatorProps,
|
|
80
|
+
} from './features/activity-indicator/public';
|
|
87
81
|
export type { AvatarProps, AvatarShape, AvatarSize } from './features/avatar/public';
|
|
88
82
|
export type { AvatarGroupItem, AvatarGroupProps } from './features/avatar/public';
|
|
89
83
|
export { Avatar, resolveAvatarInitials } from './features/avatar/public';
|
|
@@ -133,6 +127,30 @@ export type {
|
|
|
133
127
|
DataTableSortState,
|
|
134
128
|
} from './features/data-table/public';
|
|
135
129
|
export { DataTable } from './features/data-table/public';
|
|
130
|
+
export {
|
|
131
|
+
EmptyState,
|
|
132
|
+
type EmptyStateAction,
|
|
133
|
+
type EmptyStateProps,
|
|
134
|
+
} from './features/empty-state/public';
|
|
135
|
+
export {
|
|
136
|
+
Checkbox,
|
|
137
|
+
CheckboxGroup,
|
|
138
|
+
type CheckboxGroupOption,
|
|
139
|
+
type CheckboxGroupProps,
|
|
140
|
+
type CheckboxProps,
|
|
141
|
+
} from './features/form/checkbox/public';
|
|
142
|
+
export {
|
|
143
|
+
Radio,
|
|
144
|
+
RadioGroup,
|
|
145
|
+
type RadioGroupOption,
|
|
146
|
+
type RadioGroupProps,
|
|
147
|
+
type RadioProps,
|
|
148
|
+
} from './features/form/radio/public';
|
|
149
|
+
export {
|
|
150
|
+
TextInput,
|
|
151
|
+
type TextInputProps,
|
|
152
|
+
type TextInputTrailingAction,
|
|
153
|
+
} from './features/form/text-input/public';
|
|
136
154
|
export type { IconProps } from './features/icon/public';
|
|
137
155
|
export { Icon } from './features/icon/public';
|
|
138
156
|
export type { ImageFit, ImageProps, SurfaceImageSource } from './features/image/public';
|
|
@@ -161,6 +179,12 @@ export type {
|
|
|
161
179
|
ManifestSectionListProps,
|
|
162
180
|
} from './features/list/public';
|
|
163
181
|
export { FlatList, SectionList } from './features/list/public';
|
|
182
|
+
export {
|
|
183
|
+
Progress,
|
|
184
|
+
type ProgressProps,
|
|
185
|
+
ProgressRing,
|
|
186
|
+
type ProgressRingProps,
|
|
187
|
+
} from './features/progress/public';
|
|
164
188
|
export type { SplashScreenLogoShape, SplashScreenProps } from './features/splash-screen/public';
|
|
165
189
|
export { SplashScreen } from './features/splash-screen/public';
|
|
166
190
|
export type { SurfaceProps, SurfaceVariant } from './features/surface/public';
|
|
@@ -292,8 +316,6 @@ export type { ConfirmDialogProps } from './patterns/confirm-dialog';
|
|
|
292
316
|
export { ConfirmDialog } from './patterns/confirm-dialog';
|
|
293
317
|
export type { DisclosureSectionProps } from './patterns/disclosure-section';
|
|
294
318
|
export { DisclosureSection } from './patterns/disclosure-section';
|
|
295
|
-
export type { EmptyStateAction, EmptyStateProps } from './patterns/empty-state';
|
|
296
|
-
export { EmptyState } from './patterns/empty-state';
|
|
297
319
|
export type { FilterBarProps } from './patterns/filter-bar';
|
|
298
320
|
export { FilterBar } from './patterns/filter-bar';
|
|
299
321
|
export type { HeroAction, HeroAlign, HeroLayout, HeroProps, HeroTone } from './patterns/hero';
|
|
@@ -39,7 +39,7 @@ describe('InteractionPolicy declaration', () => {
|
|
|
39
39
|
readSource('theme/ZoraBaseProps.ts'),
|
|
40
40
|
readComponent('app-bar', 'types.ts'),
|
|
41
41
|
readComponent('breadcrumbs', 'types.ts'),
|
|
42
|
-
|
|
42
|
+
readSource('types/empty-state.ts'),
|
|
43
43
|
readPattern('hero', 'types.ts'),
|
|
44
44
|
readSource('types/product-card.ts'),
|
|
45
45
|
readPattern('reader', 'types.ts'),
|
|
@@ -100,7 +100,7 @@ describe('Breadcrumbs', () => {
|
|
|
100
100
|
|
|
101
101
|
describe('EmptyState', () => {
|
|
102
102
|
test('forwards interactionPolicy to Card and internal Buttons', () => {
|
|
103
|
-
const source =
|
|
103
|
+
const source = readSource('features/empty-state/adapters/inbound/EmptyState.tsx');
|
|
104
104
|
|
|
105
105
|
expect(source).not.toMatch(/interactionPolicy:\s*_interactionPolicy/);
|
|
106
106
|
expect(source).toMatch(/<Card[\s\S]*?interactionPolicy=\{interactionPolicy\}/);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export const CONTAINER_ALLOWED_CHILDREN = [
|
|
2
|
+
'ActivityIndicator',
|
|
2
3
|
'Surface',
|
|
3
4
|
'Avatar',
|
|
4
5
|
'AvatarGroup',
|
|
@@ -28,8 +29,7 @@ export const CONTAINER_ALLOWED_CHILDREN = [
|
|
|
28
29
|
'ButtonGroup',
|
|
29
30
|
'RadioGroup',
|
|
30
31
|
'ThemeModeToggle',
|
|
31
|
-
'
|
|
32
|
-
'Textarea',
|
|
32
|
+
'TextInput',
|
|
33
33
|
'FormField',
|
|
34
34
|
'Card',
|
|
35
35
|
'Panel',
|
|
@@ -11,7 +11,7 @@ describe('ZORA bindable component metadata', () => {
|
|
|
11
11
|
expect(registry.Text?.bindings?.props?.text?.value.type).toBe('string');
|
|
12
12
|
expect(registry.Heading?.bindings?.props?.text?.value.type).toBe('string');
|
|
13
13
|
expect(registry.Button?.bindings?.props?.children?.value.type).toBe('string');
|
|
14
|
-
expect(registry.
|
|
14
|
+
expect(registry.TextInput?.bindings?.props?.value?.value.type).toBe('string');
|
|
15
15
|
expect(registry.Select?.bindings?.props?.value?.value.type).toBe('string');
|
|
16
16
|
expect(registry.Image?.bindings?.props?.source?.value.type).toBe('imageAsset');
|
|
17
17
|
expect(registry.DataTable?.bindings?.props?.rows?.value.type).toBe('array');
|
|
@@ -131,24 +131,24 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
131
131
|
},
|
|
132
132
|
},
|
|
133
133
|
},
|
|
134
|
-
|
|
135
|
-
name: '
|
|
134
|
+
TextInput: {
|
|
135
|
+
name: 'TextInput',
|
|
136
136
|
category: 'component',
|
|
137
|
-
description: 'Captures a single-line
|
|
137
|
+
description: 'Captures a string value in single-line, multiline, or secure-entry modes.',
|
|
138
138
|
directManifestNode: true,
|
|
139
139
|
allowedChildren: [],
|
|
140
140
|
bindings: {
|
|
141
141
|
props: {
|
|
142
142
|
value: {
|
|
143
143
|
label: 'Value',
|
|
144
|
-
description: 'Current input value.',
|
|
144
|
+
description: 'Current text input value.',
|
|
145
145
|
value: { type: 'string' },
|
|
146
146
|
acceptsFallback: true,
|
|
147
147
|
acceptsTransforms: true,
|
|
148
148
|
},
|
|
149
149
|
disabled: {
|
|
150
150
|
label: 'Disabled',
|
|
151
|
-
description: 'Whether the input is disabled.',
|
|
151
|
+
description: 'Whether the text input is disabled.',
|
|
152
152
|
value: { type: 'boolean' },
|
|
153
153
|
acceptsFallback: true,
|
|
154
154
|
acceptsTransforms: true,
|
|
@@ -159,7 +159,7 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
159
159
|
label: 'Change text',
|
|
160
160
|
description: 'Runs when the input value changes.',
|
|
161
161
|
payload: {
|
|
162
|
-
eventType: '
|
|
162
|
+
eventType: 'textInput.changeText',
|
|
163
163
|
fields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
164
164
|
},
|
|
165
165
|
},
|
|
@@ -168,7 +168,7 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
168
168
|
events: {
|
|
169
169
|
changeText: {
|
|
170
170
|
label: 'Change text',
|
|
171
|
-
eventType: '
|
|
171
|
+
eventType: 'textInput.changeText',
|
|
172
172
|
description: 'Emitted when the input value changes.',
|
|
173
173
|
payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
174
174
|
},
|
|
@@ -186,61 +186,6 @@ export const ZORA_BINDABLE_COMPONENT_META = {
|
|
|
186
186
|
},
|
|
187
187
|
},
|
|
188
188
|
},
|
|
189
|
-
Textarea: {
|
|
190
|
-
name: 'Textarea',
|
|
191
|
-
category: 'component',
|
|
192
|
-
description: 'Captures a multiline string value.',
|
|
193
|
-
directManifestNode: true,
|
|
194
|
-
allowedChildren: [],
|
|
195
|
-
bindings: {
|
|
196
|
-
props: {
|
|
197
|
-
value: {
|
|
198
|
-
label: 'Value',
|
|
199
|
-
description: 'Current textarea value.',
|
|
200
|
-
value: { type: 'string' },
|
|
201
|
-
acceptsFallback: true,
|
|
202
|
-
acceptsTransforms: true,
|
|
203
|
-
},
|
|
204
|
-
disabled: {
|
|
205
|
-
label: 'Disabled',
|
|
206
|
-
description: 'Whether the textarea is disabled.',
|
|
207
|
-
value: { type: 'boolean' },
|
|
208
|
-
acceptsFallback: true,
|
|
209
|
-
acceptsTransforms: true,
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
events: {
|
|
213
|
-
changeText: {
|
|
214
|
-
label: 'Change text',
|
|
215
|
-
description: 'Runs when the textarea value changes.',
|
|
216
|
-
payload: {
|
|
217
|
-
eventType: 'textarea.changeText',
|
|
218
|
-
fields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
events: {
|
|
224
|
-
changeText: {
|
|
225
|
-
label: 'Change text',
|
|
226
|
-
eventType: 'textarea.changeText',
|
|
227
|
-
description: 'Emitted when the textarea value changes.',
|
|
228
|
-
payloadFields: [{ path: 'value', type: 'string', label: 'Value' }],
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
props: {
|
|
232
|
-
value: {
|
|
233
|
-
type: 'string',
|
|
234
|
-
category: 'Content',
|
|
235
|
-
label: 'Value',
|
|
236
|
-
},
|
|
237
|
-
disabled: {
|
|
238
|
-
type: 'boolean',
|
|
239
|
-
category: 'State',
|
|
240
|
-
label: 'Disabled',
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
189
|
Select: {
|
|
245
190
|
name: 'Select',
|
|
246
191
|
category: 'component',
|
|
@@ -121,6 +121,7 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
121
121
|
|
|
122
122
|
test('direct manifest node leaf/container rules', () => {
|
|
123
123
|
const expectedLeafNodes = new Set([
|
|
124
|
+
'ActivityIndicator',
|
|
124
125
|
'Avatar',
|
|
125
126
|
'AvatarGroup',
|
|
126
127
|
'Badge',
|
|
@@ -135,10 +136,12 @@ describe('ZORA_COMPONENT_META invariants', () => {
|
|
|
135
136
|
'EmptyState',
|
|
136
137
|
'Hero',
|
|
137
138
|
'Button',
|
|
139
|
+
'Checkbox',
|
|
140
|
+
'CheckboxGroup',
|
|
141
|
+
'Radio',
|
|
138
142
|
'RadioGroup',
|
|
139
143
|
'ThemeModeToggle',
|
|
140
|
-
'
|
|
141
|
-
'Textarea',
|
|
144
|
+
'TextInput',
|
|
142
145
|
'Text',
|
|
143
146
|
'Heading',
|
|
144
147
|
'Icon',
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { appBarMeta } from '../components/app-bar/meta';
|
|
2
2
|
import { breadcrumbsMeta } from '../components/breadcrumbs/meta';
|
|
3
|
-
import { checkboxGroupMeta, checkboxMeta } from '../components/checkbox/meta';
|
|
4
3
|
import { datePickerMeta } from '../components/date-picker/meta';
|
|
5
4
|
import { formActionsMeta, formErrorMeta, formFieldMeta, formMeta } from '../components/form/meta';
|
|
6
5
|
import { gradientMeta } from '../components/gradient/meta';
|
|
7
|
-
import { inputMeta } from '../components/input/meta';
|
|
8
6
|
import { dropdownMenuMeta, menuMeta } from '../components/menu/meta';
|
|
9
7
|
import { modalMeta } from '../components/modal/meta';
|
|
10
8
|
import { paginationMeta } from '../components/pagination/meta';
|
|
11
|
-
import { progressMeta, progressRingMeta } from '../components/progress/meta';
|
|
12
|
-
import { radioGroupMeta, radioMeta } from '../components/radio/meta';
|
|
13
9
|
import { ratingMeta } from '../components/rating/meta';
|
|
14
10
|
import { searchBarMeta } from '../components/search-bar/meta';
|
|
15
11
|
import { selectMeta } from '../components/select/meta';
|
|
@@ -20,10 +16,10 @@ import {
|
|
|
20
16
|
skeletonTextMeta,
|
|
21
17
|
} from '../components/skeleton/meta';
|
|
22
18
|
import { tabsMeta } from '../components/tabs/meta';
|
|
23
|
-
import { textareaMeta } from '../components/textarea/meta';
|
|
24
19
|
import { timePickerMeta } from '../components/time-picker/meta';
|
|
25
20
|
import { toastMeta, toastProviderMeta } from '../components/toast/meta';
|
|
26
21
|
import { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';
|
|
22
|
+
import { activityIndicatorMeta } from '../features/activity-indicator/activityIndicatorMeta';
|
|
27
23
|
import { avatarGroupMeta } from '../features/avatar/avatarGroupMeta';
|
|
28
24
|
import { avatarMeta } from '../features/avatar/avatarMeta';
|
|
29
25
|
import { badgeMeta } from '../features/badge/badgeMeta';
|
|
@@ -39,6 +35,10 @@ import { productCardMeta } from '../features/card/productCardMeta';
|
|
|
39
35
|
import { chipGroupMeta } from '../features/chip/chipGroupMeta';
|
|
40
36
|
import { chipMeta } from '../features/chip/chipMeta';
|
|
41
37
|
import { dataTableMeta } from '../features/data-table/dataTableMeta';
|
|
38
|
+
import { emptyStateMeta } from '../features/empty-state/emptyStateMeta';
|
|
39
|
+
import { checkboxGroupMeta, checkboxMeta } from '../features/form/checkbox/checkboxMeta';
|
|
40
|
+
import { radioGroupMeta, radioMeta } from '../features/form/radio/radioMeta';
|
|
41
|
+
import { textInputMeta } from '../features/form/text-input/textInputMeta';
|
|
42
42
|
import { iconMeta } from '../features/icon/iconMeta';
|
|
43
43
|
import { imageMeta } from '../features/image/imageMeta';
|
|
44
44
|
import { boxMeta } from '../features/layout/boxMeta';
|
|
@@ -49,6 +49,7 @@ import { gridMeta } from '../features/layout/gridMeta';
|
|
|
49
49
|
import { stackMeta } from '../features/layout/stackMeta';
|
|
50
50
|
import { flatListMeta } from '../features/list/flatListMeta';
|
|
51
51
|
import { sectionListMeta } from '../features/list/sectionListMeta';
|
|
52
|
+
import { progressMeta, progressRingMeta } from '../features/progress/progressMeta';
|
|
52
53
|
import { splashScreenMeta } from '../features/splash-screen/splashScreenMeta';
|
|
53
54
|
import { surfaceMeta } from '../features/surface/surfaceMeta';
|
|
54
55
|
import { headingMeta } from '../features/typography/headingMeta';
|
|
@@ -73,7 +74,6 @@ import { chatListItemMeta } from '../patterns/chat-list-item/meta';
|
|
|
73
74
|
import { collectionEditorMeta } from '../patterns/collection-editor/meta';
|
|
74
75
|
import { confirmDialogMeta } from '../patterns/confirm-dialog/meta';
|
|
75
76
|
import { disclosureSectionMeta } from '../patterns/disclosure-section/meta';
|
|
76
|
-
import { emptyStateMeta } from '../patterns/empty-state/meta';
|
|
77
77
|
import { filterBarMeta } from '../patterns/filter-bar/meta';
|
|
78
78
|
import { heroMeta } from '../patterns/hero/meta';
|
|
79
79
|
import { inspectorFieldMeta } from '../patterns/inspector-field/meta';
|
|
@@ -102,6 +102,7 @@ import type { ZoraComponentMetaRegistry } from './types';
|
|
|
102
102
|
|
|
103
103
|
export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMetadata({
|
|
104
104
|
...foundationMetas,
|
|
105
|
+
ActivityIndicator: activityIndicatorMeta,
|
|
105
106
|
Box: boxMeta,
|
|
106
107
|
Container: containerMeta,
|
|
107
108
|
Stack: stackMeta,
|
|
@@ -132,7 +133,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
132
133
|
Icon: iconMeta,
|
|
133
134
|
IconButton: iconButtonMeta,
|
|
134
135
|
Image: imageMeta,
|
|
135
|
-
|
|
136
|
+
TextInput: textInputMeta,
|
|
136
137
|
MediaCard: mediaCardMeta,
|
|
137
138
|
Menu: menuMeta,
|
|
138
139
|
MetricCard: metricCardMeta,
|
|
@@ -152,7 +153,6 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
152
153
|
SplashScreen: splashScreenMeta,
|
|
153
154
|
Tabs: tabsMeta,
|
|
154
155
|
Text: textMeta,
|
|
155
|
-
Textarea: textareaMeta,
|
|
156
156
|
TimePicker: timePickerMeta,
|
|
157
157
|
Toast: toastMeta,
|
|
158
158
|
ToastProvider: toastProviderMeta,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { radioGroupThemeRecipeMeta } from '../components/radio/themeRecipeMeta';
|
|
2
1
|
import { buttonThemeRecipeMeta } from '../features/button/utils/themeRecipeMeta';
|
|
3
2
|
import { cardThemeRecipeMeta } from '../features/card/utils/themeRecipeMeta';
|
|
3
|
+
import { radioGroupThemeRecipeMeta } from '../features/form/radio/themeRecipeMeta';
|
|
4
4
|
import { headingThemeRecipeMeta } from '../features/typography/utils/headingThemeRecipeMeta';
|
|
5
5
|
import { textThemeRecipeMeta } from '../features/typography/utils/textThemeRecipeMeta';
|
|
6
6
|
import { panelThemeRecipeMeta } from '../patterns/panel/themeRecipeMeta';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { AppBar } from '../../components/app-bar';
|
|
4
|
-
import { Progress } from '../../components/progress';
|
|
5
4
|
import { IconButton } from '../../features/button/public';
|
|
6
5
|
import { Box, Stack } from '../../features/layout/public';
|
|
6
|
+
import { Progress } from '../../features/progress/public';
|
|
7
7
|
import { Surface } from '../../features/surface/public';
|
|
8
8
|
import { Text } from '../../features/typography/public';
|
|
9
9
|
import { Center, Inline } from '../../foundation';
|
|
@@ -3,12 +3,12 @@ import type { AppCategory } from '@ankhorage/contracts';
|
|
|
3
3
|
import { APP_CATEGORIES } from '@ankhorage/contracts';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
import { Input } from '../../components/input';
|
|
7
6
|
import { Select } from '../../components/select';
|
|
8
7
|
import { Tabs } from '../../components/tabs';
|
|
9
8
|
import { Badge } from '../../features/badge/public';
|
|
10
9
|
import { Button } from '../../features/button/public';
|
|
11
10
|
import { Card } from '../../features/card/public';
|
|
11
|
+
import { TextInput } from '../../features/form/text-input/public';
|
|
12
12
|
import { Box, Stack } from '../../features/layout/public';
|
|
13
13
|
import { Heading } from '../../features/typography/public';
|
|
14
14
|
import { Text } from '../../features/typography/public';
|
|
@@ -140,7 +140,7 @@ function ThemeComposerInner({
|
|
|
140
140
|
<Stack gap="m">
|
|
141
141
|
<Stack gap="xs">
|
|
142
142
|
<Text variant="label">Name</Text>
|
|
143
|
-
<
|
|
143
|
+
<TextInput
|
|
144
144
|
value={nameDraft.inputValue}
|
|
145
145
|
onChangeText={handleNameChange}
|
|
146
146
|
placeholder="My theme"
|
|
@@ -182,7 +182,7 @@ function ThemeComposerInner({
|
|
|
182
182
|
<Stack gap="m">
|
|
183
183
|
<Stack direction="row" gap="m" align="center">
|
|
184
184
|
<Box flex={1}>
|
|
185
|
-
<
|
|
185
|
+
<TextInput
|
|
186
186
|
value={hexDraft.inputValue}
|
|
187
187
|
onChangeText={handleHexChange}
|
|
188
188
|
placeholder={HEX_INPUT_PLACEHOLDER}
|
package/src/registry.ts
CHANGED
|
@@ -3,25 +3,21 @@ import type React from 'react';
|
|
|
3
3
|
|
|
4
4
|
import { AppBar } from './components/app-bar';
|
|
5
5
|
import { Breadcrumbs } from './components/breadcrumbs';
|
|
6
|
-
import { Checkbox, CheckboxGroup } from './components/checkbox';
|
|
7
6
|
import { DatePicker } from './components/date-picker';
|
|
8
7
|
import { Form, FormActions, FormError, FormField } from './components/form';
|
|
9
8
|
import { Gradient } from './components/gradient';
|
|
10
|
-
import { Input } from './components/input';
|
|
11
9
|
import { DropdownMenu, Menu } from './components/menu';
|
|
12
10
|
import { Modal } from './components/modal';
|
|
13
11
|
import { Pagination } from './components/pagination';
|
|
14
|
-
import { Progress, ProgressRing } from './components/progress';
|
|
15
|
-
import { Radio, RadioGroup } from './components/radio';
|
|
16
12
|
import { Rating } from './components/rating';
|
|
17
13
|
import { SearchBar } from './components/search-bar';
|
|
18
14
|
import { Select } from './components/select';
|
|
19
15
|
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './components/skeleton';
|
|
20
16
|
import { Tabs } from './components/tabs';
|
|
21
|
-
import { Textarea } from './components/textarea';
|
|
22
17
|
import { TimePicker } from './components/time-picker';
|
|
23
18
|
import { Toast } from './components/toast';
|
|
24
19
|
import { Toolbar, ToolbarAction } from './components/toolbar';
|
|
20
|
+
import { ActivityIndicator } from './features/activity-indicator/public';
|
|
25
21
|
import { Avatar } from './features/avatar/public';
|
|
26
22
|
import { AvatarGroup } from './features/avatar/public';
|
|
27
23
|
import { Badge } from './features/badge/public';
|
|
@@ -37,11 +33,16 @@ import { ProductCard } from './features/card/public';
|
|
|
37
33
|
import { Chip } from './features/chip/public';
|
|
38
34
|
import { ChipGroup } from './features/chip/public';
|
|
39
35
|
import { DataTable } from './features/data-table/public';
|
|
36
|
+
import { EmptyState } from './features/empty-state/public';
|
|
37
|
+
import { Checkbox, CheckboxGroup } from './features/form/checkbox/public';
|
|
38
|
+
import { Radio, RadioGroup } from './features/form/radio/public';
|
|
39
|
+
import { TextInput } from './features/form/text-input/public';
|
|
40
40
|
import { Icon } from './features/icon/public';
|
|
41
41
|
import { Image } from './features/image/public';
|
|
42
42
|
import { Box, Container, Divider, Grid, Stack } from './features/layout/public';
|
|
43
43
|
import { ContentRail } from './features/layout/public';
|
|
44
44
|
import { FlatList, SectionList } from './features/list/public';
|
|
45
|
+
import { Progress, ProgressRing } from './features/progress/public';
|
|
45
46
|
import { SplashScreen } from './features/splash-screen/public';
|
|
46
47
|
import { Surface } from './features/surface/public';
|
|
47
48
|
import { Heading } from './features/typography/public';
|
|
@@ -66,7 +67,6 @@ import { ChatListItem } from './patterns/chat-list-item';
|
|
|
66
67
|
import { CollectionEditor } from './patterns/collection-editor';
|
|
67
68
|
import { ConfirmDialog } from './patterns/confirm-dialog';
|
|
68
69
|
import { DisclosureSection } from './patterns/disclosure-section';
|
|
69
|
-
import { EmptyState } from './patterns/empty-state';
|
|
70
70
|
import { FilterBar } from './patterns/filter-bar';
|
|
71
71
|
import { Hero } from './patterns/hero';
|
|
72
72
|
import { InspectorField } from './patterns/inspector-field';
|
|
@@ -113,6 +113,7 @@ type _RegistryInteractionPolicyCheck = _AssertTrue<
|
|
|
113
113
|
>;
|
|
114
114
|
|
|
115
115
|
const _ZORA_COMPONENT_REGISTRY = {
|
|
116
|
+
ActivityIndicator,
|
|
116
117
|
AppBar,
|
|
117
118
|
Avatar,
|
|
118
119
|
AvatarGroup,
|
|
@@ -137,7 +138,7 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
137
138
|
Icon,
|
|
138
139
|
IconButton,
|
|
139
140
|
Image,
|
|
140
|
-
|
|
141
|
+
TextInput,
|
|
141
142
|
MediaCard,
|
|
142
143
|
Menu,
|
|
143
144
|
MetricCard,
|
|
@@ -157,7 +158,6 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
157
158
|
SplashScreen,
|
|
158
159
|
Tabs,
|
|
159
160
|
Text,
|
|
160
|
-
Textarea,
|
|
161
161
|
TimePicker,
|
|
162
162
|
Toast,
|
|
163
163
|
Toolbar,
|
|
@@ -36,7 +36,7 @@ const REQUIRED_SHOWCASE_COVERAGE = {
|
|
|
36
36
|
'Icon',
|
|
37
37
|
'IconButton',
|
|
38
38
|
'Image',
|
|
39
|
-
'
|
|
39
|
+
'TextInput',
|
|
40
40
|
'MediaCard',
|
|
41
41
|
'MetricCard',
|
|
42
42
|
'Modal',
|
|
@@ -49,7 +49,6 @@ const REQUIRED_SHOWCASE_COVERAGE = {
|
|
|
49
49
|
'Select',
|
|
50
50
|
'Tabs',
|
|
51
51
|
'Text',
|
|
52
|
-
'Textarea',
|
|
53
52
|
'Toolbar',
|
|
54
53
|
'ToolbarAction',
|
|
55
54
|
],
|
|
@@ -63,8 +63,8 @@ const scopedComponentFiles = [
|
|
|
63
63
|
join(srcDir, 'features', 'card', 'adapters', 'inbound', 'Card.tsx'),
|
|
64
64
|
join(srcDir, 'features', 'card', 'adapters', 'inbound', 'MediaCard.tsx'),
|
|
65
65
|
join(srcDir, 'features', 'card', 'adapters', 'inbound', 'MetricCard.tsx'),
|
|
66
|
-
join(srcDir, '
|
|
67
|
-
join(srcDir, '
|
|
66
|
+
join(srcDir, 'features', 'form', 'checkbox', 'adapters', 'inbound', 'Checkbox.tsx'),
|
|
67
|
+
join(srcDir, 'features', 'form', 'checkbox', 'adapters', 'inbound', 'CheckboxGroup.tsx'),
|
|
68
68
|
join(srcDir, 'components', 'form', 'Form.tsx'),
|
|
69
69
|
join(srcDir, 'components', 'form', 'FormActions.tsx'),
|
|
70
70
|
join(srcDir, 'components', 'form', 'FormError.tsx'),
|
|
@@ -72,16 +72,15 @@ const scopedComponentFiles = [
|
|
|
72
72
|
join(srcDir, 'features', 'typography', 'adapters', 'inbound', 'Heading.tsx'),
|
|
73
73
|
join(srcDir, 'features', 'icon', 'adapters', 'inbound', 'Icon.tsx'),
|
|
74
74
|
join(srcDir, 'features', 'button', 'adapters', 'inbound', 'IconButton.tsx'),
|
|
75
|
-
join(srcDir, '
|
|
75
|
+
join(srcDir, 'features', 'form', 'text-input', 'adapters', 'inbound', 'TextInput.tsx'),
|
|
76
76
|
join(srcDir, 'components', 'modal', 'Modal.tsx'),
|
|
77
|
-
join(srcDir, '
|
|
78
|
-
join(srcDir, '
|
|
79
|
-
join(srcDir, '
|
|
77
|
+
join(srcDir, 'features', 'progress', 'adapters', 'inbound', 'Progress.tsx'),
|
|
78
|
+
join(srcDir, 'features', 'form', 'radio', 'adapters', 'inbound', 'Radio.tsx'),
|
|
79
|
+
join(srcDir, 'features', 'form', 'radio', 'adapters', 'inbound', 'RadioGroup.tsx'),
|
|
80
80
|
join(srcDir, 'components', 'rating', 'Rating.tsx'),
|
|
81
81
|
join(srcDir, 'components', 'select', 'Select.tsx'),
|
|
82
82
|
join(srcDir, 'components', 'tabs', 'Tabs.tsx'),
|
|
83
83
|
join(srcDir, 'features', 'typography', 'adapters', 'inbound', 'Text.tsx'),
|
|
84
|
-
join(srcDir, 'components', 'textarea', 'Textarea.tsx'),
|
|
85
84
|
join(srcDir, 'components', 'toolbar', 'Toolbar.tsx'),
|
|
86
85
|
join(srcDir, 'components', 'toolbar', 'ToolbarAction.tsx'),
|
|
87
86
|
|
|
@@ -99,7 +98,7 @@ const scopedComponentFiles = [
|
|
|
99
98
|
join(srcDir, 'patterns', 'collection-editor', 'CollectionEditor.tsx'),
|
|
100
99
|
join(srcDir, 'patterns', 'confirm-dialog', 'ConfirmDialog.tsx'),
|
|
101
100
|
join(srcDir, 'patterns', 'disclosure-section', 'DisclosureSection.tsx'),
|
|
102
|
-
join(srcDir, '
|
|
101
|
+
join(srcDir, 'features', 'empty-state', 'adapters', 'inbound', 'EmptyState.tsx'),
|
|
103
102
|
join(srcDir, 'patterns', 'form-field', 'FormField.tsx'),
|
|
104
103
|
join(srcDir, 'patterns', 'inspector-field', 'InspectorField.tsx'),
|
|
105
104
|
join(srcDir, 'patterns', 'list', 'List.tsx'),
|
|
@@ -136,20 +135,19 @@ const scopedPropTypeFiles = [
|
|
|
136
135
|
join(srcDir, 'types', 'card.ts'),
|
|
137
136
|
join(srcDir, 'types', 'media-card.ts'),
|
|
138
137
|
join(srcDir, 'types', 'metric-card.ts'),
|
|
139
|
-
join(srcDir, '
|
|
138
|
+
join(srcDir, 'types', 'checkbox.ts'),
|
|
140
139
|
join(srcDir, 'components', 'form', 'types.ts'),
|
|
141
140
|
join(srcDir, 'types', 'heading.ts'),
|
|
142
141
|
join(srcDir, 'types', 'icon.ts'),
|
|
143
142
|
join(srcDir, 'types', 'icon-button.ts'),
|
|
144
|
-
join(srcDir, '
|
|
143
|
+
join(srcDir, 'types', 'text-input.ts'),
|
|
145
144
|
join(srcDir, 'components', 'modal', 'types.ts'),
|
|
146
|
-
join(srcDir, '
|
|
147
|
-
join(srcDir, '
|
|
145
|
+
join(srcDir, 'types', 'progress.ts'),
|
|
146
|
+
join(srcDir, 'types', 'radio.ts'),
|
|
148
147
|
join(srcDir, 'components', 'rating', 'types.ts'),
|
|
149
148
|
join(srcDir, 'components', 'select', 'types.ts'),
|
|
150
149
|
join(srcDir, 'components', 'tabs', 'types.ts'),
|
|
151
150
|
join(srcDir, 'types', 'text.ts'),
|
|
152
|
-
join(srcDir, 'components', 'textarea', 'types.ts'),
|
|
153
151
|
join(srcDir, 'components', 'toolbar', 'types.ts'),
|
|
154
152
|
|
|
155
153
|
join(srcDir, 'layout', 'app-shell', 'types.ts'),
|
|
@@ -163,7 +161,7 @@ const scopedPropTypeFiles = [
|
|
|
163
161
|
join(srcDir, 'patterns', 'collection-editor', 'types.ts'),
|
|
164
162
|
join(srcDir, 'patterns', 'confirm-dialog', 'types.ts'),
|
|
165
163
|
join(srcDir, 'patterns', 'disclosure-section', 'types.ts'),
|
|
166
|
-
join(srcDir, '
|
|
164
|
+
join(srcDir, 'types', 'empty-state.ts'),
|
|
167
165
|
join(srcDir, 'patterns', 'form-field', 'types.ts'),
|
|
168
166
|
join(srcDir, 'patterns', 'inspector-field', 'types.ts'),
|
|
169
167
|
join(srcDir, 'patterns', 'list', 'types.ts'),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ActivityIndicatorProps as ReactNativeActivityIndicatorProps } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
|
+
|
|
5
|
+
export interface ActivityIndicatorProps
|
|
6
|
+
extends ZoraBaseProps, Omit<ReactNativeActivityIndicatorProps, 'color'> {
|
|
7
|
+
color?: ReactNativeActivityIndicatorProps['color'];
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CheckboxProps as SurfaceCheckboxProps } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
5
|
|
|
6
6
|
export interface CheckboxProps
|
|
7
7
|
extends ZoraBaseProps, Omit<SurfaceCheckboxProps, 'mode' | 'themeId'> {}
|
|
@@ -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 interface EmptyStateAction {
|
|
7
7
|
label: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RoleSemantics, SurfaceTheme } from '@ankhorage/surface';
|
|
2
2
|
|
|
3
|
-
import type { ZoraColor, ZoraControlSize } from '
|
|
4
|
-
import type { ZoraBaseProps } from '
|
|
3
|
+
import type { ZoraColor, ZoraControlSize } from '../internal/recipes';
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
5
|
|
|
6
6
|
export interface ProgressProps extends ZoraBaseProps {
|
|
7
7
|
value: number;
|