@instructure/ui-toggle-details 11.7.4-snapshot-126 → 11.7.4-snapshot-128

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,12 @@
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-snapshot-126](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-126) (2026-07-22)
6
+ ## [11.7.4-snapshot-128](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-128) (2026-07-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **many:** import cross-package deps from /latest in v2 components ([7ff3718](https://github.com/instructure/instructure-ui/commit/7ff3718be3f26188afd5027f4ebdbaf21bcdb1d4))
7
12
 
8
13
 
9
14
  ### Features
@@ -26,7 +26,7 @@ var _dec, _class;
26
26
  import { Component, createRef } from 'react';
27
27
  import { Button } from '@instructure/ui-buttons/latest';
28
28
  import { ChevronRightInstUIIcon, ChevronDownInstUIIcon } from '@instructure/ui-icons';
29
- import { Expandable } from '@instructure/ui-expandable';
29
+ import { Expandable } from '@instructure/ui-expandable/latest';
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';
@@ -27,7 +27,7 @@ import { Component } from 'react';
27
27
  import { omitProps, pickProps, getElementType } from '@instructure/ui-react-utils';
28
28
  import { IconButton } from '@instructure/ui-buttons/latest';
29
29
  import { Transition } from '@instructure/ui-motion';
30
- import { Expandable } from '@instructure/ui-expandable';
30
+ import { Expandable } from '@instructure/ui-expandable/latest';
31
31
  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';
@@ -8,7 +8,7 @@ exports.default = exports.ToggleDetails = void 0;
8
8
  var _react = require("react");
9
9
  var _latest = require("@instructure/ui-buttons/latest");
10
10
  var _uiIcons = require("@instructure/ui-icons");
11
- var _uiExpandable = require("@instructure/ui-expandable");
11
+ var _latest2 = require("@instructure/ui-expandable/latest");
12
12
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
13
13
  var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
14
14
  var _isActiveElement = require("@instructure/ui-dom-utils/lib/isActiveElement.js");
@@ -166,8 +166,8 @@ let ToggleDetails = exports.ToggleDetails = (_dec = (0, _emotion.withStyleNew)(_
166
166
  }
167
167
  };
