-
+
{icon}
- {label}
-
- {caption}
+ {label}
+
+ {caption}
{actionLabel ? (
) : null}
-
+
)
}
-export default Banner
+export default InlineMessage
diff --git a/src/components/Banner/styled.ts b/src/components/InlineMessage/styled.ts
similarity index 79%
rename from src/components/Banner/styled.ts
rename to src/components/InlineMessage/styled.ts
index f59f603..9650d0e 100644
--- a/src/components/Banner/styled.ts
+++ b/src/components/InlineMessage/styled.ts
@@ -1,7 +1,7 @@
import styled from '@emotion/styled'
import { getThemedColor } from '../../lib/theme'
-export const DefaultBanner = styled.div<{
+export const DefaultInlineMessage = styled.div<{
isButtonRight?: boolean
size: string
}>`
@@ -24,7 +24,7 @@ export const DefaultBanner = styled.div<{
}
`
-export const BannerHeader = styled.div`
+export const InlineMessageHeader = styled.div`
display: flex;
align-items: flex-start;
gap: 8px;
@@ -34,14 +34,14 @@ export const BannerHeader = styled.div`
}
`
-export const BannerTitle = styled.p<{ size: string }>`
+export const InlineMessageTitle = styled.p<{ size: string }>`
color: ${getThemedColor('neutral', 800)};
font-size: ${({ size }) => (size === 'small' ? '14px' : '18px')};
line-height: ${({ size }) => (size === 'small' ? '20px' : '28px')};
font-weight: 400;
`
-export const BannerCaption = styled.p<{ size: string }>`
+export const InlineMessageCaption = styled.p<{ size: string }>`
color: ${getThemedColor('neutral', 700)};
font-size: ${({ size }) => (size === 'small' ? '12px' : '16px')};
line-height: ${({ size }) => (size === 'small' ? '16px' : '24px')};
@@ -49,19 +49,19 @@ export const BannerCaption = styled.p<{ size: string }>`
margin-left: 24px;
`
-export const InfoWhiteBanner = styled(DefaultBanner)`
+export const InfoWhiteInlineMessage = styled(DefaultInlineMessage)`
background-color: ${getThemedColor('neutral', 100)};
border: 1px solid ${getThemedColor('neutral', 300)};
color: ${getThemedColor('neutral', 700)};
`
-export const InfoGreyBanner = styled(DefaultBanner)`
+export const InfoGreyInlineMessage = styled(DefaultInlineMessage)`
background-color: ${getThemedColor('neutral', 200)};
border: 1px solid ${getThemedColor('neutral', 300)};
color: ${getThemedColor('neutral', 700)};
`
-export const SuccessBanner = styled(DefaultBanner)`
+export const SuccessInlineMessage = styled(DefaultInlineMessage)`
background-color: ${getThemedColor('success', 100)};
border: 1px solid ${getThemedColor('success', 500)};
color: ${getThemedColor('success', 500)};
@@ -71,7 +71,7 @@ export const SuccessBanner = styled(DefaultBanner)`
}
`
-export const WarningBanner = styled(DefaultBanner)`
+export const WarningInlineMessage = styled(DefaultInlineMessage)`
background-color: ${getThemedColor('warning', 100)};
border: 1px solid ${getThemedColor('warning', 500)};
color: ${getThemedColor('warning', 500)};
@@ -81,7 +81,7 @@ export const WarningBanner = styled(DefaultBanner)`
}
`
-export const ErrorBanner = styled(DefaultBanner)`
+export const ErrorInlineMessage = styled(DefaultInlineMessage)`
background-color: ${getThemedColor('error', 100)};
border: 1px solid ${getThemedColor('error', 500)};
color: ${getThemedColor('error', 500)};
diff --git a/src/components/Banner/types.ts b/src/components/InlineMessage/types.ts
similarity index 87%
rename from src/components/Banner/types.ts
rename to src/components/InlineMessage/types.ts
index 5543695..bf7f7e1 100644
--- a/src/components/Banner/types.ts
+++ b/src/components/InlineMessage/types.ts
@@ -1,4 +1,4 @@
-export type BannerProps = {
+export type InlineMessageProps = {
label: string
caption?: string
variant: 'info-white' | 'info-grey' | 'success' | 'warning' | 'error'
diff --git a/src/components/Input/README.md b/src/components/Input/README.md
deleted file mode 100644
index f8bea5f..0000000
--- a/src/components/Input/README.md
+++ /dev/null
@@ -1,99 +0,0 @@
-# Input
-
-[Storybook Ref](https://wri.github.io/wri-design-systems/?path=/docs/inputs-input--docs)
-
-[InputDemo](https://github.com/wri/wri-design-systems/blob/main/src/components/Input/InputDemo.tsx)
-
-## Import
-
-```js
-import { Input } from 'wri-design-systems'
-```
-
-## Usage
-
-```html
-