-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4935fea
commit a2648de
Showing
172 changed files
with
3,033 additions
and
2,653 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
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,14 +1,16 @@ | ||
import * as React from 'react'; | ||
import cx from 'classnames'; | ||
import { BaseDocsBlock, DocExample } from '../common'; | ||
import css from './styles.module.scss'; | ||
|
||
export class RichTextEditorDoc extends BaseDocsBlock { | ||
title = 'Rich Text Editor'; | ||
renderContent() { | ||
return ( | ||
<> | ||
<span className={ cx(css.wrapper) }> | ||
<DocExample path="./_examples/richTextEditor/Basic.example.tsx" /> | ||
<DocExample title="Inner scroll behavior" path="./_examples/richTextEditor/WithInnerScroll.example.tsx" /> | ||
</> | ||
</span> | ||
); | ||
} | ||
} |
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,14 +1,16 @@ | ||
import * as React from 'react'; | ||
import cx from 'classnames'; | ||
import { BaseDocsBlock, DocExample } from '../common'; | ||
import css from './styles.module.scss'; | ||
|
||
export class RichTextEditorSerializersDoc extends BaseDocsBlock { | ||
title = 'Rich Text Editor Serializers'; | ||
renderContent() { | ||
return ( | ||
<> | ||
<span className={ cx(css.wrapper) }> | ||
<DocExample title="MD format" path="./_examples/richTextEditor/MdSerialization.example.tsx" /> | ||
<DocExample title="HTML format" path="./_examples/richTextEditor/HtmlSerialization.example.tsx" /> | ||
</> | ||
</span> | ||
); | ||
} | ||
} |
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,3 +1,13 @@ | ||
@use '~@epam/assets/theme/theme_promo' as *; | ||
|
||
.wrapper { | ||
&.uui-theme-promo { | ||
:global { | ||
@include theme-promo(); | ||
} | ||
} | ||
} | ||
|
||
.app-bg { | ||
--uui-docs-bg: var(--uui-app-bg); | ||
} |
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,6 +1,14 @@ | ||
@use '~@epam/assets/theme/theme_promo' as *; | ||
|
||
.container { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 1 0; | ||
height: calc(100vh - 60px); | ||
|
||
&.uui-theme-promo { | ||
:global { | ||
@include theme-promo(); | ||
} | ||
} | ||
} |
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,5 +1,12 @@ | ||
@use '~@epam/assets/theme/theme_loveship' as *; | ||
|
||
.container { | ||
width: 100%; | ||
height: calc(100vh - 60px); | ||
|
||
&.uui-theme-loveship { | ||
:global { | ||
@include theme-loveship(); | ||
} | ||
} | ||
} |
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,36 @@ | ||
import React, { useState } from 'react'; | ||
import { PickerInput } from '@epam/loveship'; | ||
import { useArrayDataSource } from '@epam/uui-core'; | ||
|
||
const languageLevels = [ | ||
{ id: 2, level: 'A1' }, { id: 3, level: 'A1+' }, { id: 4, level: 'A2' }, { id: 5, level: 'A2+' }, { id: 6, level: 'B1' }, { id: 7, level: 'B1+' }, { id: 8, level: 'B2' }, { id: 9, level: 'B2+' }, { id: 10, level: 'C1' }, { id: 11, level: 'C1+' }, { id: 12, level: 'C2' }, | ||
]; | ||
|
||
interface ILoveshipPickerInputProps { | ||
type: 'single' | 'multi'; | ||
} | ||
|
||
export const LoveshipPickerInput: React.FC<ILoveshipPickerInputProps> = ({ type }) => { | ||
const [value, setValue] = useState(null); | ||
|
||
const dataSource = useArrayDataSource( | ||
{ | ||
items: languageLevels, | ||
}, | ||
[], | ||
); | ||
|
||
return ( | ||
<PickerInput | ||
value={ value } | ||
onValueChange={ setValue } | ||
dataSource={ dataSource } | ||
getName={ (item) => item.level } | ||
entityName="Language level" | ||
selectionMode={ type } | ||
valueType="id" | ||
sorting={ { field: 'level', direction: 'asc' } } | ||
placeholder={ type } | ||
/> | ||
); | ||
}; |
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,36 @@ | ||
import React, { useState } from 'react'; | ||
import { PickerInput } from '@epam/promo'; | ||
import { useArrayDataSource } from '@epam/uui-core'; | ||
|
||
const languageLevels = [ | ||
{ id: 2, level: 'A1' }, { id: 3, level: 'A1+' }, { id: 4, level: 'A2' }, { id: 5, level: 'A2+' }, { id: 6, level: 'B1' }, { id: 7, level: 'B1+' }, { id: 8, level: 'B2' }, { id: 9, level: 'B2+' }, { id: 10, level: 'C1' }, { id: 11, level: 'C1+' }, { id: 12, level: 'C2' }, | ||
]; | ||
|
||
interface IPromoPickerInputProps { | ||
type: 'single' | 'multi'; | ||
} | ||
|
||
export const PromoPickerInput: React.FC<IPromoPickerInputProps> = ({ type }) => { | ||
const [value, setValue] = useState(null); | ||
|
||
const dataSource = useArrayDataSource( | ||
{ | ||
items: languageLevels, | ||
}, | ||
[], | ||
); | ||
|
||
return ( | ||
<PickerInput | ||
value={ value } | ||
onValueChange={ setValue } | ||
dataSource={ dataSource } | ||
getName={ (item) => item.level } | ||
entityName="Language level" | ||
selectionMode={ type } | ||
valueType="id" | ||
sorting={ { field: 'level', direction: 'asc' } } | ||
placeholder={ type } | ||
/> | ||
); | ||
}; |
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,16 @@ | ||
@use '~@epam/assets/theme/theme_loveship' as *; | ||
@use '~@epam/assets/theme/theme_promo' as *; | ||
|
||
.wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
width: calc(100vw - 240px); | ||
|
||
&.uui-theme-loveship { | ||
@include theme-loveship(); | ||
} | ||
|
||
&.uui-theme-promo { | ||
@include theme-promo(); | ||
} | ||
} |
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,22 @@ | ||
import React from 'react'; | ||
import css from './Responsive.module.scss'; | ||
import { PromoPickerInput } from './PromoPickerInput'; | ||
import { LoveshipPickerInput } from './LoveshipPickerInput'; | ||
import cx from 'classnames'; | ||
|
||
export function Responsive() { | ||
return ( | ||
<> | ||
<div className={ cx(css.wrapper, css.uuiThemePromo) }> | ||
promo: | ||
<PromoPickerInput type="single" /> | ||
<PromoPickerInput type="multi" /> | ||
</div> | ||
<div className={ cx(css.wrapper, css.uuiThemeLoveship) }> | ||
loveship: | ||
<LoveshipPickerInput type="single" /> | ||
<LoveshipPickerInput type="multi" /> | ||
</div> | ||
</> | ||
); | ||
} |
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,4 +1,12 @@ | ||
@use '~@epam/assets/theme/theme_promo' as *; | ||
|
||
.panel { | ||
display: flex; | ||
width: 100%; | ||
|
||
&.uui-theme-promo { | ||
:global { | ||
@include theme-promo(); | ||
} | ||
} | ||
} |
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
16 changes: 16 additions & 0 deletions
16
app/src/sandbox/tableCellStyles/TableCellsStylesSandbox.module.scss
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,16 @@ | ||
@use '~@epam/assets/theme/theme_promo' as *; | ||
@use '~@epam/assets/theme/theme_loveship' as *; | ||
|
||
.wrapper { | ||
&.uui-theme-promo { | ||
:global { | ||
@include theme-promo(); | ||
} | ||
} | ||
|
||
&.uui-theme-loveship { | ||
:global { | ||
@include theme-loveship(); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.