fluency-v8-components 1.4.3 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/fluency-v8-components.es.js +144 -141
  2. package/dist/fluency-v8-components.umd.js +88 -88
  3. package/dist/{index-4Y4E9JbN.mjs → index-DVmLdvgq.mjs} +8404 -8347
  4. package/dist/index.css +1 -1
  5. package/dist/{index.es-CGlekcuf.mjs → index.es-BL37nGHt.mjs} +1 -1
  6. package/package.json +1 -1
  7. package/src/assets/main.css +359 -194
  8. package/src/components/buttons/ActionButtons.vue +10 -10
  9. package/src/components/buttons/DropdownButton.vue +14 -14
  10. package/src/components/buttons/IconButton.vue +3 -3
  11. package/src/components/buttons/ImageButton.vue +1 -1
  12. package/src/components/buttons/MenuButton.vue +12 -15
  13. package/src/components/buttons/TextButton.vue +5 -3
  14. package/src/components/charts/WorkflowChart.vue +1 -1
  15. package/src/components/common/AutoCompleteSearchBar.vue +5 -5
  16. package/src/components/common/Breadcrumb.vue +3 -3
  17. package/src/components/common/ButtonToggle.vue +2 -2
  18. package/src/components/common/Card.vue +14 -14
  19. package/src/components/common/Carousel.vue +5 -5
  20. package/src/components/common/EditorHeading.vue +1 -1
  21. package/src/components/common/Error.vue +19 -0
  22. package/src/components/common/EventList.vue +2 -2
  23. package/src/components/common/Facet.vue +4 -4
  24. package/src/components/common/Feed.vue +8 -8
  25. package/src/components/common/Loading.vue +2 -2
  26. package/src/components/common/LoadingDots.vue +3 -3
  27. package/src/components/common/Pagination.vue +6 -7
  28. package/src/components/common/PowerToggle.vue +11 -33
  29. package/src/components/common/ProgressBar.vue +2 -2
  30. package/src/components/common/RadioButtons.vue +3 -3
  31. package/src/components/common/Slideout.vue +7 -8
  32. package/src/components/common/Sort.vue +2 -5
  33. package/src/components/common/Table.vue +2 -8
  34. package/src/components/common/Tabs.vue +12 -11
  35. package/src/components/common/VerticalTabs.vue +7 -4
  36. package/src/components/common/facet/Leaf.vue +4 -4
  37. package/src/components/dialogs/CopyDialog.vue +2 -2
  38. package/src/components/dialogs/InfoDialog.vue +39 -0
  39. package/src/components/dialogs/PopupEditor.vue +9 -4
  40. package/src/components/dialogs/wizard/Stepper.vue +2 -2
  41. package/src/components/form/CheckBox.vue +2 -2
  42. package/src/components/form/Editor.vue +1 -1
  43. package/src/components/form/FormCol.vue +2 -2
  44. package/src/components/form/FormRow.vue +2 -2
  45. package/src/components/form/GreyForm.vue +1 -1
  46. package/src/components/form/GreyInput.vue +3 -3
  47. package/src/components/form/GreyInputAutocomplete.vue +16 -16
  48. package/src/components/form/GreyInputCopy.vue +6 -6
  49. package/src/components/form/GreyInputGrow.vue +2 -2
  50. package/src/components/form/GreyInputToken.vue +5 -5
  51. package/src/components/form/GreyPassword.vue +3 -3
  52. package/src/components/form/GreySelect.vue +18 -15
  53. package/src/components/form/GreySelectInput.vue +12 -14
  54. package/src/components/form/GreySelectInputMultiple.vue +11 -14
  55. package/src/components/form/GreyTel.vue +3 -3
  56. package/src/components/form/HamburgerItem.vue +1 -1
  57. package/src/components/form/KeyValueEntry.vue +1 -1
  58. package/src/components/form/RadioInput.vue +2 -2
  59. package/src/components/form/UploadFile.vue +1 -1
  60. package/src/components/icons/PlugOffIcon.vue +13 -0
  61. package/src/components/icons/PlugOnIcon.vue +13 -0
  62. package/src/components/index.js +11 -7
  63. package/src/components/menu/DialogMenu.vue +4 -4
  64. package/src/components/menu/GrandChild.vue +3 -5
  65. package/src/components/menu/GridMenu.vue +5 -5
  66. package/src/components/menu/MenuAvatar.vue +4 -4
  67. package/src/components/menu/MenuDesktop.vue +4 -6
  68. package/src/components/notifications/Notify.vue +19 -15
  69. package/src/components/notifications/NotifyList.vue +18 -14
  70. package/src/components/status/ScoreLevel.vue +1 -2
  71. package/src/components/status/TicketStatus.vue +11 -20
  72. package/src/components/tables/ArgumentTable.vue +1 -1
  73. package/src/constants/colors.js +1 -1
  74. package/src/fpl/Configs/Counter.vue +1 -0
  75. package/src/fpl/Configs/Image.vue +1 -1
  76. package/src/fpl/Configs/Table.vue +1 -1
  77. package/src/fpl/Panel.vue +8 -8
  78. package/src/fpl/Panels/Counter.vue +1 -0
