@instructure/ui-toggle-details 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/ToggleDetails/v2/props.js → babel.config.cjs} +12 -7
  4. package/es/ToggleDetails/v1/index.js +4 -4
  5. package/es/ToggleDetails/v2/index.js +3 -3
  6. package/es/ToggleGroup/v1/index.js +5 -4
  7. package/es/ToggleGroup/v2/index.js +3 -3
  8. package/es/exports/a.js +3 -2
  9. package/es/exports/b.js +3 -2
  10. package/package.json +18 -23
  11. package/src/ToggleDetails/v1/index.tsx +4 -3
  12. package/src/ToggleDetails/v2/index.tsx +3 -2
  13. package/src/ToggleGroup/v1/index.tsx +4 -3
  14. package/src/ToggleGroup/v2/index.tsx +3 -2
  15. package/src/exports/a.ts +2 -2
  16. package/src/exports/b.ts +2 -2
  17. package/tsconfig.build.tsbuildinfo +1 -1
  18. package/types/ToggleDetails/v1/index.d.ts +1 -0
  19. package/types/ToggleDetails/v1/index.d.ts.map +1 -1
  20. package/types/ToggleDetails/v2/index.d.ts +1 -0
  21. package/types/ToggleDetails/v2/index.d.ts.map +1 -1
  22. package/types/ToggleGroup/v1/index.d.ts +1 -0
  23. package/types/ToggleGroup/v1/index.d.ts.map +1 -1
  24. package/types/ToggleGroup/v2/index.d.ts +1 -0
  25. package/types/ToggleGroup/v2/index.d.ts.map +1 -1
  26. package/types/exports/a.d.ts +2 -2
  27. package/types/exports/a.d.ts.map +1 -1
  28. package/types/exports/b.d.ts +2 -2
  29. package/types/exports/b.d.ts.map +1 -1
  30. package/lib/ToggleDetails/v1/index.js +0 -184
  31. package/lib/ToggleDetails/v1/props.js +0 -31
  32. package/lib/ToggleDetails/v1/styles.js +0 -202
  33. package/lib/ToggleDetails/v1/theme.js +0 -81
  34. package/lib/ToggleDetails/v2/index.js +0 -187
  35. package/lib/ToggleDetails/v2/styles.js +0 -194
  36. package/lib/ToggleGroup/v1/index.js +0 -180
  37. package/lib/ToggleGroup/v1/props.js +0 -31
  38. package/lib/ToggleGroup/v1/styles.js +0 -46
  39. package/lib/ToggleGroup/v1/theme.js +0 -47
  40. package/lib/ToggleGroup/v2/index.js +0 -185
  41. package/lib/ToggleGroup/v2/props.js +0 -31
  42. package/lib/ToggleGroup/v2/styles.js +0 -46
  43. package/lib/exports/a.js +0 -19
  44. package/lib/exports/b.js +0 -19
  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-toggle-details
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 = ['variant', 'summary', 'expanded', 'defaultExpanded', 'onToggle', 'icon', 'iconExpanded', 'iconPosition', 'fluidWidth', 'children', 'size'];
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
+ }
@@ -30,9 +30,9 @@ import { Expandable } from '@instructure/ui-expandable';
30
30
  import { omitProps, pickProps } from '@instructure/ui-react-utils';
31
31
  import { isActiveElement } from '@instructure/ui-dom-utils';
32
32
  import { withStyle } from '@instructure/emotion';
33
- import generateStyle from "./styles.js";
34
- import generateComponentTheme from "./theme.js";
35
- import { allowedProps } from "./props.js";
33
+ import generateStyle from './styles.js';
34
+ import generateComponentTheme from './theme.js';
35
+ import { allowedProps } from './props.js';
36
36
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
37
37
  /**
38
38
  ---
@@ -40,7 +40,7 @@ category: components
40
40
  ---
41
41
  **/
