@instructure/ui-side-nav-bar 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/SideNavBar/v1/props.js → babel.config.cjs} +12 -7
  4. package/es/SideNavBar/v1/SideNavBarItem/index.js +5 -4
  5. package/es/SideNavBar/v1/index.js +5 -5
  6. package/es/SideNavBar/v2/SideNavBarItem/index.js +4 -3
  7. package/es/SideNavBar/v2/index.js +4 -4
  8. package/es/exports/a.js +2 -1
  9. package/es/exports/b.js +2 -1
  10. package/package.json +16 -21
  11. package/src/SideNavBar/v1/SideNavBarItem/index.tsx +4 -3
  12. package/src/SideNavBar/v1/index.tsx +5 -4
  13. package/src/SideNavBar/v2/SideNavBarItem/index.tsx +3 -2
  14. package/src/SideNavBar/v2/index.tsx +4 -3
  15. package/src/exports/a.ts +1 -1
  16. package/src/exports/b.ts +1 -1
  17. package/tsconfig.build.tsbuildinfo +1 -1
  18. package/types/SideNavBar/v1/SideNavBarItem/index.d.ts +1 -0
  19. package/types/SideNavBar/v1/SideNavBarItem/index.d.ts.map +1 -1
  20. package/types/SideNavBar/v1/index.d.ts +2 -1
  21. package/types/SideNavBar/v1/index.d.ts.map +1 -1
  22. package/types/SideNavBar/v2/SideNavBarItem/index.d.ts +1 -0
  23. package/types/SideNavBar/v2/SideNavBarItem/index.d.ts.map +1 -1
  24. package/types/SideNavBar/v2/index.d.ts +2 -1
  25. package/types/SideNavBar/v2/index.d.ts.map +1 -1
  26. package/types/exports/a.d.ts +1 -1
  27. package/types/exports/a.d.ts.map +1 -1
  28. package/types/exports/b.d.ts +1 -1
  29. package/types/exports/b.d.ts.map +1 -1
  30. package/lib/SideNavBar/v1/SideNavBarItem/index.js +0 -118
  31. package/lib/SideNavBar/v1/SideNavBarItem/props.js +0 -31
  32. package/lib/SideNavBar/v1/SideNavBarItem/styles.js +0 -106
  33. package/lib/SideNavBar/v1/SideNavBarItem/theme.js +0 -80
  34. package/lib/SideNavBar/v1/index.js +0 -151
  35. package/lib/SideNavBar/v1/styles.js +0 -83
  36. package/lib/SideNavBar/v1/theme.js +0 -69
  37. package/lib/SideNavBar/v2/SideNavBarItem/index.js +0 -117
  38. package/lib/SideNavBar/v2/SideNavBarItem/props.js +0 -31
  39. package/lib/SideNavBar/v2/SideNavBarItem/styles.js +0 -109
  40. package/lib/SideNavBar/v2/index.js +0 -152
  41. package/lib/SideNavBar/v2/props.js +0 -31
  42. package/lib/SideNavBar/v2/styles.js +0 -102
  43. package/lib/exports/a.js +0 -18
  44. package/lib/exports/b.js +0 -18
  45. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-side-nav-bar
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['children', 'minimized', 'defaultMinimized', 'onMinimized', 'label', 'toggleLabel', 'href', 'onClick'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -28,9 +28,10 @@ import { omitProps, getElementType } from '@instructure/ui-react-utils';
28
28
  import { Tooltip } from '@instructure/ui-tooltip/v11_6';
29
29
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
30
30
  import { withStyle } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import generateComponentTheme from "./theme.js";
33
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import generateComponentTheme from './theme.js';
33
+ import { allowedProps } from './props.js';
34
+
34
35
  /**
35
36
  ---
36
37
  parent: SideNavBar
@@ -39,7 +40,7 @@ id: SideNavBar.Item
39
40
  **/
40
41
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
41
42
  let SideNavBarItem = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class SideNavBarItem extends Component {
42
- static displayName = "SideNavBarItem";
43
+ static displayName = 'SideNavBarItem';
43
44
  static componentId = 'SideNavBar.Item';
44
45
  static allowedProps = allowedProps;
45
46
  static defaultProps = {
@@ -27,10 +27,10 @@ import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
27
27
  import { IconMoveStartLine } from '@instructure/ui-icons';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { withStyle } from '@instructure/emotion';
30
- import { SideNavBarItem } from "./SideNavBarItem/index.js";
31
- import generateStyle from "./styles.js";
32
- import generateComponentTheme from "./theme.js";
33
- import { allowedProps } from "./props.js";
30
+ import { SideNavBarItem } from './SideNavBarItem/index.js';
31
+ import generateStyle from './styles.js';
32
+ import generateComponentTheme from './theme.js';
33
+ import { allowedProps } from './props.js';
34
34
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
35
35
  const navMinimized = ({
36
36
  minimized
@@ -44,7 +44,7 @@ category: components
44
44
  ---
45
45
  **/
46
46
  let SideNavBar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class SideNavBar extends Component {
47
- static displayName = "SideNavBar";
47
+ static displayName = 'SideNavBar';
48
48
  static componentId = 'SideNavBar';
49
49
  static allowedProps = allowedProps;
50
50
  static defaultProps = {
@@ -28,8 +28,9 @@ import { omitProps, getElementType } from '@instructure/ui-react-utils';
28
28
  import { Tooltip } from '@instructure/ui-tooltip/latest';
29
29
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
30
30
  import { withStyleNew } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
+
33
34
  /**
34
35
  ---
35
36
  parent: SideNavBar
@@ -38,7 +39,7 @@ id: SideNavBar.Item
38
39
  **/
39
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
40
41
  let SideNavBarItem = (_dec = withStyleNew(generateStyle, 'SideNavBarItem'), _dec(_class = class SideNavBarItem extends Component {
41
- static displayName = "SideNavBarItem";
42
+ static displayName = 'SideNavBarItem';
42
43
  static componentId = 'SideNavBar.Item';
43
44
  static allowedProps = allowedProps;
44
45
  static defaultProps = {
@@ -27,9 +27,9 @@ import { omitProps, safeCloneElement } from '@instructure/ui-react-utils';
27
27
  import { PanelLeftCloseInstUIIcon, PanelLeftOpenInstUIIcon, renderIconWithProps } from '@instructure/ui-icons';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { withStyleNew } from '@instructure/emotion';
30
- import { SideNavBarItem } from "./SideNavBarItem/index.js";
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
30
+ import { SideNavBarItem } from './SideNavBarItem/index.js';
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
34
34
  const navMinimized = ({
35
35
  minimized
@@ -43,7 +43,7 @@ category: components
43
43
  ---
44
44
  **/
45
45
  let SideNavBar = (_dec = withStyleNew(generateStyle), _dec(_class = class SideNavBar extends Component {
46
- static displayName = "SideNavBar";
46
+ static displayName = 'SideNavBar';
47
47
  static componentId = 'SideNavBar';
48
48
  static allowedProps = allowedProps;
49
49
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { SideNavBar, SideNavBarItem } from "../SideNavBar/v1/index.js";
24
+
25
+ export { SideNavBar, SideNavBarItem } from '../SideNavBar/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { SideNavBar, SideNavBarItem } from "../SideNavBar/v2/index.js";
24
+
25
+ export { SideNavBar, SideNavBarItem } from '../SideNavBar/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-side-nav-bar",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "Main and application level navigational components",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -15,25 +15,25 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.3",
19
- "@instructure/ui-a11y-content": "11.7.3",
20
- "@instructure/ui-a11y-utils": "11.7.3",
21
- "@instructure/debounce": "11.7.3",
22
- "@instructure/shared-types": "11.7.3",
23
- "@instructure/ui-badge": "11.7.3",
24
- "@instructure/ui-icons": "11.7.3",
25
- "@instructure/ui-react-utils": "11.7.3",
26
- "@instructure/ui-tooltip": "11.7.3",
27
- "@instructure/ui-themes": "11.7.3"
18
+ "@instructure/debounce": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-a11y-utils": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-badge": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-tooltip": "11.7.4-pr-snapshot-1781695314229"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.6.3",
31
31
  "@testing-library/react": "15.0.7",
32
32
  "@testing-library/user-event": "^14.6.1",
33
33
  "vitest": "^3.2.2",
34
- "@instructure/ui-axe-check": "11.7.3",
35
- "@instructure/ui-babel-preset": "11.7.3",
36
- "@instructure/ui-color-utils": "11.7.3"
34
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
35
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
36
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=18 <=19"
@@ -43,7 +43,6 @@
43
43
  },
44
44
  "sideEffects": false,
45
45
  "exports": {
46
- "./lib/*": "./lib/*",
47
46
  "./es/*": "./es/*",
48
47
  "./types/*": "./types/*",
49
48
  "./package.json": "./package.json",
@@ -52,28 +51,24 @@
52
51
  "src": "./src/exports/a.ts",
53
52
  "types": "./types/exports/a.d.ts",
54
53
  "import": "./es/exports/a.js",
55
- "require": "./lib/exports/a.js",
56
54
  "default": "./es/exports/a.js"
57
55
  },
58
56
  "./v11_6": {
59
57
  "src": "./src/exports/a.ts",
60
58
  "types": "./types/exports/a.d.ts",
61
59
  "import": "./es/exports/a.js",
62
- "require": "./lib/exports/a.js",
63
60
  "default": "./es/exports/a.js"
64
61
  },
65
62
  "./v11_7": {
66
63
  "src": "./src/exports/b.ts",
67
64
  "types": "./types/exports/b.d.ts",
68
65
  "import": "./es/exports/b.js",
69
- "require": "./lib/exports/b.js",
70
66
  "default": "./es/exports/b.js"
71
67
  },
72
68
  "./latest": {
73
69
  "src": "./src/exports/b.ts",
74
70
  "types": "./types/exports/b.d.ts",
75
71
  "import": "./es/exports/b.js",
76
- "require": "./lib/exports/b.js",
77
72
  "default": "./es/exports/b.js"
78
73
  }
79
74
  },
@@ -81,7 +76,7 @@
81
76
  "lint": "ui-scripts lint",
82
77
  "lint:fix": "ui-scripts lint --fix",
83
78
  "clean": "ui-scripts clean",
84
- "build": "ui-scripts build --modules es,cjs",
79
+ "build": "ui-scripts build",
85
80
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
86
81
  "build:types": "tsc -p tsconfig.build.json",
87
82
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -29,10 +29,10 @@ import { Tooltip } from '@instructure/ui-tooltip/v11_6'
29
29
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
30
30
  import { withStyle } from '@instructure/emotion'
31
31
 
32
- import generateStyle from './styles'
33
- import generateComponentTheme from './theme'
32
+ import generateStyle from './styles.js'
33
+ import generateComponentTheme from './theme.js'
34
34
  import type { SideNavBarItemProps } from './props'
35
- import { allowedProps } from './props'
35
+ import { allowedProps } from './props.js'
36
36
 
37
37
  /**
38
38
  ---
@@ -42,6 +42,7 @@ id: SideNavBar.Item
42
42
  **/
43
43
  @withStyle(generateStyle, generateComponentTheme)
44
44
  class SideNavBarItem extends Component<SideNavBarItemProps> {
45
+ static displayName = 'SideNavBarItem'
45
46
  static readonly componentId = 'SideNavBar.Item'
46
47
 
47
48
  static allowedProps = allowedProps
@@ -28,12 +28,12 @@ import { IconMoveStartLine } from '@instructure/ui-icons'
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content'
29
29
  import { withStyle } from '@instructure/emotion'
30
30
 
31
- import { SideNavBarItem } from './SideNavBarItem'
31
+ import { SideNavBarItem } from './SideNavBarItem/index.js'
32
32
 
33
- import generateStyle from './styles'
34
- import generateComponentTheme from './theme'
33
+ import generateStyle from './styles.js'
34
+ import generateComponentTheme from './theme.js'
35
35
  import type { SideNavBarProps, SideNavBarState } from './props'
36
- import { allowedProps } from './props'
36
+ import { allowedProps } from './props.js'
37
37
 
38
38
  const navMinimized = ({ minimized }: { minimized: boolean }) => ({
39
39
  minimized: !minimized
@@ -46,6 +46,7 @@ category: components
46
46
  **/
47
47
  @withStyle(generateStyle, generateComponentTheme)
48
48
  class SideNavBar extends Component<SideNavBarProps, SideNavBarState> {
49
+ static displayName = 'SideNavBar'
49
50
  static readonly componentId = 'SideNavBar'
50
51
 
51
52
  static allowedProps = allowedProps
@@ -29,9 +29,9 @@ import { Tooltip } from '@instructure/ui-tooltip/latest'
29
29
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils'
30
30
  import { withStyleNew } from '@instructure/emotion'
31
31
 
32
- import generateStyle from './styles'
32
+ import generateStyle from './styles.js'
33
33
  import type { SideNavBarItemProps } from './props'
34
- import { allowedProps } from './props'
34
+ import { allowedProps } from './props.js'
35
35
 
36
36
  /**
37
37
  ---
@@ -41,6 +41,7 @@ id: SideNavBar.Item
41
41
  **/
42
42
  @withStyleNew(generateStyle, 'SideNavBarItem')
43
43
  class SideNavBarItem extends Component<SideNavBarItemProps> {
44
+ static displayName = 'SideNavBarItem'
44
45
  static readonly componentId = 'SideNavBar.Item'
45
46
 
46
47
  static allowedProps = allowedProps
@@ -32,11 +32,11 @@ import {
32
32
  import { ScreenReaderContent } from '@instructure/ui-a11y-content'
33
33
  import { withStyleNew } from '@instructure/emotion'
34
34
 
35
- import { SideNavBarItem } from './SideNavBarItem'
35
+ import { SideNavBarItem } from './SideNavBarItem/index.js'
36
36
 
37
- import generateStyle from './styles'
37
+ import generateStyle from './styles.js'
38
38
  import type { SideNavBarProps, SideNavBarState } from './props'
39
- import { allowedProps } from './props'
39
+ import { allowedProps } from './props.js'
40
40
 
41
41
  const navMinimized = ({ minimized }: { minimized: boolean }) => ({
42
42
  minimized: !minimized
@@ -49,6 +49,7 @@ category: components
49
49
  **/
50
50
  @withStyleNew(generateStyle)
51
51
  class SideNavBar extends Component<SideNavBarProps, SideNavBarState> {
52
+ static displayName = 'SideNavBar'
52
53
  static readonly componentId = 'SideNavBar'
53
54
 
54
55
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { SideNavBar, SideNavBarItem } from '../SideNavBar/v1'
25
+ export { SideNavBar, SideNavBarItem } from '../SideNavBar/v1/index.js'
26
26
 
27
27
  export type { SideNavBarProps } from '../SideNavBar/v1/props'
28
28
  export type { SideNavBarItemProps } from '../SideNavBar/v1/SideNavBarItem/props'
package/src/exports/b.ts CHANGED
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { SideNavBar, SideNavBarItem } from '../SideNavBar/v2'
25
+ export { SideNavBar, SideNavBarItem } from '../SideNavBar/v2/index.js'
26
26
 
27
27
  export type { SideNavBarProps } from '../SideNavBar/v2/props'
28
28
  export type { SideNavBarItemProps } from '../SideNavBar/v2/SideNavBarItem/props'