@@ -5,34 +5,36 @@
5
5
  v-if="selected"
6
6
  :class="[
7
7
  'input-block sm:text-sm sm:leading-6',
8
- error ? 'ring-red-600 ' : '',
9
- readonly ? 'disabled' : '',
8
+ { 'std-red-ring': error },
9
+ { 'disabled': readonly },
10
10
  ]"
11
+ :disabled="readonly"
11
12
  >
12
13
  <span class="flex items-center pr-10">
13
14
  <span class="ml-3 block truncate">{{ selected.label }}</span>
14
15
  </span>
15
16
  <span
16
- class="pointer-events-none absolute inset-y-0 right-2 flex items-center"
17
+ class="pointer-events-none input-icon"
17
18
  >
18
- <ChevronUpDownIcon class="icon-md text-gray-400" aria-hidden="true" />
19
+ <ChevronUpDownIcon class="icon-md" aria-hidden="true" />
19
20
  </span>
20
21
  </ListboxButton>
21
22
  <ListboxButton
22
23
  v-else
23
24
  :class="[
24
25
  'input-block sm:text-sm sm:leading-6',
25
- error ? 'ring-red-600 ' : '',
26
- readonly ? 'disabled' : '',
26
+ { 'std-red-ring': error },
27
+ { 'disabled': readonly },
27
28
  ]"
29
+ :disabled="readonly"
28
30
  >
29
31
  <span class="flex items-center pr-10">
30
32
  <span class="ml-3 block truncate">{{ placeholder }}</span>
31
33
  </span>
32
34
  <span
33
- class="pointer-events-none absolute inset-y-0 right-2 flex items-center"
35
+ class="pointer-events-none input-icon"
34
36
  >
35
- <ChevronUpDownIcon class="icon-md text-gray-400" aria-hidden="true" />
37
+ <ChevronUpDownIcon class="icon-md" aria-hidden="true" />
36
38
  </span>
37
39
  </ListboxButton>
38
40
 
@@ -43,7 +45,7 @@
43
45
  leave-to-class="opacity-0"
44
46
  >
45
47
  <ListboxOptions
46
- class="input-block absolute z-50 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-sm sm:text-xs"
48
+ class="input-block input-dropdown text-sm sm:text-xs"
47
49
  >
48
50
  <ListboxOption
49
51
  as="template"
@@ -54,8 +56,8 @@
54
56
  >
55
57
  <li
56
58
  :class="[
57
- active ? 'bg-indigo-600 text-white' : '',
58
- 'relative cursor-default select-none py-2',
59
+ { 'std-blue text-white': active },
60
+ 'input-dropdown-item',
59
61
  ]"
60
62
  >
61
63
  <div
@@ -66,11 +68,12 @@
66
68
  >
67
69
  <span
68
70
  :class="[
69
- selected ? 'font-semibold' : 'font-normal',
70
- 'ml-3 block truncate',
71
+ { 'font-semibold': selected },
72
+ 'input-dropdown-label',
71
73
  ]"
