@@ -44,7 +44,7 @@ class="relative mt-1"
44
44
>
45
45
<div x-show =" !selected || selected.length === 0" class =" flex flex-wrap" >
46
46
<div class =" text-gray-800 rounded-sm w-full truncate px-2 py-0.5 my-0.5 flex flex-row items-center" >
47
- <div class =" w-full px-2 truncate" x-text =" placeholder" >  ; </div >
47
+ <div class =" w-full px-2 truncate dark:text-gray-500 " x-text =" placeholder" >  ; </div >
48
48
<div x-show =" !disabled" x-bind:class =" { 'cursor-pointer': !disabled }" class =" h-6" x-on:click.prevent.stop =" toggleSelect()" >
49
49
@include (' simple-select::components.caret-icons' )
50
50
</div >
@@ -53,7 +53,7 @@ class="relative mt-1"
53
53
@isset ($attributes [' multiple' ] )
54
54
<div x-show =" selected && typeof selected === 'object' && selected.length > 0" class =" flex flex-wrap space-x-1" >
55
55
<template x-for =" (value, index) in selected" :key =" index" >
56
- <div class =" text-gray-800 rounded-full truncate bg-gray-300 px-2 py-0.5 my-0.5 flex flex-row items-center" >
56
+ <div class =" text-gray-800 dark:text-gray-400 rounded-full truncate bg-gray-300 dark:bg-gray-800 px-2 py-0.5 my-0.5 flex flex-row items-center" >
57
57
{{-- Invisible inputs for standard form submission values --}}
58
58
<input type =" text" :name =" `${name}[]`" x-model =" value" style =" display : none ;" />
59
59
<div class =" px-2 truncate" >
@@ -82,7 +82,7 @@ class="w-6"
82
82
</div >
83
83
@else
84
84
<div x-show =" selected" class =" flex flex-wrap" >
85
- <div class =" text-gray-800 rounded-sm w-full truncate px-2 py-0.5 my-0.5 flex flex-row items-center" >
85
+ <div class =" text-gray-800 dark:text-gray-400 rounded-sm w-full truncate px-2 py-0.5 my-0.5 flex flex-row items-center" >
86
86
{{-- Invisible input for standard form submission of values --}}
87
87
<input type =" text" :name =" name" x-model =" selected" :required =" required" style =" display : none ;" />
88
88
<div class =" w-full px-2 truncate" >
@@ -127,29 +127,29 @@ class="h-6"
127
127
x-model =" search"
128
128
x-on:click.prevent.stop =" open=true"
129
129
:placeholder =" searchInputPlaceholder"
130
- class =" block w-full p-2 bg-gray-100 border border-gray-300 shadow-md focus:border-gray-200 focus:ring-0 sm:text-sm sm:leading-5"
130
+ class =" block w-full p-2 bg-gray-100 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 dark:text-gray-200 shadow-md focus:border-gray-200 focus:ring-0 sm:text-sm sm:leading-5"
131
131
/>
132
132
<ul
133
133
x-ref =" simpleSelectOptionsList"
134
- class =" absolute z-10 w-full py-1 overflow-auto text-base bg-white shadow-lg rounded-b-md max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
134
+ class =" absolute z-10 w-full py-1 overflow-auto text-base bg-white dark:bg-gray-600 shadow-lg rounded-b-md max-h-60 ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"
135
135
tabindex =" -1"
136
136
role =" listbox"
137
137
>
138
- <div x-show =" Object.values(options).length == 0 && search.toString().trim() == ''" x-text =" noOptions" class =" px-2 py-2" ></div >
139
- <div x-show =" Object.values(options).length == 0 && search.toString().trim() != ''" x-text =" noResult" class =" px-2 py-2" ></div >
138
+ <div x-show =" Object.values(options).length == 0 && search.toString().trim() == ''" x-text =" noOptions" class =" px-2 py-2 dark:text-gray-400 " ></div >
139
+ <div x-show =" Object.values(options).length == 0 && search.toString().trim() != ''" x-text =" noResult" class =" px-2 py-2 dark:text-gray-400 " ></div >
140
140
<template x-for =" (option, index) in Object.values(options)" :key =" index" >
141
141
<li
142
142
:tabindex =" index"
143
143
class =" relative py-2 pl-3 select-none pr-9 whitespace-nowrap"
144
144
@isset ($attributes [' multiple' ] )
145
145
x-bind:class =" {
146
- 'bg-gray-300 text-black hover:none': selected && selected.includes(getOptionValue(option, index)),
147
- 'text-gray-900 cursor-defaul hover:bg-gray-200 hover:cursor-pointer focus:bg-gray-200': !(selected && selected.includes(getOptionValue(option, index))),
146
+ 'bg-gray-300 dark:bg-gray-700 text-black dark:text-gray-400 hover:none': selected && selected.includes(getOptionValue(option, index)),
147
+ 'text-gray-900 dark:text-gray-400 cursor-defaul hover:bg-gray-200 dark:hover:bg-gray-800 hover:cursor-pointer focus:bg-gray-200': !(selected && selected.includes(getOptionValue(option, index))),
148
148
}"
149
149
@else
150
150
x-bind:class =" {
151
- 'bg-gray-300 text-black hover:none': selected == getOptionValue(option, index),
152
- 'text-gray-900 cursor-defaul hover:bg-gray-200 hover:cursor-pointer focus:bg-gray-200': !(selected == getOptionValue(option, index)),
151
+ 'bg-gray-300 dark:bg-gray-700 text-black dark:text-gray-400 hover:none': selected == getOptionValue(option, index),
152
+ 'text-gray-900 dark:text-gray-400 cursor-defaul hover:bg-gray-200 dark:hover:bg-gray-800 hover:cursor-pointer focus:bg-gray-200': !(selected == getOptionValue(option, index)),
153
153
}"
154
154
@endisset
155
155
x-on:click =" selectOption(getOptionValue(option, index))"
0 commit comments