classcard-ui 0.2.909 → 0.2.910
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.
- package/dist/classcard-ui.common.js +61 -56
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +61 -56
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CGroupedSelect/CGroupedSelect.vue +8 -3
- package/src/stories/CGroupedSelect.stories.js +2 -0
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<div class="relative">
|
|
14
14
|
<input
|
|
15
15
|
type="text"
|
|
16
|
-
class="
|
|
16
|
+
class="relative w-full cursor-default rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 disabled:pointer-events-none disabled:opacity-50 sm:text-sm"
|
|
17
17
|
aria-haspopup="listbox"
|
|
18
18
|
aria-expanded="true"
|
|
19
19
|
aria-labelledby="listbox-label"
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
To: "opacity-0"
|
|
76
76
|
-->
|
|
77
77
|
<ul
|
|
78
|
-
class="
|
|
78
|
+
class="absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
|
|
79
79
|
tabindex="-1"
|
|
80
80
|
role="listbox"
|
|
81
81
|
aria-labelledby="listbox-label"
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
<span class="block truncate"> {{ option.label }} </span>
|
|
97
97
|
</li>
|
|
98
98
|
<li
|
|
99
|
-
class="group relative cursor-default select-none py-2 pl-3 pr-9 text-left text-gray-900 hover:bg-indigo-600 hover:text-white"
|
|
99
|
+
class="group group relative cursor-default select-none py-2 pl-3 pr-9 text-left text-gray-900 hover:bg-indigo-600 hover:text-white"
|
|
100
100
|
v-for="subOption in option.options"
|
|
101
101
|
:key="subOption.id"
|
|
102
102
|
role="option"
|
|
@@ -113,6 +113,11 @@
|
|
|
113
113
|
]"
|
|
114
114
|
>
|
|
115
115
|
{{ subOption.label }}
|
|
116
|
+
<span
|
|
117
|
+
v-if="subOption.labelExtra"
|
|
118
|
+
class="ml-1 text-sm text-gray-400 group-hover:text-white"
|
|
119
|
+
>{{ subOption.labelExtra }}</span
|
|
120
|
+
>
|
|
116
121
|
<div
|
|
117
122
|
v-if="
|
|
118
123
|
subOption.stock_level ||
|
|
@@ -27,6 +27,7 @@ Default.args = {
|
|
|
27
27
|
{
|
|
28
28
|
id: 11751,
|
|
29
29
|
label: "Activity - Cricket - Flat Rate",
|
|
30
|
+
labelExtra: "Something",
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
33
|
id: 13344,
|
|
@@ -35,6 +36,7 @@ Default.args = {
|
|
|
35
36
|
{
|
|
36
37
|
id: 13407,
|
|
37
38
|
label: "Sports - Cricket - 60 mins",
|
|
39
|
+
labelExtra: "Football - extra - 15mins",
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
42
|
id: 15370,
|