-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from bigcommerce/feature/advanced-filters
Feature/advanced filters
- Loading branch information
Showing
12 changed files
with
1,619 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import App from './App'; | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import App from "./App"; | ||
|
||
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement); | ||
import { theme } from "@bigcommerce/big-design-theme"; | ||
import { ThemeProvider } from "styled-components"; | ||
|
||
const root = ReactDOM.createRoot( | ||
document.getElementById("root") as HTMLElement | ||
); | ||
|
||
root.render( | ||
<React.StrictMode> | ||
<App /> | ||
<ThemeProvider theme={theme}> | ||
<App /> | ||
</ThemeProvider> | ||
</React.StrictMode> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
packages/examples-site/src/pages/FiltersAdvancedPAge/FiltersAdvancedPage.styled.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { theme as defaultTheme } from "@bigcommerce/big-design-theme"; | ||
import styled from "styled-components"; | ||
import { BoxProps } from "@bigcommerce/big-design"; | ||
|
||
import { GridItem, Link } from "@bigcommerce/big-design"; | ||
|
||
export const StyledGridItem = styled(GridItem)` | ||
align-content: center; | ||
`; | ||
|
||
export const StyledFiltersLink = styled(Link)` | ||
display: inline-flex; | ||
align-items: center; | ||
flex-gap: 0.25rem; | ||
`; | ||
|
||
export const StyledPanelContents = styled.div<BoxProps>` | ||
display: block; | ||
box-sizing: border-box; | ||
margin-inline: -${({ theme }) => theme.spacing.medium}; | ||
max-width: calc( | ||
100% + ${({ theme }) => theme.spacing.medium}px + | ||
${({ theme }) => theme.spacing.medium}px | ||
); | ||
overflow-x: auto; | ||
@media (min-width: ${({ theme }) => theme.breakpointValues.tablet}) { | ||
margin-inline: -${({ theme }) => theme.spacing.xLarge}; | ||
max-width: calc( | ||
100% + ${({ theme }) => theme.spacing.xLarge}px + | ||
${({ theme }) => theme.spacing.xLarge}px | ||
); | ||
} | ||
`; | ||
|
||
// Provides default theme props to ensure consistent styling if not provided externally | ||
StyledPanelContents.defaultProps = { theme: defaultTheme }; | ||
|
||
export const StyledProductImage = styled.div<BoxProps>` | ||
display: block; | ||
box-sizing: border-box; | ||
width: 47px; | ||
height: 47px; | ||
border: ${({ theme }) => theme.border.box}; | ||
border-radius: ${({ theme }) => theme.borderRadius.normal}; | ||
overflow: hidden; | ||
img { | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
`; | ||
|
||
StyledProductImage.defaultProps = { theme: defaultTheme }; | ||
|
||
|
||
export const StyledBulkActions = styled.div<BoxProps>` | ||
display: block; | ||
@media (min-width: ${({ theme }) => theme.breakpointValues.tablet}) { | ||
min-width: 300px; | ||
} | ||
`; | ||
|
||
StyledBulkActions.defaultProps = { theme: defaultTheme }; |
Oops, something went wrong.