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
<div data-controller="polaris-autocomplete" data-polaris-autocomplete-url-value="/suggestions" data-polaris-autocomplete-selected-value="[]" data-polaris-autocomplete-multiple-value="true">
<div data-polaris-autocomplete-target="popover" data-controller="polaris-popover" data-polaris-popover-append-to-body-value="false" data-polaris-popover-active-value="false" data-polaris-popover-placement-value="bottom-start" data-polaris-popover-text-field-activator-value="true" data-polaris-popover-open-class="Polaris-Popover__PopoverOverlay--open" data-polaris-popover-closed-class="Polaris-Popover__PopoverOverlay--closed">
<div data-polaris-popover-target="activator">
<div class="polaris-text-field-wrapper">
<div class="Polaris-Labelled__LabelWrapper">
<div class="Polaris-Label">
<label class="Polaris-Label__Text">Tags with local suggestions</label>
</div>
</div>
<div class="Polaris-Connected">
<div class="Polaris-Connected__Item Polaris-Connected__Item--primary">
<div data-polaris-text-field-has-value-class="Polaris-TextField--hasValue" data-polaris-text-field-clear-button-hidden-class="Polaris-TextField__Hidden" data-action="click->polaris-autocomplete#toggle click@window->polaris-popover#hide" data-controller="polaris-text-field" class="Polaris-TextField">
<div class="Polaris-TextField__Prefix">
<span class="Polaris-Icon">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M12.323 13.383a5.5 5.5 0 1 1 1.06-1.06l2.897 2.897a.75.75 0 1 1-1.06 1.06l-2.897-2.897Zm.677-4.383a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"></path></svg>
</span>
</div>
<input type="text" id="" placeholder="Search" data-polaris-text-field-target="input" data-polaris-autocomplete-target="input" data-action="polaris-text-field#syncValue" class="Polaris-TextField__Input" />
<div class="Polaris-TextField__Backdrop"></div>
</div>
</div>
</div>
</div>
</div>
<div data-polaris-popover-target="popover" class="Polaris-PositionedOverlay Polaris-Popover__PopoverOverlay Polaris-Popover__PopoverOverlay--closed">
<div class="Polaris-Popover Polaris-Popover--fullWidth">
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
<div class="Polaris-Popover__ContentContainer">
<div tabindex="-1" class="Polaris-Popover__Content">
<div data-polaris-scrollable-shadow-value="true" data-polaris-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-polaris-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="polaris-scrollable" style="" class="Polaris-Popover__Pane Polaris-Scrollable Polaris-Scrollable--vertical">
<span data-polaris-scrollable-target="topEdge"></span>
<ul data-polaris-autocomplete-target="results" data-controller="polaris-option-list" data-polaris-option-list-selected-class="Polaris-OptionList-Option--select" style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-2);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box Polaris-Box--listReset">
<li style="--pc-box-border-color: transparent;--pc-box-border-style: solid" class="Polaris-Box">
<div style="--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-2);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box">
<p class="Polaris-Text--root Polaris-Text--headingXs Polaris-Text--semibold">
Suggested tags
</p>
</div>
<div style="" class="Polaris-Bleed">
<ul style="--pc-box-border-color: transparent;--pc-box-border-style: solid" class="Polaris-Box Polaris-Box--listReset">
<li data-polaris-autocomplete-target="option" data-label="Rustic" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption">
<div class="Polaris-OptionList-Option__Checkbox">
<label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox">
<input type="checkbox" id="" value="rustic" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-Checkbox__Input" />
<div class="Polaris-Checkbox__Backdrop"></div>
<span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated">
<svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg>
</span>
</span>
</span>
<span class="Polaris-Choice__Label">
<span></span>
</span>
</label>
</div>
<span>Rustic</span>
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Antique" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption">
<div class="Polaris-OptionList-Option__Checkbox">
<label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox">
<input type="checkbox" id="" value="antique" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-Checkbox__Input" />
<div class="Polaris-Checkbox__Backdrop"></div>
<span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated">
<svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg>
</span>
</span>
</span>
<span class="Polaris-Choice__Label">
<span></span>
</span>
</label>
</div>
<span>Antique</span>
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Vinyl" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption">
<div class="Polaris-OptionList-Option__Checkbox">
<label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox">
<input type="checkbox" id="" value="vinyl" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-Checkbox__Input" />
<div class="Polaris-Checkbox__Backdrop"></div>
<span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated">
<svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg>
</span>
</span>
</span>
<span class="Polaris-Choice__Label">
<span></span>
</span>
</label>
</div>
<span>Vinyl</span>
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Vintage" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption">
<div class="Polaris-OptionList-Option__Checkbox">
<label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox">
<input type="checkbox" id="" value="vintage" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-Checkbox__Input" />
<div class="Polaris-Checkbox__Backdrop"></div>
<span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated">
<svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg>
</span>
</span>
</span>
<span class="Polaris-Choice__Label">
<span></span>
</span>
</label>
</div>
<span>Vintage</span>
</label>
</li>
<li data-polaris-autocomplete-target="option" data-label="Refurbished" tabindex="-1" class="Polaris-OptionList-Option">
<label class="Polaris-OptionList-Option__Label Polaris-OptionList-Option__CheckboxLabel Polaris-OptionList-Option__MultiSelectOption">
<div class="Polaris-OptionList-Option__Checkbox">
<label class="Polaris-Choice Polaris-Checkbox__ChoiceLabel">
<span class="Polaris-Choice__Control">
<span class="Polaris-Checkbox">
<input type="checkbox" id="" value="refurbished" data-action="polaris-autocomplete#select" aria-checked="false" class="Polaris-Checkbox__Input" />
<div class="Polaris-Checkbox__Backdrop"></div>
<span class="Polaris-Checkbox__Icon Polaris-Checkbox--animated">
<svg viewBox="0 0 16 16" shape-rendering="geometricPrecision" text-rendering="geometricPrecision"><path class="Polaris-Checkbox--checked" d="M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5" transform="translate(2 2.980376)" opacity="0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" pathLength="1"></path></svg>
</span>
</span>
</span>
<span class="Polaris-Choice__Label">
<span></span>
</span>
</label>
</div>
<span>Refurbished</span>
</label>
</li>
</ul>
</div>
</li>
</ul>
<span data-polaris-scrollable-target="bottomEdge"></span>
</div>
</div>
</div>
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
</div>
</div>
</div>
</div>
<br>
<div data-controller="polaris-autocomplete" data-polaris-autocomplete-url-value="/suggestions" data-polaris-autocomplete-selected-value="[]" data-polaris-autocomplete-multiple-value="true">
<div data-polaris-autocomplete-target="popover" data-controller="polaris-popover" data-polaris-popover-append-to-body-value="false" data-polaris-popover-active-value="false" data-polaris-popover-placement-value="bottom-start" data-polaris-popover-text-field-activator-value="true" data-polaris-popover-open-class="Polaris-Popover__PopoverOverlay--open" data-polaris-popover-closed-class="Polaris-Popover__PopoverOverlay--closed">
<div data-polaris-popover-target="activator">
<div class="polaris-text-field-wrapper">
<div class="Polaris-Labelled__LabelWrapper">
<div class="Polaris-Label">
<label class="Polaris-Label__Text">Tags with remote suggestions</label>
</div>
</div>
<div class="Polaris-Connected">
<div class="Polaris-Connected__Item Polaris-Connected__Item--primary">
<div data-polaris-text-field-has-value-class="Polaris-TextField--hasValue" data-polaris-text-field-clear-button-hidden-class="Polaris-TextField__Hidden" data-action="click->polaris-autocomplete#toggle click@window->polaris-popover#hide" data-controller="polaris-text-field" class="Polaris-TextField">
<div class="Polaris-TextField__Prefix">
<span class="Polaris-Icon">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 20 20" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M12.323 13.383a5.5 5.5 0 1 1 1.06-1.06l2.897 2.897a.75.75 0 1 1-1.06 1.06l-2.897-2.897Zm.677-4.383a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"></path></svg>
</span>
</div>
<input type="text" id="" placeholder="Search" data-polaris-text-field-target="input" data-polaris-autocomplete-target="input" data-action="polaris-text-field#syncValue" class="Polaris-TextField__Input" />
<div class="Polaris-TextField__Backdrop"></div>
</div>
</div>
</div>
</div>
</div>
<div data-polaris-popover-target="popover" class="Polaris-PositionedOverlay Polaris-Popover__PopoverOverlay Polaris-Popover__PopoverOverlay--closed">
<div class="Polaris-Popover Polaris-Popover--fullWidth">
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
<div class="Polaris-Popover__ContentContainer">
<div tabindex="-1" class="Polaris-Popover__Content">
<div data-polaris-scrollable-shadow-value="true" data-polaris-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-polaris-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="polaris-scrollable" style="" class="Polaris-Popover__Pane Polaris-Scrollable Polaris-Scrollable--vertical">
<span data-polaris-scrollable-target="topEdge"></span>
<ul data-polaris-autocomplete-target="results" data-controller="polaris-option-list" data-polaris-option-list-selected-class="Polaris-OptionList-Option--select" style="--pc-box-border-color: transparent;--pc-box-border-style: solid;--pc-box-padding-block-end-xs: var(--p-space-2);--pc-box-padding-block-start-xs: var(--p-space-2);--pc-box-padding-inline-end-xs: var(--p-space-2);--pc-box-padding-inline-start-xs: var(--p-space-2)" class="Polaris-Box Polaris-Box--listReset">
</ul>
<span data-polaris-scrollable-target="bottomEdge"></span>
</div>
</div>
</div>
<div class="Polaris-Popover__FocusTracker" tabindex="0"></div>
</div>
</div>
</div>
</div>
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
<%= polaris_autocomplete(multiple: true, url: suggestions_path) do |autocomplete| %>
<% autocomplete.with_text_field(label: "Tags with local suggestions", placeholder: "Search") do |c| %>
<% c.with_prefix do %>
<%= polaris_icon(name: "SearchIcon") %>
<% end %>
<% end %>
<% autocomplete.with_section(title: "Suggested tags") do |section| %>
<% section.with_option(label: "Rustic", value: "rustic") %>
<% section.with_option(label: "Antique", value: "antique") %>
<% section.with_option(label: "Vinyl", value: "vinyl") %>
<% section.with_option(label: "Vintage", value: "vintage") %>
<% section.with_option(label: "Refurbished", value: "refurbished") %>
<% end %>
<% end %>
<br>
<%= polaris_autocomplete(multiple: true, url: suggestions_path) do |autocomplete| %>
<% autocomplete.with_text_field(label: "Tags with remote suggestions", placeholder: "Search") do |c| %>
<% c.with_prefix do %>
<%= polaris_icon(name: "SearchIcon") %>
<% end %>
<% end %>
<% end %>