discourse/app/assets/stylesheets/common/components
Joffrey JAFFEUX cbc0ece6e8
DEV: <DSelect /> (#30224)
`<DSelect />` is a wrapper similar to our existing `<DButton />` over the html element `<select>`. The code is ported from form kit which is now directly using `<DSelect />`. Note this component has also been used in edit topic timer modal.

This component is recommended for a small list of text items (no icons, no rich formatting...).

Usage:

```gjs
<DSelect class="my-select" @onChange={{this.handleChange}} as |select|>
  <select.Option @value="foo" class="my-favorite-option">Foo</select.Option>
  <select.Option @value="bar">Bar</select.Option>
</DSelect>
```

This commit comes with a set of assertions:

```gjs
import dselect from "discourse/tests/helpers/d-select-helper";
import { select } from "@ember/test-helpers";

assert
  .dselect(".my-select")
  .hasOption({ value: "bar", label: "Bar" })
  .hasOption({ value: "foo", label: "Foo" })
  .hasNoOption("baz");

await select(".my-select", "foo");

assert.dselect(".my-select").hasSelectedOption({value: "foo", label: "Foo"});
```
2024-12-13 10:40:06 +01:00
..
sidebar/edit-navigation-menu
_index.scss DEV: <DSelect /> (#30224) 2024-12-13 10:40:06 +01:00
add-pm-participants.scss
badges.scss
banner.scss
bookmark-list.scss
bookmark-menu.scss
bookmark-modal.scss
buttons.scss DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
calendar-date-time-input.scss
char-counter.scss
color-input.scss
conditional-loading-section.scss
convert-to-public-topic-modal.scss
d-breadcrumbs.scss DEV: Make breadcrumb separators unclickable icons (#29817) 2024-11-19 16:42:43 +08:00
d-lightbox.scss
d-select.scss DEV: <DSelect /> (#30224) 2024-12-13 10:40:06 +01:00
d-stat-tiles.scss UX: Introduce <DStatTiles /> component (#30238) 2024-12-13 11:32:46 +10:00
d-toggle-switch.scss
date-input.scss
date-picker.scss
date-time-input-range.scss
date-time-input.scss
download-calendar.scss
file-size-input.scss
footer-nav.scss
form-template-field.scss
group-member-dropdown.scss
groups-form-membership-fields.scss
hashtag.scss
horizontal-overflow-nav.scss
iframed-html.scss
ignored-user-list.scss
keyboard_shortcuts.scss
more-topics.scss
navs.scss
offline-indicator.scss
pick-files-button.scss
powered-by-discourse.scss
relative-time-picker.scss
signup-progress-bar.scss
svg.scss
tap-tile.scss
theme-card.scss DEV: update deprecated icon names in themes-grid-card (#30162) 2024-12-08 22:18:55 +01:00
time-input.scss
time-shortcut-picker.scss
topic-map.scss UX: fix topic map padding in low-content situations (#30101) 2024-12-04 09:39:14 -05:00
topic-query-filter.scss FEATURE: Add Bulk actions to /filter page (#29420) 2024-11-22 11:51:06 +11:00
user-card.scss
user-info.scss
user-status-message.scss
user-status-picker.scss
user-stream-item.scss
user-stream.scss
welcome-header.scss
widget-dropdown.scss