72
- >{{ option.label }}</span
73
74
  >
75
+ {{ option.label }}
76
+ </span>
74
77
  </div>
75
78
  <span
76
79
  v-if="selected && selected.value === option.value"
@@ -87,7 +90,7 @@
87
90
  </transition>
88
91
  </div>
89
92
  </Listbox>
90
- <div v-if="error" class="text-red-600 text-sm">
93
+ <div v-if="error" class="std-red-text text-sm">
91
94
  {{ error }}
92
95
  </div>
93
96
  </template>
@@ -1,20 +1,18 @@
1
1
  <template>
2
2
  <Combobox as="div" v-bind="$attrs">
3
- <div class="relative">
3
+ <div class="relative input-block">
4
4
  <input
5
5
  type="text"
6
6
  :class="[
7
- 'pl-3 input-block',
8
- error ? 'ring-red-600 ' : '',
9
- readonly ? 'disabled' : '',
7
+ 'pl-3 pr-8 w-full bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0',
8
+ { 'std-red-ring': error },
9
+ { 'disabled': readonly },
10
10
  ]"
11
11
  v-model.trim="inputValue"
12
12
  @input="setModelValue($event.target)"
13
13
  />
14
- <ComboboxButton
15
- class="absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-hidden"
16
- >
17
- <ChevronUpDownIcon class="icon-md text-gray-400" aria-hidden="true" />
14
+ <ComboboxButton class="input-icon focus:outline-hidden">
15
+ <ChevronUpDownIcon class="icon-md" aria-hidden="true" />
18
16
  </ComboboxButton>
19
17
 
20
18
  <transition
@@ -24,7 +22,7 @@
24
22
  leave-to-class="opacity-0"
25
23
  >
26
24
  <ComboboxOptions
27
- class="input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base sm:text-sm"
25
+ class="input-block input-dropdown text-base sm:text-sm"
28
26
  >
29
27
  <ComboboxOption
30
28
  as="template"
@@ -36,12 +34,12 @@
36
34
  >
37
35
  <li
38
36
  :class="[
39
- active ? 'px-1 bg-indigo-600 text-white' : '',
40
- 'relative cursor-default select-none py-2 pl-3 pr-9',
37
+ { 'std-blue text-white': active },
38
+ 'input-dropdown-item pl-3',
41
39
  ]"
42
40
  >
43
- <div class="flex items-center">
44
- <span class="'ml-3 block truncate">{{ option.label }}</span>
41
+ <div class="flex items-center pr-10">
42
+ <span class="input-dropdown-label">{{ option.label }}</span>
45
43
  </div>
46
44
  </li>
47
45
  </ComboboxOption>
@@ -49,7 +47,7 @@
49
47
  </transition>
50
48
  </div>
51
49
  </Combobox>
52
- <div v-if="error" class="text-red-600 text-sm">
50
+ <div v-if="error" class="std-red-text text-sm">
53
51
  {{ error }}
54
52
  </div>
55
53
  </template>
@@ -5,19 +5,16 @@
5
5
  multiple
6
6
  :class="[
7
7
  'input-block py-0 relative',
8
- error ? 'ring-red-600 ' : '',
9
- readonly ? 'disabled' : '',
10
8
  ]"
11
9
  @update:model-value="updateSelected"
12
10
  >
13
11
  <div class="relative w-full rounded-lg text-left min-h-9">
14
12
  <div
15
- class="flex flex-auto flex-wrap"
16
- :class="{ 'pb-2': selected.length > 0 }"
13
+ class="flex flex-auto flex-wrap py-1"
17
14
  >
18
15
  <div
19
16
  v-for="val in selected"
20
- class="flex items-center ml-2 select-chip mt-2"
17
+ class="flex items-center ml-2 select-chip my-1"
21
18
  >
22
19
  <div class="text-xs font-normal leading-none max-w-full flex-initial">
23
20
  {{ val.label }}
@@ -35,7 +32,7 @@
35
32
  </div>
