From fe1ef0fbc981852d035b45024aa7e12413783a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Mon, 19 Dec 2022 14:44:52 +0100 Subject: [PATCH] [WIP]: Save semi-refactored state for transfer --- .../Pages/AlertShowcase.razor | 3 +- .../Pages/AppBarShowcase.razor | 7 + .../Components/Alert/Alert.razor | 17 +- .../Components/Alert/Alert.razor.cs | 160 +++++---- .../Components/AppBar/AppBar.razor | 8 +- .../Components/AppBar/AppBar.razor.cs | 75 +++-- .../Autocomplete/Autocomplete.razor | 4 +- .../Autocomplete/Autocomplete.razor.cs | 1 - .../Components/Avatar/Avatar.razor | 8 +- .../Components/Avatar/Avatar.razor.cs | 99 +++--- .../Components/Avatar/AvatarGroup.razor | 4 +- .../Components/Avatar/AvatarGroup.razor.cs | 45 ++- .../Components/Avatar/AvatarKind.cs | 14 + .../Components/Badge/Badge.razor | 4 +- .../Components/Badge/Badge.razor.cs | 4 +- .../Components/Breadcrumbs/Breadcrumbs.razor | 2 +- .../Breadcrumbs/Breadcrumbs.razor.cs | 2 +- .../Components/Button/Button.razor | 34 +- .../Components/Button/Button.razor.cs | 77 +---- .../Components/Button/ButtonBase.cs | 96 ++---- .../Components/Button/Fab.razor | 6 +- .../Components/Button/Fab.razor.cs | 4 +- .../Components/Button/IconButton.razor | 8 +- .../Components/Button/IconButton.razor.cs | 7 +- .../Components/Button/ToggleIconButton.razor | 5 +- .../Components/ButtonGroup/ButtonGroup.razor | 6 +- .../ButtonGroup/ButtonGroup.razor.cs | 2 +- .../Components/Card/Card.razor | 2 +- .../Components/Card/Card.razor.cs | 2 +- .../Components/Card/CardActions.razor | 2 +- .../Components/Card/CardActions.razor.cs | 2 +- .../Components/Card/CardContent.razor | 2 +- .../Components/Card/CardContent.razor.cs | 2 +- .../Components/Card/CardHeader.razor | 2 +- .../Components/Card/CardHeader.razor.cs | 2 +- .../Components/Card/CardMedia.razor | 2 +- .../Components/Card/CardMedia.razor.cs | 3 +- .../Components/Carousel/Carousel.razor | 2 +- .../Components/Carousel/Carousel.razor.cs | 2 +- .../Components/Carousel/CarouselItem.razor | 2 +- .../Components/Carousel/CarouselItem.razor.cs | 2 +- .../Components/Chart/Chart.razor | 2 +- .../Components/Chart/Chart.razor.cs | 2 +- .../Components/Chart/Charts/Bar.razor | 2 +- .../Components/Chart/Charts/Donut.razor | 2 +- .../Components/Chart/Charts/Line.razor | 2 +- .../Components/Chart/Charts/Pie.razor | 2 +- .../Components/Chart/Parts/Legend.razor | 2 +- .../Components/CheckBox/CheckBox.razor | 4 +- .../Components/CheckBox/CheckBox.razor.cs | 2 +- .../Components/Chip/Chip.razor | 2 +- .../Components/Chip/Chip.razor.cs | 2 +- .../Components/ChipSet/ChipSet.razor | 2 +- .../Components/ChipSet/ChipSet.razor.cs | 2 +- .../Components/Collapse/Collapse.razor | 2 +- .../Components/Collapse/Collapse.razor.cs | 3 +- .../Components/Container/Container.razor | 2 +- .../Components/Container/Container.razor.cs | 2 +- .../Components/DataGrid/Column.cs | 4 +- .../Components/DataGrid/DataGrid.razor | 2 +- .../Components/DataGrid/DataGrid.razor.cs | 3 +- .../Components/DataGrid/DataGridPager.razor | 2 +- .../DataGrid/DataGridPager.razor.cs | 2 +- .../DataGrid/FilterHeaderCell.razor | 2 +- .../DataGrid/FilterHeaderCell.razor.cs | 3 +- .../Components/DataGrid/FooterCell.razor | 2 +- .../Components/DataGrid/FooterCell.razor.cs | 3 +- .../Components/DataGrid/HeaderCell.razor | 4 +- .../Components/DataGrid/HeaderCell.razor.cs | 4 +- .../Components/DataGrid/Row.razor | 2 +- .../Components/DataGrid/Row.razor.cs | 2 +- .../DatePicker/DateRangePicker.razor | 2 +- .../Components/Dialog/Dialog.razor | 2 +- .../Components/Dialog/Dialog.razor.cs | 3 +- .../Components/Dialog/DialogInstance.razor | 4 +- .../Components/Dialog/DialogInstance.razor.cs | 7 +- .../Components/Divider/Divider.razor | 2 +- .../Components/Divider/Divider.razor.cs | 2 +- .../Components/Drawer/Drawer.razor | 2 +- .../Components/Drawer/Drawer.razor.cs | 3 +- .../Components/Drawer/DrawerContainer.razor | 2 +- .../Drawer/DrawerContainer.razor.cs | 3 +- .../Components/Drawer/DrawerHeader.razor | 4 +- .../Components/Drawer/DrawerHeader.razor.cs | 2 +- .../Components/DropZone/DropContainer.razor | 3 +- .../DropZone/DropContainer.razor.cs | 2 +- .../Components/DropZone/DropZone.razor | 4 +- .../Components/DropZone/DropZone.razor.cs | 2 +- .../Components/DropZone/DynamicDropItem.razor | 4 +- .../DropZone/DynamicDropItem.razor.cs | 2 +- .../Components/Element/Element.cs | 6 +- .../ExpansionPanel/ExpansionPanel.razor | 2 +- .../ExpansionPanel/ExpansionPanel.razor.cs | 2 +- .../ExpansionPanel/ExpansionPanels.razor | 2 +- .../ExpansionPanel/ExpansionPanels.razor.cs | 2 +- .../Components/Field/Field.razor | 2 +- .../Components/Field/Field.razor.cs | 2 +- .../Components/FileUpload/FileUpload.razor | 4 +- .../Components/FileUpload/FileUpload.razor.cs | 2 +- .../Components/FocusTrap/FocusTrap.razor | 2 +- .../Components/FocusTrap/FocusTrap.razor.cs | 2 +- .../Components/Form/Form.razor | 2 +- .../Components/Form/Form.razor.cs | 2 +- .../Components/Grid/Grid.razor | 4 +- .../Components/Grid/Item.razor | 4 +- .../Components/Highlighter/Highlighter.razor | 2 +- .../Components/Icon/Icon.razor | 4 +- .../Components/Icon/Icon.razor.cs | 2 +- .../Components/Image/Image.razor | 2 +- .../Components/Image/Image.razor.cs | 4 +- .../Components/Input/Input.razor | 6 +- .../Components/Input/InputCssHelper.cs | 6 +- .../Components/Input/InputLabel.razor | 2 +- .../Components/Input/InputLabel.razor.cs | 2 +- .../Components/Input/RangeInput.razor | 6 +- .../InputControl/InputControl.razor | 2 +- .../InputControl/InputControl.razor.cs | 2 +- .../Components/Layout/Layout.razor | 2 +- .../Components/Link/Link.razor | 2 +- .../Components/Link/Link.razor.cs | 4 +- .../Components/List/List.razor | 2 +- .../Components/List/List.razor.cs | 2 +- .../Components/List/ListItem.razor | 2 +- .../Components/List/ListItem.razor.cs | 2 +- .../Components/List/ListSubheader.razor | 2 +- .../Components/List/ListSubheader.razor.cs | 2 +- .../Components/Main/MainContent.razor | 4 +- .../Components/Mask/Mask.razor | 4 +- .../Components/Mask/Mask.razor.cs | 6 +- .../Components/Menu/Menu.razor | 2 +- .../Components/Menu/Menu.razor.cs | 2 +- .../Components/Menu/MenuItem.razor | 2 +- .../Components/MessageBox/MessageBox.razor | 2 +- .../Components/NavMenu/NavGroup.razor | 2 +- .../Components/NavMenu/NavGroup.razor.cs | 2 +- .../Components/NavMenu/NavLink.razor | 2 +- .../Components/NavMenu/NavLink.razor.cs | 2 +- .../Components/NavMenu/NavMenu.razor | 2 +- .../Components/NavMenu/NavMenu.razor.cs | 2 +- .../NumericField/NumericField.razor | 3 +- .../NumericField/NumericField.razor.cs | 2 +- .../Components/Overlay/Overlay.razor | 2 +- .../Components/Overlay/Overlay.razor.cs | 3 +- .../PageContentNavigation.razor | 2 +- .../PageContentNavigation.razor.cs | 2 +- .../Components/Pagination/Pagination.razor | 2 +- .../Components/Pagination/Pagination.razor.cs | 2 +- .../Components/Paper/Paper.razor | 2 +- .../Components/Paper/Paper.razor.cs | 3 +- .../Components/Picker/Picker.razor | 9 +- .../Components/Picker/Picker.razor.cs | 4 +- .../Components/Popover/Popover.razor.cs | 3 +- .../Components/Popover/PopoverService.cs | 2 +- .../Progress/ProgressCircular.razor | 2 +- .../Progress/ProgressCircular.razor.cs | 2 +- .../Components/Progress/ProgressLinear.razor | 2 +- .../Progress/ProgressLinear.razor.cs | 2 +- .../Components/RTLProvider/RTLProvider.razor | 2 +- .../RTLProvider/RTLProvider.razor.cs | 4 +- .../Components/Radio/Radio.razor | 4 +- .../Components/Radio/Radio.razor.cs | 18 +- .../Components/Radio/RadioGroup.razor | 4 +- .../Components/Radio/RadioGroup.razor.cs | 2 +- .../Components/Rating/Rating.razor | 2 +- .../Components/Rating/Rating.razor.cs | 2 +- .../Components/Rating/RatingItem.razor | 6 +- .../Components/Rating/RatingItem.razor.cs | 2 +- .../Components/ScrollToTop/ScrollToTop.razor | 3 +- .../ScrollToTop/ScrollToTop.razor.cs | 2 +- .../Components/Select/Select.razor | 4 +- .../Components/Select/Select.razor.cs | 2 +- .../Components/Select/SelectItem.razor | 2 +- .../Components/Select/SelectItem.razor.cs | 2 +- .../Components/Skeleton/Skeleton.razor | 2 +- .../Components/Skeleton/Skeleton.razor.cs | 4 +- .../Components/Slider/Slider.razor | 4 +- .../Components/Slider/Slider.razor.cs | 2 +- .../Components/Snackbar/SnackbarElement.razor | 2 +- .../Snackbar/SnackbarElement.razor.cs | 2 +- .../Snackbar/SnackbarProvider.razor | 2 +- .../Snackbar/SnackbarProvider.razor.cs | 2 +- .../Components/Sparkline/SparkLine.razor | 2 +- .../Components/Stack/Stack.razor | 2 +- .../Components/Stack/Stack.razor.cs | 2 +- .../Components/SwipeArea/SwipeArea.razor | 2 +- .../Components/Switch/Switch.razor | 4 +- .../Components/Switch/Switch.razor.cs | 2 +- .../Components/Table/TFootRow.razor | 2 +- .../Components/Table/TFootRow.razor.cs | 2 +- .../Components/Table/THeadRow.razor | 2 +- .../Components/Table/THeadRow.razor.cs | 2 +- .../Components/Table/Table.razor | 2 +- .../Components/Table/TableBase.cs | 2 +- .../Components/Table/TableGroupRow.razor | 8 +- .../Components/Table/TablePager.razor | 2 +- .../Components/Table/TablePager.razor.cs | 6 +- .../Components/Table/TableSortLabel.razor | 2 +- .../Components/Table/TableSortLabel.razor.cs | 2 +- .../Components/Table/Td.razor | 2 +- .../Components/Table/Td.razor.cs | 2 +- .../Components/Table/Th.razor | 2 +- .../Components/Table/Th.razor.cs | 2 +- .../Components/Table/Tr.razor | 2 +- .../Components/Table/Tr.razor.cs | 2 +- .../Components/TableSimple/SimpleTable.razor | 2 +- .../TableSimple/SimpleTable.razor.cs | 2 +- .../Components/Tabs/TabPanel.razor | 2 +- .../Components/Tabs/Tabs.razor | 2 +- .../Components/Tabs/Tabs.razor.cs | 9 +- .../Components/TextField/TextField.razor | 6 +- .../Components/TextField/TextField.razor.cs | 2 +- .../Components/TimePicker/TimePicker.razor | 2 +- .../Components/TimePicker/TimePicker.razor.cs | 2 +- .../Components/Timeline/Timeline.razor | 2 +- .../Components/Timeline/Timeline.razor.cs | 2 +- .../Components/Timeline/TimelineItem.razor | 2 +- .../Components/Timeline/TimelineItem.razor.cs | 2 +- .../Components/ToolBar/ToolBar.razor | 4 +- .../Components/Tooltip/Tooltip.razor | 2 +- .../Components/Tooltip/Tooltip.razor.cs | 2 +- .../Components/TreeView/TreeView.razor | 2 +- .../Components/TreeView/TreeView.razor.cs | 3 +- .../Components/TreeView/TreeViewItem.razor | 2 +- .../Components/TreeView/TreeViewItem.razor.cs | 2 +- .../Components/Typography/TextContent.razor | 84 ++--- .../Typography/TextContent.razor.cs | 2 +- .../Components/UIComponent.cs | 24 +- .../Enums/{ObjectPosition.cs => Alignment.cs} | 7 +- src/Connected.Components/Enums/Color.cs | 12 - .../Enums/HorizontalAlignment.cs | 32 +- src/Connected.Components/Enums/Placement.cs | 30 +- src/Connected.Components/Enums/Position.cs | 33 +- src/Connected.Components/Enums/Severity.cs | 22 +- src/Connected.Components/Enums/Size.cs | 16 +- src/Connected.Components/Enums/Variant.cs | 16 +- .../Enums/VerticalAlignment.cs | 7 + .../Extensions/EnumExtensions.cs | 18 +- .../Utilities/CssBuilder.cs | 234 +++++++------- .../Utilities/StyleBuilder.cs | 305 +++++++++--------- 239 files changed, 971 insertions(+), 1105 deletions(-) create mode 100644 src/Connected.Components.Showcase/Pages/AppBarShowcase.razor create mode 100644 src/Connected.Components/Components/Avatar/AvatarKind.cs rename src/Connected.Components/Enums/{ObjectPosition.cs => Alignment.cs} (74%) create mode 100644 src/Connected.Components/Enums/VerticalAlignment.cs diff --git a/src/Connected.Components.Showcase/Pages/AlertShowcase.razor b/src/Connected.Components.Showcase/Pages/AlertShowcase.razor index 4c0dcc4..32127d1 100644 --- a/src/Connected.Components.Showcase/Pages/AlertShowcase.razor +++ b/src/Connected.Components.Showcase/Pages/AlertShowcase.razor @@ -4,4 +4,5 @@ -This is an alert +This is an alert +This is another alert diff --git a/src/Connected.Components.Showcase/Pages/AppBarShowcase.razor b/src/Connected.Components.Showcase/Pages/AppBarShowcase.razor new file mode 100644 index 0000000..68aff84 --- /dev/null +++ b/src/Connected.Components.Showcase/Pages/AppBarShowcase.razor @@ -0,0 +1,7 @@ +@page "/components/app-bar" + +@using Connected.Components; + + + +This is an alert diff --git a/src/Connected.Components/Components/Alert/Alert.razor b/src/Connected.Components/Components/Alert/Alert.razor index 5d02acf..6d2452f 100644 --- a/src/Connected.Components/Components/Alert/Alert.razor +++ b/src/Connected.Components/Components/Alert/Alert.razor @@ -2,21 +2,24 @@ @inherits UIComponent -