From f375d962ab54391cf8f0c5cff56e4808aa2c9a7c Mon Sep 17 00:00:00 2001 From: iamsivin Date: Fri, 22 Nov 2024 09:28:15 +0530 Subject: [PATCH] chore: Minor fix --- .../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 +++++++++++++++++++ 5 files changed, 181 insertions(+) create mode 100644 app/javascript/dashboard/components-next/Label/AddLabel.vue create mode 100644 app/javascript/dashboard/components-next/Label/LabelItem.vue create mode 100644 app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue create mode 100644 app/javascript/dashboard/components-next/Label/story/Label.story.vue create 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 new file mode 100644 index 000000000..c9571e771 --- /dev/null +++ b/app/javascript/dashboard/components-next/Label/AddLabel.vue @@ -0,0 +1,49 @@ + + + diff --git a/app/javascript/dashboard/components-next/Label/LabelItem.vue b/app/javascript/dashboard/components-next/Label/LabelItem.vue new file mode 100644 index 000000000..b96b9b368 --- /dev/null +++ b/app/javascript/dashboard/components-next/Label/LabelItem.vue @@ -0,0 +1,22 @@ + + + diff --git a/app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue b/app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue new file mode 100644 index 000000000..ea6466feb --- /dev/null +++ b/app/javascript/dashboard/components-next/Label/story/AddLabel.story.vue @@ -0,0 +1,27 @@ + + + diff --git a/app/javascript/dashboard/components-next/Label/story/Label.story.vue b/app/javascript/dashboard/components-next/Label/story/Label.story.vue new file mode 100644 index 000000000..5319d56ae --- /dev/null +++ b/app/javascript/dashboard/components-next/Label/story/Label.story.vue @@ -0,0 +1,21 @@ + + + diff --git a/app/javascript/dashboard/components-next/Label/story/fixtures.js b/app/javascript/dashboard/components-next/Label/story/fixtures.js new file mode 100644 index 000000000..980ba8c0d --- /dev/null +++ b/app/javascript/dashboard/components-next/Label/story/fixtures.js @@ -0,0 +1,62 @@ +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', + }, +];