36
33
  <ComboboxInput
37
34
  v-if="allowInput"
38
- class="z-1 w-full border-none pr-10 text-sm bg-transparent focus:ring-0"
35
+ class="z-1 pl-3 py-2 pr-10 w-full text-sm bg-transparent border-0 outline-none ring-0 focus:outline-none focus:ring-0"
39
36
  :displayValue="() => query"
40
37
  :disabled="readonly"
41
38
  @change="query = $event.target.value"
@@ -51,10 +48,10 @@
51
48
  </span>
52
49
  </ComboboxButton>
53
50
  <ComboboxButton
54
- class="absolute inset-y-0 right-0 flex items-center pr-2"
51
+ class="input-icon focus:outline-hidden"
55
52
  :disabled="readonly"
56
53
  >
57
- <ChevronUpDownIcon class="icon-md text-gray-400" aria-hidden="true" />
54
+ <ChevronUpDownIcon class="icon-md icon-gray" aria-hidden="true" />
58
55
  </ComboboxButton>
59
56
  </div>
60
57
  <TransitionRoot
@@ -64,7 +61,7 @@
64
61
  @after-leave="query = ''"
65
62
  >
66
63
  <ComboboxOptions
67
- class="input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm"
64
+ class="input-block input-dropdown text-base sm:text-sm"
68
65
  >
69
66
  <div
70
67
  v-if="filteredOptions.length === 0 && query !== ''"
@@ -82,19 +79,19 @@
82
79
  >
83
80
  <li
84
81
  :class="[
85
- active ? 'bg-indigo-600 text-white' : '',
86
- 'relative cursor-default select-none py-2 pl-3 pr-9',
82
+ { 'std-blue text-white': active },
83
+ 'input-dropdown-item pr-10',
87
84
  ]"
88
85
  >
89
86
  <span
90
- class="block truncate"
87
+ class="input-dropdown-label"
91
88
  :class="{ 'font-semibold': selected, 'font-normal': !selected }"
92
89
  >
93
90
  {{ option.label }}
94
91
  </span>
95
92
  <span
96
93
  v-if="selected"
97
- class="text-white absolute inset-y-0 right-1 flex items-center pr-4,"
94
+ class="input-icon"
98
95
  >
99
96
  <CheckIcon class="icon-md" aria-hidden="true" />
100
97
  </span>
@@ -103,7 +100,7 @@
103
100
  </ComboboxOptions>
104
101
  </TransitionRoot>
105
102
  </Combobox>
106
- <div v-if="error" class="text-red-600 text-sm">
103
+ <div v-if="error" class="std-red-text text-sm">
107
104
  {{ error }}
108
105
  </div>
109
106
  </template>
@@ -4,13 +4,13 @@
4
4
  type="tel"
5
5
  :class="[
6
6
  'input-block',
7
- error ? 'ring-red-600 ' : '',
8
- readonly ? 'disabled' : '',
7
+ { 'std-red-ring': error },
8
+ { 'disabled': readonly },
9
9
  ]"
10
10
  placeholder="(xxx)-xxx-xxxx"
11
11
  @input="onChange"
12
12
  />
13
- <div v-if="error" class="text-red-600 text-sm">
13
+ <div v-if="error" class="std-red-text text-sm">
14
14
  {{ error }}
15
15
  </div>
16
16
  </template>
@@ -3,7 +3,7 @@
3
3
  :class="[
4
4
  'cursor-pointer input-block my-2 px-5 py-1 rounded-lg relative',
5
5
  draggable ? `draggable${index} select-none` : '',
6
- 'hover:bg-neutral-200 dark:hover:bg-neutral-600',
6
+ 'hover:white-bg-hover dark:hover:dark-bg-hover',
7
7
  ]"
8
8
  >
9
9
  <span class="flex items-center">
@@ -32,7 +32,7 @@
32
32
  </tr>
33
33
  </template>
34
34
  </Table>
35
- <div v-if="error" class="text-red-600 text-sm">
35
+ <div v-if="error" class="std-red-text text-sm">
36
36
  {{ error }}
