From 7c94da3bc3200bf0c2450b98059283f9e3ffc979 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Fri, 22 Nov 2024 09:26:32 +0530 Subject: [PATCH] Revert "feat: Add Label Input components (#10480)" This reverts commit 2dae4b22a2dfcf778d1fff6614df6a8855b74c7c. --- .../components-next/Label/AddLabel.vue | 49 --------------- .../components-next/Label/LabelItem.vue | 22 ------- .../Label/story/AddLabel.story.vue | 27 -------- .../Label/story/Label.story.vue | 21 ------- .../components-next/Label/story/fixtures.js | 62 ------------------- .../components-next/label/AddLabel.vue | 49 --------------- .../components-next/label/LabelItem.vue | 22 ------- .../label/story/AddLabel.story.vue | 27 -------- .../label/story/Label.story.vue | 21 ------- .../components-next/label/story/fixtures.js | 24 ------- 10 files changed, 324 deletions(-) delete mode 100644 app/javascript/dashboard/components-next/Label/AddLabel.vue delete mode 100644 app/javascript/dashboard/components-next/Label/LabelItem.vue delete mode 100644 app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue delete mode 100644 app/javascript/dashboard/components-next/Label/story/Label.story.vue delete mode 100644 app/javascript/dashboard/components-next/Label/story/fixtures.js delete mode 100644 app/javascript/dashboard/components-next/label/AddLabel.vue delete mode 100644 app/javascript/dashboard/components-next/label/LabelItem.vue delete mode 100644 app/javascript/dashboard/components-next/label/story/AddLabel.story.vue delete mode 100644 app/javascript/dashboard/components-next/label/story/Label.story.vue delete mode 100644 app/javascript/dashboard/components-next/label/story/fixtures.js diff --git a/app/javascript/dashboard/components-next/Label/AddLabel.vue b/app/javascript/dashboard/components-next/Label/AddLabel.vue deleted file mode 100644 index c9571e771..000000000 --- a/app/javascript/dashboard/components-next/Label/AddLabel.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/Label/LabelItem.vue b/app/javascript/dashboard/components-next/Label/LabelItem.vue deleted file mode 100644 index b96b9b368..000000000 --- a/app/javascript/dashboard/components-next/Label/LabelItem.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue b/app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue deleted file mode 100644 index ea6466feb..000000000 --- a/app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/Label/story/Label.story.vue b/app/javascript/dashboard/components-next/Label/story/Label.story.vue deleted file mode 100644 index 5319d56ae..000000000 --- a/app/javascript/dashboard/components-next/Label/story/Label.story.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/Label/story/fixtures.js b/app/javascript/dashboard/components-next/Label/story/fixtures.js deleted file mode 100644 index 980ba8c0d..000000000 --- a/app/javascript/dashboard/components-next/Label/story/fixtures.js +++ /dev/null @@ -1,62 +0,0 @@ -export const label = { - id: 1, - title: 'delivery', - color: '#A2FDD5', -}; - -export const labelMenuItems = [ - { - label: 'delivery', - value: 3, - thumbnail: { - color: '#A2FDD5', - }, - isSelected: true, - action: 'addLabel', - }, - { - label: 'lead', - value: 6, - thumbnail: { - color: '#F161C8', - }, - isSelected: false, - action: 'addLabel', - }, - { - label: 'ops-handover', - value: 4, - thumbnail: { - color: '#A53326', - }, - isSelected: false, - action: 'addLabel', - }, - { - label: 'billing', - value: 1, - thumbnail: { - color: '#28AD21', - }, - isSelected: false, - action: 'addLabel', - }, - { - label: 'premium-customer', - value: 5, - thumbnail: { - color: '#6FD4EF', - }, - isSelected: false, - action: 'addLabel', - }, - { - label: 'software', - value: 2, - thumbnail: { - color: '#8F6EF2', - }, - isSelected: false, - action: 'addLabel', - }, -]; diff --git a/app/javascript/dashboard/components-next/label/AddLabel.vue b/app/javascript/dashboard/components-next/label/AddLabel.vue deleted file mode 100644 index c9571e771..000000000 --- a/app/javascript/dashboard/components-next/label/AddLabel.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/label/LabelItem.vue b/app/javascript/dashboard/components-next/label/LabelItem.vue deleted file mode 100644 index b96b9b368..000000000 --- a/app/javascript/dashboard/components-next/label/LabelItem.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/label/story/AddLabel.story.vue b/app/javascript/dashboard/components-next/label/story/AddLabel.story.vue deleted file mode 100644 index ea6466feb..000000000 --- a/app/javascript/dashboard/components-next/label/story/AddLabel.story.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/label/story/Label.story.vue b/app/javascript/dashboard/components-next/label/story/Label.story.vue deleted file mode 100644 index 5319d56ae..000000000 --- a/app/javascript/dashboard/components-next/label/story/Label.story.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - diff --git a/app/javascript/dashboard/components-next/label/story/fixtures.js b/app/javascript/dashboard/components-next/label/story/fixtures.js deleted file mode 100644 index f455b8488..000000000 --- a/app/javascript/dashboard/components-next/label/story/fixtures.js +++ /dev/null @@ -1,24 +0,0 @@ -export const label = { - id: 1, - title: 'delivery', - color: '#A2FDD5', -}; - -const labelsData = [ - { label: 'delivery', id: 3, color: '#A2FDD5' }, - { label: 'lead', id: 6, color: '#F161C8' }, - { label: 'ops-handover', id: 4, color: '#A53326' }, - { label: 'billing', id: 1, color: '#28AD21' }, - { label: 'premium-customer', id: 5, color: '#6FD4EF' }, - { label: 'software', id: 2, color: '#8F6EF2' }, -]; - -export const labelMenuItems = labelsData.map(item => ({ - label: item.label, - value: item.id, - thumbnail: { - color: item.color, - }, - isSelected: item.label === 'delivery', - action: 'addLabel', -}));