@ankhorage/zora 7.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 +12 -0
- package/README.md +1 -1
- package/dist/components/app-bar/AppBar.d.ts.map +1 -1
- package/dist/components/app-bar/AppBar.js +5 -4
- package/dist/components/app-bar/AppBar.js.map +1 -1
- package/dist/components/breadcrumbs/Breadcrumbs.js +3 -3
- package/dist/components/breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/date-picker/DatePicker.js +3 -3
- package/dist/components/date-picker/DatePicker.js.map +1 -1
- package/dist/components/form/Form.js +1 -1
- package/dist/components/form/Form.js.map +1 -1
- package/dist/components/form/FormActions.js +2 -2
- package/dist/components/form/FormActions.js.map +1 -1
- package/dist/components/form/FormError.js +2 -2
- package/dist/components/form/FormError.js.map +1 -1
- package/dist/components/form/FormField.js +4 -4
- 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/gradient/Gradient.js +1 -1
- package/dist/components/gradient/Gradient.js.map +1 -1
- package/dist/components/gradient/types.d.ts +1 -1
- package/dist/components/gradient/types.d.ts.map +1 -1
- package/dist/components/gradient/types.js.map +1 -1
- package/dist/components/menu/Menu.js +2 -2
- package/dist/components/menu/Menu.js.map +1 -1
- package/dist/components/modal/Modal.js +3 -3
- package/dist/components/modal/Modal.js.map +1 -1
- package/dist/components/pagination/Pagination.js +3 -3
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/rating/Rating.js +1 -1
- package/dist/components/rating/Rating.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/components/select/Select.js +1 -1
- package/dist/components/select/Select.js.map +1 -1
- package/dist/components/skeleton/Skeleton.js +1 -1
- package/dist/components/skeleton/Skeleton.js.map +1 -1
- package/dist/components/skeleton/SkeletonCard.js +3 -3
- package/dist/components/skeleton/SkeletonCard.js.map +1 -1
- package/dist/components/skeleton/SkeletonText.js +1 -1
- package/dist/components/skeleton/SkeletonText.js.map +1 -1
- package/dist/components/skeleton/types.d.ts +1 -1
- package/dist/components/skeleton/types.d.ts.map +1 -1
- package/dist/components/skeleton/types.js.map +1 -1
- package/dist/components/tabs/Tabs.js +3 -3
- package/dist/components/tabs/Tabs.js.map +1 -1
- package/dist/components/time-picker/TimePicker.js +3 -3
- package/dist/components/time-picker/TimePicker.js.map +1 -1
- package/dist/components/toolbar/Toolbar.js +2 -2
- package/dist/components/toolbar/Toolbar.js.map +1 -1
- package/dist/components/toolbar/ToolbarAction.js +1 -1
- package/dist/components/toolbar/ToolbarAction.js.map +1 -1
- package/dist/constants.d.ts +23 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +23 -0
- package/dist/constants.js.map +1 -0
- package/dist/corePluginMetadata.js +10 -1
- package/dist/corePluginMetadata.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/avatar/adapters/inbound/Avatar.d.ts +7 -0
- package/dist/features/avatar/adapters/inbound/Avatar.d.ts.map +1 -0
- package/dist/features/avatar/adapters/inbound/Avatar.js +101 -0
- package/dist/features/avatar/adapters/inbound/Avatar.js.map +1 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts +7 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.d.ts.map +1 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js +29 -0
- package/dist/features/avatar/adapters/inbound/AvatarGroup.js.map +1 -0
- package/dist/features/avatar/avatarGroupMeta.d.ts +68 -0
- package/dist/features/avatar/avatarGroupMeta.d.ts.map +1 -0
- package/dist/features/avatar/avatarGroupMeta.js +24 -0
- package/dist/features/avatar/avatarGroupMeta.js.map +1 -0
- package/dist/features/avatar/avatarMeta.d.ts +41 -0
- package/dist/features/avatar/avatarMeta.d.ts.map +1 -0
- package/dist/features/avatar/avatarMeta.js +41 -0
- package/dist/features/avatar/avatarMeta.js.map +1 -0
- package/dist/features/avatar/public.d.ts +6 -0
- package/dist/features/avatar/public.d.ts.map +1 -0
- package/dist/features/avatar/public.js +4 -0
- package/dist/features/avatar/public.js.map +1 -0
- package/dist/features/avatar/utils/resolveAvatarInitials.d.ts.map +1 -0
- package/dist/features/avatar/utils/resolveAvatarInitials.js.map +1 -0
- package/dist/features/badge/adapters/inbound/Badge.d.ts +7 -0
- package/dist/features/badge/adapters/inbound/Badge.d.ts.map +1 -0
- package/dist/features/badge/adapters/inbound/Badge.js +13 -0
- package/dist/features/badge/adapters/inbound/Badge.js.map +1 -0
- package/dist/features/badge/badgeMeta.d.ts +28 -0
- package/dist/features/badge/badgeMeta.d.ts.map +1 -0
- package/dist/features/badge/badgeMeta.js +28 -0
- package/dist/features/badge/badgeMeta.js.map +1 -0
- package/dist/features/badge/public.d.ts +3 -0
- package/dist/features/badge/public.d.ts.map +1 -0
- package/dist/features/badge/public.js +2 -0
- package/dist/features/badge/public.js.map +1 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts +5 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.d.ts.map +1 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js +63 -0
- package/dist/features/bottom-sheet/adapters/inbound/BottomSheet.js.map +1 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +60 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts.map +1 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.js +31 -0
- package/dist/features/bottom-sheet/bottomSheetMeta.js.map +1 -0
- package/dist/features/bottom-sheet/public.d.ts +2 -0
- package/dist/features/bottom-sheet/public.d.ts.map +1 -1
- package/dist/features/bottom-sheet/public.js +1 -0
- package/dist/features/bottom-sheet/public.js.map +1 -1
- package/dist/features/button/adapters/inbound/Button.d.ts +15 -0
- package/dist/features/button/adapters/inbound/Button.d.ts.map +1 -0
- package/dist/features/button/adapters/inbound/Button.js +23 -0
- package/dist/features/button/adapters/inbound/Button.js.map +1 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.d.ts +7 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.d.ts.map +1 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.js +76 -0
- package/dist/features/button/adapters/inbound/ButtonGroup.js.map +1 -0
- package/dist/features/button/adapters/inbound/IconButton.d.ts +7 -0
- package/dist/features/button/adapters/inbound/IconButton.d.ts.map +1 -0
- package/dist/features/button/adapters/inbound/IconButton.js +13 -0
- package/dist/features/button/adapters/inbound/IconButton.js.map +1 -0
- package/dist/features/button/buttonGroupMeta.d.ts +44 -0
- package/dist/features/button/buttonGroupMeta.d.ts.map +1 -0
- package/dist/features/button/buttonGroupMeta.js +44 -0
- package/dist/features/button/buttonGroupMeta.js.map +1 -0
- package/dist/features/button/buttonMeta.d.ts +73 -0
- package/dist/features/button/buttonMeta.d.ts.map +1 -0
- package/dist/features/button/buttonMeta.js +50 -0
- package/dist/features/button/buttonMeta.js.map +1 -0
- package/dist/features/button/iconButtonMeta.d.ts +47 -0
- package/dist/features/button/iconButtonMeta.d.ts.map +1 -0
- package/dist/features/button/iconButtonMeta.js +47 -0
- package/dist/features/button/iconButtonMeta.js.map +1 -0
- package/dist/features/button/public.d.ts +7 -0
- package/dist/features/button/public.d.ts.map +1 -0
- package/dist/features/button/public.js +4 -0
- package/dist/features/button/public.js.map +1 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +9 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts.map +1 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.js +30 -0
- package/dist/features/button/utils/resolveButtonThemeRecipe.js.map +1 -0
- package/dist/features/button/utils/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/button/utils/themeRecipeMeta.js +28 -0
- package/dist/features/button/utils/themeRecipeMeta.js.map +1 -0
- package/dist/features/card/adapters/inbound/Card.d.ts +15 -0
- package/dist/features/card/adapters/inbound/Card.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/Card.js +53 -0
- package/dist/features/card/adapters/inbound/Card.js.map +1 -0
- package/dist/features/card/adapters/inbound/MediaCard.d.ts +7 -0
- package/dist/features/card/adapters/inbound/MediaCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/MediaCard.js +67 -0
- package/dist/features/card/adapters/inbound/MediaCard.js.map +1 -0
- package/dist/features/card/adapters/inbound/MetricCard.d.ts +7 -0
- package/dist/features/card/adapters/inbound/MetricCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/MetricCard.js +47 -0
- package/dist/features/card/adapters/inbound/MetricCard.js.map +1 -0
- package/dist/features/card/adapters/inbound/PostCard.d.ts +9 -0
- package/dist/features/card/adapters/inbound/PostCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/PostCard.js +139 -0
- package/dist/features/card/adapters/inbound/PostCard.js.map +1 -0
- package/dist/features/card/adapters/inbound/ProductCard.d.ts +5 -0
- package/dist/features/card/adapters/inbound/ProductCard.d.ts.map +1 -0
- package/dist/features/card/adapters/inbound/ProductCard.js +71 -0
- package/dist/features/card/adapters/inbound/ProductCard.js.map +1 -0
- package/dist/features/card/cardMeta.d.ts +87 -0
- package/dist/features/card/cardMeta.d.ts.map +1 -0
- package/dist/features/card/cardMeta.js +56 -0
- package/dist/features/card/cardMeta.js.map +1 -0
- package/dist/features/card/mediaCardMeta.d.ts +50 -0
- package/dist/features/card/mediaCardMeta.d.ts.map +1 -0
- package/dist/features/card/mediaCardMeta.js +51 -0
- package/dist/features/card/mediaCardMeta.js.map +1 -0
- package/dist/features/card/metricCardMeta.d.ts +46 -0
- package/dist/features/card/metricCardMeta.d.ts.map +1 -0
- package/dist/features/card/metricCardMeta.js +46 -0
- package/dist/features/card/metricCardMeta.js.map +1 -0
- package/dist/features/card/postCardMeta.d.ts +64 -0
- package/dist/features/card/postCardMeta.d.ts.map +1 -0
- package/dist/features/card/postCardMeta.js +66 -0
- package/dist/features/card/postCardMeta.js.map +1 -0
- package/dist/features/card/productCardMeta.d.ts +110 -0
- package/dist/features/card/productCardMeta.d.ts.map +1 -0
- package/dist/features/card/productCardMeta.js +110 -0
- package/dist/features/card/productCardMeta.js.map +1 -0
- package/dist/features/card/public.d.ts +11 -0
- package/dist/features/card/public.d.ts.map +1 -0
- package/dist/features/card/public.js +6 -0
- package/dist/features/card/public.js.map +1 -0
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts +15 -0
- package/dist/features/card/utils/resolveCardThemeRecipe.d.ts.map +1 -0
- package/dist/features/card/utils/resolveCardThemeRecipe.js.map +1 -0
- package/dist/features/card/utils/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/card/utils/themeRecipeMeta.js.map +1 -0
- package/dist/features/chip/adapters/inbound/Chip.d.ts +7 -0
- package/dist/features/chip/adapters/inbound/Chip.d.ts.map +1 -0
- package/dist/features/chip/adapters/inbound/Chip.js +57 -0
- package/dist/features/chip/adapters/inbound/Chip.js.map +1 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts +7 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.d.ts.map +1 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.js +38 -0
- package/dist/features/chip/adapters/inbound/ChipGroup.js.map +1 -0
- package/dist/features/chip/chipGroupMeta.d.ts +75 -0
- package/dist/features/chip/chipGroupMeta.d.ts.map +1 -0
- package/dist/features/chip/chipGroupMeta.js +31 -0
- package/dist/features/chip/chipGroupMeta.js.map +1 -0
- package/dist/features/chip/chipMeta.d.ts +38 -0
- package/dist/features/chip/chipMeta.d.ts.map +1 -0
- package/dist/features/chip/chipMeta.js +38 -0
- package/dist/features/chip/chipMeta.js.map +1 -0
- package/dist/features/chip/public.d.ts +5 -0
- package/dist/features/chip/public.d.ts.map +1 -0
- package/dist/features/chip/public.js +3 -0
- package/dist/features/chip/public.js.map +1 -0
- package/dist/features/chip/utils/resolveChipColors.d.ts +10 -0
- package/dist/features/chip/utils/resolveChipColors.d.ts.map +1 -0
- package/dist/features/chip/utils/resolveChipColors.js +57 -0
- package/dist/features/chip/utils/resolveChipColors.js.map +1 -0
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts +7 -0
- package/dist/features/data-table/adapters/inbound/DataTable.d.ts.map +1 -0
- package/dist/features/data-table/adapters/inbound/DataTable.js +218 -0
- package/dist/features/data-table/adapters/inbound/DataTable.js.map +1 -0
- package/dist/features/data-table/dataTableMeta.d.ts +125 -0
- package/dist/features/data-table/dataTableMeta.d.ts.map +1 -0
- package/dist/features/data-table/dataTableMeta.js +57 -0
- package/dist/features/data-table/dataTableMeta.js.map +1 -0
- package/dist/features/data-table/public.d.ts +3 -0
- package/dist/features/data-table/public.d.ts.map +1 -0
- package/dist/features/data-table/public.js +2 -0
- package/dist/features/data-table/public.js.map +1 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.d.ts +3 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.d.ts.map +1 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.js +10 -0
- package/dist/features/data-table/utils/resolveDataTableRowKey.js.map +1 -0
- package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts +16 -0
- package/dist/features/empty-state/adapters/inbound/EmptyState.d.ts.map +1 -0
- package/dist/features/empty-state/adapters/inbound/EmptyState.js +34 -0
- package/dist/features/empty-state/adapters/inbound/EmptyState.js.map +1 -0
- package/dist/features/empty-state/emptyStateMeta.d.ts +33 -0
- package/dist/features/empty-state/emptyStateMeta.d.ts.map +1 -0
- package/dist/features/empty-state/emptyStateMeta.js +33 -0
- 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/features/form/checkbox/adapters/inbound/Checkbox.d.ts +9 -0
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.d.ts.map +1 -0
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js +13 -0
- package/dist/features/form/checkbox/adapters/inbound/Checkbox.js.map +1 -0
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts +7 -0
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.d.ts.map +1 -0
- package/dist/features/form/checkbox/adapters/inbound/CheckboxGroup.js +41 -0
- 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/features/form/radio/adapters/inbound/Radio.d.ts +7 -0
- package/dist/features/form/radio/adapters/inbound/Radio.d.ts.map +1 -0
- package/dist/features/form/radio/adapters/inbound/Radio.js +11 -0
- package/dist/features/form/radio/adapters/inbound/Radio.js.map +1 -0
- package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts +5 -0
- package/dist/features/form/radio/adapters/inbound/RadioGroup.d.ts.map +1 -0
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js +70 -0
- package/dist/features/form/radio/adapters/inbound/RadioGroup.js.map +1 -0
- package/dist/features/form/radio/adapters/inbound/RadioOptionControl.d.ts +15 -0
- package/dist/features/form/radio/adapters/inbound/RadioOptionControl.d.ts.map +1 -0
- package/dist/features/form/radio/adapters/inbound/RadioOptionControl.js +105 -0
- 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/features/form/radio/radioMeta.d.ts +275 -0
- package/dist/features/form/radio/radioMeta.d.ts.map +1 -0
- package/dist/features/form/radio/radioMeta.js +210 -0
- package/dist/features/form/radio/radioMeta.js.map +1 -0
- package/dist/features/form/radio/themeRecipeMeta.d.ts.map +1 -0
- package/dist/features/form/radio/themeRecipeMeta.js +27 -0
- package/dist/features/form/radio/themeRecipeMeta.js.map +1 -0
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.d.ts.map +1 -0
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js +22 -0
- package/dist/features/form/radio/utils/handleRadioOptionKeyDown.js.map +1 -0
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +20 -0
- 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/features/form/radio/utils/resolveRadioOptionColors.d.ts +10 -0
- 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/features/form/text-input/adapters/inbound/TextInput.js +24 -0
- 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/features/form/text-input/textInputMeta.d.ts +57 -0
- package/dist/features/form/text-input/textInputMeta.d.ts.map +1 -0
- package/dist/features/form/text-input/textInputMeta.js +57 -0
- package/dist/features/form/text-input/textInputMeta.js.map +1 -0
- package/dist/features/icon/adapters/inbound/Icon.d.ts +5 -0
- package/dist/features/icon/adapters/inbound/Icon.d.ts.map +1 -0
- package/dist/features/icon/adapters/inbound/Icon.js +10 -0
- package/dist/features/icon/adapters/inbound/Icon.js.map +1 -0
- package/dist/features/icon/iconMeta.d.ts +38 -0
- package/dist/features/icon/iconMeta.d.ts.map +1 -0
- package/dist/features/icon/iconMeta.js +30 -0
- package/dist/features/icon/iconMeta.js.map +1 -0
- package/dist/features/icon/public.d.ts +3 -0
- package/dist/features/icon/public.d.ts.map +1 -0
- package/dist/features/icon/public.js +2 -0
- package/dist/features/icon/public.js.map +1 -0
- package/dist/features/image/adapters/inbound/Image.d.ts +5 -0
- package/dist/features/image/adapters/inbound/Image.d.ts.map +1 -0
- package/dist/features/image/adapters/inbound/Image.js +84 -0
- package/dist/features/image/adapters/inbound/Image.js.map +1 -0
- package/dist/features/image/imageMeta.d.ts +56 -0
- package/dist/features/image/imageMeta.d.ts.map +1 -0
- package/dist/features/image/imageMeta.js +34 -0
- package/dist/features/image/imageMeta.js.map +1 -0
- package/dist/features/image/public.d.ts +3 -0
- package/dist/features/image/public.d.ts.map +1 -0
- package/dist/features/image/public.js +2 -0
- package/dist/features/image/public.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Box.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Box.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Box.js +10 -0
- package/dist/features/layout/adapters/inbound/Box.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Container.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Container.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Container.js +10 -0
- package/dist/features/layout/adapters/inbound/Container.js.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRail.d.ts +10 -0
- package/dist/features/layout/adapters/inbound/ContentRail.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRail.js +182 -0
- package/dist/features/layout/adapters/inbound/ContentRail.js.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.js +18 -0
- package/dist/features/layout/adapters/inbound/ContentRailFlow.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Divider.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Divider.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Divider.js +10 -0
- package/dist/features/layout/adapters/inbound/Divider.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Grid.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Grid.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Grid.js +10 -0
- package/dist/features/layout/adapters/inbound/Grid.js.map +1 -0
- package/dist/features/layout/adapters/inbound/Stack.d.ts +5 -0
- package/dist/features/layout/adapters/inbound/Stack.d.ts.map +1 -0
- package/dist/features/layout/adapters/inbound/Stack.js +10 -0
- package/dist/features/layout/adapters/inbound/Stack.js.map +1 -0
- package/dist/features/layout/boxMeta.d.ts +81 -0
- package/dist/features/layout/boxMeta.d.ts.map +1 -0
- package/dist/features/layout/boxMeta.js +15 -0
- package/dist/features/layout/boxMeta.js.map +1 -0
- package/dist/features/layout/constants.d.ts +64 -0
- package/dist/features/layout/constants.d.ts.map +1 -0
- package/dist/features/layout/constants.js +19 -0
- package/dist/features/layout/constants.js.map +1 -0
- package/dist/features/layout/containerMeta.d.ts +55 -0
- package/dist/features/layout/containerMeta.d.ts.map +1 -0
- package/dist/features/layout/containerMeta.js +10 -0
- package/dist/features/layout/containerMeta.js.map +1 -0
- package/dist/features/layout/contentRailMeta.d.ts +153 -0
- package/dist/features/layout/contentRailMeta.d.ts.map +1 -0
- package/dist/features/layout/contentRailMeta.js +132 -0
- package/dist/features/layout/contentRailMeta.js.map +1 -0
- package/dist/features/layout/dividerMeta.d.ts +22 -0
- package/dist/features/layout/dividerMeta.d.ts.map +1 -0
- package/dist/features/layout/dividerMeta.js +14 -0
- package/dist/features/layout/dividerMeta.js.map +1 -0
- package/dist/features/layout/gridMeta.d.ts +90 -0
- package/dist/features/layout/gridMeta.d.ts.map +1 -0
- package/dist/features/layout/gridMeta.js +17 -0
- package/dist/features/layout/gridMeta.js.map +1 -0
- package/dist/features/layout/public.d.ts +9 -0
- package/dist/features/layout/public.d.ts.map +1 -0
- package/dist/features/layout/public.js +7 -0
- package/dist/features/layout/public.js.map +1 -0
- package/dist/features/layout/stackMeta.d.ts +93 -0
- package/dist/features/layout/stackMeta.d.ts.map +1 -0
- package/dist/features/layout/stackMeta.js +25 -0
- package/dist/features/layout/stackMeta.js.map +1 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.d.ts +10 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.d.ts.map +1 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.js +27 -0
- package/dist/features/layout/utils/resolveContentRailItemWidth.js.map +1 -0
- package/dist/features/layout/utils/resolveContentRailPhysicalOffset.d.ts.map +1 -0
- package/dist/features/layout/utils/resolveContentRailPhysicalOffset.js.map +1 -0
- package/dist/features/layout/utils/resolveContentRailState.d.ts.map +1 -0
- package/dist/features/layout/utils/resolveContentRailState.js.map +1 -0
- package/dist/features/layout/utils/useContentRailReducedMotion.d.ts +3 -0
- package/dist/features/layout/utils/useContentRailReducedMotion.d.ts.map +1 -0
- package/dist/features/layout/utils/useContentRailReducedMotion.js.map +1 -0
- package/dist/features/list/adapters/inbound/FlatList.d.ts +5 -0
- package/dist/features/list/adapters/inbound/FlatList.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/FlatList.js +17 -0
- package/dist/features/list/adapters/inbound/FlatList.js.map +1 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.d.ts +4 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.js +7 -0
- package/dist/features/list/adapters/inbound/HorizontalListSeparator.js.map +1 -0
- package/dist/features/list/adapters/inbound/SectionList.d.ts +5 -0
- package/dist/features/list/adapters/inbound/SectionList.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/SectionList.js +18 -0
- package/dist/features/list/adapters/inbound/SectionList.js.map +1 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.d.ts +4 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.js +7 -0
- package/dist/features/list/adapters/inbound/VerticalListSeparator.js.map +1 -0
- package/dist/features/list/adapters/inbound/useListVisibility.d.ts +7 -0
- package/dist/features/list/adapters/inbound/useListVisibility.d.ts.map +1 -0
- package/dist/features/list/adapters/inbound/useListVisibility.js +19 -0
- package/dist/features/list/adapters/inbound/useListVisibility.js.map +1 -0
- package/dist/features/list/application/use-cases/partitionListSections.d.ts +9 -0
- package/dist/features/list/application/use-cases/partitionListSections.d.ts.map +1 -0
- package/dist/features/list/application/use-cases/partitionListSections.js +19 -0
- package/dist/features/list/application/use-cases/partitionListSections.js.map +1 -0
- package/dist/features/list/flatListMeta.d.ts +84 -0
- package/dist/features/list/flatListMeta.d.ts.map +1 -0
- package/dist/features/list/flatListMeta.js +37 -0
- package/dist/features/list/flatListMeta.js.map +1 -0
- package/dist/features/list/public.d.ts +4 -0
- package/dist/features/list/public.d.ts.map +1 -0
- package/dist/features/list/public.js +3 -0
- package/dist/features/list/public.js.map +1 -0
- package/dist/features/list/sectionListMeta.d.ts +114 -0
- package/dist/features/list/sectionListMeta.d.ts.map +1 -0
- package/dist/features/list/sectionListMeta.js +29 -0
- package/dist/features/list/sectionListMeta.js.map +1 -0
- package/dist/features/progress/adapters/inbound/Progress.d.ts +7 -0
- package/dist/features/progress/adapters/inbound/Progress.d.ts.map +1 -0
- package/dist/features/progress/adapters/inbound/Progress.js +31 -0
- package/dist/features/progress/adapters/inbound/Progress.js.map +1 -0
- package/dist/features/progress/adapters/inbound/ProgressRing.d.ts +7 -0
- package/dist/features/progress/adapters/inbound/ProgressRing.d.ts.map +1 -0
- package/dist/features/progress/adapters/inbound/ProgressRing.js +100 -0
- package/dist/features/progress/adapters/inbound/ProgressRing.js.map +1 -0
- package/dist/features/progress/progressMeta.d.ts +160 -0
- package/dist/features/progress/progressMeta.d.ts.map +1 -0
- package/dist/features/progress/progressMeta.js +142 -0
- 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/adapters/inbound/SplashScreen.d.ts +11 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.d.ts.map +1 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.js +55 -0
- package/dist/features/splash-screen/adapters/inbound/SplashScreen.js.map +1 -0
- package/dist/features/splash-screen/public.d.ts +3 -0
- package/dist/features/splash-screen/public.d.ts.map +1 -0
- package/dist/features/splash-screen/public.js +2 -0
- package/dist/features/splash-screen/public.js.map +1 -0
- package/dist/features/splash-screen/splashScreenMeta.d.ts +39 -0
- package/dist/features/splash-screen/splashScreenMeta.d.ts.map +1 -0
- package/dist/features/splash-screen/splashScreenMeta.js +40 -0
- package/dist/features/splash-screen/splashScreenMeta.js.map +1 -0
- package/dist/features/surface/adapters/inbound/Surface.d.ts +5 -0
- package/dist/features/surface/adapters/inbound/Surface.d.ts.map +1 -0
- package/dist/features/surface/adapters/inbound/Surface.js +10 -0
- package/dist/features/surface/adapters/inbound/Surface.js.map +1 -0
- package/dist/features/surface/public.d.ts +3 -0
- package/dist/features/surface/public.d.ts.map +1 -0
- package/dist/features/surface/public.js +2 -0
- package/dist/features/surface/public.js.map +1 -0
- package/dist/features/surface/surfaceMeta.d.ts +74 -0
- package/dist/features/surface/surfaceMeta.d.ts.map +1 -0
- package/dist/features/surface/surfaceMeta.js +13 -0
- package/dist/features/surface/surfaceMeta.js.map +1 -0
- package/dist/features/typography/adapters/inbound/Heading.d.ts +15 -0
- package/dist/features/typography/adapters/inbound/Heading.d.ts.map +1 -0
- package/dist/features/typography/adapters/inbound/Heading.js +71 -0
- package/dist/features/typography/adapters/inbound/Heading.js.map +1 -0
- package/dist/features/typography/adapters/inbound/Text.d.ts +15 -0
- package/dist/features/typography/adapters/inbound/Text.d.ts.map +1 -0
- package/dist/features/typography/adapters/inbound/Text.js +64 -0
- package/dist/features/typography/adapters/inbound/Text.js.map +1 -0
- package/dist/features/typography/headingMeta.d.ts +122 -0
- package/dist/features/typography/headingMeta.d.ts.map +1 -0
- package/dist/features/typography/headingMeta.js +81 -0
- package/dist/features/typography/headingMeta.js.map +1 -0
- package/dist/features/typography/public.d.ts +5 -0
- package/dist/features/typography/public.d.ts.map +1 -0
- package/dist/features/typography/public.js +3 -0
- package/dist/features/typography/public.js.map +1 -0
- package/dist/features/typography/textMeta.d.ts +111 -0
- package/dist/features/typography/textMeta.d.ts.map +1 -0
- package/dist/features/typography/textMeta.js +73 -0
- package/dist/features/typography/textMeta.js.map +1 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.d.ts +39 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.d.ts.map +1 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.js +32 -0
- package/dist/features/typography/utils/headingThemeRecipeMeta.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.d.ts +15 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.js +112 -0
- package/dist/features/typography/utils/resolveHeadingRecipe.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.d.ts +4 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.js +18 -0
- package/dist/features/typography/utils/resolveHeadingSizeFromLevel.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +11 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.js.map +1 -0
- package/dist/features/typography/utils/resolveTextStyle.d.ts +17 -0
- package/dist/features/typography/utils/resolveTextStyle.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveTextStyle.js +149 -0
- package/dist/features/typography/utils/resolveTextStyle.js.map +1 -0
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +11 -0
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts.map +1 -0
- package/dist/features/typography/utils/resolveTextThemeRecipe.js.map +1 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.d.ts +40 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.d.ts.map +1 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.js +33 -0
- package/dist/features/typography/utils/textThemeRecipeMeta.js.map +1 -0
- package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +40 -16
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/features/uploader/uploaderMeta.d.ts +136 -0
- package/dist/features/uploader/uploaderMeta.d.ts.map +1 -0
- package/dist/features/uploader/uploaderMeta.js +66 -0
- package/dist/features/uploader/uploaderMeta.js.map +1 -0
- package/dist/foundation/index.d.ts +0 -12
- package/dist/foundation/index.d.ts.map +1 -1
- package/dist/foundation/index.js +0 -6
- package/dist/foundation/index.js.map +1 -1
- package/dist/foundation/meta.d.ts +0 -58
- package/dist/foundation/meta.d.ts.map +1 -1
- package/dist/foundation/meta.js +0 -49
- package/dist/foundation/meta.js.map +1 -1
- package/dist/index.d.ts +56 -54
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +31 -27
- package/dist/index.js.map +1 -1
- package/dist/layout/app-shell/AppShell.js +1 -1
- package/dist/layout/app-shell/AppShell.js.map +1 -1
- package/dist/layout/screen/Screen.js +1 -1
- package/dist/layout/screen/Screen.js.map +1 -1
- package/dist/layout/screen/meta.d.ts +1 -1
- package/dist/layout/screen-section/ScreenSection.js +1 -1
- package/dist/layout/screen-section/ScreenSection.js.map +1 -1
- package/dist/layout/screen-section/meta.d.ts +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js +1 -1
- package/dist/layout/sidebar-layout/SidebarLayout.js.map +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.js +1 -1
- package/dist/layout/topbar-layout/TopbarLayout.js.map +1 -1
- package/dist/metadata/allowedChildren.d.ts +4 -4
- package/dist/metadata/allowedChildren.d.ts.map +1 -1
- package/dist/metadata/allowedChildren.js +27 -2
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +35 -76
- package/dist/metadata/bindableComponentMeta.d.ts.map +1 -1
- package/dist/metadata/bindableComponentMeta.js +8 -63
- package/dist/metadata/bindableComponentMeta.js.map +1 -1
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +50 -31
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/metadata/themeRecipeMeta.js +5 -5
- package/dist/metadata/themeRecipeMeta.js.map +1 -1
- package/dist/patterns/auth/ForgotPasswordForm.js +2 -2
- package/dist/patterns/auth/ForgotPasswordForm.js.map +1 -1
- package/dist/patterns/auth/OAuthProviderButton.js +1 -1
- package/dist/patterns/auth/OAuthProviderButton.js.map +1 -1
- package/dist/patterns/auth/OAuthProviderList.js +1 -1
- package/dist/patterns/auth/OAuthProviderList.js.map +1 -1
- package/dist/patterns/auth/OtpForm.js +2 -2
- package/dist/patterns/auth/OtpForm.js.map +1 -1
- package/dist/patterns/auth/SignInForm.js +2 -2
- package/dist/patterns/auth/SignInForm.js.map +1 -1
- package/dist/patterns/auth/SignUpForm.js +2 -2
- package/dist/patterns/auth/SignUpForm.js.map +1 -1
- package/dist/patterns/auth/types.d.ts +1 -1
- package/dist/patterns/auth/types.d.ts.map +1 -1
- package/dist/patterns/auth/types.js.map +1 -1
- package/dist/patterns/chat-list-item/ChatListItem.d.ts.map +1 -1
- package/dist/patterns/chat-list-item/ChatListItem.js +5 -4
- package/dist/patterns/chat-list-item/ChatListItem.js.map +1 -1
- package/dist/patterns/chat-list-item/types.d.ts +1 -1
- package/dist/patterns/chat-list-item/types.d.ts.map +1 -1
- package/dist/patterns/chat-list-item/types.js.map +1 -1
- package/dist/patterns/collection-editor/CollectionEditor.js +4 -4
- package/dist/patterns/collection-editor/CollectionEditor.js.map +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +2 -2
- package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
- package/dist/patterns/disclosure-section/DisclosureSection.js +4 -4
- package/dist/patterns/disclosure-section/DisclosureSection.js.map +1 -1
- package/dist/patterns/filter-bar/FilterBar.d.ts.map +1 -1
- package/dist/patterns/filter-bar/FilterBar.js +2 -1
- package/dist/patterns/filter-bar/FilterBar.js.map +1 -1
- package/dist/patterns/form-field/FormField.js +2 -2
- package/dist/patterns/form-field/FormField.js.map +1 -1
- package/dist/patterns/hero/Hero.js +5 -5
- package/dist/patterns/hero/Hero.js.map +1 -1
- package/dist/patterns/inspector-field/InspectorField.js +1 -1
- package/dist/patterns/inspector-field/InspectorField.js.map +1 -1
- package/dist/patterns/list/List.d.ts.map +1 -1
- package/dist/patterns/list/List.js +2 -1
- package/dist/patterns/list/List.js.map +1 -1
- package/dist/patterns/list/ListRow.d.ts.map +1 -1
- package/dist/patterns/list/ListRow.js +3 -2
- package/dist/patterns/list/ListRow.js.map +1 -1
- package/dist/patterns/list/ListSection.js +1 -1
- package/dist/patterns/list/ListSection.js.map +1 -1
- package/dist/patterns/message-bubble/MessageBubble.d.ts.map +1 -1
- package/dist/patterns/message-bubble/MessageBubble.js +4 -3
- package/dist/patterns/message-bubble/MessageBubble.js.map +1 -1
- package/dist/patterns/message-bubble/meta.d.ts +1 -1
- package/dist/patterns/message-bubble/types.d.ts +1 -1
- package/dist/patterns/message-bubble/types.d.ts.map +1 -1
- package/dist/patterns/message-bubble/types.js.map +1 -1
- package/dist/patterns/missing-element/MissingElement.js +3 -3
- package/dist/patterns/missing-element/MissingElement.js.map +1 -1
- package/dist/patterns/notice/Notice.js +3 -3
- package/dist/patterns/notice/Notice.js.map +1 -1
- package/dist/patterns/notice/meta.d.ts +1 -1
- package/dist/patterns/panel/Panel.js +2 -2
- package/dist/patterns/panel/Panel.js.map +1 -1
- package/dist/patterns/panel/meta.d.ts +1 -1
- package/dist/patterns/reader/ReaderSurface.d.ts.map +1 -1
- package/dist/patterns/reader/ReaderSurface.js +6 -4
- package/dist/patterns/reader/ReaderSurface.js.map +1 -1
- package/dist/patterns/reader/meta.d.ts +2 -2
- package/dist/patterns/scanner/BarcodeScannerView.js +3 -3
- package/dist/patterns/scanner/BarcodeScannerView.js.map +1 -1
- package/dist/patterns/scanner/CameraPermissionView.js +4 -4
- package/dist/patterns/scanner/CameraPermissionView.js.map +1 -1
- package/dist/patterns/scanner/ScanOverlay.js +3 -3
- package/dist/patterns/scanner/ScanOverlay.js.map +1 -1
- package/dist/patterns/scanner/meta.d.ts +2 -2
- package/dist/patterns/scanner/types.d.ts +1 -1
- package/dist/patterns/scanner/types.d.ts.map +1 -1
- package/dist/patterns/scanner/types.js.map +1 -1
- package/dist/patterns/section-header/SectionHeader.js +3 -3
- package/dist/patterns/section-header/SectionHeader.js.map +1 -1
- package/dist/patterns/settings-row/SettingsRow.js +3 -3
- package/dist/patterns/settings-row/SettingsRow.js.map +1 -1
- package/dist/patterns/theme-composer/ThemeComposer.js +9 -9
- package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
- package/dist/patterns/tile-grid/PaletteItem.js +4 -4
- package/dist/patterns/tile-grid/PaletteItem.js.map +1 -1
- package/dist/patterns/tile-grid/TileGrid.js +1 -1
- package/dist/patterns/tile-grid/TileGrid.js.map +1 -1
- package/dist/patterns/timeline/Timeline.d.ts.map +1 -1
- package/dist/patterns/timeline/Timeline.js +5 -4
- package/dist/patterns/timeline/Timeline.js.map +1 -1
- package/dist/patterns/tree-view/TreeItem.js +2 -2
- package/dist/patterns/tree-view/TreeItem.js.map +1 -1
- package/dist/patterns/tree-view/TreeView.js +1 -1
- package/dist/patterns/tree-view/TreeView.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +36 -29
- package/dist/registry.js.map +1 -1
- package/dist/theme/ThemeModeToggle.js +1 -1
- package/dist/theme/ThemeModeToggle.js.map +1 -1
- package/dist/theme/ThemeModeToggleProps.d.ts +1 -1
- package/dist/theme/ThemeModeToggleProps.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/types/avatar-group.d.ts +22 -0
- package/dist/types/avatar-group.d.ts.map +1 -0
- package/dist/types/avatar-group.js +2 -0
- package/dist/types/avatar-group.js.map +1 -0
- package/dist/types/avatar.d.ts +17 -0
- package/dist/types/avatar.d.ts.map +1 -0
- package/dist/types/avatar.js +2 -0
- package/dist/types/avatar.js.map +1 -0
- package/dist/types/badge.d.ts +11 -0
- package/dist/types/badge.d.ts.map +1 -0
- package/dist/types/badge.js +2 -0
- package/dist/types/badge.js.map +1 -0
- package/dist/types/button-group.d.ts +13 -0
- package/dist/types/button-group.d.ts.map +1 -0
- package/dist/types/button-group.js +2 -0
- package/dist/types/button-group.js.map +1 -0
- package/dist/types/button.d.ts +13 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/button.js +2 -0
- package/dist/types/button.js.map +1 -0
- package/dist/types/card.d.ts +17 -0
- package/dist/types/card.d.ts.map +1 -0
- package/dist/types/card.js +2 -0
- package/dist/types/card.js.map +1 -0
- package/dist/types/checkbox.d.ts +20 -0
- 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/types/chip-group.d.ts +31 -0
- package/dist/types/chip-group.d.ts.map +1 -0
- package/dist/types/chip-group.js +2 -0
- package/dist/types/chip-group.js.map +1 -0
- package/dist/types/chip.d.ts +26 -0
- package/dist/types/chip.d.ts.map +1 -0
- package/dist/types/chip.js +2 -0
- package/dist/types/chip.js.map +1 -0
- package/dist/types/content-rail.d.ts +33 -0
- package/dist/types/content-rail.d.ts.map +1 -0
- package/dist/types/content-rail.js +2 -0
- package/dist/types/content-rail.js.map +1 -0
- package/dist/types/data-table.d.ts +52 -0
- package/dist/types/data-table.d.ts.map +1 -0
- package/dist/types/data-table.js +2 -0
- package/dist/types/data-table.js.map +1 -0
- package/dist/types/empty-state.d.ts +18 -0
- 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/types/heading.d.ts +32 -0
- package/dist/types/heading.d.ts.map +1 -0
- package/dist/types/heading.js +2 -0
- package/dist/types/heading.js.map +1 -0
- package/dist/types/icon-button.d.ts +18 -0
- package/dist/types/icon-button.d.ts.map +1 -0
- package/dist/types/icon-button.js +2 -0
- package/dist/types/icon-button.js.map +1 -0
- package/dist/types/icon.d.ts +4 -0
- package/dist/types/icon.d.ts.map +1 -0
- package/dist/types/icon.js +2 -0
- package/dist/types/icon.js.map +1 -0
- package/dist/types/image.d.ts +8 -0
- package/dist/types/image.d.ts.map +1 -0
- package/dist/types/image.js +2 -0
- package/dist/types/image.js.map +1 -0
- package/dist/types/layout.d.ts +13 -0
- package/dist/types/layout.d.ts.map +1 -0
- package/dist/types/layout.js +2 -0
- package/dist/types/layout.js.map +1 -0
- package/dist/types/manifest-bottom-sheet.d.ts +18 -0
- package/dist/types/manifest-bottom-sheet.d.ts.map +1 -0
- package/dist/types/manifest-bottom-sheet.js +2 -0
- package/dist/types/manifest-bottom-sheet.js.map +1 -0
- package/dist/types/manifest-list.d.ts +34 -0
- package/dist/types/manifest-list.d.ts.map +1 -0
- package/dist/types/manifest-list.js +2 -0
- package/dist/types/manifest-list.js.map +1 -0
- package/dist/types/media-card.d.ts +36 -0
- package/dist/types/media-card.d.ts.map +1 -0
- package/dist/types/media-card.js +2 -0
- package/dist/types/media-card.js.map +1 -0
- package/dist/types/metric-card.d.ts +17 -0
- package/dist/types/metric-card.d.ts.map +1 -0
- package/dist/types/metric-card.js +2 -0
- package/dist/types/metric-card.js.map +1 -0
- package/dist/types/post-card.d.ts +64 -0
- package/dist/types/post-card.d.ts.map +1 -0
- package/dist/types/post-card.js +2 -0
- package/dist/types/post-card.js.map +1 -0
- package/dist/types/product-card.d.ts +23 -0
- package/dist/types/product-card.d.ts.map +1 -0
- package/dist/types/product-card.js +2 -0
- package/dist/types/product-card.js.map +1 -0
- package/dist/types/progress.d.ts +23 -0
- package/dist/types/progress.d.ts.map +1 -0
- package/dist/types/progress.js +26 -0
- package/dist/types/progress.js.map +1 -0
- package/dist/types/radio.d.ts +31 -0
- 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/splash-screen.d.ts +16 -0
- package/dist/types/splash-screen.d.ts.map +1 -0
- package/dist/types/splash-screen.js +2 -0
- package/dist/types/splash-screen.js.map +1 -0
- package/dist/types/surface.d.ts +6 -0
- package/dist/types/surface.d.ts.map +1 -0
- package/dist/types/surface.js +2 -0
- package/dist/types/surface.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/dist/types/text.d.ts +31 -0
- package/dist/types/text.d.ts.map +1 -0
- package/dist/types/text.js +2 -0
- package/dist/types/text.js.map +1 -0
- package/dist/types/upload.d.ts +15 -3
- package/dist/types/upload.d.ts.map +1 -1
- package/dist/types/upload.js.map +1 -1
- package/dist/utils/createManifestBindings.d.ts +5 -0
- package/dist/utils/createManifestBindings.d.ts.map +1 -0
- package/dist/utils/createManifestBindings.js +36 -0
- package/dist/utils/createManifestBindings.js.map +1 -0
- package/dist/utils/finalizeFeatureMetadata.d.ts +4 -0
- package/dist/utils/finalizeFeatureMetadata.d.ts.map +1 -0
- package/dist/utils/finalizeFeatureMetadata.js +22 -0
- package/dist/utils/finalizeFeatureMetadata.js.map +1 -0
- package/package.json +1 -1
- package/src/audit.test.ts +6 -6
- package/src/components/app-bar/AppBar.tsx +5 -4
- package/src/components/breadcrumbs/Breadcrumbs.tsx +3 -3
- package/src/components/contentFallback.test.ts +8 -2
- package/src/components/date-picker/DatePicker.tsx +3 -3
- package/src/components/form/Form.tsx +1 -1
- package/src/components/form/FormActions.tsx +2 -2
- package/src/components/form/FormError.tsx +2 -2
- package/src/components/form/FormField.tsx +4 -4
- package/src/components/form/meta.ts +1 -1
- package/src/components/form/types.ts +6 -6
- package/src/components/gradient/Gradient.tsx +1 -1
- package/src/components/gradient/types.ts +1 -1
- package/src/components/menu/Menu.tsx +2 -2
- package/src/components/modal/Modal.tsx +3 -3
- package/src/components/pagination/Pagination.tsx +3 -3
- package/src/components/rating/Rating.tsx +1 -1
- package/src/components/search-bar/SearchBar.tsx +3 -3
- package/src/components/select/Select.tsx +1 -1
- package/src/components/skeleton/Skeleton.tsx +1 -1
- package/src/components/skeleton/SkeletonCard.tsx +3 -3
- package/src/components/skeleton/SkeletonText.tsx +1 -1
- package/src/components/skeleton/types.ts +1 -1
- package/src/components/tabs/Tabs.tsx +3 -3
- package/src/components/time-picker/TimePicker.tsx +3 -3
- package/src/components/toolbar/Toolbar.tsx +2 -2
- package/src/components/toolbar/ToolbarAction.tsx +1 -1
- package/src/constants.ts +23 -0
- package/src/corePluginMetadata.ts +10 -1
- package/src/featureManifest.test.ts +48 -0
- 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/avatar/adapters/inbound/Avatar.tsx +147 -0
- package/src/features/avatar/adapters/inbound/AvatarGroup.tsx +77 -0
- package/src/features/avatar/avatarGroupMeta.ts +25 -0
- package/src/features/avatar/avatarMeta.ts +42 -0
- package/src/features/avatar/public.ts +5 -0
- package/src/features/badge/adapters/inbound/Badge.tsx +33 -0
- package/src/features/badge/badgeMeta.ts +29 -0
- package/src/features/badge/public.ts +2 -0
- package/src/features/bottom-sheet/adapters/inbound/BottomSheet.tsx +85 -0
- package/src/features/bottom-sheet/bottomSheetMeta.ts +33 -0
- package/src/features/bottom-sheet/public.ts +2 -0
- package/src/features/button/adapters/inbound/Button.tsx +42 -0
- package/src/features/button/adapters/inbound/ButtonGroup.tsx +112 -0
- package/src/features/button/adapters/inbound/IconButton.tsx +37 -0
- package/src/features/button/buttonGroupMeta.ts +45 -0
- package/src/features/button/buttonMeta.ts +51 -0
- package/src/features/button/iconButtonMeta.ts +48 -0
- package/src/features/button/public.ts +10 -0
- package/src/features/button/utils/resolveButtonThemeRecipe.ts +41 -0
- package/src/features/button/utils/themeRecipeMeta.ts +29 -0
- package/src/features/card/adapters/inbound/Card.tsx +91 -0
- package/src/features/card/adapters/inbound/MediaCard.tsx +124 -0
- package/src/features/card/adapters/inbound/MetricCard.tsx +82 -0
- package/src/features/card/adapters/inbound/PostCard.test.tsx +11 -0
- package/src/features/card/adapters/inbound/PostCard.tsx +241 -0
- package/src/features/card/adapters/inbound/ProductCard.test.tsx +19 -0
- package/src/features/card/adapters/inbound/ProductCard.tsx +141 -0
- package/src/features/card/cardMeta.ts +57 -0
- package/src/features/card/mediaCardMeta.ts +52 -0
- package/src/features/card/metricCardMeta.ts +47 -0
- package/src/features/card/public.ts +16 -0
- package/src/features/card/utils/resolveCardThemeRecipe.ts +33 -0
- package/src/features/card/utils/themeRecipeMeta.ts +32 -0
- package/src/features/chip/adapters/inbound/Chip.tsx +97 -0
- package/src/features/chip/adapters/inbound/ChipGroup.tsx +73 -0
- package/src/features/chip/chipGroupMeta.ts +32 -0
- package/src/features/chip/chipMeta.ts +39 -0
- package/src/features/chip/public.ts +4 -0
- package/src/features/chip/utils/resolveChipColors.ts +74 -0
- package/src/features/data-table/adapters/inbound/DataTable.tsx +411 -0
- package/src/features/data-table/dataTableMeta.ts +58 -0
- package/src/features/data-table/public.ts +11 -0
- package/src/features/data-table/utils/resolveDataTableRowKey.test.ts +11 -0
- package/src/features/data-table/utils/resolveDataTableRowKey.ts +13 -0
- package/src/features/empty-state/adapters/inbound/EmptyState.tsx +74 -0
- package/src/features/empty-state/public.ts +2 -0
- package/src/features/form/checkbox/adapters/inbound/Checkbox.tsx +21 -0
- package/src/features/form/checkbox/adapters/inbound/CheckboxGroup.tsx +121 -0
- package/src/features/form/checkbox/checkboxMeta.ts +30 -0
- package/src/features/form/checkbox/public.ts +7 -0
- package/src/features/form/radio/adapters/inbound/Radio.tsx +14 -0
- package/src/features/form/radio/adapters/inbound/RadioGroup.test.ts +35 -0
- package/src/features/form/radio/adapters/inbound/RadioGroup.tsx +125 -0
- package/src/features/form/radio/adapters/inbound/RadioOptionControl.tsx +192 -0
- package/src/features/form/radio/public.ts +3 -0
- package/src/features/form/radio/radioMeta.ts +214 -0
- package/src/features/form/radio/themeRecipeMeta.ts +28 -0
- package/src/features/form/radio/utils/handleRadioOptionKeyDown.test.ts +47 -0
- package/src/features/form/radio/utils/handleRadioOptionKeyDown.ts +37 -0
- package/src/features/form/radio/utils/resolveRadioGroupThemeRecipe.ts +45 -0
- package/src/features/form/radio/utils/resolveRadioOptionColors.ts +37 -0
- package/src/features/form/text-input/adapters/inbound/TextInput.tsx +68 -0
- package/src/features/form/text-input/public.ts +2 -0
- package/src/features/form/text-input/textInputMeta.ts +58 -0
- package/src/features/icon/adapters/inbound/Icon.tsx +18 -0
- package/src/features/icon/public.ts +2 -0
- package/src/features/icon/utils/meta.test.ts +22 -0
- package/src/features/image/adapters/inbound/Image.tsx +149 -0
- package/src/features/image/imageMeta.ts +35 -0
- package/src/features/image/public.ts +2 -0
- package/src/features/layout/adapters/inbound/Box.tsx +18 -0
- package/src/features/layout/adapters/inbound/Container.tsx +18 -0
- package/src/features/layout/adapters/inbound/ContentRail.test.ts +44 -0
- package/src/features/layout/adapters/inbound/ContentRail.tsx +262 -0
- package/src/features/layout/adapters/inbound/ContentRailFlow.tsx +40 -0
- package/src/features/layout/adapters/inbound/Divider.tsx +18 -0
- package/src/features/layout/adapters/inbound/Grid.tsx +18 -0
- package/src/features/layout/adapters/inbound/Stack.tsx +18 -0
- package/src/features/layout/boxMeta.ts +16 -0
- package/src/features/layout/constants.ts +21 -0
- package/src/features/layout/containerMeta.ts +11 -0
- package/src/features/layout/contentRailMeta.ts +134 -0
- package/src/features/layout/dividerMeta.ts +17 -0
- package/src/features/layout/gridMeta.ts +18 -0
- package/src/features/layout/public.ts +22 -0
- package/src/features/layout/stackMeta.ts +26 -0
- package/src/features/layout/utils/resolveContentRailItemWidth.ts +40 -0
- package/src/features/layout/utils/useContentRailReducedMotion.ts +28 -0
- package/src/features/list/adapters/inbound/FlatList.tsx +69 -0
- package/src/features/list/adapters/inbound/HorizontalListSeparator.tsx +8 -0
- package/src/features/list/adapters/inbound/SectionList.tsx +76 -0
- package/src/features/list/adapters/inbound/VerticalListSeparator.tsx +8 -0
- package/src/features/list/adapters/inbound/useListVisibility.ts +25 -0
- package/src/features/list/application/use-cases/partitionListSections.test.ts +30 -0
- package/src/features/list/application/use-cases/partitionListSections.ts +23 -0
- package/src/features/list/flatListMeta.ts +39 -0
- package/src/features/list/public.ts +7 -0
- package/src/features/list/sectionListMeta.ts +31 -0
- package/src/features/progress/adapters/inbound/Progress.tsx +54 -0
- package/src/features/progress/adapters/inbound/ProgressRing.test.ts +51 -0
- package/src/features/progress/adapters/inbound/ProgressRing.tsx +151 -0
- package/src/features/progress/public.ts +3 -0
- package/src/features/splash-screen/adapters/inbound/SplashScreen.tsx +98 -0
- package/src/features/splash-screen/public.ts +2 -0
- package/src/features/splash-screen/splashScreenMeta.ts +41 -0
- package/src/features/surface/adapters/inbound/Surface.tsx +18 -0
- package/src/features/surface/public.ts +2 -0
- package/src/features/surface/surfaceMeta.ts +14 -0
- package/src/features/typography/adapters/inbound/Heading.tsx +114 -0
- package/src/features/typography/adapters/inbound/Text.tsx +110 -0
- package/src/features/typography/headingMeta.ts +82 -0
- package/src/features/typography/public.ts +19 -0
- package/src/features/typography/textMeta.ts +74 -0
- package/src/features/typography/utils/headingThemeRecipeMeta.ts +33 -0
- package/src/features/typography/utils/resolveHeadingRecipe.test.ts +293 -0
- package/src/features/typography/utils/resolveHeadingRecipe.ts +174 -0
- package/src/features/typography/utils/resolveHeadingSizeFromLevel.ts +19 -0
- package/src/features/typography/utils/resolveHeadingThemeRecipe.ts +55 -0
- package/src/features/typography/utils/resolveTextStyle.test.ts +380 -0
- package/src/features/typography/utils/resolveTextStyle.ts +220 -0
- package/src/features/typography/utils/resolveTextThemeRecipe.ts +54 -0
- package/src/features/typography/utils/textThemeRecipeMeta.ts +34 -0
- package/src/features/uploader/adapters/inbound/Uploader.tsx +52 -17
- package/src/features/uploader/uploaderMeta.ts +68 -0
- package/src/foundation/index.test.ts +5 -10
- package/src/foundation/index.ts +0 -12
- package/src/foundation/meta.ts +0 -49
- package/src/index.ts +136 -119
- package/src/interactionPolicy.test.ts +8 -8
- package/src/layout/app-shell/AppShell.tsx +1 -1
- package/src/layout/screen/Screen.tsx +1 -1
- package/src/layout/screen-section/ScreenSection.tsx +1 -1
- package/src/layout/sidebar-layout/SidebarLayout.tsx +1 -1
- package/src/layout/topbar-layout/TopbarLayout.tsx +1 -1
- package/src/metadata/allowedChildren.ts +27 -2
- package/src/metadata/authoringMeta.test.ts +1 -1
- package/src/metadata/bindableComponentMeta.test.ts +1 -1
- package/src/metadata/bindableComponentMeta.ts +8 -63
- package/src/metadata/componentMeta.test.ts +30 -3
- package/src/metadata/componentMeta.ts +50 -31
- package/src/metadata/radioGroupReachability.test.ts +1 -1
- package/src/metadata/themeRecipeMeta.test.ts +1 -1
- package/src/metadata/themeRecipeMeta.ts +5 -5
- package/src/patterns/auth/ForgotPasswordForm.tsx +2 -2
- package/src/patterns/auth/OAuthProviderButton.tsx +1 -1
- package/src/patterns/auth/OAuthProviderList.tsx +1 -1
- package/src/patterns/auth/OtpForm.tsx +2 -2
- package/src/patterns/auth/SignInForm.tsx +2 -2
- package/src/patterns/auth/SignUpForm.tsx +2 -2
- package/src/patterns/auth/types.ts +1 -1
- package/src/patterns/chat-list-item/ChatListItem.tsx +5 -4
- package/src/patterns/chat-list-item/types.ts +1 -1
- package/src/patterns/collection-editor/CollectionEditor.tsx +4 -4
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +2 -2
- package/src/patterns/disclosure-section/DisclosureSection.tsx +4 -4
- package/src/patterns/filter-bar/FilterBar.tsx +2 -1
- package/src/patterns/form-field/FormField.tsx +2 -2
- package/src/patterns/hero/Hero.tsx +5 -5
- package/src/patterns/inspector-field/InspectorField.tsx +1 -1
- package/src/patterns/list/List.tsx +2 -1
- package/src/patterns/list/ListRow.tsx +3 -2
- package/src/patterns/list/ListSection.tsx +1 -1
- package/src/patterns/message-bubble/MessageBubble.tsx +4 -3
- package/src/patterns/message-bubble/types.ts +1 -1
- package/src/patterns/missing-element/MissingElement.tsx +3 -3
- package/src/patterns/notice/Notice.tsx +3 -3
- package/src/patterns/panel/Panel.tsx +2 -2
- package/src/patterns/reader/ReaderSurface.test.ts +1 -1
- package/src/patterns/reader/ReaderSurface.tsx +6 -4
- package/src/patterns/scanner/BarcodeScannerView.tsx +3 -3
- package/src/patterns/scanner/CameraPermissionView.tsx +4 -4
- package/src/patterns/scanner/ScanOverlay.tsx +3 -3
- package/src/patterns/scanner/types.ts +1 -1
- package/src/patterns/section-header/SectionHeader.tsx +3 -3
- package/src/patterns/settings-row/SettingsRow.tsx +3 -3
- package/src/patterns/theme-composer/ThemeComposer.tsx +9 -9
- package/src/patterns/tile-grid/PaletteItem.tsx +4 -4
- package/src/patterns/tile-grid/TileGrid.tsx +1 -1
- package/src/patterns/timeline/Timeline.tsx +5 -4
- package/src/patterns/tree-view/TreeItem.tsx +2 -2
- package/src/patterns/tree-view/TreeView.tsx +1 -1
- package/src/platformAcceptance.test.ts +1 -1
- package/src/registry.test.ts +1 -1
- package/src/registry.ts +36 -40
- package/src/showcaseCoverage.test.ts +2 -3
- package/src/theme/ThemeModeToggle.tsx +1 -1
- package/src/theme/ThemeModeToggleProps.ts +1 -1
- package/src/theme/themeScopeStructure.test.ts +41 -40
- package/src/types/activity-indicator.ts +8 -0
- package/src/types/avatar-group.ts +24 -0
- package/src/types/avatar.ts +20 -0
- package/src/types/badge.ts +15 -0
- package/src/types/button-group.ts +15 -0
- package/src/types/button.ts +15 -0
- package/src/types/card.ts +19 -0
- package/src/types/checkbox.ts +29 -0
- package/src/types/chip-group.ts +36 -0
- package/src/types/chip.ts +29 -0
- package/src/types/content-rail.ts +37 -0
- package/src/types/data-table.ts +58 -0
- package/src/types/empty-state.ts +20 -0
- package/src/types/heading.ts +38 -0
- package/src/types/icon-button.ts +17 -0
- package/src/types/icon.ts +5 -0
- package/src/types/image.ts +11 -0
- package/src/types/layout.ts +17 -0
- package/src/types/manifest-bottom-sheet.ts +17 -0
- package/src/types/manifest-list.ts +33 -0
- package/src/types/media-card.ts +42 -0
- package/src/types/metric-card.ts +18 -0
- package/src/types/post-card.ts +71 -0
- package/src/types/product-card.ts +23 -0
- package/src/types/progress.ts +50 -0
- package/src/types/radio.ts +37 -0
- package/src/types/splash-screen.ts +18 -0
- package/src/types/surface.ts +7 -0
- package/src/types/text-input.ts +33 -0
- package/src/types/text.ts +41 -0
- package/src/types/upload.ts +9 -3
- package/src/utils/createManifestBindings.ts +47 -0
- package/src/utils/finalizeFeatureMetadata.ts +26 -0
- package/dist/components/avatar/Avatar.d.ts +0 -7
- package/dist/components/avatar/Avatar.d.ts.map +0 -1
- package/dist/components/avatar/Avatar.js +0 -101
- package/dist/components/avatar/Avatar.js.map +0 -1
- package/dist/components/avatar/index.d.ts +0 -4
- package/dist/components/avatar/index.d.ts.map +0 -1
- package/dist/components/avatar/index.js +0 -3
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/avatar/meta.d.ts +0 -9
- package/dist/components/avatar/meta.d.ts.map +0 -1
- package/dist/components/avatar/meta.js +0 -9
- package/dist/components/avatar/meta.js.map +0 -1
- package/dist/components/avatar/resolveAvatarInitials.d.ts.map +0 -1
- package/dist/components/avatar/resolveAvatarInitials.js.map +0 -1
- package/dist/components/avatar/types.d.ts +0 -17
- package/dist/components/avatar/types.d.ts.map +0 -1
- package/dist/components/avatar/types.js +0 -2
- package/dist/components/avatar/types.js.map +0 -1
- package/dist/components/avatar-group/AvatarGroup.d.ts +0 -7
- package/dist/components/avatar-group/AvatarGroup.d.ts.map +0 -1
- package/dist/components/avatar-group/AvatarGroup.js +0 -29
- package/dist/components/avatar-group/AvatarGroup.js.map +0 -1
- package/dist/components/avatar-group/index.d.ts +0 -3
- package/dist/components/avatar-group/index.d.ts.map +0 -1
- package/dist/components/avatar-group/index.js +0 -2
- package/dist/components/avatar-group/index.js.map +0 -1
- package/dist/components/avatar-group/meta.d.ts +0 -9
- package/dist/components/avatar-group/meta.d.ts.map +0 -1
- package/dist/components/avatar-group/meta.js +0 -9
- package/dist/components/avatar-group/meta.js.map +0 -1
- package/dist/components/avatar-group/types.d.ts +0 -22
- package/dist/components/avatar-group/types.d.ts.map +0 -1
- package/dist/components/avatar-group/types.js +0 -2
- package/dist/components/avatar-group/types.js.map +0 -1
- package/dist/components/badge/Badge.d.ts +0 -7
- package/dist/components/badge/Badge.d.ts.map +0 -1
- package/dist/components/badge/Badge.js +0 -13
- package/dist/components/badge/Badge.js.map +0 -1
- package/dist/components/badge/index.d.ts +0 -3
- package/dist/components/badge/index.d.ts.map +0 -1
- package/dist/components/badge/index.js +0 -2
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/badge/meta.d.ts +0 -9
- package/dist/components/badge/meta.d.ts.map +0 -1
- package/dist/components/badge/meta.js +0 -9
- package/dist/components/badge/meta.js.map +0 -1
- package/dist/components/badge/types.d.ts +0 -11
- package/dist/components/badge/types.d.ts.map +0 -1
- package/dist/components/badge/types.js +0 -2
- package/dist/components/badge/types.js.map +0 -1
- package/dist/components/button/Button.d.ts +0 -15
- package/dist/components/button/Button.d.ts.map +0 -1
- package/dist/components/button/Button.js +0 -23
- package/dist/components/button/Button.js.map +0 -1
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/button/index.d.ts.map +0 -1
- package/dist/components/button/index.js +0 -2
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/button/meta.d.ts +0 -65
- package/dist/components/button/meta.d.ts.map +0 -1
- package/dist/components/button/meta.js +0 -52
- package/dist/components/button/meta.js.map +0 -1
- package/dist/components/button/resolveButtonThemeRecipe.d.ts +0 -9
- package/dist/components/button/resolveButtonThemeRecipe.d.ts.map +0 -1
- package/dist/components/button/resolveButtonThemeRecipe.js +0 -30
- package/dist/components/button/resolveButtonThemeRecipe.js.map +0 -1
- package/dist/components/button/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/button/themeRecipeMeta.js +0 -28
- package/dist/components/button/themeRecipeMeta.js.map +0 -1
- package/dist/components/button/types.d.ts +0 -13
- package/dist/components/button/types.d.ts.map +0 -1
- package/dist/components/button/types.js +0 -2
- package/dist/components/button/types.js.map +0 -1
- package/dist/components/button-group/ButtonGroup.d.ts +0 -7
- package/dist/components/button-group/ButtonGroup.d.ts.map +0 -1
- package/dist/components/button-group/ButtonGroup.js +0 -76
- package/dist/components/button-group/ButtonGroup.js.map +0 -1
- package/dist/components/button-group/index.d.ts +0 -3
- package/dist/components/button-group/index.d.ts.map +0 -1
- package/dist/components/button-group/index.js +0 -2
- package/dist/components/button-group/index.js.map +0 -1
- package/dist/components/button-group/meta.d.ts +0 -44
- package/dist/components/button-group/meta.d.ts.map +0 -1
- package/dist/components/button-group/meta.js +0 -44
- package/dist/components/button-group/meta.js.map +0 -1
- package/dist/components/button-group/types.d.ts +0 -13
- package/dist/components/button-group/types.d.ts.map +0 -1
- package/dist/components/button-group/types.js +0 -2
- package/dist/components/button-group/types.js.map +0 -1
- package/dist/components/card/Card.d.ts +0 -15
- package/dist/components/card/Card.d.ts.map +0 -1
- package/dist/components/card/Card.js +0 -53
- package/dist/components/card/Card.js.map +0 -1
- package/dist/components/card/index.d.ts +0 -3
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/card/index.js +0 -2
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/card/meta.d.ts +0 -80
- package/dist/components/card/meta.d.ts.map +0 -1
- package/dist/components/card/meta.js +0 -49
- package/dist/components/card/meta.js.map +0 -1
- package/dist/components/card/resolveCardThemeRecipe.d.ts +0 -15
- package/dist/components/card/resolveCardThemeRecipe.d.ts.map +0 -1
- package/dist/components/card/resolveCardThemeRecipe.js.map +0 -1
- package/dist/components/card/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/card/themeRecipeMeta.js.map +0 -1
- package/dist/components/card/types.d.ts +0 -17
- package/dist/components/card/types.d.ts.map +0 -1
- package/dist/components/card/types.js +0 -2
- package/dist/components/card/types.js.map +0 -1
- package/dist/components/checkbox/Checkbox.d.ts +0 -9
- package/dist/components/checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/checkbox/Checkbox.js +0 -13
- package/dist/components/checkbox/Checkbox.js.map +0 -1
- package/dist/components/checkbox/CheckboxGroup.d.ts +0 -7
- package/dist/components/checkbox/CheckboxGroup.d.ts.map +0 -1
- package/dist/components/checkbox/CheckboxGroup.js +0 -41
- 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 +0 -20
- 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/chip/Chip.d.ts +0 -7
- package/dist/components/chip/Chip.d.ts.map +0 -1
- package/dist/components/chip/Chip.js +0 -56
- package/dist/components/chip/Chip.js.map +0 -1
- package/dist/components/chip/index.d.ts +0 -3
- package/dist/components/chip/index.d.ts.map +0 -1
- package/dist/components/chip/index.js +0 -2
- package/dist/components/chip/index.js.map +0 -1
- package/dist/components/chip/meta.d.ts +0 -9
- package/dist/components/chip/meta.d.ts.map +0 -1
- package/dist/components/chip/meta.js +0 -9
- package/dist/components/chip/meta.js.map +0 -1
- package/dist/components/chip/resolveChipColors.d.ts +0 -10
- package/dist/components/chip/resolveChipColors.d.ts.map +0 -1
- package/dist/components/chip/resolveChipColors.js +0 -57
- package/dist/components/chip/resolveChipColors.js.map +0 -1
- package/dist/components/chip/types.d.ts +0 -26
- package/dist/components/chip/types.d.ts.map +0 -1
- package/dist/components/chip/types.js +0 -2
- package/dist/components/chip/types.js.map +0 -1
- package/dist/components/chip-group/ChipGroup.d.ts +0 -7
- package/dist/components/chip-group/ChipGroup.d.ts.map +0 -1
- package/dist/components/chip-group/ChipGroup.js +0 -38
- package/dist/components/chip-group/ChipGroup.js.map +0 -1
- package/dist/components/chip-group/index.d.ts +0 -3
- package/dist/components/chip-group/index.d.ts.map +0 -1
- package/dist/components/chip-group/index.js +0 -2
- package/dist/components/chip-group/index.js.map +0 -1
- package/dist/components/chip-group/meta.d.ts +0 -9
- package/dist/components/chip-group/meta.d.ts.map +0 -1
- package/dist/components/chip-group/meta.js +0 -9
- package/dist/components/chip-group/meta.js.map +0 -1
- package/dist/components/chip-group/types.d.ts +0 -31
- package/dist/components/chip-group/types.d.ts.map +0 -1
- package/dist/components/chip-group/types.js +0 -2
- package/dist/components/chip-group/types.js.map +0 -1
- package/dist/components/data-table/DataTable.d.ts +0 -7
- package/dist/components/data-table/DataTable.d.ts.map +0 -1
- package/dist/components/data-table/DataTable.js +0 -216
- package/dist/components/data-table/DataTable.js.map +0 -1
- package/dist/components/data-table/index.d.ts +0 -3
- package/dist/components/data-table/index.d.ts.map +0 -1
- package/dist/components/data-table/index.js +0 -2
- package/dist/components/data-table/index.js.map +0 -1
- package/dist/components/data-table/meta.d.ts +0 -9
- package/dist/components/data-table/meta.d.ts.map +0 -1
- package/dist/components/data-table/meta.js +0 -9
- package/dist/components/data-table/meta.js.map +0 -1
- package/dist/components/data-table/types.d.ts +0 -51
- package/dist/components/data-table/types.d.ts.map +0 -1
- package/dist/components/data-table/types.js +0 -2
- package/dist/components/data-table/types.js.map +0 -1
- package/dist/components/heading/Heading.d.ts +0 -15
- package/dist/components/heading/Heading.d.ts.map +0 -1
- package/dist/components/heading/Heading.js +0 -70
- package/dist/components/heading/Heading.js.map +0 -1
- package/dist/components/heading/index.d.ts +0 -3
- package/dist/components/heading/index.d.ts.map +0 -1
- package/dist/components/heading/index.js +0 -2
- package/dist/components/heading/index.js.map +0 -1
- package/dist/components/heading/meta.d.ts +0 -122
- package/dist/components/heading/meta.d.ts.map +0 -1
- package/dist/components/heading/meta.js +0 -80
- package/dist/components/heading/meta.js.map +0 -1
- package/dist/components/heading/resolveHeadingRecipe.d.ts +0 -16
- package/dist/components/heading/resolveHeadingRecipe.d.ts.map +0 -1
- package/dist/components/heading/resolveHeadingRecipe.js +0 -127
- package/dist/components/heading/resolveHeadingRecipe.js.map +0 -1
- package/dist/components/heading/resolveHeadingThemeRecipe.d.ts +0 -11
- package/dist/components/heading/resolveHeadingThemeRecipe.d.ts.map +0 -1
- package/dist/components/heading/resolveHeadingThemeRecipe.js.map +0 -1
- package/dist/components/heading/themeRecipeMeta.d.ts +0 -39
- package/dist/components/heading/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/heading/themeRecipeMeta.js +0 -32
- package/dist/components/heading/themeRecipeMeta.js.map +0 -1
- package/dist/components/heading/types.d.ts +0 -32
- package/dist/components/heading/types.d.ts.map +0 -1
- package/dist/components/heading/types.js +0 -2
- package/dist/components/heading/types.js.map +0 -1
- package/dist/components/icon/Icon.d.ts +0 -9
- package/dist/components/icon/Icon.d.ts.map +0 -1
- package/dist/components/icon/Icon.js +0 -11
- package/dist/components/icon/Icon.js.map +0 -1
- package/dist/components/icon/index.d.ts +0 -3
- package/dist/components/icon/index.d.ts.map +0 -1
- package/dist/components/icon/index.js +0 -2
- package/dist/components/icon/index.js.map +0 -1
- package/dist/components/icon/meta.d.ts +0 -38
- package/dist/components/icon/meta.d.ts.map +0 -1
- package/dist/components/icon/meta.js +0 -30
- package/dist/components/icon/meta.js.map +0 -1
- package/dist/components/icon-button/IconButton.d.ts +0 -7
- package/dist/components/icon-button/IconButton.d.ts.map +0 -1
- package/dist/components/icon-button/IconButton.js +0 -13
- package/dist/components/icon-button/IconButton.js.map +0 -1
- package/dist/components/icon-button/index.d.ts +0 -3
- package/dist/components/icon-button/index.d.ts.map +0 -1
- package/dist/components/icon-button/index.js +0 -3
- package/dist/components/icon-button/index.js.map +0 -1
- package/dist/components/icon-button/meta.d.ts +0 -9
- package/dist/components/icon-button/meta.d.ts.map +0 -1
- package/dist/components/icon-button/meta.js +0 -9
- package/dist/components/icon-button/meta.js.map +0 -1
- package/dist/components/icon-button/types.d.ts +0 -15
- package/dist/components/icon-button/types.d.ts.map +0 -1
- package/dist/components/icon-button/types.js +0 -2
- package/dist/components/icon-button/types.js.map +0 -1
- package/dist/components/image/Image.d.ts +0 -5
- package/dist/components/image/Image.d.ts.map +0 -1
- package/dist/components/image/Image.js +0 -84
- package/dist/components/image/Image.js.map +0 -1
- package/dist/components/image/index.d.ts +0 -3
- package/dist/components/image/index.d.ts.map +0 -1
- package/dist/components/image/index.js +0 -2
- package/dist/components/image/index.js.map +0 -1
- package/dist/components/image/meta.d.ts +0 -30
- package/dist/components/image/meta.d.ts.map +0 -1
- package/dist/components/image/meta.js +0 -24
- package/dist/components/image/meta.js.map +0 -1
- package/dist/components/image/types.d.ts +0 -8
- package/dist/components/image/types.d.ts.map +0 -1
- package/dist/components/image/types.js +0 -2
- package/dist/components/image/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 +0 -25
- 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 +0 -45
- package/dist/components/input/meta.d.ts.map +0 -1
- package/dist/components/input/meta.js +0 -45
- 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/media-card/MediaCard.d.ts +0 -7
- package/dist/components/media-card/MediaCard.d.ts.map +0 -1
- package/dist/components/media-card/MediaCard.js +0 -67
- package/dist/components/media-card/MediaCard.js.map +0 -1
- package/dist/components/media-card/index.d.ts +0 -3
- package/dist/components/media-card/index.d.ts.map +0 -1
- package/dist/components/media-card/index.js +0 -2
- package/dist/components/media-card/index.js.map +0 -1
- package/dist/components/media-card/meta.d.ts +0 -9
- package/dist/components/media-card/meta.d.ts.map +0 -1
- package/dist/components/media-card/meta.js +0 -9
- package/dist/components/media-card/meta.js.map +0 -1
- package/dist/components/media-card/types.d.ts +0 -36
- package/dist/components/media-card/types.d.ts.map +0 -1
- package/dist/components/media-card/types.js +0 -2
- package/dist/components/media-card/types.js.map +0 -1
- package/dist/components/metric-card/MetricCard.d.ts +0 -7
- package/dist/components/metric-card/MetricCard.d.ts.map +0 -1
- package/dist/components/metric-card/MetricCard.js +0 -46
- package/dist/components/metric-card/MetricCard.js.map +0 -1
- package/dist/components/metric-card/index.d.ts +0 -3
- package/dist/components/metric-card/index.d.ts.map +0 -1
- package/dist/components/metric-card/index.js +0 -2
- package/dist/components/metric-card/index.js.map +0 -1
- package/dist/components/metric-card/meta.d.ts +0 -9
- package/dist/components/metric-card/meta.d.ts.map +0 -1
- package/dist/components/metric-card/meta.js +0 -9
- package/dist/components/metric-card/meta.js.map +0 -1
- package/dist/components/metric-card/types.d.ts +0 -17
- package/dist/components/metric-card/types.d.ts.map +0 -1
- package/dist/components/metric-card/types.js +0 -2
- package/dist/components/metric-card/types.js.map +0 -1
- package/dist/components/progress/Progress.d.ts +0 -7
- package/dist/components/progress/Progress.d.ts.map +0 -1
- package/dist/components/progress/Progress.js +0 -31
- package/dist/components/progress/Progress.js.map +0 -1
- package/dist/components/progress/ProgressRing.d.ts +0 -7
- package/dist/components/progress/ProgressRing.d.ts.map +0 -1
- package/dist/components/progress/ProgressRing.js +0 -100
- 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 +0 -160
- package/dist/components/progress/meta.d.ts.map +0 -1
- package/dist/components/progress/meta.js +0 -142
- 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 +0 -23
- package/dist/components/progress/types.d.ts.map +0 -1
- package/dist/components/progress/types.js +0 -26
- package/dist/components/progress/types.js.map +0 -1
- package/dist/components/radio/Radio.d.ts +0 -7
- package/dist/components/radio/Radio.d.ts.map +0 -1
- package/dist/components/radio/Radio.js +0 -11
- package/dist/components/radio/Radio.js.map +0 -1
- package/dist/components/radio/RadioGroup.d.ts +0 -5
- package/dist/components/radio/RadioGroup.d.ts.map +0 -1
- package/dist/components/radio/RadioGroup.js +0 -70
- package/dist/components/radio/RadioGroup.js.map +0 -1
- package/dist/components/radio/RadioOptionControl.d.ts +0 -15
- package/dist/components/radio/RadioOptionControl.d.ts.map +0 -1
- package/dist/components/radio/RadioOptionControl.js +0 -105
- 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 +0 -22
- 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 +0 -251
- package/dist/components/radio/meta.d.ts.map +0 -1
- package/dist/components/radio/meta.js +0 -206
- package/dist/components/radio/meta.js.map +0 -1
- package/dist/components/radio/resolveRadioGroupThemeRecipe.d.ts +0 -20
- 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 +0 -10
- 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 +0 -27
- package/dist/components/radio/themeRecipeMeta.js.map +0 -1
- package/dist/components/radio/types.d.ts +0 -31
- 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/splash-screen/SplashScreen.d.ts +0 -11
- package/dist/components/splash-screen/SplashScreen.d.ts.map +0 -1
- package/dist/components/splash-screen/SplashScreen.js +0 -54
- package/dist/components/splash-screen/SplashScreen.js.map +0 -1
- package/dist/components/splash-screen/index.d.ts +0 -3
- package/dist/components/splash-screen/index.d.ts.map +0 -1
- package/dist/components/splash-screen/index.js +0 -2
- package/dist/components/splash-screen/index.js.map +0 -1
- package/dist/components/splash-screen/meta.d.ts +0 -9
- package/dist/components/splash-screen/meta.d.ts.map +0 -1
- package/dist/components/splash-screen/meta.js +0 -9
- package/dist/components/splash-screen/meta.js.map +0 -1
- package/dist/components/splash-screen/types.d.ts +0 -16
- package/dist/components/splash-screen/types.d.ts.map +0 -1
- package/dist/components/splash-screen/types.js +0 -2
- package/dist/components/splash-screen/types.js.map +0 -1
- package/dist/components/text/Text.d.ts +0 -15
- package/dist/components/text/Text.d.ts.map +0 -1
- package/dist/components/text/Text.js +0 -64
- package/dist/components/text/Text.js.map +0 -1
- package/dist/components/text/index.d.ts +0 -3
- package/dist/components/text/index.d.ts.map +0 -1
- package/dist/components/text/index.js +0 -2
- package/dist/components/text/index.js.map +0 -1
- package/dist/components/text/meta.d.ts +0 -111
- package/dist/components/text/meta.d.ts.map +0 -1
- package/dist/components/text/meta.js +0 -72
- package/dist/components/text/meta.js.map +0 -1
- package/dist/components/text/resolveTextRecipe.d.ts +0 -16
- package/dist/components/text/resolveTextRecipe.d.ts.map +0 -1
- package/dist/components/text/resolveTextRecipe.js +0 -148
- package/dist/components/text/resolveTextRecipe.js.map +0 -1
- package/dist/components/text/resolveTextThemeRecipe.d.ts +0 -11
- package/dist/components/text/resolveTextThemeRecipe.d.ts.map +0 -1
- package/dist/components/text/resolveTextThemeRecipe.js.map +0 -1
- package/dist/components/text/themeRecipeMeta.d.ts +0 -40
- package/dist/components/text/themeRecipeMeta.d.ts.map +0 -1
- package/dist/components/text/themeRecipeMeta.js +0 -33
- package/dist/components/text/themeRecipeMeta.js.map +0 -1
- package/dist/components/text/types.d.ts +0 -31
- package/dist/components/text/types.d.ts.map +0 -1
- package/dist/components/text/types.js +0 -2
- package/dist/components/text/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/features/uploader/meta.d.ts +0 -10
- package/dist/features/uploader/meta.d.ts.map +0 -1
- package/dist/features/uploader/meta.js +0 -10
- package/dist/features/uploader/meta.js.map +0 -1
- package/dist/foundation/Box.d.ts +0 -12
- package/dist/foundation/Box.d.ts.map +0 -1
- package/dist/foundation/Box.js +0 -13
- package/dist/foundation/Box.js.map +0 -1
- package/dist/foundation/Container.d.ts +0 -12
- package/dist/foundation/Container.d.ts.map +0 -1
- package/dist/foundation/Container.js +0 -13
- package/dist/foundation/Container.js.map +0 -1
- package/dist/foundation/Divider.d.ts +0 -12
- package/dist/foundation/Divider.d.ts.map +0 -1
- package/dist/foundation/Divider.js +0 -13
- package/dist/foundation/Divider.js.map +0 -1
- package/dist/foundation/Grid.d.ts +0 -12
- package/dist/foundation/Grid.d.ts.map +0 -1
- package/dist/foundation/Grid.js +0 -13
- package/dist/foundation/Grid.js.map +0 -1
- package/dist/foundation/Stack.d.ts +0 -12
- package/dist/foundation/Stack.d.ts.map +0 -1
- package/dist/foundation/Stack.js +0 -13
- package/dist/foundation/Stack.js.map +0 -1
- package/dist/foundation/Surface.d.ts +0 -13
- package/dist/foundation/Surface.d.ts.map +0 -1
- package/dist/foundation/Surface.js +0 -13
- package/dist/foundation/Surface.js.map +0 -1
- package/dist/patterns/content-rail/ContentRail.d.ts +0 -10
- package/dist/patterns/content-rail/ContentRail.d.ts.map +0 -1
- package/dist/patterns/content-rail/ContentRail.js +0 -175
- package/dist/patterns/content-rail/ContentRail.js.map +0 -1
- package/dist/patterns/content-rail/index.d.ts +0 -3
- package/dist/patterns/content-rail/index.d.ts.map +0 -1
- package/dist/patterns/content-rail/index.js +0 -2
- package/dist/patterns/content-rail/index.js.map +0 -1
- package/dist/patterns/content-rail/meta.d.ts +0 -143
- package/dist/patterns/content-rail/meta.d.ts.map +0 -1
- package/dist/patterns/content-rail/meta.js +0 -130
- package/dist/patterns/content-rail/meta.js.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailItemWidth.d.ts +0 -10
- package/dist/patterns/content-rail/resolveContentRailItemWidth.d.ts.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailItemWidth.js +0 -25
- package/dist/patterns/content-rail/resolveContentRailItemWidth.js.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailPhysicalOffset.d.ts.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailPhysicalOffset.js.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailState.d.ts.map +0 -1
- package/dist/patterns/content-rail/resolveContentRailState.js.map +0 -1
- package/dist/patterns/content-rail/types.d.ts +0 -31
- package/dist/patterns/content-rail/types.d.ts.map +0 -1
- package/dist/patterns/content-rail/types.js +0 -2
- package/dist/patterns/content-rail/types.js.map +0 -1
- package/dist/patterns/content-rail/useContentRailReducedMotion.d.ts +0 -3
- package/dist/patterns/content-rail/useContentRailReducedMotion.d.ts.map +0 -1
- package/dist/patterns/content-rail/useContentRailReducedMotion.js.map +0 -1
- package/dist/patterns/empty-state/EmptyState.d.ts +0 -16
- package/dist/patterns/empty-state/EmptyState.d.ts.map +0 -1
- package/dist/patterns/empty-state/EmptyState.js +0 -34
- 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 +0 -33
- package/dist/patterns/empty-state/meta.d.ts.map +0 -1
- package/dist/patterns/empty-state/meta.js +0 -33
- package/dist/patterns/empty-state/meta.js.map +0 -1
- package/dist/patterns/empty-state/types.d.ts +0 -18
- 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/dist/patterns/post-card/PostCard.d.ts +0 -9
- package/dist/patterns/post-card/PostCard.d.ts.map +0 -1
- package/dist/patterns/post-card/PostCard.js +0 -138
- package/dist/patterns/post-card/PostCard.js.map +0 -1
- package/dist/patterns/post-card/index.d.ts +0 -3
- package/dist/patterns/post-card/index.d.ts.map +0 -1
- package/dist/patterns/post-card/index.js +0 -2
- package/dist/patterns/post-card/index.js.map +0 -1
- package/dist/patterns/post-card/meta.d.ts +0 -64
- package/dist/patterns/post-card/meta.d.ts.map +0 -1
- package/dist/patterns/post-card/meta.js +0 -66
- package/dist/patterns/post-card/meta.js.map +0 -1
- package/dist/patterns/post-card/types.d.ts +0 -64
- package/dist/patterns/post-card/types.d.ts.map +0 -1
- package/dist/patterns/post-card/types.js +0 -2
- package/dist/patterns/post-card/types.js.map +0 -1
- package/dist/patterns/product-card/ProductCard.d.ts +0 -5
- package/dist/patterns/product-card/ProductCard.d.ts.map +0 -1
- package/dist/patterns/product-card/ProductCard.js +0 -70
- package/dist/patterns/product-card/ProductCard.js.map +0 -1
- package/dist/patterns/product-card/index.d.ts +0 -3
- package/dist/patterns/product-card/index.d.ts.map +0 -1
- package/dist/patterns/product-card/index.js +0 -2
- package/dist/patterns/product-card/index.js.map +0 -1
- package/dist/patterns/product-card/meta.d.ts +0 -110
- package/dist/patterns/product-card/meta.d.ts.map +0 -1
- package/dist/patterns/product-card/meta.js +0 -110
- package/dist/patterns/product-card/meta.js.map +0 -1
- package/dist/patterns/product-card/types.d.ts +0 -23
- package/dist/patterns/product-card/types.d.ts.map +0 -1
- package/dist/patterns/product-card/types.js +0 -2
- package/dist/patterns/product-card/types.js.map +0 -1
- package/src/components/avatar/Avatar.tsx +0 -148
- package/src/components/avatar/index.ts +0 -3
- package/src/components/avatar/meta.ts +0 -10
- package/src/components/avatar/types.ts +0 -20
- package/src/components/avatar-group/AvatarGroup.tsx +0 -78
- package/src/components/avatar-group/index.ts +0 -2
- package/src/components/avatar-group/meta.ts +0 -10
- package/src/components/avatar-group/types.ts +0 -24
- package/src/components/badge/Badge.tsx +0 -34
- package/src/components/badge/index.ts +0 -2
- package/src/components/badge/meta.ts +0 -10
- package/src/components/badge/types.ts +0 -15
- package/src/components/button/Button.tsx +0 -43
- package/src/components/button/index.ts +0 -2
- package/src/components/button/meta.ts +0 -54
- package/src/components/button/resolveButtonThemeRecipe.ts +0 -41
- package/src/components/button/themeRecipeMeta.ts +0 -29
- package/src/components/button/types.ts +0 -15
- package/src/components/button-group/ButtonGroup.tsx +0 -109
- package/src/components/button-group/index.ts +0 -2
- package/src/components/button-group/meta.ts +0 -45
- package/src/components/button-group/types.ts +0 -15
- package/src/components/card/Card.tsx +0 -92
- package/src/components/card/index.ts +0 -2
- package/src/components/card/meta.ts +0 -51
- package/src/components/card/resolveCardThemeRecipe.ts +0 -33
- package/src/components/card/themeRecipeMeta.ts +0 -32
- package/src/components/card/types.ts +0 -19
- package/src/components/checkbox/Checkbox.tsx +0 -21
- package/src/components/checkbox/CheckboxGroup.tsx +0 -121
- package/src/components/checkbox/index.ts +0 -3
- package/src/components/checkbox/meta.ts +0 -19
- package/src/components/checkbox/types.ts +0 -29
- package/src/components/chip/Chip.tsx +0 -97
- package/src/components/chip/index.ts +0 -2
- package/src/components/chip/meta.ts +0 -10
- package/src/components/chip/resolveChipColors.ts +0 -75
- package/src/components/chip/types.ts +0 -29
- package/src/components/chip-group/ChipGroup.tsx +0 -74
- package/src/components/chip-group/index.ts +0 -2
- package/src/components/chip-group/meta.ts +0 -10
- package/src/components/chip-group/types.ts +0 -36
- package/src/components/data-table/DataTable.tsx +0 -408
- package/src/components/data-table/index.ts +0 -11
- package/src/components/data-table/meta.ts +0 -10
- package/src/components/data-table/types.ts +0 -57
- package/src/components/heading/Heading.tsx +0 -114
- package/src/components/heading/index.ts +0 -10
- package/src/components/heading/meta.ts +0 -82
- package/src/components/heading/resolveHeadingRecipe.test.ts +0 -292
- package/src/components/heading/resolveHeadingRecipe.ts +0 -191
- package/src/components/heading/resolveHeadingThemeRecipe.ts +0 -55
- package/src/components/heading/themeRecipeMeta.ts +0 -33
- package/src/components/heading/types.ts +0 -38
- package/src/components/icon/Icon.tsx +0 -21
- package/src/components/icon/index.ts +0 -2
- package/src/components/icon/meta.test.ts +0 -22
- package/src/components/icon-button/IconButton.tsx +0 -37
- package/src/components/icon-button/index.ts +0 -2
- package/src/components/icon-button/meta.ts +0 -10
- package/src/components/icon-button/types.ts +0 -16
- package/src/components/image/Image.tsx +0 -149
- package/src/components/image/index.ts +0 -2
- package/src/components/image/meta.ts +0 -25
- package/src/components/image/types.ts +0 -11
- package/src/components/input/Input.tsx +0 -69
- package/src/components/input/index.ts +0 -2
- package/src/components/input/meta.ts +0 -46
- package/src/components/input/types.ts +0 -33
- package/src/components/media-card/MediaCard.tsx +0 -125
- package/src/components/media-card/index.ts +0 -2
- package/src/components/media-card/meta.ts +0 -10
- package/src/components/media-card/types.ts +0 -42
- package/src/components/metric-card/MetricCard.tsx +0 -82
- package/src/components/metric-card/index.ts +0 -2
- package/src/components/metric-card/meta.ts +0 -10
- package/src/components/metric-card/types.ts +0 -18
- package/src/components/progress/Progress.tsx +0 -54
- package/src/components/progress/ProgressRing.test.ts +0 -48
- package/src/components/progress/ProgressRing.tsx +0 -151
- package/src/components/progress/index.ts +0 -3
- package/src/components/progress/types.ts +0 -50
- package/src/components/radio/Radio.tsx +0 -14
- package/src/components/radio/RadioGroup.test.ts +0 -35
- package/src/components/radio/RadioGroup.tsx +0 -125
- package/src/components/radio/RadioOptionControl.tsx +0 -192
- package/src/components/radio/handleRadioOptionKeyDown.test.ts +0 -47
- package/src/components/radio/handleRadioOptionKeyDown.ts +0 -37
- package/src/components/radio/index.ts +0 -3
- package/src/components/radio/meta.ts +0 -210
- package/src/components/radio/resolveRadioGroupThemeRecipe.ts +0 -45
- package/src/components/radio/resolveRadioOptionColors.ts +0 -37
- package/src/components/radio/themeRecipeMeta.ts +0 -28
- package/src/components/radio/types.ts +0 -37
- package/src/components/splash-screen/SplashScreen.tsx +0 -98
- package/src/components/splash-screen/index.ts +0 -2
- package/src/components/splash-screen/meta.ts +0 -10
- package/src/components/splash-screen/types.ts +0 -18
- package/src/components/text/Text.tsx +0 -111
- package/src/components/text/index.ts +0 -9
- package/src/components/text/meta.ts +0 -74
- package/src/components/text/resolveTextRecipe.test.ts +0 -380
- package/src/components/text/resolveTextRecipe.ts +0 -214
- package/src/components/text/resolveTextThemeRecipe.ts +0 -48
- package/src/components/text/themeRecipeMeta.ts +0 -34
- package/src/components/text/types.ts +0 -41
- 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/features/uploader/meta.ts +0 -11
- package/src/foundation/Box.tsx +0 -23
- package/src/foundation/Container.tsx +0 -27
- package/src/foundation/Divider.tsx +0 -27
- package/src/foundation/Grid.tsx +0 -23
- package/src/foundation/Stack.tsx +0 -23
- package/src/foundation/Surface.tsx +0 -30
- package/src/patterns/content-rail/ContentRail.test.ts +0 -44
- package/src/patterns/content-rail/ContentRail.tsx +0 -245
- package/src/patterns/content-rail/index.ts +0 -10
- package/src/patterns/content-rail/meta.ts +0 -133
- package/src/patterns/content-rail/resolveContentRailItemWidth.ts +0 -39
- package/src/patterns/content-rail/types.ts +0 -35
- package/src/patterns/content-rail/useContentRailReducedMotion.ts +0 -28
- package/src/patterns/empty-state/EmptyState.tsx +0 -74
- package/src/patterns/empty-state/index.ts +0 -2
- package/src/patterns/empty-state/types.ts +0 -20
- package/src/patterns/post-card/PostCard.test.tsx +0 -11
- package/src/patterns/post-card/PostCard.tsx +0 -241
- package/src/patterns/post-card/index.ts +0 -8
- package/src/patterns/post-card/types.ts +0 -71
- package/src/patterns/product-card/ProductCard.test.tsx +0 -19
- package/src/patterns/product-card/ProductCard.tsx +0 -141
- package/src/patterns/product-card/index.ts +0 -2
- package/src/patterns/product-card/types.ts +0 -23
- /package/dist/{components/avatar → features/avatar/utils}/resolveAvatarInitials.d.ts +0 -0
- /package/dist/{components/avatar → features/avatar/utils}/resolveAvatarInitials.js +0 -0
- /package/dist/{components/button → features/button/utils}/themeRecipeMeta.d.ts +0 -0
- /package/dist/{components/card → features/card/utils}/resolveCardThemeRecipe.js +0 -0
- /package/dist/{components/card → features/card/utils}/themeRecipeMeta.d.ts +0 -0
- /package/dist/{components/card → features/card/utils}/themeRecipeMeta.js +0 -0
- /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/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.d.ts +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.js +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailState.d.ts +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/resolveContentRailState.js +0 -0
- /package/dist/{patterns/content-rail → features/layout/utils}/useContentRailReducedMotion.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/dist/{components/heading → features/typography/utils}/resolveHeadingThemeRecipe.js +0 -0
- /package/dist/{components/text → features/typography/utils}/resolveTextThemeRecipe.js +0 -0
- /package/src/{components/avatar → features/avatar/utils}/resolveAvatarInitials.test.ts +0 -0
- /package/src/{components/avatar → features/avatar/utils}/resolveAvatarInitials.ts +0 -0
- /package/src/{components/button → features/button/utils}/resolveButtonThemeRecipe.test.ts +0 -0
- /package/src/{patterns/post-card/meta.ts → features/card/postCardMeta.ts} +0 -0
- /package/src/{patterns/product-card/meta.ts → features/card/productCardMeta.ts} +0 -0
- /package/src/{components/card → features/card/utils}/resolveCardThemeRecipe.test.ts +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/icon/meta.ts → features/icon/iconMeta.ts} +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailItemWidth.test.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.test.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailPhysicalOffset.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailState.test.ts +0 -0
- /package/src/{patterns/content-rail → features/layout/utils}/resolveContentRailState.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,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { BoxProps } from '../../
|
|
3
|
+
import type { BoxProps } from '../../features/layout/public';
|
|
4
4
|
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
5
5
|
export type GradientColor = string;
|
|
6
6
|
export type GradientColors = readonly [GradientColor, GradientColor, ...GradientColor[]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/gradient/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/gradient/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC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5B,SAAS,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/gradient/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../../
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/gradient/types.ts"],"names":[],"mappings":"","sourcesContent":["import type React from 'react';\nimport type { StyleProp, ViewStyle } from 'react-native';\n\nimport type { BoxProps } from '../../features/layout/public';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport type GradientColor = string;\nexport type GradientColors = readonly [GradientColor, GradientColor, ...GradientColor[]];\nexport type GradientLocations = readonly [number, number, ...number[]];\n\nexport interface GradientPoint {\n readonly x: number;\n readonly y: number;\n}\n\nexport interface GradientRendererProps {\n children?: React.ReactNode;\n colors: GradientColors;\n locations?: GradientLocations;\n start?: GradientPoint;\n end?: GradientPoint;\n style?: StyleProp<ViewStyle>;\n}\n\nexport type GradientRenderer = React.ComponentType<GradientRendererProps>;\n\nexport interface GradientRendererProviderProps {\n children?: React.ReactNode;\n renderer: GradientRenderer;\n}\n\nexport interface GradientProps extends ZoraBaseProps {\n children?: React.ReactNode;\n colors: GradientColors;\n locations?: GradientLocations;\n start?: GradientPoint;\n end?: GradientPoint;\n width?: BoxProps['width'];\n height?: BoxProps['height'];\n minHeight?: BoxProps['minHeight'];\n radius?: BoxProps['radius'];\n p?: BoxProps['p'];\n}\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Menu as SurfaceMenu } from '@ankhorage/surface';
|
|
2
2
|
import React, { useMemo } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Icon } from '../../features/icon/public';
|
|
4
|
+
import { Box } from '../../features/layout/public';
|
|
4
5
|
import { resolveIconSize } from '../../internal/recipes';
|
|
5
6
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Icon } from '../icon';
|
|
8
8
|
function renderActionLeading(action, iconColor) {
|
|
9
9
|
if (action.leading) {
|
|
10
10
|
return action.leading;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.js","sourceRoot":"","sources":["../../../src/components/menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAwC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Menu.js","sourceRoot":"","sources":["../../../src/components/menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAwC,MAAM,oBAAoB,CAAC;AAC/F,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,mBAAmB,CAAC,MAAkB,EAAE,SAAiB;IAChE,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,C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C,EACjE,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;IAEF,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,EAAG,CAAC;AACjF,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Menu as SurfaceMenu, type MenuAction as SurfaceMenuAction } from '@ankhorage/surface';\nimport React, { useMemo } from 'react';\n\nimport { Icon } from '../../features/icon/public';\nimport { Box } from '../../features/layout/public';\nimport { resolveIconSize } from '../../internal/recipes';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { MenuAction, MenuProps } from './types';\n\nfunction renderActionLeading(action: MenuAction, iconColor: string) {\n if (action.leading) {\n return action.leading;\n }\n\n if (!action.icon) {\n return undefined;\n }\n\n return <Icon {...action.icon} color={iconColor} size={resolveIconSize('s')} />;\n}\n\nfunction renderActionTrailing(action: MenuAction) {\n if (!action.trailing) {\n return undefined;\n }\n\n return <Box>{action.trailing}</Box>;\n}\n\nfunction toSurfaceAction(action: MenuAction, iconColor: string): SurfaceMenuAction {\n return {\n activate: action.onPress,\n description: action.description,\n disabled: action.disabled,\n id: action.id,\n intent: action.intent,\n leading: renderActionLeading(action, iconColor),\n selected: action.selected,\n title: action.title,\n trailing: renderActionTrailing(action),\n };\n}\n\nfunction MenuInner({ themeId: _themeId, mode: _mode, actions, onDismiss, ...props }: MenuProps) {\n const { theme } = useZoraTheme();\n const iconColor = theme.semantics.content.muted;\n const surfaceActions = useMemo(\n () => actions.map((action) => toSurfaceAction(action, iconColor)),\n [actions, iconColor],\n );\n\n return <SurfaceMenu {...props} actions={surfaceActions} dismiss={onDismiss} />;\n}\n\n/***\n * Presents a list of actions as a menu with optional icons and intent styling.\n */\nexport const Menu = withZoraThemeScope(MenuInner);\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Modal as SurfaceModal } from '@ankhorage/surface';
|
|
2
2
|
import React, { useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { Box, Stack } from '../../
|
|
3
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
4
|
+
import { Heading } from '../../features/typography/public';
|
|
5
|
+
import { Text } from '../../features/typography/public';
|
|
4
6
|
import { resolveDialogWidth } from '../../internal/recipes';
|
|
5
7
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
import { Heading } from '../heading';
|
|
7
|
-
import { Text } from '../text';
|
|
8
8
|
function useStableCallback(callback) {
|
|
9
9
|
const callbackRef = useRef(callback);
|
|
10
10
|
useEffect(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wB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CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CACpD;cAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CACxC;kBAAA,CAAC,WAAW,CACd;gBAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;YAAA,EAAE,KAAK,CAAC,CACT,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CACxC;UAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAC9C;QAAA,EAAE,KAAK,CACT;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,YAAY,CAAC,CAChB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { Modal as SurfaceModal } from '@ankhorage/surface';\nimport React, { useCallback, useEffect, useRef } from 'react';\n\nimport { Box, Stack } from '../../features/layout/public';\nimport { Heading } from '../../features/typography/public';\nimport { Text } from '../../features/typography/public';\nimport { resolveDialogWidth } from '../../internal/recipes';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ModalProps } from './types';\n\nfunction useStableCallback(callback: (() => void) | undefined): (() => void) | undefined {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n return useCallback(() => {\n callbackRef.current?.();\n }, []);\n}\n\nfunction ModalInner({\n themeId: _themeId,\n mode: _mode,\n children,\n title,\n description,\n footer,\n width = 'default',\n onDismiss,\n interactionPolicy,\n ...props\n}: ModalProps) {\n const hasHeader = title != null || description != null;\n const stableOnDismiss = useStableCallback(onDismiss);\n\n return (\n <SurfaceModal {...props} onDismiss={stableOnDismiss} interactionPolicy={interactionPolicy}>\n <Box maxWidth={resolveDialogWidth(width)} style={{ alignSelf: 'center', width: '100%' }}>\n <Stack gap=\"m\">\n {hasHeader ? (\n <Stack gap=\"xs\">\n {title ? <Heading level={3}>{title}</Heading> : null}\n {description ? (\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n ) : null}\n {children ? <Box>{children}</Box> : null}\n {footer ? <Box pt=\"xs\">{footer}</Box> : null}\n </Stack>\n </Box>\n </SurfaceModal>\n );\n}\n\n/***\n * Modal dialog surface with header/content/footer slots.\n */\nexport const Modal = withZoraThemeScope(ModalInner);\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Button } from '../../features/button/public';
|
|
3
|
+
import { Stack } from '../../features/layout/public';
|
|
4
|
+
import { Text } from '../../features/typography/public';
|
|
3
5
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
-
import { Button } from '../button';
|
|
5
|
-
import { Text } from '../text';
|
|
6
6
|
function clampInteger(value, min, max) {
|
|
7
7
|
if (!Number.isFinite(value)) {
|
|
8
8
|
return min;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../src/components/pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAK/B,SAAS,YAAY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,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAC/C,IAAI,CAAC,GAAG,CACR,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,OAAO,CAAC,OAAO,CAEf;UAAA,CAAC,SAAS,CACZ;QAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Stack } from '../../foundation';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Button } from '../button';\nimport { Text } from '../text';\nimport type { PaginationProps } from './types';\n\ntype PaginationItem = number | 'ellipsis';\n\nfunction clampInteger(value: number, min: number, max: number): number {\n if (!Number.isFinite(value)) {\n return min;\n }\n\n return Math.min(Math.max(Math.trunc(value), min), max);\n}\n\nfunction createRange(start: number, end: number): number[] {\n if (end < start) {\n return [];\n }\n\n return Array.from({ length: end - start + 1 }, (_, index) => start + index);\n}\n\nfunction normalizeCount(value: number | undefined, fallback: number): number {\n if (value === undefined || !Number.isFinite(value)) {\n return fallback;\n }\n\n return Math.max(0, Math.trunc(value));\n}\n\nfunction createPaginationItems({\n page,\n pageCount,\n siblingCount,\n boundaryCount,\n compact,\n}: {\n page: number;\n pageCount: number;\n siblingCount: number;\n boundaryCount: number;\n compact: boolean;\n}): readonly PaginationItem[] {\n if (pageCount <= 0) {\n return [];\n }\n\n if (compact) {\n return [page];\n }\n\n const boundaries = createRange(1, Math.min(boundaryCount, pageCount));\n const trailingBoundaries = createRange(Math.max(pageCount - boundaryCount + 1, 1), pageCount);\n const siblings = createRange(\n Math.max(page - siblingCount, 1),\n Math.min(page + siblingCount, pageCount),\n );\n const pages = [...new Set([...boundaries, ...siblings, ...trailingBoundaries])].sort(\n (left, right) => left - right,\n );\n const items: PaginationItem[] = [];\n\n pages.forEach((nextPage, index) => {\n const previousPage = pages[index - 1];\n if (previousPage !== undefined && nextPage - previousPage > 1) {\n items.push('ellipsis');\n }\n\n items.push(nextPage);\n });\n\n return items;\n}\n\nfunction PaginationInner({\n themeId: _themeId,\n mode: _mode,\n page,\n pageCount,\n onPageChange,\n disabled = false,\n siblingCount = 1,\n boundaryCount = 1,\n showFirstLast = false,\n previousLabel = 'Previous',\n nextLabel = 'Next',\n firstLabel = 'First',\n lastLabel = 'Last',\n compact = false,\n testID,\n interactionPolicy,\n}: PaginationProps) {\n const passive = interactionPolicy === 'passive';\n const normalizedPageCount = Math.max(0, Math.trunc(Number.isFinite(pageCount) ? pageCount : 0));\n const currentPage = clampInteger(page, 1, Math.max(normalizedPageCount, 1));\n const safeSiblingCount = normalizeCount(siblingCount, 1);\n const safeBoundaryCount = normalizeCount(boundaryCount, 1);\n const items = createPaginationItems({\n boundaryCount: safeBoundaryCount,\n compact,\n page: currentPage,\n pageCount: normalizedPageCount,\n siblingCount: safeSiblingCount,\n });\n const canGoPrevious = currentPage > 1;\n const canGoNext = currentPage < normalizedPageCount;\n const navigationDisabled = disabled || normalizedPageCount <= 1;\n\n const changePage = (nextPage: number) => {\n const clampedPage = clampInteger(nextPage, 1, Math.max(normalizedPageCount, 1));\n if (passive || disabled || clampedPage === currentPage) {\n return;\n }\n\n onPageChange?.(clampedPage);\n };\n\n return (\n <Stack align=\"center\" direction=\"row\" gap=\"xs\" testID={testID}>\n {showFirstLast ? (\n <Button\n disabled={navigationDisabled || currentPage === 1}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(1)}\n size=\"s\"\n testID={testID ? `${testID}-first` : undefined}\n variant=\"ghost\"\n >\n {firstLabel}\n </Button>\n ) : null}\n\n <Button\n disabled={navigationDisabled || !canGoPrevious}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(currentPage - 1)}\n size=\"s\"\n testID={testID ? `${testID}-previous` : undefined}\n variant=\"ghost\"\n >\n {previousLabel}\n </Button>\n\n {items.map((item, index) =>\n item === 'ellipsis' ? (\n <Text key={`ellipsis-${index}`} emphasis=\"muted\" variant=\"bodySmall\">\n …\n </Text>\n ) : (\n <Button\n color={item === currentPage ? 'primary' : 'neutral'}\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n key={item}\n onPress={() => changePage(item)}\n size=\"s\"\n testID={testID ? `${testID}-page-${item}` : undefined}\n variant={item === currentPage ? 'solid' : 'ghost'}\n >\n {item}\n </Button>\n ),\n )}\n\n <Button\n disabled={navigationDisabled || !canGoNext}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(currentPage + 1)}\n size=\"s\"\n testID={testID ? `${testID}-next` : undefined}\n variant=\"ghost\"\n >\n {nextLabel}\n </Button>\n\n {showFirstLast ? (\n <Button\n disabled={navigationDisabled || currentPage === normalizedPageCount}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(normalizedPageCount)}\n size=\"s\"\n testID={testID ? `${testID}-last` : undefined}\n variant=\"ghost\"\n >\n {lastLabel}\n </Button>\n ) : null}\n </Stack>\n );\n}\n\n/***\n * Pagination control for navigating between pages of results.\n */\nexport const Pagination = withZoraThemeScope(PaginationInner);\n"]}
|
|
1
|
+
{"version":3,"file":"Pagination.js","sourceRoot":"","sources":["../../../src/components/pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAKpE,SAAS,YAAY,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW;IAC3D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE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,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAC9C,OAAO,CAAC,OAAO,CAEf;UAAA,CAAC,SAAS,CACZ;QAAA,EAAE,MAAM,CAAC,CACV,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../features/button/public';\nimport { Stack } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { PaginationProps } from './types';\n\ntype PaginationItem = number | 'ellipsis';\n\nfunction clampInteger(value: number, min: number, max: number): number {\n if (!Number.isFinite(value)) {\n return min;\n }\n\n return Math.min(Math.max(Math.trunc(value), min), max);\n}\n\nfunction createRange(start: number, end: number): number[] {\n if (end < start) {\n return [];\n }\n\n return Array.from({ length: end - start + 1 }, (_, index) => start + index);\n}\n\nfunction normalizeCount(value: number | undefined, fallback: number): number {\n if (value === undefined || !Number.isFinite(value)) {\n return fallback;\n }\n\n return Math.max(0, Math.trunc(value));\n}\n\nfunction createPaginationItems({\n page,\n pageCount,\n siblingCount,\n boundaryCount,\n compact,\n}: {\n page: number;\n pageCount: number;\n siblingCount: number;\n boundaryCount: number;\n compact: boolean;\n}): readonly PaginationItem[] {\n if (pageCount <= 0) {\n return [];\n }\n\n if (compact) {\n return [page];\n }\n\n const boundaries = createRange(1, Math.min(boundaryCount, pageCount));\n const trailingBoundaries = createRange(Math.max(pageCount - boundaryCount + 1, 1), pageCount);\n const siblings = createRange(\n Math.max(page - siblingCount, 1),\n Math.min(page + siblingCount, pageCount),\n );\n const pages = [...new Set([...boundaries, ...siblings, ...trailingBoundaries])].sort(\n (left, right) => left - right,\n );\n const items: PaginationItem[] = [];\n\n pages.forEach((nextPage, index) => {\n const previousPage = pages[index - 1];\n if (previousPage !== undefined && nextPage - previousPage > 1) {\n items.push('ellipsis');\n }\n\n items.push(nextPage);\n });\n\n return items;\n}\n\nfunction PaginationInner({\n themeId: _themeId,\n mode: _mode,\n page,\n pageCount,\n onPageChange,\n disabled = false,\n siblingCount = 1,\n boundaryCount = 1,\n showFirstLast = false,\n previousLabel = 'Previous',\n nextLabel = 'Next',\n firstLabel = 'First',\n lastLabel = 'Last',\n compact = false,\n testID,\n interactionPolicy,\n}: PaginationProps) {\n const passive = interactionPolicy === 'passive';\n const normalizedPageCount = Math.max(0, Math.trunc(Number.isFinite(pageCount) ? pageCount : 0));\n const currentPage = clampInteger(page, 1, Math.max(normalizedPageCount, 1));\n const safeSiblingCount = normalizeCount(siblingCount, 1);\n const safeBoundaryCount = normalizeCount(boundaryCount, 1);\n const items = createPaginationItems({\n boundaryCount: safeBoundaryCount,\n compact,\n page: currentPage,\n pageCount: normalizedPageCount,\n siblingCount: safeSiblingCount,\n });\n const canGoPrevious = currentPage > 1;\n const canGoNext = currentPage < normalizedPageCount;\n const navigationDisabled = disabled || normalizedPageCount <= 1;\n\n const changePage = (nextPage: number) => {\n const clampedPage = clampInteger(nextPage, 1, Math.max(normalizedPageCount, 1));\n if (passive || disabled || clampedPage === currentPage) {\n return;\n }\n\n onPageChange?.(clampedPage);\n };\n\n return (\n <Stack align=\"center\" direction=\"row\" gap=\"xs\" testID={testID}>\n {showFirstLast ? (\n <Button\n disabled={navigationDisabled || currentPage === 1}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(1)}\n size=\"s\"\n testID={testID ? `${testID}-first` : undefined}\n variant=\"ghost\"\n >\n {firstLabel}\n </Button>\n ) : null}\n\n <Button\n disabled={navigationDisabled || !canGoPrevious}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(currentPage - 1)}\n size=\"s\"\n testID={testID ? `${testID}-previous` : undefined}\n variant=\"ghost\"\n >\n {previousLabel}\n </Button>\n\n {items.map((item, index) =>\n item === 'ellipsis' ? (\n <Text key={`ellipsis-${index}`} emphasis=\"muted\" variant=\"bodySmall\">\n …\n </Text>\n ) : (\n <Button\n color={item === currentPage ? 'primary' : 'neutral'}\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n key={item}\n onPress={() => changePage(item)}\n size=\"s\"\n testID={testID ? `${testID}-page-${item}` : undefined}\n variant={item === currentPage ? 'solid' : 'ghost'}\n >\n {item}\n </Button>\n ),\n )}\n\n <Button\n disabled={navigationDisabled || !canGoNext}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(currentPage + 1)}\n size=\"s\"\n testID={testID ? `${testID}-next` : undefined}\n variant=\"ghost\"\n >\n {nextLabel}\n </Button>\n\n {showFirstLast ? (\n <Button\n disabled={navigationDisabled || currentPage === normalizedPageCount}\n interactionPolicy={interactionPolicy}\n onPress={() => changePage(normalizedPageCount)}\n size=\"s\"\n testID={testID ? `${testID}-last` : undefined}\n variant=\"ghost\"\n >\n {lastLabel}\n </Button>\n ) : null}\n </Stack>\n );\n}\n\n/***\n * Pagination control for navigating between pages of results.\n */\nexport const Pagination = withZoraThemeScope(PaginationInner);\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { Icon } from '../../features/icon/public';
|
|
2
3
|
import { Inline } from '../../foundation';
|
|
3
4
|
import { resolveIconSize } from '../../internal/recipes';
|
|
4
5
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
5
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
6
|
-
import { Icon } from '../icon';
|
|
7
7
|
import { resolveRatingSegments } from './resolveRatingSegments';
|
|
8
8
|
import { resolveRatingRole } from './types';
|
|
9
9
|
function RatingInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, testID, value, max = 5, color = 'warning', size = 'm', }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rating.js","sourceRoot":"","sources":["../../../src/components/rating/Rating.tsx"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E;YAC/B,MAAM,IAAI,GACR,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC;YAClF,MAAM,KAAK,GAAG,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;YAE9E,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAG,CAAC;QACxE,CAAC,CAAC,CACJ;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Icon } from '../../features/icon/public';\nimport { Inline } from '../../foundation';\nimport { resolveIconSize } from '../../internal/recipes';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { resolveRatingSegments } from './resolveRatingSegments';\nimport { type RatingProps, resolveRatingRole } from './types';\n\nfunction RatingInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n testID,\n value,\n max = 5,\n color = 'warning',\n size = 'm',\n}: RatingProps) {\n const { theme } = useZoraTheme();\n const role = resolveRatingRole(theme, color);\n const segments = resolveRatingSegments({ value, max });\n const iconSize = resolveIconSize(size);\n\n return (\n <Inline align=\"center\" gap=\"xxs\" testID={testID} wrap=\"nowrap\">\n {segments.map((segment, index) => {\n const name =\n segment === 'full' ? 'star' : segment === 'half' ? 'star-half' : 'star-outline';\n const color = segment === 'empty' ? theme.semantics.content.muted : role.base;\n\n return <Icon key={index} color={color} name={name} size={iconSize} />;\n })}\n </Inline>\n );\n}\n\n/***\n * Displays a star-based rating value with optional half steps.\n */\nexport const Rating = withZoraThemeScope(RatingInner);\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TextInput } from '../../features/form/text-input/public';
|
|
2
3
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
3
|
-
import { Input } from '../input';
|
|
4
4
|
function SearchBarInner({ themeId: _themeId, mode: _mode, testID, value, onValueChange, placeholder = 'Search', onSubmit, onClear, clearable = true, size = 'l', disabled, readOnly, interactionPolicy, }) {
|
|
5
5
|
const passive = interactionPolicy === 'passive';
|
|
6
6
|
const trailingAction = clearable && value.length > 0
|
|
@@ -15,7 +15,7 @@ function SearchBarInner({ themeId: _themeId, mode: _mode, testID, value, onValue
|
|
|
15
15
|
},
|
|
16
16
|
}
|
|
17
17
|
: undefined;
|
|
18
|
-
return (<
|
|
18
|
+
return (<TextInput disabled={disabled} interactionPolicy={interactionPolicy} leadingIcon={{ name: 'search-outline' }} onChangeText={onValueChange} onSubmitEditing={onSubmit ? (passive ? undefined : () => onSubmit(value)) : undefined} placeholder={placeholder} readOnly={readOnly} returnKeyType="search" size={size} testID={testID} trailingAction={trailingAction} value={value}/>);
|
|
19
19
|
}
|
|
20
20
|
/***
|
|
21
21
|
* Search input with leading icon and optional trailing action.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/components/search-bar/SearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchBar.js","sourceRoot":"","sources":["../../../src/components/search-bar/SearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAgC,MAAM,uCAAuC,CAAC;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MAAM,CAAC,CACf,cAAc,CAAC,CAAC,cAAc,CAAC,CAC/B,KAAK,CAAC,CAAC,KAAK,CAAC,EACb,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { TextInput, type TextInputTrailingAction } from '../../features/form/text-input/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { SearchBarProps } from './types';\n\nfunction SearchBarInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n value,\n onValueChange,\n placeholder = 'Search',\n onSubmit,\n onClear,\n clearable = true,\n size = 'l',\n disabled,\n readOnly,\n interactionPolicy,\n}: SearchBarProps) {\n const passive = interactionPolicy === 'passive';\n\n const trailingAction: TextInputTrailingAction | undefined =\n clearable && value.length > 0\n ? {\n icon: { name: 'close-circle' },\n label: 'Clear search',\n onPress: () => {\n if (passive) return;\n\n onValueChange('');\n onClear?.();\n },\n }\n : undefined;\n\n return (\n <TextInput\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n leadingIcon={{ name: 'search-outline' }}\n onChangeText={onValueChange}\n onSubmitEditing={onSubmit ? (passive ? undefined : () => onSubmit(value)) : undefined}\n placeholder={placeholder}\n readOnly={readOnly}\n returnKeyType=\"search\"\n size={size}\n testID={testID}\n trailingAction={trailingAction}\n value={value}\n />\n );\n}\n\n/***\n * Search input with leading icon and optional trailing action.\n */\nexport const SearchBar = withZoraThemeScope(SearchBarInner);\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Picker } from '@react-native-picker/picker';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { View } from 'react-native';
|
|
4
|
-
import { Box } from '../../
|
|
4
|
+
import { Box } from '../../features/layout/public';
|
|
5
5
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
6
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
7
|
function SelectInner({ themeId: _themeId, mode: _mode, value, options, onValueChange, disabled, invalid, testID, interactionPolicy, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/components/select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/components/select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,WAAW,CAAiC,EACnD,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,OAAO,EACP,aAAa,EACb,QAAQ,EACR,OAAO,EACP,MAAM,EACN,iBAAiB,GACG;IACpB,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,iBAAiB,KAAK,SAAS,CAAC;IAEhD,OAAO,CACL,CAAC,GAAG,CACF,EAAE,CAAC,SAAS,CACZ,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAChE,WAAW,CAAC,CAAC,CAAC,CAAC,CACf,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAC5B,MAAM,CAAC,GAAG,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CAEf;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CACxD;QAAA,CAAC,MAAM,CACL,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CACnB,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE;YAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,aAAa,CAAC,SAAS,CAAC,CAAC;YAC3B,CAAC;QACH,CAAC,CAAC,CACF,aAAa,CAAC,CAAC,KAAK,CAAC,CACrB,KAAK,CAAC,CAAC;YACL,MAAM,EAAE,EAAE;YACV,KAAK,EAAE,MAAM;YACb,eAAe,EAAE,aAAa;YAC9B,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI;YACxB,WAAW,EAAE,CAAC;SACf,CAAC,CAEF;UAAA,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,CAAC,MAAM,CAAC,IAAI,CACV,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAClB,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAC1B,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACpB,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACpB,CACH,CAAC,CACJ;QAAA,EAAE,MAAM,CACV;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,GAAG,CAAC,CACP,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC,WAAW,CAAC,CAAC","sourcesContent":["import { Picker } from '@react-native-picker/picker';\nimport React from 'react';\nimport { View } from 'react-native';\n\nimport { Box } from '../../features/layout/public';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { SelectProps } from './types';\n\nfunction SelectInner<TValue extends string = string>({\n themeId: _themeId,\n mode: _mode,\n value,\n options,\n onValueChange,\n disabled,\n invalid,\n testID,\n interactionPolicy,\n}: SelectProps<TValue>) {\n const { theme } = useZoraTheme();\n const passive = interactionPolicy === 'passive';\n\n return (\n <Box\n bg=\"surface\"\n borderColor={invalid ? theme.colors.error : theme.colors.border}\n borderWidth={1}\n opacity={disabled ? 0.5 : 1}\n radius=\"m\"\n testID={testID}\n >\n <View style={{ pointerEvents: passive ? 'none' : 'auto' }}>\n <Picker\n enabled={!disabled}\n onValueChange={(itemValue) => {\n if (!passive) {\n onValueChange(itemValue);\n }\n }}\n selectedValue={value}\n style={{\n height: 44,\n width: '100%',\n backgroundColor: 'transparent',\n color: theme.colors.text,\n borderWidth: 0,\n }}\n >\n {options.map((option) => (\n <Picker.Item\n key={option.value}\n enabled={!option.disabled}\n label={option.label}\n value={option.value}\n />\n ))}\n </Picker>\n </View>\n </Box>\n );\n}\n\n/***\n * Select control for choosing a value from a list of options.\n */\nexport const Select = withZoraThemeScope(SelectInner);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Box } from '../../
|
|
2
|
+
import { Box } from '../../features/layout/public';
|
|
3
3
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
4
4
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
5
|
function SkeletonInner({ themeId: _themeId, mode: _mode, testID, width = '100%', height = 16, radius = 'm', }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,8BAA8B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,aAAa,CAAC,EACrB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,EAAE,EACX,MAAM,GAAG,GAAG,GACE;IACd,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IAEjC,OAAO,CACL,CAAC,GAAG,CACF,kBAAkB,CAAC,SAAS,CAC5B,iBAAiB,CAAC,MAAM,CACxB,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,CACzC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CAAC,KAAK,CAAC,CACb,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EACzB,CACH,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,aAAa,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Box } from '../../features/layout/public';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { SkeletonProps } from './types';\n\nfunction SkeletonInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n width = '100%',\n height = 16,\n radius = 'm',\n}: SkeletonProps) {\n const { theme } = useZoraTheme();\n\n return (\n <Box\n accessibilityLabel=\"Loading\"\n accessibilityRole=\"text\"\n bg={theme.semantics.neutral.surfaceHover}\n height={height}\n radius={radius}\n testID={testID}\n width={width}\n style={{ opacity: 0.72 }}\n />\n );\n}\n\n/***\n * Generic skeleton placeholder for loading states.\n */\nexport const Skeleton = withZoraThemeScope(SkeletonInner);\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonGroup } from '../../features/button/public';
|
|
3
|
+
import { Card } from '../../features/card/public';
|
|
4
|
+
import { Stack } from '../../features/layout/public';
|
|
3
5
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
-
import { ButtonGroup } from '../button-group';
|
|
5
|
-
import { Card } from '../card';
|
|
6
6
|
import { Skeleton } from './Skeleton';
|
|
7
7
|
import { SkeletonText } from './SkeletonText';
|
|
8
8
|
function SkeletonCardInner({ themeId: _themeId, mode: _mode, testID, media = false, actions = false, lines = 3, compact = false, }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonCard.js","sourceRoot":"","sources":["../../../src/components/skeleton/SkeletonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"SkeletonCard.js","sourceRoot":"","sources":["../../../src/components/skeleton/SkeletonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG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,IAAI,CACV;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { ButtonGroup } from '../../features/button/public';\nimport { Card } from '../../features/card/public';\nimport { Stack } from '../../features/layout/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Skeleton } from './Skeleton';\nimport { SkeletonText } from './SkeletonText';\nimport type { SkeletonCardProps } from './types';\n\nfunction SkeletonCardInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n media = false,\n actions = false,\n lines = 3,\n compact = false,\n}: SkeletonCardProps) {\n return (\n <Card compact={compact} testID={testID} tone=\"default\">\n <Stack gap={compact ? 's' : 'm'}>\n {media ? <Skeleton height={compact ? 120 : 180} radius=\"m\" /> : null}\n <Stack gap=\"s\">\n <Skeleton height={18} radius=\"full\" width=\"54%\" />\n <SkeletonText lines={lines} />\n </Stack>\n {actions ? (\n <ButtonGroup align=\"end\">\n <Skeleton height={36} radius=\"m\" width={88} />\n <Skeleton height={36} radius=\"m\" width={120} />\n </ButtonGroup>\n ) : null}\n </Stack>\n </Card>\n );\n}\n\n/***\n * Skeleton placeholder that matches the structure of a `Card`.\n */\nexport const SkeletonCard = withZoraThemeScope(SkeletonCardInner);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonText.js","sourceRoot":"","sources":["../../../src/components/skeleton/SkeletonText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"SkeletonText.js","sourceRoot":"","sources":["../../../src/components/skeleton/SkeletonText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MA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T,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Stack } from '../../features/layout/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Skeleton } from './Skeleton';\nimport type { SkeletonTextProps } from './types';\n\nfunction clampLines(lines: number): number {\n if (!Number.isFinite(lines)) {\n return 1;\n }\n\n return Math.max(1, Math.floor(lines));\n}\n\nfunction SkeletonTextInner({\n themeId: _themeId,\n mode: _mode,\n testID,\n lines = 3,\n lineHeight = 12,\n gap = 'xs',\n width = '100%',\n lastLineWidth = '70%',\n}: SkeletonTextProps) {\n const lineCount = clampLines(lines);\n\n return (\n <Stack gap={gap} testID={testID}>\n {Array.from({ length: lineCount }).map((_, index) => {\n const isLastLine = index === lineCount - 1;\n return (\n <Skeleton\n height={lineHeight}\n key={`${index}`}\n radius=\"full\"\n width={isLastLine && lineCount > 1 ? lastLineWidth : width}\n />\n );\n })}\n </Stack>\n );\n}\n\n/***\n * Multi-line skeleton placeholder for text content.\n *\n \n */\nexport const SkeletonText = withZoraThemeScope(SkeletonTextInner);\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BoxProps, StackProps } from '../../
|
|
1
|
+
import type { BoxProps, StackProps } from '../../features/layout/public';
|
|
2
2
|
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
3
3
|
export type SkeletonRadius = BoxProps['radius'];
|
|
4
4
|
export type SkeletonDimension = BoxProps['width'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/types.ts"],"names":[],"mappings":"AAAA,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sourceRoot":"","sources":["../../../src/components/skeleton/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxProps, StackProps } from '../../
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/skeleton/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BoxProps, StackProps } from '../../features/layout/public';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport type SkeletonRadius = BoxProps['radius'];\nexport type SkeletonDimension = BoxProps['width'];\nexport type SkeletonListVariant = 'divider' | 'card';\n\nexport interface SkeletonProps extends ZoraBaseProps {\n width?: SkeletonDimension;\n height?: BoxProps['height'];\n radius?: SkeletonRadius;\n}\n\nexport interface SkeletonTextProps extends ZoraBaseProps {\n lines?: number;\n lineHeight?: number;\n gap?: StackProps['gap'];\n width?: SkeletonDimension;\n lastLineWidth?: SkeletonDimension;\n}\n\nexport interface SkeletonCardProps extends ZoraBaseProps {\n media?: boolean;\n actions?: boolean;\n lines?: number;\n compact?: boolean;\n}\n\nexport interface SkeletonListProps extends ZoraBaseProps {\n rows?: number;\n avatar?: boolean;\n media?: boolean;\n lines?: number;\n variant?: SkeletonListVariant;\n compact?: boolean;\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Button } from '../../features/button/public';
|
|
3
|
+
import { Box, Stack } from '../../features/layout/public';
|
|
4
|
+
import { Text } from '../../features/typography/public';
|
|
3
5
|
import { useZoraTheme } from '../../theme/useZoraTheme';
|
|
4
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
5
|
-
import { Button } from '../button';
|
|
6
|
-
import { Text } from '../text';
|
|
7
7
|
function TabsInner({ themeId: _themeId, mode: _mode, value, items, onValueChange, variant = 'underline', size = 'm', disabled: tabsDisabled, testID, interactionPolicy, }) {
|
|
8
8
|
const { theme } = useZoraTheme();
|
|
9
9
|
const passive = interactionPolicy === 'passive';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../src/components/tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,SAAS,CAAiC,EACjD,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,KAAK,EACL,KAAK,EACL,aAAa,EACb,OAAO,GAAG,WAAW,EACrB,IAAI,GAAG,GAAG,EACV,QAAQ,EAAE,YAAY,EACtB,MAAM,EACN,iBAAiB,GACC;IAClB,MAAM,EAAE,KAAK,EAAE,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,OAAO,GAAG,iBAAiB,KAAK,SAAS,CAAC;IAEhD,MAAM,SAAS,GAAG,CAAC,IAAqB,EAAE,EAAE;QAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;QACtC,MAAM,UAAU,GAAG,YAAY,IAAI,IAAI,CAAC,QAAQ,CAAC;QAEjD,IAAI,OAAO,KAAK,WAAW,EAAE,CAAC;YAC5B,OAAO,CACL,CAAC,MAAM,CACL,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAChB,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CA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,CAAC,GAAG,CAAC,CAC5C,KAAK,CAAC,QAAQ,CACd,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,CAAC,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAC5C,EAAE,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CACvD,MAAM,CAAC,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAE/C;MAAA,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CACvB;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Button } from '../../features/button/public';\nimport { Box, Stack } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { useZoraTheme } from '../../theme/useZoraTheme';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { TabItem, TabsProps } from './types';\n\nfunction TabsInner<TValue extends string = string>({\n themeId: _themeId,\n mode: _mode,\n value,\n items,\n onValueChange,\n variant = 'underline',\n size = 'm',\n disabled: tabsDisabled,\n testID,\n interactionPolicy,\n}: TabsProps<TValue>) {\n const { theme } = useZoraTheme();\n const passive = interactionPolicy === 'passive';\n\n const renderTab = (item: TabItem<TValue>) => {\n const isActive = item.value === value;\n const isDisabled = tabsDisabled ?? item.disabled;\n\n if (variant === 'segmented') {\n return (\n <Button\n key={item.value}\n variant={isActive ? 'solid' : 'ghost'}\n color=\"neutral\"\n size={size}\n disabled={isDisabled}\n onPress={() => {\n if (!passive) {\n onValueChange(item.value);\n }\n }}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n {item.label}\n {item.badge}\n </Button>\n );\n }\n\n if (variant === 'pill') {\n return (\n <Button\n key={item.value}\n variant={isActive ? 'soft' : 'ghost'}\n color={isActive ? 'primary' : 'neutral'}\n size={size}\n disabled={isDisabled}\n onPress={() => {\n if (!passive) {\n onValueChange(item.value);\n }\n }}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n {item.label}\n {item.badge}\n </Button>\n );\n }\n\n // Default: 'underline'\n return (\n <Box\n key={item.value}\n borderColor={isActive ? theme.colors.primary : 'transparent'}\n pb=\"xs\"\n style={{\n borderBottomWidth: 2,\n }}\n >\n <Button\n variant=\"ghost\"\n color=\"neutral\"\n size={size}\n disabled={isDisabled}\n onPress={() => {\n if (!passive) {\n onValueChange(item.value);\n }\n }}\n leadingIcon={item.icon}\n testID={item.testID}\n >\n <Text\n color={isActive ? 'primary' : undefined}\n emphasis={isActive ? 'default' : 'muted'}\n weight={isActive ? 'semiBold' : 'regular'}\n >\n {item.label}\n </Text>\n {item.badge}\n </Button>\n </Box>\n );\n };\n\n return (\n <Stack\n direction=\"row\"\n gap={variant === 'segmented' ? 'none' : 'm'}\n align=\"center\"\n testID={testID}\n p={variant === 'segmented' ? 'xxs' : 'none'}\n bg={variant === 'segmented' ? 'subtle' : 'transparent'}\n radius={variant === 'segmented' ? 'm' : 'none'}\n >\n {items.map(renderTab)}\n </Stack>\n );\n}\n\n/***\n * Tab navigation for switching between views or content sections.\n *\n \n */\nexport const Tabs = withZoraThemeScope(TabsInner);\n"]}
|
|
@@ -2,10 +2,10 @@ import { Field } from '@ankhorage/surface';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ScrollView, StyleSheet } from 'react-native';
|
|
4
4
|
import { useBottomSheet } from '../../features/bottom-sheet/public';
|
|
5
|
-
import {
|
|
5
|
+
import { Button } from '../../features/button/public';
|
|
6
|
+
import { Stack } from '../../features/layout/public';
|
|
7
|
+
import { Text } from '../../features/typography/public';
|
|
6
8
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
|
-
import { Button } from '../button';
|
|
8
|
-
import { Text } from '../text';
|
|
9
9
|
const MINUTES_PER_DAY = 24 * 60;
|
|
10
10
|
const DEFAULT_STEP_MINUTES = 30;
|
|
11
11
|
/*** Render the field label and optional supporting description. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../../../src/components/time-picker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,eAAe,GAAG,EAAE,GAAG,EAAE,CAAC;AAChC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,mEAAmE;AACnE,SAAS,WAAW,CAAC,KAAsB,EAAE,WAAwC;IACnF,OAAO,CACL,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CACb;MAAA,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CACrC;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CACxC;UAAA,CAAC,WAAW,CACd;QAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;IAAA,EAAE,KAAK,CAAC,CACT,CAAC;AACJ,CAAC;AAED,wDAAwD;AACxD,SAA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,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAErC;MAAA,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAC3C;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE;CAC5B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { Field } from '@ankhorage/surface';\nimport React from 'react';\nimport { ScrollView, StyleSheet } from 'react-native';\n\nimport { useBottomSheet } from '../../features/bottom-sheet/public';\nimport { Stack } from '../../foundation';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport { Button } from '../button';\nimport { Text } from '../text';\nimport type { TimePickerProps } from './types';\n\nconst MINUTES_PER_DAY = 24 * 60;\nconst DEFAULT_STEP_MINUTES = 30;\n\n/*** Render the field label and optional supporting description. */\nfunction renderLabel(label: React.ReactNode, description: React.ReactNode | undefined) {\n return (\n <Stack gap=\"xs\">\n <Text variant=\"label\" weight=\"semiBold\">\n {label}\n </Text>\n {description ? (\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n );\n}\n\n/*** Parse one HH:mm value to minutes since midnight. */\nfunction parseTimeToMinutes(value: string | undefined): number | undefined {\n if (!value) return undefined;\n const match = /^(\\d{2}):(\\d{2})$/.exec(value);\n if (!match) return undefined;\n\n const hours = Number(match[1]);\n const minutes = Number(match[2]);\n if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) return undefined;\n return hours * 60 + minutes;\n}\n\n/*** Format minutes since midnight as HH:mm. */\nfunction formatMinutes(value: number): string {\n const hours = Math.floor(value / 60);\n const minutes = value % 60;\n return `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}`;\n}\n\n/*** Normalize the configured time step to a positive whole minute. */\nfunction resolveStepMinutes(stepMinutes: number | undefined): number {\n if (stepMinutes === undefined || !Number.isFinite(stepMinutes) || stepMinutes <= 0) {\n return DEFAULT_STEP_MINUTES;\n }\n return Math.max(1, Math.floor(stepMinutes));\n}\n\n/*** Generate selectable HH:mm values within the configured range. */\nfunction generateTimeOptions({\n minTime,\n maxTime,\n stepMinutes,\n}: Pick<TimePickerProps, 'maxTime' | 'minTime' | 'stepMinutes'>): string[] {\n const step = resolveStepMinutes(stepMinutes);\n const min = parseTimeToMinutes(minTime) ?? 0;\n const max = parseTimeToMinutes(maxTime) ?? MINUTES_PER_DAY - 1;\n const options: string[] = [];\n\n for (let minute = 0; minute < MINUTES_PER_DAY; minute += step) {\n if (minute >= min && minute <= max) options.push(formatMinutes(minute));\n }\n return options;\n}\n\nfunction TimePickerInner({\n themeId: _themeId,\n mode: _mode,\n value,\n onValueChange,\n label,\n description,\n error,\n placeholder = 'Choose time',\n minTime,\n maxTime,\n stepMinutes,\n disabled = false,\n required = false,\n formatTime,\n testID,\n interactionPolicy,\n}: TimePickerProps) {\n const { dismiss, present } = useBottomSheet();\n const passive = interactionPolicy === 'passive';\n const displayValue = value ? (formatTime ? formatTime(value) : value) : placeholder;\n\n /*** Present the time options through the shared BottomSheet controller. */\n function openPicker() {\n if (passive) return;\n present({\n content: (\n <TimePickerSheet\n description={description}\n formatTime={formatTime}\n interactionPolicy={interactionPolicy}\n label={label}\n maxTime={maxTime}\n minTime={minTime}\n onDismiss={dismiss}\n onSelect={(time) => {\n onValueChange?.(time);\n dismiss();\n }}\n stepMinutes={stepMinutes}\n testID={testID}\n value={value}\n />\n ),\n });\n }\n\n return (\n <Field\n disabled={disabled}\n errorText={error}\n invalid={Boolean(error)}\n label={label ? renderLabel(label, description) : undefined}\n required={required}\n testID={testID}\n >\n <Button\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n onPress={openPicker}\n testID={testID ? `${testID}-trigger` : undefined}\n trailingIcon={{ name: 'chevron-down-outline' }}\n variant=\"outline\"\n >\n {displayValue}\n </Button>\n </Field>\n );\n}\n\ninterface TimePickerSheetProps extends Pick<\n TimePickerProps,\n | 'description'\n | 'formatTime'\n | 'interactionPolicy'\n | 'label'\n | 'maxTime'\n | 'minTime'\n | 'stepMinutes'\n | 'testID'\n | 'value'\n> {\n onDismiss: () => void;\n onSelect: (value: string) => void;\n}\n\n/*** Render time selection content inside the shared BottomSheet host. */\nfunction TimePickerSheet({\n description,\n formatTime,\n interactionPolicy,\n label,\n maxTime,\n minTime,\n onDismiss,\n onSelect,\n stepMinutes,\n testID,\n value,\n}: TimePickerSheetProps) {\n const options = React.useMemo(\n () => generateTimeOptions({ maxTime, minTime, stepMinutes }),\n [maxTime, minTime, stepMinutes],\n );\n\n return (\n <Stack gap=\"m\" p=\"m\" testID={testID ? `${testID}-sheet` : undefined}>\n <PickerSheetHeader description={description} title={label ?? 'Choose time'} />\n <ScrollView style={styles.options}>\n <Stack gap=\"xxs\">\n {options.map((option) => (\n <TimePickerOption\n formatTime={formatTime}\n interactionPolicy={interactionPolicy}\n key={option}\n onSelect={onSelect}\n option={option}\n selected={option === value}\n testID={testID}\n />\n ))}\n </Stack>\n </ScrollView>\n <Button fullWidth interactionPolicy={interactionPolicy} onPress={onDismiss} variant=\"ghost\">\n Cancel\n </Button>\n </Stack>\n );\n}\n\n/*** Render the shared title block used by the time sheet. */\nfunction PickerSheetHeader({\n description,\n title,\n}: {\n description: React.ReactNode | undefined;\n title: React.ReactNode;\n}) {\n return (\n <Stack gap=\"xxs\">\n <Text align=\"center\" variant=\"label\" weight=\"semiBold\">\n {title}\n </Text>\n {description ? (\n <Text align=\"center\" emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n );\n}\n\n/*** Render one accessible selectable time option. */\nfunction TimePickerOption({\n formatTime,\n interactionPolicy,\n onSelect,\n option,\n selected,\n testID,\n}: Pick<TimePickerSheetProps, 'formatTime' | 'interactionPolicy' | 'testID'> & {\n onSelect: (value: string) => void;\n option: string;\n selected: boolean;\n}) {\n return (\n <Button\n accessibilityState={{ selected }}\n fullWidth\n interactionPolicy={interactionPolicy}\n onPress={() => onSelect(option)}\n testID={testID ? `${testID}-option-${option}` : undefined}\n variant={selected ? 'soft' : 'ghost'}\n >\n {formatTime ? formatTime(option) : option}\n </Button>\n );\n}\n\nconst styles = StyleSheet.create({\n options: { maxHeight: 360 },\n});\n\n/***\n * Time input control with bottom-sheet selection and formatted display value.\n */\nexport const TimePicker = withZoraThemeScope(TimePickerInner);\n"]}
|
|
1
|
+
{"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../../../src/components/time-picker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,MAAM,eAAe,GAAG,EAAE,GAAG,EAAE,CAAC;AAChC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC,mEAAmE;AACnE,SAAS,WAAW,CAAC,KAAsB,EAAE,WAAwC;IACnF,OAAO,CACL,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CACb;MAAA,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CACrC;QAAA,CAAC,KAAK,CACR;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,WAAW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iB,CAAC,CAAC,iBAAiB,CAAC,CACrC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAChC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,WAAW,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAC1D,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAErC;MAAA,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAC3C;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE;CAC5B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,CAAC","sourcesContent":["import { Field } from '@ankhorage/surface';\nimport React from 'react';\nimport { ScrollView, StyleSheet } from 'react-native';\n\nimport { useBottomSheet } from '../../features/bottom-sheet/public';\nimport { Button } from '../../features/button/public';\nimport { Stack } from '../../features/layout/public';\nimport { Text } from '../../features/typography/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { TimePickerProps } from './types';\n\nconst MINUTES_PER_DAY = 24 * 60;\nconst DEFAULT_STEP_MINUTES = 30;\n\n/*** Render the field label and optional supporting description. */\nfunction renderLabel(label: React.ReactNode, description: React.ReactNode | undefined) {\n return (\n <Stack gap=\"xs\">\n <Text variant=\"label\" weight=\"semiBold\">\n {label}\n </Text>\n {description ? (\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n );\n}\n\n/*** Parse one HH:mm value to minutes since midnight. */\nfunction parseTimeToMinutes(value: string | undefined): number | undefined {\n if (!value) return undefined;\n const match = /^(\\d{2}):(\\d{2})$/.exec(value);\n if (!match) return undefined;\n\n const hours = Number(match[1]);\n const minutes = Number(match[2]);\n if (hours < 0 || hours > 23 || minutes < 0 || minutes > 59) return undefined;\n return hours * 60 + minutes;\n}\n\n/*** Format minutes since midnight as HH:mm. */\nfunction formatMinutes(value: number): string {\n const hours = Math.floor(value / 60);\n const minutes = value % 60;\n return `${String(hours).padStart(2, '0')}:${String(minutes).padStart(2, '0')}`;\n}\n\n/*** Normalize the configured time step to a positive whole minute. */\nfunction resolveStepMinutes(stepMinutes: number | undefined): number {\n if (stepMinutes === undefined || !Number.isFinite(stepMinutes) || stepMinutes <= 0) {\n return DEFAULT_STEP_MINUTES;\n }\n return Math.max(1, Math.floor(stepMinutes));\n}\n\n/*** Generate selectable HH:mm values within the configured range. */\nfunction generateTimeOptions({\n minTime,\n maxTime,\n stepMinutes,\n}: Pick<TimePickerProps, 'maxTime' | 'minTime' | 'stepMinutes'>): string[] {\n const step = resolveStepMinutes(stepMinutes);\n const min = parseTimeToMinutes(minTime) ?? 0;\n const max = parseTimeToMinutes(maxTime) ?? MINUTES_PER_DAY - 1;\n const options: string[] = [];\n\n for (let minute = 0; minute < MINUTES_PER_DAY; minute += step) {\n if (minute >= min && minute <= max) options.push(formatMinutes(minute));\n }\n return options;\n}\n\nfunction TimePickerInner({\n themeId: _themeId,\n mode: _mode,\n value,\n onValueChange,\n label,\n description,\n error,\n placeholder = 'Choose time',\n minTime,\n maxTime,\n stepMinutes,\n disabled = false,\n required = false,\n formatTime,\n testID,\n interactionPolicy,\n}: TimePickerProps) {\n const { dismiss, present } = useBottomSheet();\n const passive = interactionPolicy === 'passive';\n const displayValue = value ? (formatTime ? formatTime(value) : value) : placeholder;\n\n /*** Present the time options through the shared BottomSheet controller. */\n function openPicker() {\n if (passive) return;\n present({\n content: (\n <TimePickerSheet\n description={description}\n formatTime={formatTime}\n interactionPolicy={interactionPolicy}\n label={label}\n maxTime={maxTime}\n minTime={minTime}\n onDismiss={dismiss}\n onSelect={(time) => {\n onValueChange?.(time);\n dismiss();\n }}\n stepMinutes={stepMinutes}\n testID={testID}\n value={value}\n />\n ),\n });\n }\n\n return (\n <Field\n disabled={disabled}\n errorText={error}\n invalid={Boolean(error)}\n label={label ? renderLabel(label, description) : undefined}\n required={required}\n testID={testID}\n >\n <Button\n disabled={disabled}\n interactionPolicy={interactionPolicy}\n onPress={openPicker}\n testID={testID ? `${testID}-trigger` : undefined}\n trailingIcon={{ name: 'chevron-down-outline' }}\n variant=\"outline\"\n >\n {displayValue}\n </Button>\n </Field>\n );\n}\n\ninterface TimePickerSheetProps extends Pick<\n TimePickerProps,\n | 'description'\n | 'formatTime'\n | 'interactionPolicy'\n | 'label'\n | 'maxTime'\n | 'minTime'\n | 'stepMinutes'\n | 'testID'\n | 'value'\n> {\n onDismiss: () => void;\n onSelect: (value: string) => void;\n}\n\n/*** Render time selection content inside the shared BottomSheet host. */\nfunction TimePickerSheet({\n description,\n formatTime,\n interactionPolicy,\n label,\n maxTime,\n minTime,\n onDismiss,\n onSelect,\n stepMinutes,\n testID,\n value,\n}: TimePickerSheetProps) {\n const options = React.useMemo(\n () => generateTimeOptions({ maxTime, minTime, stepMinutes }),\n [maxTime, minTime, stepMinutes],\n );\n\n return (\n <Stack gap=\"m\" p=\"m\" testID={testID ? `${testID}-sheet` : undefined}>\n <PickerSheetHeader description={description} title={label ?? 'Choose time'} />\n <ScrollView style={styles.options}>\n <Stack gap=\"xxs\">\n {options.map((option) => (\n <TimePickerOption\n formatTime={formatTime}\n interactionPolicy={interactionPolicy}\n key={option}\n onSelect={onSelect}\n option={option}\n selected={option === value}\n testID={testID}\n />\n ))}\n </Stack>\n </ScrollView>\n <Button fullWidth interactionPolicy={interactionPolicy} onPress={onDismiss} variant=\"ghost\">\n Cancel\n </Button>\n </Stack>\n );\n}\n\n/*** Render the shared title block used by the time sheet. */\nfunction PickerSheetHeader({\n description,\n title,\n}: {\n description: React.ReactNode | undefined;\n title: React.ReactNode;\n}) {\n return (\n <Stack gap=\"xxs\">\n <Text align=\"center\" variant=\"label\" weight=\"semiBold\">\n {title}\n </Text>\n {description ? (\n <Text align=\"center\" emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n );\n}\n\n/*** Render one accessible selectable time option. */\nfunction TimePickerOption({\n formatTime,\n interactionPolicy,\n onSelect,\n option,\n selected,\n testID,\n}: Pick<TimePickerSheetProps, 'formatTime' | 'interactionPolicy' | 'testID'> & {\n onSelect: (value: string) => void;\n option: string;\n selected: boolean;\n}) {\n return (\n <Button\n accessibilityState={{ selected }}\n fullWidth\n interactionPolicy={interactionPolicy}\n onPress={() => onSelect(option)}\n testID={testID ? `${testID}-option-${option}` : undefined}\n variant={selected ? 'soft' : 'ghost'}\n >\n {formatTime ? formatTime(option) : option}\n </Button>\n );\n}\n\nconst styles = StyleSheet.create({\n options: { maxHeight: 360 },\n});\n\n/***\n * Time input control with bottom-sheet selection and formatted display value.\n */\nexport const TimePicker = withZoraThemeScope(TimePickerInner);\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Card } from '../../features/card/public';
|
|
3
|
+
import { Stack } from '../../features/layout/public';
|
|
3
4
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
4
|
-
import { Card } from '../card';
|
|
5
5
|
function ToolbarInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interactionPolicy, children, position = 'inline', floating = false, compact = true, testID, }) {
|
|
6
6
|
const isFixed = position === 'top' || position === 'bottom';
|
|
7
7
|
return (<Card compact={compact} tone={floating ? 'default' : 'subtle'} testID={testID} style={isFixed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Toolbar.js","sourceRoot":"","sources":["../../../src/components/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,YAAY,CAAC,EACpB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,QAAQ,EACR,QAAQ,GAAG,QAAQ,EACnB,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,IAAI,EACd,MAAM,GACO;IACb,MAAM,OAAO,GAAG,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,QAAQ,CAAC;IAE5D,OAAO,CACL,CAAC,IAAI,CACH,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CACtC,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,KAAK,CAAC,CACJ,OAAO;YACL,CAAC,CAAC;gBACE,QAAQ,EAAE,UAAU;gBACpB,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACb,MAAM,EAAE,EAAE;gBACV,SAAS,EAAE,QAAQ;aACpB;YACH,CAAC,CAAC,SACN,CAAC,CAED;MAAA,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,CAC3C;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { Card } from '../../features/card/public';\nimport { Stack } from '../../features/layout/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ToolbarProps } from './types';\n\nfunction ToolbarInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n children,\n position = 'inline',\n floating = false,\n compact = true,\n testID,\n}: ToolbarProps) {\n const isFixed = position === 'top' || position === 'bottom';\n\n return (\n <Card\n compact={compact}\n tone={floating ? 'default' : 'subtle'}\n testID={testID}\n style={\n isFixed\n ? {\n position: 'absolute',\n [position]: 0,\n zIndex: 10,\n alignSelf: 'center',\n }\n : undefined\n }\n >\n <Stack direction=\"row\" gap=\"s\" align=\"center\">\n {children}\n </Stack>\n </Card>\n );\n}\n\n/***\n * Horizontal toolbar surface for grouping actions and controls.\n *\n \n */\nexport const Toolbar = withZoraThemeScope(ToolbarInner);\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { IconButton } from '../../features/button/public';
|
|
2
3
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
3
|
-
import { IconButton } from '../icon-button';
|
|
4
4
|
function ToolbarActionInner({ themeId: _themeId, mode: _mode, active, ...props }) {
|
|
5
5
|
return (<IconButton {...props} variant={active ? 'soft' : 'ghost'} color={active ? 'primary' : 'neutral'} size="m"/>);
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarAction.js","sourceRoot":"","sources":["../../../src/components/toolbar/ToolbarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ToolbarAction.js","sourceRoot":"","sources":["../../../src/components/toolbar/ToolbarAction.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,kBAAkB,CAAC,EAC1B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,MAAM,EACN,GAAG,KAAK,EACW;IACnB,OAAO,CACL,CAAC,UAAU,CACT,IAAI,KAAK,CAAC,CACV,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CACnC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CACtC,IAAI,CAAC,GAAG,EACR,CACH,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["import React from 'react';\n\nimport { IconButton } from '../../features/button/public';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ToolbarActionProps } from './types';\n\nfunction ToolbarActionInner({\n themeId: _themeId,\n mode: _mode,\n active,\n ...props\n}: ToolbarActionProps) {\n return (\n <IconButton\n {...props}\n variant={active ? 'soft' : 'ghost'}\n color={active ? 'primary' : 'neutral'}\n size=\"m\"\n />\n );\n}\n\n/***\n * Convenience icon action for toolbars with active state styling.\n *\n \n */\nexport const ToolbarAction = withZoraThemeScope(ToolbarActionInner);\n"]}
|