37
37
  </div>
38
38
  </template>
@@ -2,8 +2,8 @@
2
2
  <input
3
3
  type="radio"
4
4
  :class="[
5
- 'icon text-indigo-600 focus:ring-indigo-600',
6
- $attrs.readonly ? 'disabled' : '',
5
+ 'icon std-blue-text focus:std-blue-ring',
6
+ { 'disabled': $attrs.readonly },
7
7
  ]"
8
8
  :value="radioValue"
9
9
  :checked="radioValue === $attrs.modelValue"
@@ -10,7 +10,7 @@
10
10
  >
11
11
  <div class="mt-2 sm:col-span-2 sm:mt-0">
12
12
  <div
13
- class="flex justify-center rounded-lg border border-dashed px-6 py-10 border-gray-400 dark:border-white"
13
+ class="flex justify-center rounded-lg border-2 border-dashed px-6 py-10 std-white-border"
14
14
  >
15
15
  <div class="text-center">
16
16
  <div class="mt-4 flex text-sm leading-6">
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <svg
3
+ height="20px"
4
+ viewBox="0 0 24 24"
5
+ width="20px"
6
+ fill="#ef4444"
7
+ >
8
+ <path d="M0 0h24v24H0V0z" fill="none" />
9
+ <path
10
+ d="M18 14.49V9c0-1-1.01-2.01-2-2V3h-2v4h-4V3H8v2.48l9.51 9.5.49-.49zm-1.76 1.77L7.2 7.2l-.01.01L3.98 4 2.71 5.25l3.36 3.36C6.04 8.74 6 8.87 6 9v5.48L9.5 18v3h5v-3l.48-.48L19.45 22l1.26-1.28-4.47-4.46z"
11
+ />
12
+ </svg>
13
+ </template>
@@ -0,0 +1,13 @@
1
+ <template>
2
+ <svg
3
+ height="20px"
4
+ viewBox="0 0 24 24"
5
+ width="20px"
6
+ fill="#16a34a"
7
+ >
8
+ <path d="M0 0h24v24H0z" fill="none" />
9
+ <path
10
+ d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"
11
+ />
12
+ </svg>
13
+ </template>
@@ -20,6 +20,15 @@ export { default as UploadFile } from "./form/UploadFile.vue";
20
20
  export { default as KeyValueEntry } from "./form/KeyValueEntry.vue";
21
21
  export { default as Editor } from "./form/Editor.vue";
22
22
 
23
+ // icons
24
+ export { default as AiIcon } from "./icons/AiIcon.vue";
25
+ export { default as GithubIcon } from "./icons/GithubIcon.vue";
26
+ export { default as HighPriorityIcon } from "./icons/HighPriorityIcon.vue";
27
+ export { default as PlugOnIcon } from "./icons/PlugOnIcon.vue";
28
+ export { default as PlugOffIcon } from "./icons/PlugOffIcon.vue";
29
+ export { default as PowerOffIcon } from "./icons/PowerOffIcon.vue";
30
+ export { default as SaveIcon } from "./icons/SaveIcon.vue";
31
+
23
32
  // notify and dialogs
24
33
  export { default as ConfirmDialog } from "./dialogs/ConfirmDialog.vue";
25
34
  export { default as CopyDialog } from "./dialogs/CopyDialog.vue";
@@ -33,6 +42,7 @@ export { default as Wizard } from "./dialogs/Wizard.vue";
33
42
  export { default as ResetPasswordDialog } from "./dialogs/ResetPasswordDialog.vue";
34
43
  export { default as DownloadDialog } from "./dialogs/DownloadDialog.vue";
35
44
  export { default as PopupEditor } from "./dialogs/PopupEditor.vue";
45
+ export { default as InfoDialog } from "./dialogs/InfoDialog.vue";
36
46
 
37
47
  // Buttons
38
48
  export { default as ActionButtons } from "./buttons/ActionButtons.vue";
@@ -53,6 +63,7 @@ export { default as ScoreLevel } from "./status/ScoreLevel.vue";
53
63
  export { default as Status } from "./status/Status.vue";
