You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tile, tile-group): support single, multi, single-persist, none selection modes and icon and border selection appearances (#9159)
**Related Issue:** #8834, #6662
## Summary
This PR adds `selection-mode` and `selection-appearance` properties and
updates hover and focus states based on the latest Tile designs.
---------
Co-authored-by: Erik Harper <[email protected]>
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
5179
5176
*/
5180
5177
"iconFlipRtl": boolean;
5178
+
/**
5179
+
* When true, enables the tile to be focused, and allows the `calciteTileSelect` to emit. This is set to `true` by a parent Tile Group component.
5180
+
*/
5181
+
"interactive": boolean;
5182
+
/**
5183
+
* Accessible name for the component.
5184
+
*/
5185
+
"label": string;
5186
+
/**
5187
+
* Defines the layout of the component. Use `"horizontal"` for rows, and `"vertical"` for a single column.
5188
+
*/
5189
+
"layout": Exclude<Layout, "grid">;
5181
5190
/**
5182
5191
* Specifies the size of the component.
5183
5192
*/
5184
5193
"scale": Scale;
5194
+
/**
5195
+
* When `true` and the parent's `selectionMode` is `"single"`, `"single-persist"', or `"multiple"`, the component is selected.
5196
+
*/
5197
+
"selected": boolean;
5198
+
/**
5199
+
* Specifies the selection appearance, where: - `"icon"` (displays a checkmark or dot), or - `"border"` (displays a border). This property is set by the parent tile-group.
5200
+
*/
5201
+
"selectionAppearance": SelectionAppearance1;
5202
+
/**
5203
+
* Specifies the selection mode, where: - `"multiple"` (allows any number of selected items), - `"single"` (allows only one selected item), - `"single-persist"` (allows only one selected item and prevents de-selection), - `"none"` (allows no selected items). This property is set by the parent tile-group.
* Specifies the selection appearance, where: - `"icon"` (displays a checkmark or dot), or - `"border"` (displays a border).
5238
+
*/
5239
+
"selectionAppearance": SelectionAppearance1;
5240
+
/**
5241
+
* Specifies the selection mode, where: - `"multiple"` (allows any number of selected items), - `"single"` (allows only one selected item), - `"single-persist"` (allows only one selected item and prevents de-selection), - `"none"` (allows no selected items).
* When `true` and the parent's `selectionMode` is `"single"`, `"single-persist"', or `"multiple"`, the component is selected.
13052
+
*/
13053
+
"selected"?: boolean;
13054
+
/**
13055
+
* Specifies the selection appearance, where: - `"icon"` (displays a checkmark or dot), or - `"border"` (displays a border). This property is set by the parent tile-group.
13056
+
*/
13057
+
"selectionAppearance"?: SelectionAppearance1;
13058
+
/**
13059
+
* Specifies the selection mode, where: - `"multiple"` (allows any number of selected items), - `"single"` (allows only one selected item), - `"single-persist"` (allows only one selected item and prevents de-selection), - `"none"` (allows no selected items). This property is set by the parent tile-group.
* Specifies the selection appearance, where: - `"icon"` (displays a checkmark or dot), or - `"border"` (displays a border).
13094
+
*/
13095
+
"selectionAppearance"?: SelectionAppearance1;
13096
+
/**
13097
+
* Specifies the selection mode, where: - `"multiple"` (allows any number of selected items), - `"single"` (allows only one selected item), - `"single-persist"` (allows only one selected item and prevents de-selection), - `"none"` (allows no selected items).
0 commit comments