168
168
  render() {
169
- return (0, _jsxRuntime.jsx)(_uiExpandable.Expandable, {
170
- ...(0, _pickProps.pickProps)(this.props, _uiExpandable.Expandable.allowedProps),
169
+ return (0, _jsxRuntime.jsx)(_latest2.Expandable, {
170
+ ...(0, _pickProps.pickProps)(this.props, _latest2.Expandable.allowedProps),
171
171
  onToggle: this.handleToggle,
172
172
  children: ({
173
173
  expanded,
@@ -11,10 +11,10 @@ var _pickProps = require("@instructure/ui-react-utils/lib/pickProps.js");
11
11
  var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js");
12
12
  var _latest = require("@instructure/ui-buttons/latest");
13
13
  var _Transition = require("@instructure/ui-motion/lib/Transition");
14
- var _uiExpandable = require("@instructure/ui-expandable");
14
+ var _latest2 = require("@instructure/ui-expandable/latest");
15
15
  var _isActiveElement = require("@instructure/ui-dom-utils/lib/isActiveElement.js");
16
- var _latest2 = require("@instructure/ui-flex/latest");
17
- var _latest3 = require("@instructure/ui-view/latest");
16
+ var _latest3 = require("@instructure/ui-flex/latest");
17
+ var _latest4 = require("@instructure/ui-view/latest");
18
18
  var _uiIcons = require("@instructure/ui-icons");
19
19
  var _props = require("./props.js");
20
20
  var _emotion = require("@instructure/emotion");
@@ -129,7 +129,7 @@ let ToggleGroup = exports.ToggleGroup = (_dec = (0, _emotion.withStyleNew)(_styl
129
129
  const {
130
130
  styles
131
131
  } = this.props;
132
- return (0, _jsxRuntime.jsx)(_latest3.View, {
132
+ return (0, _jsxRuntime.jsx)(_latest4.View, {
133
133
  ...detailsProps,
134
134
  display: "block",
135
135
  borderWidth: "small none none none",
@@ -147,14 +147,14 @@ let ToggleGroup = exports.ToggleGroup = (_dec = (0, _emotion.withStyleNew)(_styl
147
147
  const {
148
148
  styles
149
149
  } = this.props;
150
- return (0, _jsxRuntime.jsx)(_uiExpandable.Expandable, {
151
- ...(0, _pickProps.pickProps)(this.props, _uiExpandable.Expandable.allowedProps),
150
+ return (0, _jsxRuntime.jsx)(_latest2.Expandable, {
151
+ ...(0, _pickProps.pickProps)(this.props, _latest2.Expandable.allowedProps),
152
152
  children: ({
153
153
  expanded,
154
154
  getToggleProps,
155
155
  getDetailsProps
156
156
  }) => {
157
- return (0, _jsxRuntime.jsxs)(_latest3.View, {
157
+ return (0, _jsxRuntime.jsxs)(_latest4.View, {
158
158
  ...(0, _omitProps.omitProps)(this.props, ToggleGroup.allowedProps),
159
159
  borderWidth: this.props.border ? 'small' : 'none',
160
160
  as: Element,
@@ -164,11 +164,11 @@ let ToggleGroup = exports.ToggleGroup = (_dec = (0, _emotion.withStyleNew)(_styl
164
164
  background: "primary",
165
165
  borderColor: styles?.borderColor,
166
166
  "data-cid": "ToggleGroup",
167
- children: [(0, _jsxRuntime.jsxs)(_latest2.Flex, {
167
+ children: [(0, _jsxRuntime.jsxs)(_latest3.Flex, {
168
168
  padding: this.props.size === 'small' ? 'x-small' : 'small small small x-small',
169
- children: [(0, _jsxRuntime.jsx)(_latest2.Flex.Item, {
169
+ children: [(0, _jsxRuntime.jsx)(_latest3.Flex.Item, {
170
170
  children: this.renderToggle(getToggleProps(), expanded)
171
- }), (0, _jsxRuntime.jsx)(_latest2.Flex.Item, {
171
+ }), (0, _jsxRuntime.jsx)(_latest3.Flex.Item, {
172
172
  shouldGrow: true,
173
173
  shouldShrink: true,
174
174
  padding: "0 0 0 x-small",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-toggle-details",
3
- "version": "11.7.4-snapshot-126",
3
+ "version": "11.7.4-snapshot-128",
4
4
  "description": "A styled toggleable, accordion-like component.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,27 +15,27 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/emotion": "11.7.4-snapshot-126",
19
- "@instructure/ui-buttons": "11.7.4-snapshot-126",
20
- "@instructure/shared-types": "11.7.4-snapshot-126",
21
- "@instructure/ui-expandable": "11.7.4-snapshot-126",
22
- "@instructure/ui-dom-utils": "11.7.4-snapshot-126",
23
- "@instructure/ui-flex": "11.7.4-snapshot-126",
24
- "@instructure/ui-icons": "11.7.4-snapshot-126",
25
- "@instructure/ui-motion": "11.7.4-snapshot-126",
26
- "@instructure/ui-react-utils": "11.7.4-snapshot-126",
27
- "@instructure/ui-themes": "11.7.4-snapshot-126",
28
- "@instructure/ui-utils": "11.7.4-snapshot-126",
29
- "@instructure/uid": "11.7.4-snapshot-126",
30
- "@instructure/ui-view": "11.7.4-snapshot-126"
18
+ "@instructure/shared-types": "11.7.4-snapshot-128",
19
+ "@instructure/emotion": "11.7.4-snapshot-128",
20
+ "@instructure/ui-buttons": "11.7.4-snapshot-128",
21
+ "@instructure/ui-dom-utils": "11.7.4-snapshot-128",
22
+ "@instructure/ui-expandable": "11.7.4-snapshot-128",
23
+ "@instructure/ui-flex": "11.7.4-snapshot-128",
24
+ "@instructure/ui-motion": "11.7.4-snapshot-128",
25
+ "@instructure/ui-react-utils": "11.7.4-snapshot-128",
26
+ "@instructure/ui-utils": "11.7.4-snapshot-128",
27
+ "@instructure/ui-themes": "11.7.4-snapshot-128",
28
+ "@instructure/uid": "11.7.4-snapshot-128",
29
+ "@instructure/ui-icons": "11.7.4-snapshot-128",
30
+ "@instructure/ui-view": "11.7.4-snapshot-128"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.9.1",
34
34
  "@testing-library/react": "16.3.2",
35
35
  "@testing-library/user-event": "^14.6.1",
36
36
  "vitest": "^4.1.9",
37
- "@instructure/ui-axe-check": "11.7.4-snapshot-126",
38
- "@instructure/ui-babel-preset": "11.7.4-snapshot-126"
37
+ "@instructure/ui-axe-check": "11.7.4-snapshot-128",
38
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-128"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=18 <=19"
@@ -28,7 +28,7 @@ import {
28
28
  ChevronRightInstUIIcon,
29
29
  ChevronDownInstUIIcon
30
30
  } from '@instructure/ui-icons'
31
- import { Expandable } from '@instructure/ui-expandable'
31
+ import { Expandable } from '@instructure/ui-expandable/latest'
32
32
  import { omitProps, pickProps } from '@instructure/ui-react-utils'
33
33
  import { isActiveElement } from '@instructure/ui-dom-utils'
34
34
 
@@ -36,7 +36,7 @@ import { withStyleNew } from '@instructure/emotion'
36
36
  import generateStyle from './styles.js'
37
37
  import type { ToggleDetailsProps } from './props'
38
38
  import { allowedProps } from './props.js'
39
- import type { ExpandableToggleProps } from '@instructure/ui-expandable'
39
+ import type { ExpandableToggleProps } from '@instructure/ui-expandable/latest'
40
40
  import type { ViewProps } from '@instructure/ui-view/latest'
41
41
 
42
42
  /**
@@ -31,8 +31,8 @@ import {
31
31
  } from '@instructure/ui-react-utils'
32
32
  import { IconButton } from '@instructure/ui-buttons/latest'
33
33
  import { Transition } from '@instructure/ui-motion'
34
- import { Expandable } from '@instructure/ui-expandable'
35
- import type { ExpandableToggleProps } from '@instructure/ui-expandable'
34
+ import { Expandable } from '@instructure/ui-expandable/latest'
35
+ import type { ExpandableToggleProps } from '@instructure/ui-expandable/latest'
36
36
  import { isActiveElement } from '@instructure/ui-dom-utils'
37
37
  import { Flex } from '@instructure/ui-flex/latest'
38
38
  import { View } from '@instructure/ui-view/latest'