54
64
 
55
65
  // commons
66
+ export { default as Error } from "./common/Error.vue";
56
67
  export { default as AutoRefreshButton } from "./common/AutoRefreshButton.vue";
57
68
  export { default as AutoCompleteSearchBar } from "./common/AutoCompleteSearchBar.vue";
58
69
  export { default as Breadcrumb } from "./common/Breadcrumb.vue";
@@ -95,13 +106,6 @@ export { default as Sort } from "./common/Sort.vue";
95
106
  export { default as Flag } from "./common/Flag.vue";
96
107
  export { default as ThreeHomePanel } from "./common/ThreeHomePanel.vue";
97
108
 
98
- // icons
99
- export { default as AiIcon } from "./icons/AiIcon.vue";
100
- export { default as GithubIcon } from "./icons/GithubIcon.vue";
101
- export { default as HighPriorityIcon } from "./icons/HighPriorityIcon.vue";
102
- export { default as PowerOffIcon } from "./icons/PowerOffIcon.vue";
103
- export { default as SaveIcon } from "./icons/SaveIcon.vue";
104
-
105
109
  // charts
106
110
  export { default as AlertChart } from "./charts/AlertChart.vue";
107
111
  export { default as CronChart } from "./charts/CronChart.vue";
@@ -10,10 +10,10 @@
10
10
  <DialogPanel
11
11
  class="fixed top-8 left-0 z-50 w-80 px-2 py-6 sm:px-6 sm:top-2 sm:w-full sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"
12
12
  >
13
- <div class="flex items-center justify-end">
13
+ <div class="flex items-center">
14
14
  <button
15
15
  type="button"
16
- class="-m-2.5 rounded-md p-2.5"
16
+ class="rounded-md p-2.5"
17
17
  @click="emits('close')"
18
18
  >
19
19
  <span class="sr-only">Close menu</span>
@@ -21,7 +21,7 @@
21
21
  </button>
22
22
  </div>
23
23
  <div
24
- class="mt-6 flow-root white-bg text-gray-700 dark:bg-black dark:text-gray-300 rounded-3xl p-3"
24
+ class="mt-6 flow-root std-white std-white-text rounded-3xl p-3"
25
25
  >
26
26
  <div class="-my-6 divide-y divide-gray-500/10">
27
27
  <div class="space-y-2 py-6">
@@ -53,7 +53,7 @@
53
53
  :class="[
54
54
  'text-sm font-medium',
55
55
  props.currentRoute === child.route
56
- ? 'font-semibold text-slate-900 dark:text-slate-100'
56
+ ? 'font-semibold'
57
57
  : 'hover:font-bold',
58
58
  ]"
59
59
  @click="emits('close')"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="absolute top-0 z-50 w-44 rounded-3xl shadow-lg ring-1 ring-gray-900/5 left-full white-bg text-gray-700 dark:bg-black dark:text-gray-300"
3
+ class="absolute top-0 z-50 w-44 rounded-3xl shadow-lg left-full std-white std-white-text"
4
4
  >
5
5
  <router-link
6
6
  v-for="grandchild in children"
@@ -12,10 +12,8 @@
12
12
  >
13
13
  <div
14
14
  :class="[
15
- 'rounded-lg m-2 p-3 text-sm leading-6',
16
- props.currentRoute === grandchild.route
17
- ? 'bg-slate-300 dark:bg-slate-700'
18
- : 'hover:bg-gray-200 dark:hover:bg-neutral-700',
15
+ 'rounded-lg m-2 p-3 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover',
16
+ { 'white-bg-hover dark:dark-bg-hover': props.currentRoute === grandchild.route },
19
17
  ]"
20
18
  >
21
19
  {{ grandchild.name }}
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <Combobox
3
3
  as="div"
4
- class="py-1 relative"
4
+ class="std-white-border relative rounded-sm border-2 my-1 focus-within:ring23 focus-within:std-blue-ring focus-within:std-blue-border"
5
5
  v-model="selected"
