@hussmartinez/ui 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/react.d.ts +21 -2
- package/dist/react.js +86 -10
- package/dist/react.js.map +1 -1
- package/dist/ui.d.ts +21 -2
- package/package.json +1 -1
package/dist/ui.d.ts
CHANGED
|
@@ -915,7 +915,9 @@ export declare function RemoveIcon(props: IconProps): ReactElement;
|
|
|
915
915
|
* grid with one column of rows.
|
|
916
916
|
*
|
|
917
917
|
* - **↑ and ↓** move between rows and select; with Ctrl or ⌘, they move
|
|
918
|
-
* without selecting.
|
|
918
|
+
* without selecting. The selection follows focus however it reaches an
|
|
919
|
+
* item: the keys, Tab, a click, or your own `focus()`. Focus on a control
|
|
920
|
+
* never changes it. **← and →**, Home and End move between a row's
|
|
919
921
|
* cells. Ctrl or ⌘ with Home or End goes to the first or last row.
|
|
920
922
|
* Space or Enter on an item selects it.
|
|
921
923
|
* - **Alt+↑ and Alt+↓** (Option on macOS) move the focused item, through
|
|
@@ -1147,6 +1149,11 @@ export declare function SkipForwardIcon(props: IconProps): ReactElement;
|
|
|
1147
1149
|
* left and right arrows follow it, in every browser. `formatValue` gives
|
|
1148
1150
|
* screen readers the value as text.
|
|
1149
1151
|
*
|
|
1152
|
+
* `onValueChange` follows the value as it moves; `onValueCommit` is called
|
|
1153
|
+
* once when the gesture ends, for what should happen once, such as an undo
|
|
1154
|
+
* step: a drag let go, a key let go after one press or a held repeat, or
|
|
1155
|
+
* focus leaving first.
|
|
1156
|
+
*
|
|
1150
1157
|
* Inside a `Toolbar`, the slider keeps the arrow keys, Home and End, so
|
|
1151
1158
|
* they can't move focus past it: put it last in the toolbar. Tab still
|
|
1152
1159
|
* leaves the toolbar.
|
|
@@ -1182,6 +1189,15 @@ export declare interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputE
|
|
|
1182
1189
|
readonly defaultValue?: number | undefined;
|
|
1183
1190
|
/** Called with the new value as it changes, by pointer or keyboard. */
|
|
1184
1191
|
readonly onValueChange?: ((value: number) => void) | undefined;
|
|
1192
|
+
/**
|
|
1193
|
+
* Called once when a gesture that changed the value ends, with the value
|
|
1194
|
+
* it ended on: when the pointer is let go, when the last key held is let
|
|
1195
|
+
* go, or when the slider loses focus first. Use it for what should happen
|
|
1196
|
+
* once per gesture, such as an undo step, and `onValueChange` for what
|
|
1197
|
+
* follows the value as it moves. A gesture that leaves the value where it
|
|
1198
|
+
* was calls nothing.
|
|
1199
|
+
*/
|
|
1200
|
+
readonly onValueCommit?: ((value: number) => void) | undefined;
|
|
1185
1201
|
/** Defaults to 0. */
|
|
1186
1202
|
readonly min?: number | undefined;
|
|
1187
1203
|
/** Defaults to 100. */
|
|
@@ -1542,7 +1558,10 @@ export declare type TimelineClipEdge = "start" | "end";
|
|
|
1542
1558
|
* (docs/adr/0011).
|
|
1543
1559
|
*
|
|
1544
1560
|
* - **← and →** move between clips, and Home and End go to the first and
|
|
1545
|
-
* last. They follow the reading direction.
|
|
1561
|
+
* last. They follow the reading direction. With `selectionMode="single"`,
|
|
1562
|
+
* the selection follows focus however it arrives: arrows, Tab, a click, or
|
|
1563
|
+
* your own `focus()` or `focusClip`. Ctrl or ⌘ with an arrow moves focus
|
|
1564
|
+
* without selecting.
|
|
1546
1565
|
* - **With `selectionMode="multiple"`,** Shift extends the selection from
|
|
1547
1566
|
* the last clip chosen; Ctrl or ⌘ moves focus without changing it; Space
|
|
1548
1567
|
* adds or removes the focused clip, and Shift+Space selects up to it;
|
package/package.json
CHANGED