Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package com.example.metasearch.core.ui.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme

@Composable
fun MetaSearchDivider(
modifier: Modifier = Modifier,
) {
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
}

@ComponentPreview
@Composable
private fun MetaSearchDividerPreview() {
MetaSearchTheme {
MetaSearchDivider()
}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.example.metasearch.feature.detail.graph.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Icon
Expand All @@ -18,9 +16,9 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.detail.R

@Composable
Expand Down Expand Up @@ -54,11 +52,7 @@ fun GraphDetailHeader(
modifier = Modifier.width(MetaSearchTheme.spacing.spacing10),
)
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.example.metasearch.feature.detail.person.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
Expand All @@ -18,9 +15,9 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.detail.R

@Composable
Expand Down Expand Up @@ -61,11 +58,7 @@ fun PersonDetailHeader(
)
}
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.example.metasearch.feature.detail.photo.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Icon
Expand All @@ -18,9 +16,9 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.detail.R

@Composable
Expand Down Expand Up @@ -54,11 +52,7 @@ fun PhotoDetailHeader(
modifier = Modifier.width(MetaSearchTheme.spacing.spacing10),
)
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
package com.example.metasearch.feature.graph.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.graph.R

@Composable
Expand All @@ -34,11 +31,7 @@ fun GraphHeader(
color = Neutral800,
)
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.example.metasearch.feature.home.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.CircularProgressIndicator
Expand All @@ -19,9 +17,9 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.home.R

@Composable
Expand Down Expand Up @@ -59,11 +57,7 @@ fun HomeHeader(
}
}
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
package com.example.metasearch.feature.person.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.person.R

@Composable
Expand All @@ -34,11 +31,7 @@ fun PersonHeader(
color = Neutral800,
)
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package com.example.metasearch.feature.search.focusing.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Icon
Expand All @@ -18,9 +16,9 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.search.R

@Composable
Expand Down Expand Up @@ -54,11 +52,7 @@ fun FocusingSearchHeader(
modifier = Modifier.width(MetaSearchTheme.spacing.spacing10),
)
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
package com.example.metasearch.feature.search.nls.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import com.example.metasearch.core.designsystem.annotation.ComponentPreview
import com.example.metasearch.core.designsystem.theme.LightGrey
import com.example.metasearch.core.designsystem.theme.MetaSearchTheme
import com.example.metasearch.core.designsystem.theme.Neutral800
import com.example.metasearch.core.ui.component.MetaSearchDivider
import com.example.metasearch.feature.search.R

@Composable
Expand All @@ -34,11 +31,7 @@ fun NLSearchHeader(
color = Neutral800,
)
}
Spacer(
modifier = modifier.fillMaxWidth()
.height(MetaSearchTheme.spacing.spacing05)
.background(LightGrey),
)
MetaSearchDivider()
}
}

Expand Down