6
6
  @update:model-value="emits('update', $event)"
7
7
  >
8
8
  <ComboboxInput
9
- class="w-full border-2 text-sm bg-transparent p-1 px-2 pr-4 focus:ring-0"
9
+ class="w-full text-sm bg-transparent px-2 border-0 outline-none focus:outline-none focus:ring-0"
10
10
  @change="query = $event.target.value"
11
11
  :displayValue="(option) => option.label"
12
12
  />
@@ -20,7 +20,7 @@
20
20
  @after-leave="query = ''"
21
21
  >
22
22
  <ComboboxOptions
23
- class="absolute z-50 mt-1 max-h-96 w-full overflow-auto p-1 text-base text-sm white-bg text-gray-700 dark:bg-black dark:text-gray-300"
23
+ class="input-dropdown max-h-96! text-base text-sm std-white std-white-text"
24
24
  >
25
25
  <ComboboxOption
26
26
  as="template"
@@ -31,8 +31,8 @@
31
31
  >
32
32
  <li
33
33
  :class="[
34
- active ? 'bg-indigo-600 text-white' : '',
35
- 'relative cursor-default select-none py-2 pl-8 pr-3',
34
+ { 'std-blue text-white': active },
35
+ 'input-dropdown-item pl-8 pr-3',
36
36
  ]"
37
37
  >
38
38
  <span
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <Menu as="div" class="relative ml-auto mt-1.5">
3
3
  <MenuButton
4
- class="rounded-full ring-2 w-7 h-7 ring-black dark:ring-white text-sm"
4
+ class="rounded-full ring-2 icon-lg text-sm"
5
5
  >
6
6
  {{ initials }}
7
7
  </MenuButton>
@@ -14,7 +14,7 @@
14
14
  leave-to-class="transform opacity-0 scale-95"
15
15
  >
16
16
  <MenuItems
17
- class="absolute right-0 top-full z-50 mt-3 w-44 overflow-hidden rounded-3xl shadow-lg ring-1 ring-gray-900/5"
17
+ class="input-dropdown right-0 top-full mt-3 w-44 rounded-3xl shadow-lg"
18
18
  >
19
19
  <MenuItem
20
20
  v-for="child in userChildren"
@@ -22,14 +22,14 @@
22
22
  v-slot="{ close }"
23
23
  >
24
24
  <div
25
- class="py-1 px-2 white-bg text-gray-700 dark:bg-black dark:text-gray-300"
25
+ class="py-1 px-2 std-white std-white-text"
26
26
  >
27
27
  <router-link
28
28
  :to="{ name: child.route, params: child.params }"
29
29
  @click="close"
30
30
  >
31
31
  <div
32
- class="rounded-lg p-4 text-sm leading-6 hover:bg-gray-200 dark:hover:bg-neutral-700"
32
+ class="rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover"
33
33
  >
34
34
  {{ child.name }}
35
35
  </div>
@@ -23,7 +23,7 @@
23
23
  v-slot="{ close, active }"
24
24
  >
25
25
  <div
26
- class="py-1 px-2 white-bg text-gray-700 dark:bg-black dark:text-gray-300"
26
+ class="py-1 px-2 std-white std-white-text"
27
27
  >
28
28
  <router-link
29
29
  v-if="!child.children"
@@ -32,10 +32,8 @@
32
32
  >
33
33
  <div
34
34
  :class="[
35
- 'rounded-lg p-4 text-sm leading-6',
36
- currentRoute === child.route
37
- ? 'bg-slate-300 dark:bg-slate-700'
38
- : 'hover:bg-gray-200 dark:hover:bg-neutral-700',
35
+ 'rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover',
36
+ { 'white-bg-hover dark:dark-bg-hover': currentRoute === child.route },
39
37
  ]"
40
38
  >
41
39
  {{ child.name }}
@@ -43,7 +41,7 @@
43
41
  </router-link>
44
42
  <div v-else>
45
43
  <div
