@instructure/ui-buttons 11.6.1-snapshot-135 → 11.7.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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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
- ## [11.6.1-snapshot-135](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.6.1-snapshot-135) (2026-03-18)
6
+ # [11.7.0](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.7.0) (2026-03-18)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -14,6 +14,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
14
14
  ### Features
15
15
 
16
16
  * **many:** add solution for using both old and new token system in the same app ([688a713](https://github.com/instructure/instructure-ui/commit/688a713ff715433bb085323dbad61285387c5141))
17
+ * **ui-buttons,ui-text-input:** add condensed sizes to IconButton and simplify TextInput afterElement ([49bd675](https://github.com/instructure/instructure-ui/commit/49bd675ad9d9e77bffeb1940888d33d6cc911c60))
17
18
  * **ui-buttons:** add v2 button components with new icon system and theming ([4f49e3e](https://github.com/instructure/instructure-ui/commit/4f49e3e27d8a44f566f2390f8bb8abf6d8ee745b))
18
19
 
19
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "11.6.1-snapshot-135",
3
+ "version": "11.7.0",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -16,28 +16,28 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
18
  "keycode": "^2",
19
- "@instructure/ui-a11y-content": "11.6.1-snapshot-135",
20
- "@instructure/console": "11.6.1-snapshot-135",
21
- "@instructure/shared-types": "11.6.1-snapshot-135",
22
- "@instructure/emotion": "11.6.1-snapshot-135",
23
- "@instructure/ui-a11y-utils": "11.6.1-snapshot-135",
24
- "@instructure/ui-icons": "11.6.1-snapshot-135",
25
- "@instructure/ui-position": "11.6.1-snapshot-135",
26
- "@instructure/ui-dom-utils": "11.6.1-snapshot-135",
27
- "@instructure/ui-tooltip": "11.6.1-snapshot-135",
28
- "@instructure/ui-react-utils": "11.6.1-snapshot-135",
29
- "@instructure/ui-utils": "11.6.1-snapshot-135",
30
- "@instructure/ui-color-utils": "11.6.1-snapshot-135",
31
- "@instructure/ui-view": "11.6.1-snapshot-135"
19
+ "@instructure/console": "11.7.0",
20
+ "@instructure/emotion": "11.7.0",
21
+ "@instructure/shared-types": "11.7.0",
22
+ "@instructure/ui-a11y-utils": "11.7.0",
23
+ "@instructure/ui-a11y-content": "11.7.0",
24
+ "@instructure/ui-color-utils": "11.7.0",
25
+ "@instructure/ui-dom-utils": "11.7.0",
26
+ "@instructure/ui-icons": "11.7.0",
27
+ "@instructure/ui-position": "11.7.0",
28
+ "@instructure/ui-tooltip": "11.7.0",
29
+ "@instructure/ui-react-utils": "11.7.0",
30
+ "@instructure/ui-utils": "11.7.0",
31
+ "@instructure/ui-view": "11.7.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@testing-library/jest-dom": "^6.6.3",
35
35
  "@testing-library/react": "15.0.7",
36
36
  "@testing-library/user-event": "^14.6.1",
37
37
  "vitest": "^3.2.2",
38
- "@instructure/ui-babel-preset": "11.6.1-snapshot-135",
39
- "@instructure/ui-axe-check": "11.6.1-snapshot-135",
40
- "@instructure/ui-themes": "11.6.1-snapshot-135"
38
+ "@instructure/ui-axe-check": "11.7.0",
39
+ "@instructure/ui-babel-preset": "11.7.0",
40
+ "@instructure/ui-themes": "11.7.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=18 <=19"
@@ -37,7 +37,7 @@ The `primary-inverse` color is designed for use on colored backgrounds. It provi
37
37
  ---
38
38
  type: example
39
39
  ---
40
- <View display="block" background="brand" padding="small">
40
+ <View display="block" background="info" padding="small">
41
41
  <Button color="primary-inverse" margin="small">Primary Inverse</Button>
42
42
  </View>
43
43
  ```
@@ -12,6 +12,52 @@ type: example
12
12
  <IconButton screenReaderLabel="Add User"><PlusInstUIIcon /></IconButton>
13
13
  ```
14
14
 
15
+ ### Sizes
16
+
17
+ ```js
18
+ ---
19
+ type: example
20
+ ---
21
+ <View display="block">
22
+ <IconButton size="small" screenReaderLabel="Add" margin="small"><PlusInstUIIcon /></IconButton>
23
+ <IconButton size="medium" screenReaderLabel="Add" margin="small"><PlusInstUIIcon /></IconButton>
24
+ <IconButton size="large" screenReaderLabel="Add" margin="small"><PlusInstUIIcon /></IconButton>
25
+ </View>
26
+ ```
27
+
28
+ There are also two condensed size variants for compact layouts: `condensedSmall` and `condensedMedium`. These are designed to be used inside other components, such as a [TextInput](TextInput).
29
+
30
+ ```js
31
+ ---
32
+ type: example
33
+ ---
34
+ const PasswordInput = () => {
35
+ const [showPassword, setShowPassword] = useState(false)
36
+
37
+ return (
38
+ <View as="div" maxWidth="20rem">
39
+ <TextInput
40
+ renderLabel="Password"
41
+ type={showPassword ? 'text' : 'password'}
42
+ renderAfterInput={
43
+ <IconButton
44
+ size="condensedMedium"
45
+ withBackground={false}
46
+ withBorder={false}
47
+ screenReaderLabel={showPassword ? 'Hide password' : 'Show password'}
48
+ onClick={() => setShowPassword(!showPassword)}
49
+ >
50
+ {showPassword ? <EyeOffInstUIIcon /> : <EyeInstUIIcon />}
51
+ </IconButton>
52
+ }
53
+ />
54
+ </View>
55
+ )
56
+ }
57
+
58
+ render(<PasswordInput />)
59
+ ```
60
+
15
61
  ### Accessibility
16
62
 
17
63
  Because the IconButton visually only renders an icon, a description is necessary for assistive technologies. The `screenReaderLabel` prop is required for this purpose, and should consist of a complete description of the action.
@@ -59,7 +59,7 @@ type IconButtonOwnProps = {
59
59
  /**
60
60
  * The size of the `IconButton`
61
61
  */
62
- size?: 'small' | 'medium' | 'large'
62
+ size?: 'small' | 'medium' | 'large' | 'condensedSmall' | 'condensedMedium'
63
63
 
64
64
  /**
65
65
  * Provides a reference to the `IconButton`'s underlying html element.
@@ -50,7 +50,7 @@ type: example
50
50
  <View
51
51
  as="div"
52
52
  padding="xx-large"
53
- background="primary-inverse"
53
+ background="info"
54
54
  id="inverseToggleContainer"
55
55
  >
56
56
  <ToggleButton