UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

359 lines (357 loc) • 10 kB
function unsupported(name) { throw new Error(`Compose.${name} requires an Android native build`); } function Column(_props) { return unsupported("Column"); } function Row(_props) { return unsupported("Row"); } function Spacer(_props) { return unsupported("Spacer"); } function FlowRow(_props) { return unsupported("FlowRow"); } function Box(_props) { return unsupported("Box"); } function Badge(_props) { return unsupported("Badge"); } function BadgedBoxRoot(_props) { return unsupported("BadgedBox"); } const BadgedBox = Object.assign(BadgedBoxRoot, { Badge: (_props) => unsupported("BadgedBox.Badge") }); function ListItemRoot(_props) { return unsupported("ListItem"); } const ListItem = Object.assign(ListItemRoot, { HeadlineContent: (_props) => unsupported("ListItem.HeadlineContent"), OverlineContent: (_props) => unsupported("ListItem.OverlineContent"), SupportingContent: (_props) => unsupported("ListItem.SupportingContent"), LeadingContent: (_props) => unsupported("ListItem.LeadingContent"), TrailingContent: (_props) => unsupported("ListItem.TrailingContent") }); function Card(_props) { return unsupported("Card"); } function ElevatedCard(_props) { return unsupported("ElevatedCard"); } function OutlinedCard(_props) { return unsupported("OutlinedCard"); } function Surface(_props) { return unsupported("Surface"); } function HorizontalDivider(_props) { return unsupported("HorizontalDivider"); } function VerticalDivider(_props) { return unsupported("VerticalDivider"); } function FilterChipRoot(_props) { return unsupported("FilterChip"); } function AssistChipRoot(_props) { return unsupported("AssistChip"); } function InputChipRoot(_props) { return unsupported("InputChip"); } function SuggestionChipRoot(_props) { return unsupported("SuggestionChip"); } const ChipLabel = (_props) => unsupported("Chip.Label"); const ChipLeadingIcon = (_props) => unsupported("Chip.LeadingIcon"); const ChipTrailingIcon = (_props) => unsupported("Chip.TrailingIcon"); const ChipAvatar = (_props) => unsupported("Chip.Avatar"); const ChipIcon = (_props) => unsupported("Chip.Icon"); const AssistChip = Object.assign(AssistChipRoot, { Label: ChipLabel, LeadingIcon: ChipLeadingIcon, TrailingIcon: ChipTrailingIcon }); const FilterChip = Object.assign(FilterChipRoot, { Label: ChipLabel, LeadingIcon: ChipLeadingIcon, TrailingIcon: ChipTrailingIcon }); const InputChip = Object.assign(InputChipRoot, { Label: ChipLabel, Avatar: ChipAvatar, TrailingIcon: ChipTrailingIcon }); const SuggestionChip = Object.assign(SuggestionChipRoot, { Label: ChipLabel, Icon: ChipIcon }); function Text(_props) { return unsupported("Text"); } function Icon(_props) { return unsupported("Icon"); } function Button(_props) { return unsupported("Button"); } function IconButton(_props) { return unsupported("IconButton"); } function FilledIconButton(_props) { return unsupported("FilledIconButton"); } function FilledTonalIconButton(_props) { return unsupported("FilledTonalIconButton"); } function OutlinedIconButton(_props) { return unsupported("OutlinedIconButton"); } const FloatingActionButton = Object.assign((_props) => unsupported("FloatingActionButton"), { Icon: (_props) => unsupported("FloatingActionButton.Icon") }); const SmallFloatingActionButton = Object.assign((_props) => unsupported("SmallFloatingActionButton"), { Icon: (_props) => unsupported("SmallFloatingActionButton.Icon") }); const LargeFloatingActionButton = Object.assign((_props) => unsupported("LargeFloatingActionButton"), { Icon: (_props) => unsupported("LargeFloatingActionButton.Icon") }); const ExtendedFloatingActionButton = Object.assign((_props) => unsupported("ExtendedFloatingActionButton"), { Icon: (_props) => unsupported("ExtendedFloatingActionButton.Icon"), Text: (_props) => unsupported("ExtendedFloatingActionButton.Text") }); function ToggleButton(_props) { return unsupported("ToggleButton"); } function IconToggleButton(_props) { return unsupported("IconToggleButton"); } function FilledIconToggleButton(_props) { return unsupported("FilledIconToggleButton"); } function OutlinedIconToggleButton(_props) { return unsupported("OutlinedIconToggleButton"); } function SingleChoiceSegmentedButtonRow(_props) { return unsupported("SingleChoiceSegmentedButtonRow"); } function MultiChoiceSegmentedButtonRow(_props) { return unsupported("MultiChoiceSegmentedButtonRow"); } function SegmentedButton(_props) { return unsupported("SegmentedButton"); } function Switch(_props) { return unsupported("Switch"); } function Checkbox(_props) { return unsupported("Checkbox"); } function RadioButton(_props) { return unsupported("RadioButton"); } function TextField(_props) { return unsupported("TextField"); } function Slider(_props) { return unsupported("Slider"); } function AlertDialog(_props) { return unsupported("AlertDialog"); } function Dialog(_props) { return unsupported("Dialog"); } function LazyColumn(_props) { return unsupported("LazyColumn"); } function LazyRow(_props) { return unsupported("LazyRow"); } function Image(_props) { return unsupported("Image"); } function Snackbar(_props) { return unsupported("Snackbar"); } function SnackbarHost(_props) { return unsupported("SnackbarHost"); } const ModalBottomSheetRoot = (_props) => unsupported("ModalBottomSheet"); const ModalBottomSheet = Object.assign(ModalBottomSheetRoot, { DragHandle: (_props) => unsupported("ModalBottomSheet.DragHandle") }); function NavigationBar(_props) { return unsupported("NavigationBar"); } function NavigationBarItem(_props) { return unsupported("NavigationBarItem"); } const SearchBarRoot = (_props) => unsupported("SearchBar"); const SearchBar = Object.assign(SearchBarRoot, { LeadingIcon: (_props) => unsupported("SearchBar.LeadingIcon"), TrailingIcon: (_props) => unsupported("SearchBar.TrailingIcon") }); const DockedSearchBarRoot = (_props) => unsupported("DockedSearchBar"); const DockedSearchBar = Object.assign(DockedSearchBarRoot, { LeadingIcon: (_props) => unsupported("DockedSearchBar.LeadingIcon"), TrailingIcon: (_props) => unsupported("DockedSearchBar.TrailingIcon") }); function DropdownMenu(_props) { return unsupported("DropdownMenu"); } function DropdownMenuItem(_props) { return unsupported("DropdownMenuItem"); } function ExposedDropdownMenuBox(_props) { return unsupported("ExposedDropdownMenuBox"); } function PullToRefreshBox(_props) { return unsupported("PullToRefreshBox"); } function TooltipBox(_props) { return unsupported("TooltipBox"); } function AnimatedVisibility(_props) { return unsupported("AnimatedVisibility"); } function ProgressIndicator(_props) { return unsupported("ProgressIndicator"); } function LinearProgressIndicator(_props) { return unsupported("LinearProgressIndicator"); } function CircularProgressIndicator(_props) { return unsupported("CircularProgressIndicator"); } function LinearWavyProgressIndicator(_props) { return unsupported("LinearWavyProgressIndicator"); } function CircularWavyProgressIndicator(_props) { return unsupported("CircularWavyProgressIndicator"); } function LoadingIndicator(_props) { return unsupported("LoadingIndicator"); } function ContainedLoadingIndicator(_props) { return unsupported("ContainedLoadingIndicator"); } function DatePicker(_props) { return unsupported("DatePicker"); } function TimePicker(_props) { return unsupported("TimePicker"); } function DatePickerDialog(_props) { return unsupported("DatePickerDialog"); } function TimePickerDialog(_props) { return unsupported("TimePickerDialog"); } function BasicAlertDialog(_props) { return unsupported("BasicAlertDialog"); } function HorizontalCenteredHeroCarousel(_props) { return unsupported("HorizontalCenteredHeroCarousel"); } function HorizontalMultiBrowseCarousel(_props) { return unsupported("HorizontalMultiBrowseCarousel"); } function HorizontalUncontainedCarousel(_props) { return unsupported("HorizontalUncontainedCarousel"); } function DateRangePicker(_props) { return unsupported("DateRangePicker"); } function DateRangePickerDialog(_props) { return unsupported("DateRangePickerDialog"); } function SyncSwitch(_props) { return unsupported("SyncSwitch"); } const HorizontalFloatingToolbar = Object.assign((_props) => unsupported("HorizontalFloatingToolbar"), { FloatingActionButton: (_props) => unsupported("HorizontalFloatingToolbar.FloatingActionButton") }); const Shape = Object.fromEntries([ "Star", "PillStar", "Pill", "Circle", "Rectangle", "Polygon", "RoundedCorner" ].map((name) => [name, (_props) => unsupported(`Shape.${name}`)])); const Compose = { BasicAlertDialog, HorizontalCenteredHeroCarousel, HorizontalMultiBrowseCarousel, HorizontalUncontainedCarousel, DateRangePicker, DateRangePickerDialog, HorizontalFloatingToolbar, Shape, SyncSwitch, Column, Row, Spacer, FlowRow, Box, Badge, BadgedBox, ListItem, Card, ElevatedCard, OutlinedCard, Surface, HorizontalDivider, VerticalDivider, FilterChip, AssistChip, InputChip, SuggestionChip, Text, Icon, Button, IconButton, FilledIconButton, FilledTonalIconButton, OutlinedIconButton, FloatingActionButton, SmallFloatingActionButton, LargeFloatingActionButton, ExtendedFloatingActionButton, ToggleButton, IconToggleButton, FilledIconToggleButton, OutlinedIconToggleButton, SingleChoiceSegmentedButtonRow, MultiChoiceSegmentedButtonRow, SegmentedButton, Switch, Checkbox, RadioButton, TextField, Slider, AlertDialog, Dialog, LazyColumn, LazyRow, Image, Snackbar, SnackbarHost, ModalBottomSheet, NavigationBar, NavigationBarItem, SearchBar, DockedSearchBar, DropdownMenu, DropdownMenuItem, ExposedDropdownMenuBox, PullToRefreshBox, TooltipBox, AnimatedVisibility, ProgressIndicator, LinearProgressIndicator, CircularProgressIndicator, LinearWavyProgressIndicator, CircularWavyProgressIndicator, LoadingIndicator, ContainedLoadingIndicator, DatePicker, TimePicker, DatePickerDialog, TimePickerDialog }; export { Compose }; //# sourceMappingURL=compose.mjs.map