46
- class="relative rounded-lg p-4 text-sm leading-6 hover:bg-gray-200 dark:hover:bg-neutral-700"
44
+ class="relative rounded-lg p-4 text-sm leading-6 hover:white-bg-hover hover:dark:dark-bg-hover"
47
45
  >
48
46
  <span class="relative row text-sm">
49
47
  {{ child.name }}
@@ -4,7 +4,7 @@
4
4
  <Dialog
5
5
  v-if="isDialog"
6
6
  as="div"
7
- :class="success ? 'bg-green-50' : 'bg-red-50'"
7
+ :class="success ? 'std-green-light' : 'std-red-light'"
8
8
  class="rounded-md p-4 fixed bottom-5 z-50"
9
9
  style="min-width: 75%; left: 50%; transform: translateX(-50%)"
10
10
  @close="closeModal"
@@ -13,20 +13,22 @@
13
13
  <div class="flex-shrink-0">
14
14
  <CheckCircleIcon
15
15
  v-if="success"
16
- class="icon-md text-green-400"
16
+ class="icon-md icon-green"
17
17
  aria-hidden="true"
18
18
  />
19
- <XCircleIcon v-else class="icon-md text-red-400" aria-hidden="true" />
19
+ <XCircleIcon v-else class="icon-md icon-red" aria-hidden="true" />
20
20
  </div>
21
21
  <div class="ml-3">
22
- <h3 v-if="success" class="text-sm font-medium text-green-800">
22
+ <h3 v-if="success" class="text-sm font-medium std-green-text">
23
23
  {{ title }}
24
24
  </h3>
25
- <h3 v-else class="text-sm font-medium text-red-800">{{ title }}</h3>
26
- <div v-if="success" class="mt-2 text-sm text-green-700">
25
+ <h3 v-else class="text-sm font-medium std-red-text">
26
+ {{ title }}
27
+ </h3>
28
+ <div v-if="success" class="mt-2 text-sm std-green-text">
27
29
  <p>{{ msg }}</p>
28
30
  </div>
29
- <div v-else class="mt-2 text-sm text-red-700">
31
+ <div v-else class="mt-2 text-sm std-red-text">
30
32
  <p>{{ msg }}</p>
31
33
  </div>
32
34
  </div>
@@ -41,28 +43,30 @@
41
43
  </Dialog>
42
44
  <div
43
45
  v-else
44
- :class="success ? 'bg-green-50' : 'bg-red-50'"
45
- class="rounded-md p-4 fixed bottom-5 z-50"
46
+ :class="success ? 'std-green-light' : 'std-red-light'"
47
+ class="rounded-md p-4 fixed bottom-5 z-80"
46
48
  style="min-width: 75%; left: 50%; transform: translateX(-50%)"
47
49
  >
48
50
  <div class="flex">
49
51
  <div class="flex-shrink-0">
50
52
  <CheckCircleIcon
51
53
  v-if="success"
52
- class="icon-md text-green-400"
54
+ class="icon-md icon-green"
53
55
  aria-hidden="true"
54
56
  />
55
- <XCircleIcon v-else class="icon-md text-red-400" aria-hidden="true" />
57
+ <XCircleIcon v-else class="icon-md icon-red" aria-hidden="true" />
56
58
  </div>
57
59
  <div class="ml-3">
58
- <h3 v-if="success" class="text-sm font-medium text-green-800">
60
+ <h3 v-if="success" class="text-sm font-medium std-green-text">
61
+ {{ title }}
62
+ </h3>
63
+ <h3 v-else class="text-sm font-medium std-red-text">
59
64
  {{ title }}
60
65
  </h3>
61
- <h3 v-else class="text-sm font-medium text-red-800">{{ title }}</h3>
62
- <div v-if="success" class="mt-2 text-sm text-green-700">
66
+ <div v-if="success" class="mt-2 text-sm std-green-text">
63
67
  <p>{{ msg }}</p>
64
68
  </div>
65
- <div v-else class="mt-2 text-sm text-red-700">
69
+ <div v-else class="mt-2 text-sm std-red-text">
66
70
  <p>{{ msg }}</p>
67
71
  </div>
68
72
  </div>