Skip to content
Open
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
6 changes: 3 additions & 3 deletions samples/grids/list/add-list-items/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export default class ListAddListItems extends React.Component<any, any> {
<span>Header</span>
</IgrListHeader>
<IgrListItem>
<h2 slot="title">Item 1</h2>
<span slot="title">Item 1</span>
</IgrListItem>
<IgrListItem>
<h2 slot="title">Item 2</h2>
<span slot="title">Item 2</span>
</IgrListItem>
<IgrListItem>
<h2 slot="title">Item 3</h2>
<span slot="title">Item 3</span>
</IgrListItem>
</IgrList>
</div>
Expand Down
6 changes: 3 additions & 3 deletions samples/grids/list/list-item-content/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export default class ListItemContent extends React.Component<any, any> {
<span>Contacts</span>
</IgrListHeader>
<IgrListItem>
<h2 slot="title">Terrance Orta</h2>
<span slot="title">Terrance Orta</span>
<span slot="subtitle">770-504-2217</span>
</IgrListItem>
<IgrListItem>
<h2 slot="title">Richard Mahoney</h2>
<span slot="title">Richard Mahoney</span>
<span slot="subtitle">423-676-2869</span>
</IgrListItem>
<IgrListItem>
<h2 slot="title">Donna Price</h2>
<span slot="title">Donna Price</span>
<span slot="subtitle">859-496-2817</span>
</IgrListItem>
</IgrList>
Expand Down
66 changes: 24 additions & 42 deletions samples/grids/list/overview/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,55 +32,37 @@ export default class ListOverview extends React.Component<any, any> {
<span>Contacts</span>
</IgrListHeader>
<IgrListItem>
<div slot="start">
<IgrAvatar src="https://dl.infragistics.com/x/img/avatars/8.jpg" shape="circle" />
</div>
<h2 slot="title">Terrance Orta</h2>
<IgrAvatar slot="start" src="https://dl.infragistics.com/x/img/avatars/8.jpg" shape="circle" />
<span slot="title">Terrance Orta</span>
<span slot="subtitle">770-504-2217</span>
<div slot="end">
<IgrButton variant="outlined">
<span>Text</span>
</IgrButton>
</div>
<div slot="end">
<IgrButton variant="outlined">
<span>Call</span>
</IgrButton>
</div>
<IgrButton slot="end" variant="outlined">
<span>Text</span>
</IgrButton>
<IgrButton slot="end" variant="outlined">
<span>Call</span>
</IgrButton>
</IgrListItem>
<IgrListItem>
<div slot="start">
<IgrAvatar src="https://dl.infragistics.com/x/img/avatars/17.jpg" shape="circle" />
</div>
<h2 slot="title">Richard Mahoney</h2>
<IgrAvatar slot="start" src="https://dl.infragistics.com/x/img/avatars/17.jpg" shape="circle" />
<span slot="title">Richard Mahoney</span>
<span slot="subtitle">423-676-2869</span>
<div slot="end">
<IgrButton variant="outlined">
<span>Text</span>
</IgrButton>
</div>
<div slot="end">
<IgrButton variant="outlined">
<span>Call</span>
</IgrButton>
</div>
<IgrButton slot="end" variant="outlined">
<span>Text</span>
</IgrButton>
<IgrButton slot="end" variant="outlined">
<span>Call</span>
</IgrButton>
</IgrListItem>
<IgrListItem>
<div slot="start">
<IgrAvatar src="https://dl.infragistics.com/x/img/avatars/9.jpg" shape="circle" />
</div>
<h2 slot="title">Donna Price</h2>
<IgrAvatar slot="start" src="https://dl.infragistics.com/x/img/avatars/9.jpg" shape="circle" />
<span slot="title">Donna Price</span>
<span slot="subtitle">859-496-2817</span>
<div slot="end">
<IgrButton variant="outlined">
<span>Text</span>
</IgrButton>
</div>
<div slot="end">
<IgrButton variant="outlined">
<span>Call</span>
</IgrButton>
</div>
<IgrButton slot="end" variant="outlined">
<span>Text</span>
</IgrButton>
<IgrButton slot="end" variant="outlined">
<span>Call</span>
</IgrButton>
</IgrListItem>
</IgrList>
</div>
Expand Down
Empty file.
67 changes: 24 additions & 43 deletions samples/grids/list/styling/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './ListStyling.css';
import { IgrList, IgrListItem, IgrListHeader, IgrAvatar, IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
Expand All @@ -19,55 +18,37 @@ export default class ListStyling extends React.Component<any, any> {
<span>Contacts</span>
</IgrListHeader>
<IgrListItem>
<div slot="start">
<IgrAvatar src="https://dl.infragistics.com/x/img/avatars/8.jpg" shape="circle" />
</div>
<h2 slot="title">Terrance Orta</h2>
<IgrAvatar slot="start" src="https://dl.infragistics.com/x/img/avatars/8.jpg" shape="circle" />
<span slot="title">Terrance Orta</span>
<span slot="subtitle">770-504-2217</span>
<div slot="end">
<IgrButton variant="contained">
<span>Text</span>
</IgrButton>
</div>
<div slot="end">
<IgrButton variant="contained">
<span>Call</span>
</IgrButton>
</div>
<IgrButton slot="end" variant="contained">
<span>Text</span>
</IgrButton>
<IgrButton slot="end" variant="contained">
<span>Call</span>
</IgrButton>
</IgrListItem>
<IgrListItem>
<div slot="start">
<IgrAvatar src="https://dl.infragistics.com/x/img/avatars/17.jpg" shape="circle" />
</div>
<h2 slot="title">Richard Mahoney</h2>
<IgrAvatar slot="start" src="https://dl.infragistics.com/x/img/avatars/17.jpg" shape="circle" />
<span slot="title">Richard Mahoney</span>
<span slot="subtitle">423-676-2869</span>
<div slot="end">
<IgrButton variant="contained">
<span>Text</span>
</IgrButton>
</div>
<div slot="end">
<IgrButton variant="contained">
<span>Call</span>
</IgrButton>
</div>
<IgrButton slot="end" variant="contained">
<span>Text</span>
</IgrButton>
<IgrButton slot="end" variant="contained">
<span>Call</span>
</IgrButton>
</IgrListItem>
<IgrListItem>
<div slot="start">
<IgrAvatar src="https://dl.infragistics.com/x/img/avatars/9.jpg" shape="circle" />
</div>
<h2 slot="title">Donna Price</h2>
<IgrAvatar slot="start" src="https://dl.infragistics.com/x/img/avatars/9.jpg" shape="circle" />
<span slot="title">Donna Price</span>
<span slot="subtitle">859-496-2817</span>
<div slot="end">
<IgrButton variant="contained">
<span>Text</span>
</IgrButton>
</div>
<div slot="end">
<IgrButton variant="contained">
<span>Call</span>
</IgrButton>
</div>
<IgrButton slot="end" variant="contained">
<span>Text</span>
</IgrButton>
<IgrButton slot="end" variant="contained">
<span>Call</span>
</IgrButton>
</IgrListItem>
</IgrList>
</div>
Expand Down
7 changes: 6 additions & 1 deletion samples/inputs/button/contained/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

igc-button {
width: 40%;
margin: auto;
}
7 changes: 6 additions & 1 deletion samples/inputs/button/download/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

igc-button {
width: 40%;
margin: auto;
}
7 changes: 6 additions & 1 deletion samples/inputs/button/fab/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

igc-button {
width: 40%;
margin: auto;
}
12 changes: 11 additions & 1 deletion samples/inputs/button/flat/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

.container {
background: var(--ig-surface-600);
}

igc-button {
width: 40%;
margin: auto;
background: var(--ig-surface-50);
}
7 changes: 6 additions & 1 deletion samples/inputs/button/outlined/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

igc-button {
width: 40%;
margin: auto;
}
7 changes: 4 additions & 3 deletions samples/inputs/button/overview/src/ButtonOverviewStyle.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.button-container {
display: flex;
justify-content: space-evenly;
margin-top: 20px;
display: flex;
justify-content: space-evenly;
align-items: center;
height: 100%;
}
2 changes: 0 additions & 2 deletions samples/inputs/button/overview/src/index.css

This file was deleted.

1 change: 0 additions & 1 deletion samples/inputs/button/overview/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './ButtonOverviewStyle.css';
import { IgrButton } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
Expand Down
5 changes: 5 additions & 0 deletions samples/inputs/button/size/src/ButtonSizingStyle.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
.button-container {
display: flex;
justify-content: space-evenly;
align-items: center;
margin-top: 20px;
}

.container {
justify-content: center;
}

.size-small {
--ig-size: var(--ig-size-small);
}
Expand Down
2 changes: 0 additions & 2 deletions samples/inputs/button/size/src/index.css

This file was deleted.

3 changes: 1 addition & 2 deletions samples/inputs/button/size/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import './ButtonSizingStyle.css';
import { IgrButton, IgrRadio, IgrRadioGroup } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';
Expand All @@ -16,7 +15,7 @@ export default class ButtonSize extends React.Component<any, any> {
public render(): JSX.Element {
return (
<div className="container sample">
<IgrRadioGroup alignment="horizontal" style={{display: 'flex', margin: '0 auto', width: '15%'}}>
<IgrRadioGroup alignment="horizontal" style={{display: 'flex', justifyContent: 'center'}}>
<IgrRadio name="size" value="small" labelPosition="after" onChange={this.onRadioChange}>
<span>Small</span>
</IgrRadio>
Expand Down
8 changes: 2 additions & 6 deletions samples/inputs/button/styling/src/ButtonStyle.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
igc-button::part(base) {
color: #011627;
}

igc-button::part(base)::before {
background-color: #e99221;
padding: 18px;
background-color: var(--ig-warn-700);
color: var(--ig-warn-700-contrast);
}
7 changes: 6 additions & 1 deletion samples/inputs/button/styling/src/index.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
/* shared styles are loaded from: */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */
/* https://dl.infragistics.com/x/css/samples/shared.v8.css */

igc-button {
width: 40%;
margin: auto;
}
20 changes: 5 additions & 15 deletions samples/inputs/chip/multiple/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,21 @@ export default class ChipMultiple extends React.Component<any, any> {
<div className="container sample">
<div className="container" style={{flexDirection: "row", gap: "8px"}}>
<IgrChip selectable={true} removable={true} onRemove={this.handleChipRemove}>
<span slot="select">
<IgrIcon name="custom-select" collection="material"></IgrIcon>
</span>
<IgrIcon slot="select" name="custom-select" collection="material"></IgrIcon>
<span>Custom Icons</span>
<span slot="remove">
<IgrIcon name="custom-remove" collection="material"></IgrIcon>
</span>
<IgrIcon slot="remove" name="custom-remove" collection="material"></IgrIcon>
</IgrChip>
<IgrChip removable={true} onRemove={this.handleChipRemove}>
<span slot="start">
<IgrIcon name="brush" collection="material"></IgrIcon>
</span>
<IgrIcon slot="start" name="brush" collection="material"></IgrIcon>
<span>Start Slot</span>
</IgrChip>
<IgrChip selectable={true}>
<span>End Slot</span>
<span slot="end">
<IgrIcon name="brick-wall" collection="material"></IgrIcon>
</span>
<IgrIcon slot="end" name="brick-wall" collection="material"></IgrIcon>
</IgrChip>
<IgrChip disabled={true}>
<span>Disabled Chip</span>
<span slot="end">
<IgrIcon name="dog-icon" collection="material"></IgrIcon>
</span>
<IgrIcon slot="end" name="dog-icon" collection="material"></IgrIcon>
</IgrChip>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion samples/inputs/input/size/src/InputSizeStyling.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
#radioGroup {
display: flex;
margin: 0 auto;
width: 15%;
}
2 changes: 1 addition & 1 deletion samples/inputs/rating/custom/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './index.css';
import { IgrRating, IgrRatingSymbol, IgrIcon, registerIconFromText } from 'igniteui-react';
import 'igniteui-webcomponents/themes/light/bootstrap.css';

const emptyHeart = "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 241.597 220.057' version='1.0'><path style='opacity:.98000004;fill:none;stroke:#000;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0' d='M243.452 1708.979c-26.934.23-51.58 21.476-55.081 48.293-3.114 23.844 7.33 47.4 23.968 64.215 27.515 27.805 61.227 49.794 83.447 82.547 4.39-4.689 9.278-12.066 14.227-17.529 25.23-27.85 58.166-48.013 80.865-78.155 17.175-22.806 19.103-58.113-.538-80.405-18.25-20.712-51.76-25.17-74.37-9.254-8.226 5.791-15.274 13.37-19.932 22.312-10.053-19.32-30.534-32.214-52.586-32.024z' transform='translate(-175.323 -1696.476)'/></svg>";
const emptyHeart = '<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" id="svg1" viewBox="0 0 475.82 442.01" version="1.0"> <g id="layer1" transform="translate(-134.07 -225.8)"> <path id="path7" d="m263.42 235.15c-66.24 0-120 53.76-120 120 0 134.75 135.93 170.08 228.56 303.3 87.57-132.4 228.56-172.85 228.56-303.3 0-66.24-53.76-120-120-120-48.05 0-89.4 28.37-108.56 69.18-19.16-40.81-60.52-69.18-108.56-69.18z" stroke="#000" stroke-width="18.7" fill="#fff"/> </g> </svg>';
const heartIcon = '<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:svg="http://www.w3.org/2000/svg" id="svg1" viewBox="0 0 475.82 442.01" version="1.0"> <g id="layer1" transform="translate(-134.07 -225.8)"> <path id="path7" d="m263.42 235.15c-66.24 0-120 53.76-120 120 0 134.75 135.93 170.08 228.56 303.3 87.57-132.4 228.56-172.85 228.56-303.3 0-66.24-53.76-120-120-120-48.05 0-89.4 28.37-108.56 69.18-19.16-40.81-60.52-69.18-108.56-69.18z" stroke="#000" stroke-width="18.7" fill="#e60000"/> </g> </svg>';

export default class RatingCustomSymbols extends React.Component<any, any> {
Expand Down
Loading
Loading