@trackunit/react-components 7.0.10 → 8.0.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/index.cjs.js +297 -128
- package/index.esm.js +297 -128
- package/migrations/assets/react-router-components/package.json +3 -3
- package/migrations/entry.js.map +1 -0
- package/migrations/utils/jsx-utils.js +7 -1
- package/migrations/utils/jsx-utils.js.map +1 -0
- package/migrations/utils/move-named-imports.js.map +1 -0
- package/migrations/utils/package-json-utils.js.map +1 -0
- package/migrations/v2-0-0/breadcrumb-remove-deprecated-props.js.map +1 -0
- package/migrations/v2-0-0/cardheader-onclickclose-to-actions.js.map +1 -0
- package/migrations/v2-0-0/iconbutton-add-required-name.js.map +1 -0
- package/migrations/v2-0-0/kpi-tooltiplabel-to-wrapper.js.map +1 -0
- package/migrations/v2-0-0/notice-tooltiplabel-to-wrapper.js.map +1 -0
- package/migrations/v2-0-0/pagination-add-required-titles.js.map +1 -0
- package/migrations/v2-0-0/tag-add-removetaglabel.js.map +1 -0
- package/migrations/v2-0-0/togglegroup-remove-item-style.js.map +1 -0
- package/migrations/v2-6-0/menulist-rename-to-menucontent.js.map +1 -0
- package/migrations/v3-0-0/copyabletext-to-text-copybutton.js.map +1 -0
- package/migrations/v4-0-0/move-to-router-components.js.map +1 -0
- package/migrations/v7-0-0/collapse-native-details.js +593 -0
- package/migrations/v7-0-0/collapse-native-details.js.map +1 -0
- package/migrations.json +5 -0
- package/package.json +1 -1
- package/src/components/Collapse/Collapse.d.ts +76 -8
- package/src/components/Collapse/Collapse.variants.d.ts +121 -87
- package/src/components/Collapse/utils/getInteractiveDescendant/getInteractiveDescendant.d.ts +5 -0
- package/src/components/Collapse/utils/isNativelyActivatable/isNativelyActivatable.d.ts +5 -0
- package/src/components/Tag/Tag.d.ts +9 -1
- package/src/components/buttons/Button/Button.d.ts +1 -1
- package/src/components/buttons/shared/ButtonProps.d.ts +11 -0
|
@@ -10,6 +10,10 @@ export interface ButtonCommonProps extends CommonProps, Styleable, AriaProps {
|
|
|
10
10
|
* An onClick handler
|
|
11
11
|
*/
|
|
12
12
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
13
|
+
/**
|
|
14
|
+
* A MouseDown handler function
|
|
15
|
+
*/
|
|
16
|
+
onMouseDown?: MouseEventHandler<HTMLButtonElement>;
|
|
13
17
|
/**
|
|
14
18
|
* A MouseEnter handler function
|
|
15
19
|
*/
|
|
@@ -22,6 +26,13 @@ export interface ButtonCommonProps extends CommonProps, Styleable, AriaProps {
|
|
|
22
26
|
* A Blur handler function
|
|
23
27
|
*/
|
|
24
28
|
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
29
|
+
/**
|
|
30
|
+
* Set `keepFocus` when the button belongs to an input, like a clear button in a search field,
|
|
31
|
+
* so clicking it doesn't move focus away. Keyboard focus and Tab order are unaffected.
|
|
32
|
+
*
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
keepFocus?: boolean;
|
|
25
36
|
/**
|
|
26
37
|
* Whether the button is loading.
|
|
27
38
|
*/
|