Skip to content

Commit

Permalink
chore: update 4.1.1 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay committed Mar 7, 2024
2 parents 94aac64 + eaa447d commit 336dd86
Show file tree
Hide file tree
Showing 34 changed files with 13,183 additions and 2,044 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"name": "@reapit/elements",
"version": "5.0.0-beta.3",
"description": "A collection of React components and utilities for building apps for Reapit Marketplace",
"homepage": "https://github.com/reapit/foundations#readme",
"homepage": "https://github.com/reapit/elements#readme",
"bugs": {
"url": "https://github.com/reapit/foundations/issues"
"url": "https://github.com/reapit/elements/issues"
},
"bin": {
"elements-deploy": "./scripts/cdk/bin/rpt-cdk.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/reapit/foundations.git"
"url": "git+https://github.com/reapit/elements.git"
},
"license": "MIT",
"author": "Will McVay <wmcvay@reapit.com>",
Expand Down
16 changes: 14 additions & 2 deletions src/components/accordion/__styles__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ export const ElAccordionContainer = styled.div`
flex-direction: column;
`

export const ElAccordionItem = styled.div`
export const ElAccordionItem = styled.a`
color: inherit;
font-size: inherit;
font-weight: inherit;
&:hover,
&:link,
&:active,
&:focus {
color: inherit;
font-size: inherit;
font-weight: inherit;
}
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
padding: 0.875rem 0;
border-bottom: 1px solid var(--color-grey-100);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports[`Accordion basic usage should match a snapshot 1`] = `
"baseElement": <body>
<div>
<mock-styled.div>
<mock-styled.div>
<mock-styled.a>
<mock-styled.div>
Accordion Item 1
</mock-styled.div>
Expand Down Expand Up @@ -42,13 +42,13 @@ exports[`Accordion basic usage should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div
classname="mock-css."
>
Accordion Content 1
</mock-styled.div>
<mock-styled.div>
<mock-styled.a>
<mock-styled.div>
Accordion Item 2
</mock-styled.div>
Expand Down Expand Up @@ -84,7 +84,7 @@ exports[`Accordion basic usage should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div>
Accordion Content 2
</mock-styled.div>
Expand All @@ -93,7 +93,7 @@ exports[`Accordion basic usage should match a snapshot 1`] = `
</body>,
"container": <div>
<mock-styled.div>
<mock-styled.div>
<mock-styled.a>
<mock-styled.div>
Accordion Item 1
</mock-styled.div>
Expand Down Expand Up @@ -129,13 +129,13 @@ exports[`Accordion basic usage should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div
classname="mock-css."
>
Accordion Content 1
</mock-styled.div>
<mock-styled.div>
<mock-styled.a>
<mock-styled.div>
Accordion Item 2
</mock-styled.div>
Expand Down Expand Up @@ -171,7 +171,7 @@ exports[`Accordion basic usage should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div>
Accordion Content 2
</mock-styled.div>
Expand Down Expand Up @@ -237,7 +237,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
"baseElement": <body>
<div>
<mock-styled.div>
<mock-styled.div
<mock-styled.a
aria-controls=":r0:-0"
id=":r1:-0"
>
Expand Down Expand Up @@ -279,7 +279,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div
aria-expanded="false"
aria-labelledby=":r1:-0"
Expand All @@ -289,7 +289,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
>
Accordion Content 1
</mock-styled.div>
<mock-styled.div
<mock-styled.a
aria-controls=":r0:-1"
id=":r1:-1"
>
Expand Down Expand Up @@ -331,7 +331,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div
aria-expanded="false"
aria-labelledby=":r1:-1"
Expand All @@ -346,7 +346,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
</body>,
"container": <div>
<mock-styled.div>
<mock-styled.div
<mock-styled.a
aria-controls=":r0:-0"
id=":r1:-0"
>
Expand Down Expand Up @@ -388,7 +388,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div
aria-expanded="false"
aria-labelledby=":r1:-0"
Expand All @@ -398,7 +398,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
>
Accordion Content 1
</mock-styled.div>
<mock-styled.div
<mock-styled.a
aria-controls=":r0:-1"
id=":r1:-1"
>
Expand Down Expand Up @@ -440,7 +440,7 @@ exports[`Accordion react shorthand should match a snapshot 1`] = `
</mock-styled.span>
</mock-styled.div>
</mock-styled.div>
</mock-styled.div>
</mock-styled.a>
<mock-styled.div
aria-expanded="false"
aria-labelledby=":r1:-1"
Expand Down
5 changes: 3 additions & 2 deletions src/components/accordion/accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { elIsActive } from '../../styles/states'
import { Icon } from '../icon'

export interface AccordionBaseProps extends HTMLAttributes<HTMLDivElement> {}
export interface AccordionBaseItemProps extends HTMLAttributes<HTMLAnchorElement> {}

export interface AccordionTitleItemProps {}

Expand All @@ -30,11 +31,11 @@ export const AccordionContainer: FC<AccordionBaseProps> = ({ children, ...rest }
return <ElAccordionContainer {...rest}>{children}</ElAccordionContainer>
}

export const AccordionItem: FC<AccordionBaseProps> = ({ children, ...rest }) => {
export const AccordionItem: FC<AccordionBaseItemProps> = ({ children, ...rest }) => {
return <ElAccordionItem {...rest}>{children}</ElAccordionItem>
}

export const AccordionTitle: FC<AccordionBaseProps> = ({ children, ...rest }) => {
export const AccordionTitle: FC<HTMLAttributes<HTMLDivElement>> = ({ children, ...rest }) => {
return <ElAccordionTitle {...rest}>{children}</ElAccordionTitle>
}

Expand Down
3 changes: 2 additions & 1 deletion src/components/breadcrumb/__styles__/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { styled } from '@linaria/react'

export const ElBreadCrumbItem = styled.div`
export const ElBreadCrumbItem = styled.a`
font-weight: inherit;
border-radius: 0.5rem;
font-size: var(--font-size-small);
color: var(--intent-default);
Expand Down
Loading

0 comments on commit 336dd86

Please sign in to comment.