@instructure/ui-buttons 8.26.2 → 8.26.4-snapshot-3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.26.4-snapshot-3](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-3) (2022-07-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
12
+
13
+
14
+
15
+
16
+
17
+ ## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
18
+
19
+ **Note:** Version bump only for package @instructure/ui-buttons
20
+
6
21
  ## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11)
7
22
 
8
23
  **Note:** Version bump only for package @instructure/ui-buttons
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "8.26.2",
3
+ "version": "8.26.4-snapshot-3",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,33 +23,33 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.26.2",
27
- "@instructure/ui-test-locator": "8.26.2",
28
- "@instructure/ui-test-queries": "8.26.2",
29
- "@instructure/ui-test-utils": "8.26.2",
30
- "@instructure/ui-themes": "8.26.2"
26
+ "@instructure/ui-babel-preset": "8.26.4-snapshot-3",
27
+ "@instructure/ui-test-locator": "8.26.4-snapshot-3",
28
+ "@instructure/ui-test-queries": "8.26.4-snapshot-3",
29
+ "@instructure/ui-test-utils": "8.26.4-snapshot-3",
30
+ "@instructure/ui-themes": "8.26.4-snapshot-3"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/console": "8.26.2",
35
- "@instructure/emotion": "8.26.2",
36
- "@instructure/shared-types": "8.26.2",
37
- "@instructure/ui-a11y-content": "8.26.2",
38
- "@instructure/ui-a11y-utils": "8.26.2",
39
- "@instructure/ui-color-utils": "8.26.2",
40
- "@instructure/ui-dom-utils": "8.26.2",
41
- "@instructure/ui-icons": "8.26.2",
42
- "@instructure/ui-position": "8.26.2",
43
- "@instructure/ui-react-utils": "8.26.2",
44
- "@instructure/ui-testable": "8.26.2",
45
- "@instructure/ui-tooltip": "8.26.2",
46
- "@instructure/ui-utils": "8.26.2",
47
- "@instructure/ui-view": "8.26.2",
34
+ "@instructure/console": "8.26.4-snapshot-3",
35
+ "@instructure/emotion": "8.26.4-snapshot-3",
36
+ "@instructure/shared-types": "8.26.4-snapshot-3",
37
+ "@instructure/ui-a11y-content": "8.26.4-snapshot-3",
38
+ "@instructure/ui-a11y-utils": "8.26.4-snapshot-3",
39
+ "@instructure/ui-color-utils": "8.26.4-snapshot-3",
40
+ "@instructure/ui-dom-utils": "8.26.4-snapshot-3",
41
+ "@instructure/ui-icons": "8.26.4-snapshot-3",
42
+ "@instructure/ui-position": "8.26.4-snapshot-3",
43
+ "@instructure/ui-react-utils": "8.26.4-snapshot-3",
44
+ "@instructure/ui-testable": "8.26.4-snapshot-3",
45
+ "@instructure/ui-tooltip": "8.26.4-snapshot-3",
46
+ "@instructure/ui-utils": "8.26.4-snapshot-3",
47
+ "@instructure/ui-view": "8.26.4-snapshot-3",
48
48
  "keycode": "^2",
49
49
  "prop-types": "^15"
50
50
  },
51
51
  "peerDependencies": {
52
- "react": ">=16.8 <=17"
52
+ "react": ">=16.8 <=18"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
@@ -42,6 +42,7 @@ import type {
42
42
  } from '@instructure/shared-types'
43
43
  import type { Cursor } from '@instructure/ui-prop-types'
44
44
  import type { ViewProps } from '@instructure/ui-view'
45
+ import { Renderable } from '@instructure/shared-types'
45
46
 
46
47
  type BaseButtonOwnProps = {
47
48
  /**
@@ -149,7 +150,7 @@ type BaseButtonOwnProps = {
149
150
  /**
150
151
  * An icon, or function that returns an icon.
151
152
  */
152
- renderIcon?: React.ReactNode | (() => React.ReactNode)
153
+ renderIcon?: Renderable
153
154
 
154
155
  // Deprecated `string` tabIndex type
155
156
  /**
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React from 'react'
25
+ import React, { ReactNode } from 'react'
26
26
  import PropTypes from 'prop-types'
27
27
 
28
28
  import { ThemeablePropTypes } from '@instructure/emotion'
@@ -33,7 +33,8 @@ import type {
33
33
  AsElementType,
34
34
  PropValidators,
35
35
  BaseButtonTheme,
36
- OtherHTMLAttributes
36
+ OtherHTMLAttributes,
37
+ Renderable
37
38
  } from '@instructure/shared-types'
38
39
  import type { Cursor } from '@instructure/ui-prop-types'
39
40
  import type { ViewProps } from '@instructure/ui-view'
@@ -42,17 +43,17 @@ type IconButtonOwnProps = {
42
43
  /**
43
44
  * An icon, or function returning an icon (identical to the `renderIcon` prop).
44
45
  */
45
- children?: React.ReactNode | (() => React.ReactNode)
46
+ children?: Renderable
46
47
 
47
48
  /**
48
49
  * An icon, or function that returns an icon (identical to the `children` prop).
49
50
  */
50
- renderIcon?: React.ReactNode | (() => React.ReactNode)
51
+ renderIcon?: Renderable
51
52
 
52
53
  /**
53
54
  * An accessible label for the `IconButton`.
54
55
  */
55
- screenReaderLabel: string
56
+ screenReaderLabel: ReactNode
56
57
 
57
58
  /**
58
59
  * Specifies the type of the `IconButton`'s underlying html element.
@@ -38,6 +38,7 @@ import type {
38
38
  PositionMountNode
39
39
  } from '@instructure/ui-position'
40
40
  import type { ViewProps } from '@instructure/ui-view'
41
+ import { Renderable } from '@instructure/shared-types'
41
42
 
42
43
  type ToggleButtonOwnProps = {
43
44
  /**
@@ -53,7 +54,7 @@ type ToggleButtonOwnProps = {
53
54
  /**
54
55
  * An icon or function that returns an icon
55
56
  */
56
- renderIcon: React.ReactNode | (() => React.ReactNode)
57
+ renderIcon: Renderable
57
58
 
58
59
  /**
59
60
  * Toggles the `aria-pressed` attribute on the button (`true` if `pressed`; `false` if `unpressed`)