Skip to content

Commit

Permalink
feat(icons)!: remove old hierarchy assets and add new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
GoncaloCamaz authored and ricardogoncalves89 committed May 9, 2024
1 parent 60732f8 commit cd6fb95
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const nodes: ITreeNodeItem[] = [
{
id: '1',
label: 'Business Units A',
icon: EIconName.EntityArea,
icon: EIconName.Asset,
children: [
{
id: '1-houston',
Expand All @@ -74,7 +74,7 @@ const nodes: ITreeNodeItem[] = [
{
id: '2',
label: 'Business Units B',
icon: EIconName.EntityArea,
icon: EIconName.Asset,
children: [
{
id: '2-houston',
Expand All @@ -91,25 +91,25 @@ const nodes: ITreeNodeItem[] = [
{
id: '3',
label: 'Site D',
icon: EIconName.EntityArea
icon: EIconName.Asset
},
{
id: '4',
label: 'Process Map ABC',
icon: EIconName.EntityProdLine
icon: EIconName.Asset
},
{
id: '5',
label: 'Enterprise Process Map 01 (Production)',
icon: EIconName.EntityProdLine
icon: EIconName.Asset
}
];

const tree: ITreeNodeItem[] = [
{
id: '1',
label: 'Business Units A',
icon: EIconName.EntityArea,
icon: EIconName.Asset,
children: [
{
id: '1-houston',
Expand All @@ -119,12 +119,12 @@ const tree: ITreeNodeItem[] = [
{
id: '1-houston-1',
label: 'Process Map ABC',
icon: EIconName.EntityProdLine
icon: EIconName.Asset
},
{
id: '1-houston-2',
label: 'Production Line K',
icon: EIconName.EntityProdLine
icon: EIconName.Asset
}
]
},
Expand All @@ -148,7 +148,7 @@ const tree: ITreeNodeItem[] = [
{
id: '2',
label: 'Business Units B',
icon: EIconName.EntityArea,
icon: EIconName.Asset,
children: [
{
id: '2-houston',
Expand All @@ -165,17 +165,17 @@ const tree: ITreeNodeItem[] = [
{
id: '3',
label: 'Site D',
icon: EIconName.EntityArea
icon: EIconName.Asset
},
{
id: '4',
label: 'Process Map ABC',
icon: EIconName.EntityProdLine
icon: EIconName.Asset
},
{
id: '5',
label: 'Enterprise Process Map 01 (Production)',
icon: EIconName.EntityProdLine
icon: EIconName.Asset
}
];

Expand Down
114 changes: 58 additions & 56 deletions packages/ui-components/src/assets/svg-symbols.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 4 additions & 13 deletions packages/ui-components/src/components/icon/icon.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export enum EIconName {
Close = 'kv-close',
CloseCircle = 'kv-close-circle',
Cloud = 'kv-cloud',
CloudDownload = 'kv-cloud-download',
CloudUpload = 'kv-cloud-upload',
Code = 'kv-code',
CodeOff = 'kv-code-off',
Collapse = 'kv-collapse',
Expand Down Expand Up @@ -80,18 +82,6 @@ export enum EIconName {
Download = 'kv-download',
DragDrop = 'kv-drag-drop',
Edit = 'kv-edit',
EntityArea = 'kv-entity-area',
EntityAsset = 'kv-entity-asset',
EntityComponent = 'kv-entity-component',
EntityDefault = 'kv-entity-default',
EntityEnterprise = 'kv-entity-enterprise',
EntityPart = 'kv-entity-part',
EntityProcCell = 'kv-entity-proc-cell',
EntityProdLine = 'kv-entity-prod-line',
EntityProdUnit = 'kv-entity-prod-unit',
EntitySensor = 'kv-entity-sensor',
EntitySite = 'kv-entity-site',
EntityStorage = 'kv-entity-storage',
Error = 'kv-error',
Exit = 'kv-exit',
Expand = 'kv-expand',
Expand Down Expand Up @@ -153,6 +143,7 @@ export enum EIconName {
ResetZoom = 'kv-reset-zoom',
Restart = 'kv-restart',
Reset = 'kv-reset',
Remove = 'kv-remove',
Rotate = 'kv-rotate',
Save = 'kv-save',
Search = 'kv-search',
Expand Down Expand Up @@ -184,6 +175,7 @@ export enum EIconName {
Thumbsup = 'kv-thumbsup',
ThumbsupFilled = 'kv-thumbsup-filled',
Time = 'kv-time',
Timer = 'kv-timer',
Todo = 'kv-todo',
Tree = 'kv-tree',
TreeCollapse = 'kv-tree-collapse',
Expand All @@ -195,7 +187,6 @@ export enum EIconName {
Type = 'kv-type',
UnfoldMore = 'kv-unfold-more',
Upgrade = 'kv-upgrade',
Upload = 'kv-upload',
Uptime = 'kv-uptime',
Verified = 'kv-verified',
Undo = 'kv-undo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
| `checkedChange` | When the toggle button selection changes, emit the requested tab's key | `CustomEvent<string>` |


## Shadow Parts

| Part | Description |
| --------------------------- | ----------- |
| `"toggle-button-container"` | |


## Dependencies

### Depends on
Expand Down

0 comments on commit cd6fb95

Please sign in to comment.