Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<div class="max-w-xs">
<div class="relative w-full" data-controller="ui--select" data-ui--select-multiple-value="false" data-ui--select-summary-value="%{count} selected" data-ui--select-placeholder-value="Choose a time zone">
<div class="mb-2"><label for="ui-select-48060d7a" class="text-sm font-medium">Time zone</label>
</div>
<button type="button" id="ui-select-48060d7a" class="flex w-full items-center justify-between gap-2 rounded-md border border-input bg-background text-left text-foreground shadow-xs transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1 ring-offset-background aria-expanded:ring-2 aria-expanded:ring-primary aria-expanded:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-muted h-9 px-3 text-sm" role="combobox" aria-haspopup="listbox" aria-expanded="false" aria-controls="ui-select-48060d7a-listbox" data-ui--select-target="trigger" data-action="click->ui--select#toggle keydown->ui--select#keydown">
<span data-ui--select-target="value" class="text-muted-foreground truncate">Choose a time zone</span>
<i data-lucide="chevrons-up-down" class="inline-block w-4 h-4 shrink-0 text-muted-foreground" aria-hidden="true"></i>
</button>
<div hidden="hidden" data-ui--select-target="panel" data-state="closed" class="z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95">
<div class="flex items-center gap-2 border-b px-3 py-2">
<i data-lucide="search" class="inline-block w-4 h-4 shrink-0 text-muted-foreground" aria-hidden="true"></i>
<input type="search" id="ui-select-48060d7a-search" autocomplete="off" placeholder="Search" class="w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden" aria-label="Search the options" aria-controls="ui-select-48060d7a-listbox" aria-autocomplete="list" aria-expanded="true" role="combobox" data-ui--select-target="search" data-action="input->ui--select#filter keydown->ui--select#keydown">
</div>
<div id="ui-select-48060d7a-listbox" role="listbox" tabindex="-1" aria-labelledby="ui-select-48060d7a" data-ui--select-target="listbox" data-action="mousedown->ui--select#keepFocus" class="max-h-64 overflow-y-auto p-1">
<div id="ui-select-48060d7a-option-0" role="option" aria-selected="true" data-value="" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium text-muted-foreground">
<span class="truncate">Choose a time zone</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" >
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-1" role="option" aria-selected="false" data-value="Auckland" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Auckland</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-2" role="option" aria-selected="false" data-value="Bangkok" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Bangkok</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-3" role="option" aria-selected="false" data-value="Berlin" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Berlin</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-4" role="option" aria-selected="false" data-value="Cairo" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Cairo</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-5" role="option" aria-selected="false" data-value="Chicago" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Chicago</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-6" role="option" aria-selected="false" data-value="Dubai" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Dubai</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-7" role="option" aria-selected="false" data-value="Honolulu" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Honolulu</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-8" role="option" aria-selected="false" data-value="Istanbul" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Istanbul</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-9" role="option" aria-selected="false" data-value="Jakarta" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Jakarta</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-10" role="option" aria-selected="false" data-value="Kolkata" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Kolkata</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-11" role="option" aria-selected="false" data-value="Lagos" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Lagos</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-12" role="option" aria-selected="false" data-value="Lima" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Lima</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-13" role="option" aria-selected="false" data-value="London" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">London</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-14" role="option" aria-selected="false" data-value="Madrid" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Madrid</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-15" role="option" aria-selected="false" data-value="Mexico City" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Mexico City</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-16" role="option" aria-selected="false" data-value="Moscow" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Moscow</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-17" role="option" aria-selected="false" data-value="Nairobi" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Nairobi</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-18" role="option" aria-selected="false" data-value="New York" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">New York</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-19" role="option" aria-selected="false" data-value="Paris" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Paris</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-20" role="option" aria-selected="false" data-value="Santiago" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Santiago</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-21" role="option" aria-selected="false" data-value="Seoul" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Seoul</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-22" role="option" aria-selected="false" data-value="Singapore" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Singapore</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-23" role="option" aria-selected="false" data-value="Sydney" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Sydney</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-24" role="option" aria-selected="false" data-value="Tokyo" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Tokyo</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
<div id="ui-select-48060d7a-option-25" role="option" aria-selected="false" data-value="Toronto" data-ui--select-target="option" data-action="click->ui--select#choose mousemove->ui--select#hover" class="relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:font-medium ">
<span class="truncate">Toronto</span>
<span class="absolute right-2 flex size-4 items-center justify-center text-primary dark:text-foreground" data-ui--select-target="check" hidden>
<i data-lucide="check" class="inline-block shrink-0 w-4 h-4" aria-hidden="true"></i>
</span>
</div>
</div>
<p hidden data-ui--select-target="empty" class="px-3 py-3 text-sm text-muted-foreground">No matches</p>
</div>
<select class="sr-only" tabindex="-1" aria-hidden="true" data-ui--select-target="native" name="time_zone">
<option value="" selected="selected">Choose a time zone</option>
<option value="Auckland">Auckland</option>
<option value="Bangkok">Bangkok</option>
<option value="Berlin">Berlin</option>
<option value="Cairo">Cairo</option>
<option value="Chicago">Chicago</option>
<option value="Dubai">Dubai</option>
<option value="Honolulu">Honolulu</option>
<option value="Istanbul">Istanbul</option>
<option value="Jakarta">Jakarta</option>
<option value="Kolkata">Kolkata</option>
<option value="Lagos">Lagos</option>
<option value="Lima">Lima</option>
<option value="London">London</option>
<option value="Madrid">Madrid</option>
<option value="Mexico City">Mexico City</option>
<option value="Moscow">Moscow</option>
<option value="Nairobi">Nairobi</option>
<option value="New York">New York</option>
<option value="Paris">Paris</option>
<option value="Santiago">Santiago</option>
<option value="Seoul">Seoul</option>
<option value="Singapore">Singapore</option>
<option value="Sydney">Sydney</option>
<option value="Tokyo">Tokyo</option>
<option value="Toronto">Toronto</option>
</select></div>
</div>
1
2
3
4
5
<%# Searchable: open it and type to filter. Arrow keys and Enter work from the search box. %>
<div class="max-w-xs">
<%= render(UI::Select.new(name: "time_zone", label: "Time zone", prompt: "Choose a time zone", searchable: true,
options: %w[Auckland Bangkok Berlin Cairo Chicago Dubai Honolulu Istanbul Jakarta Kolkata Lagos Lima London Madrid Mexico\ City Moscow Nairobi New\ York Paris Santiago Seoul Singapore Sydney Tokyo Toronto])) %>
</div>