42
42
  let ToggleDetails = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ToggleDetails extends Component {
43
- static displayName = "ToggleDetails";
43
+ static displayName = 'ToggleDetails';
44
44
  static componentId = 'ToggleDetails';
45
45
  static allowedProps = allowedProps;
46
46
  static defaultProps = {
@@ -30,8 +30,8 @@ import { Expandable } from '@instructure/ui-expandable';
30
30
  import { omitProps, pickProps } from '@instructure/ui-react-utils';
31
31
  import { isActiveElement } from '@instructure/ui-dom-utils';
32
32
  import { withStyleNew } from '@instructure/emotion';
33
- import generateStyle from "./styles.js";
34
- import { allowedProps } from "./props.js";
33
+ import generateStyle from './styles.js';
34
+ import { allowedProps } from './props.js';
35
35
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
36
36
  /**
37
37
  ---
@@ -39,7 +39,7 @@ category: components
39
39
  ---
40
40
  **/
41
41
  let ToggleDetails = (_dec = withStyleNew(generateStyle), _dec(_class = class ToggleDetails extends Component {
42
- static displayName = "ToggleDetails";
42
+ static displayName = 'ToggleDetails';
43
43
  static componentId = 'ToggleDetails';
44
44
  static allowedProps = allowedProps;
45
45
  static defaultProps = {
@@ -32,10 +32,11 @@ import { isActiveElement } from '@instructure/ui-dom-utils';
32
32
  import { Flex } from '@instructure/ui-flex/v11_6';
33
33
  import { View } from '@instructure/ui-view/v11_6';
34
34
  import { IconArrowOpenEndSolid, IconArrowOpenDownSolid } from '@instructure/ui-icons';
35
- import { allowedProps } from "./props.js";
35
+ import { allowedProps } from './props.js';
36
36
  import { withStyle } from '@instructure/emotion';
37
- import generateStyle from "./styles.js";
38
- import generateComponentTheme from "./theme.js";
37
+ import generateStyle from './styles.js';
38
+ import generateComponentTheme from './theme.js';
39
+
39
40
  /**
40
41
  ---
41
42
  category: components
@@ -43,7 +44,7 @@ category: components
43
44
  **/
44
45
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
45
46
  let ToggleGroup = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ToggleGroup extends Component {
46
- static displayName = "ToggleGroup";
47
+ static displayName = 'ToggleGroup';
47
48
  static componentId = 'ToggleGroup';
48
49
  static allowedProps = allowedProps;
49
50
  static defaultProps = {
@@ -32,9 +32,9 @@ import { isActiveElement } from '@instructure/ui-dom-utils';
32
32
  import { Flex } from '@instructure/ui-flex/latest';
33
33
  import { View } from '@instructure/ui-view/latest';
34
34
  import { ChevronRightInstUIIcon, ChevronDownInstUIIcon, renderIconWithProps } from '@instructure/ui-icons';
35
- import { allowedProps } from "./props.js";
35
+ import { allowedProps } from './props.js';
36
36
  import { withStyleNew } from '@instructure/emotion';
37
- import generateStyle from "./styles.js";
37
+ import generateStyle from './styles.js';
38
38
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
39
39
  const toggleGroupSizeToIconSize = {
40
40
  small: 'md',
@@ -48,7 +48,7 @@ category: components
48
48
  ---
49
49
  **/
50
50
  let ToggleGroup = (_dec = withStyleNew(generateStyle), _dec(_class = class ToggleGroup extends Component {
51
- static displayName = "ToggleGroup";
51
+ static displayName = 'ToggleGroup';
52
52
  static componentId = 'ToggleGroup';
53
53
  static allowedProps = allowedProps;
54
54
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,5 +21,6 @@
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 { ToggleDetails } from "../ToggleDetails/v1/index.js";
25
- export { ToggleGroup } from "../ToggleGroup/v1/index.js";
24
+
25
+ export { ToggleDetails } from '../ToggleDetails/v1/index.js';
26
+ export { ToggleGroup } from '../ToggleGroup/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,5 +21,6 @@
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 { ToggleDetails } from "../ToggleDetails/v2/index.js";
25
- export { ToggleGroup } from "../ToggleGroup/v2/index.js";
24
+
25
+ export { ToggleDetails } from '../ToggleDetails/v2/index.js';
26
+ export { ToggleGroup } from '../ToggleGroup/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-toggle-details",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "A styled toggleable, accordion-like component.",
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,27 +15,27 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.3",
19
- "@instructure/shared-types": "11.7.3",
20
- "@instructure/ui-dom-utils": "11.7.3",
21
- "@instructure/ui-expandable": "11.7.3",
22
- "@instructure/ui-buttons": "11.7.3",
23
- "@instructure/ui-flex": "11.7.3",
24
- "@instructure/ui-icons": "11.7.3",
25
- "@instructure/ui-motion": "11.7.3",
26
- "@instructure/ui-react-utils": "11.7.3",
27
- "@instructure/ui-themes": "11.7.3",
28
- "@instructure/ui-utils": "11.7.3",
29
- "@instructure/ui-view": "11.7.3",
30
- "@instructure/uid": "11.7.3"
18
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
19
+ "@instructure/ui-buttons": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-expandable": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/ui-flex": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-motion": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
29
+ "@instructure/uid": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.6.3",
34
34
  "@testing-library/react": "15.0.7",
35
35
  "@testing-library/user-event": "^14.6.1",
36
36
  "vitest": "^3.2.2",
37
- "@instructure/ui-axe-check": "11.7.3",
38
- "@instructure/ui-babel-preset": "11.7.3"
37
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
38
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=18 <=19"
@@ -45,7 +45,6 @@
45
45
  },
46
46
  "sideEffects": false,
47
47
  "exports": {
48
- "./lib/*": "./lib/*",
49
48
  "./es/*": "./es/*",
50
49
  "./types/*": "./types/*",
51
50
  "./package.json": "./package.json",
@@ -54,28 +53,24 @@
54
53
  "src": "./src/exports/a.ts",
55
54
  "types": "./types/exports/a.d.ts",
56
55
  "import": "./es/exports/a.js",
57
- "require": "./lib/exports/a.js",
58
56
  "default": "./es/exports/a.js"
59
57
  },
60
58
  "./v11_6": {
61
59
  "src": "./src/exports/a.ts",
62
60
  "types": "./types/exports/a.d.ts",
63
61
  "import": "./es/exports/a.js",
64
- "require": "./lib/exports/a.js",
65
62
  "default": "./es/exports/a.js"
66
63
  },
67
64
  "./v11_7": {
68
65
  "src": "./src/exports/b.ts",
69
66
  "types": "./types/exports/b.d.ts",
70
67
  "import": "./es/exports/b.js",
71
- "require": "./lib/exports/b.js",
72
68
  "default": "./es/exports/b.js"
73
69
  },
74
70
  "./latest": {
75
71
  "src": "./src/exports/b.ts",
76
72
  "types": "./types/exports/b.d.ts",
77
73
  "import": "./es/exports/b.js",
78
- "require": "./lib/exports/b.js",
79
74
  "default": "./es/exports/b.js"
80
75
  }
81
76
  },
@@ -83,7 +78,7 @@
83
78
  "lint": "ui-scripts lint",
84
79
  "lint:fix": "ui-scripts lint --fix",
85
80
  "clean": "ui-scripts clean",
86
- "build": "ui-scripts build --modules es,cjs",
81
+ "build": "ui-scripts build",
87
82
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
88
83
  "build:types": "tsc -p tsconfig.build.json",
89
84
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -33,10 +33,10 @@ import { omitProps, pickProps } from '@instructure/ui-react-utils'
33
33
  import { isActiveElement } from '@instructure/ui-dom-utils'
34
34
 
35
35
  import { withStyle } from '@instructure/emotion'
36
- import generateStyle from './styles'
37
- import generateComponentTheme from './theme'
36
+ import generateStyle from './styles.js'
37
+ import generateComponentTheme from './theme.js'
38
38
  import type { ToggleDetailsProps } from './props'
39
- import { allowedProps } from './props'
39
+ import { allowedProps } from './props.js'
40
40
  import type { ExpandableToggleProps } from '@instructure/ui-expandable'
41
41
  import type { ViewProps } from '@instructure/ui-view/v11_6'
42
42
 
@@ -47,6 +47,7 @@ category: components
47
47
  **/
48
48
  @withStyle(generateStyle, generateComponentTheme)
49
49
  class ToggleDetails extends Component<ToggleDetailsProps> {
50
+ static displayName = 'ToggleDetails'
50
51
  static readonly componentId = 'ToggleDetails'
51
52
  static allowedProps = allowedProps
52
53
 
@@ -33,9 +33,9 @@ import { omitProps, pickProps } from '@instructure/ui-react-utils'
33
33
  import { isActiveElement } from '@instructure/ui-dom-utils'
34
34
 
35
35
  import { withStyleNew } from '@instructure/emotion'
36
- import generateStyle from './styles'
36
+ import generateStyle from './styles.js'
37
37
  import type { ToggleDetailsProps } from './props'
38
- import { allowedProps } from './props'
38
+ import { allowedProps } from './props.js'
39
39
  import type { ExpandableToggleProps } from '@instructure/ui-expandable'
40
40
  import type { ViewProps } from '@instructure/ui-view/latest'
41
41
 
@@ -46,6 +46,7 @@ category: components
46
46
  **/
47
47
  @withStyleNew(generateStyle)
48
48
  class ToggleDetails extends Component<ToggleDetailsProps> {
49
+ static displayName = 'ToggleDetails'
49
50
  static readonly componentId = 'ToggleDetails'
50
51
  static allowedProps = allowedProps
51
52
 
@@ -42,12 +42,12 @@ import {
42
42
  IconArrowOpenDownSolid
43
43
  } from '@instructure/ui-icons'
44
44
  import type { ToggleGroupProps } from './props'
45
- import { allowedProps } from './props'
45
+ import { allowedProps } from './props.js'
46
46
 
47
47
  import { withStyle } from '@instructure/emotion'
48
48
 
49
- import generateStyle from './styles'
50
- import generateComponentTheme from './theme'
49
+ import generateStyle from './styles.js'
50
+ import generateComponentTheme from './theme.js'
51
51
 
52
52
  /**
53
53
  ---
@@ -56,6 +56,7 @@ category: components
56
56
  **/
57
57
  @withStyle(generateStyle, generateComponentTheme)
58
58
  class ToggleGroup extends Component<ToggleGroupProps> {
59
+ static displayName = 'ToggleGroup'
59
60
  static readonly componentId = 'ToggleGroup'
60
61
 
61
62
  static allowedProps = allowedProps
@@ -42,11 +42,11 @@ import {
42
42
  renderIconWithProps
43
43
  } from '@instructure/ui-icons'
44
44
  import type { ToggleGroupProps } from './props'
45
- import { allowedProps } from './props'
45
+ import { allowedProps } from './props.js'
46
46
 
47
47
  import { withStyleNew } from '@instructure/emotion'
48
48
 
49
- import generateStyle from './styles'
49
+ import generateStyle from './styles.js'
50
50
 
51
51
  const toggleGroupSizeToIconSize = {
52
52
  small: 'md',
@@ -61,6 +61,7 @@ category: components
61
61
  **/
62
62
  @withStyleNew(generateStyle)
63
63
  class ToggleGroup extends Component<ToggleGroupProps> {
64
+ static displayName = 'ToggleGroup'
64
65
  static readonly componentId = 'ToggleGroup'
65
66
 
66
67
  static allowedProps = allowedProps
package/src/exports/a.ts CHANGED
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { ToggleDetails } from '../ToggleDetails/v1'
26
- export { ToggleGroup } from '../ToggleGroup/v1'
25
+ export { ToggleDetails } from '../ToggleDetails/v1/index.js'
26
+ export { ToggleGroup } from '../ToggleGroup/v1/index.js'
27
27
 
28
28
  export type { ToggleDetailsProps } from '../ToggleDetails/v1/props'
29
29
  export type { ToggleGroupProps } from '../ToggleGroup/v1/props'
package/src/exports/b.ts CHANGED
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { ToggleDetails } from '../ToggleDetails/v2'
26
- export { ToggleGroup } from '../ToggleGroup/v2'
25
+ export { ToggleDetails } from '../ToggleDetails/v2/index.js'
26
+ export { ToggleGroup } from '../ToggleGroup/v2/index.js'
27
27
 
28
28
  export type { ToggleDetailsProps } from '../ToggleDetails/v2/props'
29
29
  export type { ToggleGroupProps } from '../ToggleGroup/v2/props'