Skip to content

Commit

Permalink
new(option) select option for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitropoulos committed Aug 11, 2021
1 parent 300862a commit 33412e9
Show file tree
Hide file tree
Showing 28 changed files with 96 additions and 64 deletions.
115 changes: 58 additions & 57 deletions README.md

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion components/select.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ComponentInfo } from '../entities';
import { checkmark, indexByOptionId } from '../utils';
import { checkmark, indexByOptionId, stringArray } from '../utils';

export const select: ComponentInfo = {
cannonicalName: 'Select',
Expand Down Expand Up @@ -37,5 +37,11 @@ export const select: ComponentInfo = {
optionId: 'groupable',
...checkmark,
},
{
criteria: 'Has out-of-the-box (i.e. props) support for start or end icons (or can easily be composed with icons and has examples of such on the docs).',
name: 'Icons',
optionId: 'icons',
...stringArray,
},
]),
};
1 change: 1 addition & 0 deletions entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export interface Select extends BaseComponent {
disabledOptions: boolean;
filterable: boolean;
groupable: boolean;
icons: ('composable' | 'end' | 'start')[];
};
}

Expand Down
1 change: 1 addition & 0 deletions frameworks/antDesign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export const antDesign: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: ['end'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/atlaskit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const atlaskit: Framework = {
disabledOptions: false,
filterable: true,
groupable: true,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/blueprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const blueprint: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/carbonDesign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const carbonDesign: Framework = {
disabledOptions: true,
filterable: false,
groupable: true,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/chakraUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const chakra: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/elasticUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const elasticUI: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: ['composable'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const element: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/elementalUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const elementalUI: Framework = {
disabledOptions: false,
filterable: false,
groupable: true,
icons: [],
},
},
],
Expand Down
1 change: 1 addition & 0 deletions frameworks/evergreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const evergreen: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: ['start'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/fluentUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const fluentUI: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: ['composable'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/gestalt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const gestalt: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/grommet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const grommet: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: [],
},
},
{
Expand Down
3 changes: 2 additions & 1 deletion frameworks/materialUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,14 @@ export const materialUI: Framework = {
{
componentId: 'select',
componentName: 'Select',
componentURL: `${frameworkHomepage}/docs/#select/select-component`,
componentURL: `${frameworkHomepage}/components/selects`,
options: {
async: true,
disabled: true,
disabledOptions: true,
filterable: false,
groupable: true,
icons: ['composable'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/onsenUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const onsenUI: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: [],
},
},
{
Expand Down
3 changes: 2 additions & 1 deletion frameworks/orbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ export const orbit: Framework = {
{
componentId: 'select',
componentName: 'Select',
componentURL: `${frameworkHomepage}/docs/#select/select-component`,
componentURL: `${frameworkHomepage}/components/select`,
options: {
async: false,
disabled: true,
disabledOptions: true,
filterable: false,
groupable: false,
icons: ['start', 'end'],
},
},
],
Expand Down
1 change: 1 addition & 0 deletions frameworks/primeReact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const primeReact: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: ['composable'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/quasar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const quasar: Framework = {
disabledOptions: true,
filterable: true,
groupable: false,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/reactBootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const reactBootstrap: Framework = {
disabledOptions: true,
filterable: true,
groupable: true,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/reactMD.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const reactMD: Framework = {
disabledOptions: false,
filterable: false,
groupable: false,
icons: ['start', 'end'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/reactToolbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const reactToolbox: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/ringUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const ringUI: Framework = {
disabledOptions: true,
filterable: true,
groupable: false,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/semanticUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const semanticUI: Framework = {
disabledOptions: true,
filterable: true,
groupable: false,
icons: ['composable'],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/smoothUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const smoothUI: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: [],
},
},
{
Expand Down
1 change: 1 addition & 0 deletions frameworks/zendesk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const zendesk: Framework = {
disabledOptions: true,
filterable: false,
groupable: false,
icons: ['start'],
},
},
{
Expand Down
8 changes: 4 additions & 4 deletions website/FrameworkStatistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ const Framework: FC<FrameworkType> = ({
</Link>
</TableCell>

<TableCell>{repoInfo?.stargazers_count.toLocaleString() ?? noValue}</TableCell>
<TableCell>{repoInfo?.forks_count.toLocaleString() ?? noValue}</TableCell>
<TableCell>{repoInfo?.open_issues_count.toLocaleString() ?? noValue}</TableCell>
<TableCell>{repoInfo?.license?.name.replace(/ License/, '') ?? noValue}</TableCell>
<TableCell>{repoInfo?.stargazers_count?.toLocaleString() ?? noValue}</TableCell>
<TableCell>{repoInfo?.forks_count?.toLocaleString() ?? noValue}</TableCell>
<TableCell>{repoInfo?.open_issues_count?.toLocaleString() ?? noValue}</TableCell>
<TableCell>{repoInfo?.license?.name?.replace(/ License/, '') ?? noValue}</TableCell>
</TableRow>
);
};
Expand Down

0 comments on commit 33412e9

Please sign in to comment.