@instructure/ui-drilldown 11.7.2-snapshot-49 → 11.7.2-snapshot-50

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,16 +3,20 @@
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.2-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-49) (2026-04-16)
6
+ ## [11.7.2-snapshot-50](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-50) (2026-04-21)
7
7
 
8
8
 
9
9
  ### Features
10
10
 
11
+ * **many:** rework TopNavBar ([bf40e4f](https://github.com/instructure/instructure-ui/commit/bf40e4f380dce5edc45a0f0bc83d5a5070d3be2b))
11
12
  * **ui,ui-options,ui-drilldown:** rework Drilldown ([0562fe2](https://github.com/instructure/instructure-ui/commit/0562fe2b43e3235fc78c4981ada504c1a2f10d1a))
12
13
 
13
14
 
14
15
  ### BREAKING CHANGES
15
16
 
17
+ * **many:** contains breaking changes due to component using the new theming system
18
+
19
+ INSTUI-4967
16
20
  * **ui,ui-options,ui-drilldown:** contains breaking changes due to component using the new theming system
17
21
 
18
22
  INSTUI-4792
@@ -1037,12 +1037,20 @@ let Drilldown = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle),
1037
1037
  isSelected
1038
1038
  };
1039
1039
 
1040
- // we need to bind our own option props the render functions
1040
+ // Pre-fill drilldown option props into the render functions
1041
1041
  if (typeof optionProps.renderBeforeLabel === 'function' && !((_optionProps$renderBe = optionProps.renderBeforeLabel) !== null && _optionProps$renderBe !== void 0 && (_optionProps$renderBe2 = _optionProps$renderBe.prototype) !== null && _optionProps$renderBe2 !== void 0 && _optionProps$renderBe2.isReactComponent)) {
1042
- optionProps.renderBeforeLabel = optionProps.renderBeforeLabel.bind(null, renderLabelProps);
1042
+ const _fn = optionProps.renderBeforeLabel;
1043
+ const _props = renderLabelProps;
1044
+ optionProps.renderBeforeLabel = function DrilldownBeforeLabel(itemProps) {
1045
+ return _fn(_props, itemProps);
1046
+ };
1043
1047
  }
1044
1048
  if (typeof optionProps.renderAfterLabel === 'function' && !((_optionProps$renderAf = optionProps.renderAfterLabel) !== null && _optionProps$renderAf !== void 0 && (_optionProps$renderAf2 = _optionProps$renderAf.prototype) !== null && _optionProps$renderAf2 !== void 0 && _optionProps$renderAf2.isReactComponent)) {
1045
- optionProps.renderAfterLabel = optionProps.renderAfterLabel.bind(null, renderLabelProps);
1049
+ const _fn = optionProps.renderAfterLabel;
1050
+ const _props = renderLabelProps;
1051
+ optionProps.renderAfterLabel = function DrilldownAfterLabel(itemProps) {
1052
+ return _fn(_props, itemProps);
1053
+ };
1046
1054
  }
1047
1055
  const labelInfo = renderLabelInfo && callRenderProp(renderLabelInfo, renderLabelProps);
1048
1056
  const vAlignMap = {
@@ -27,7 +27,7 @@ var _DrilldownOption = require("./DrilldownOption");
27
27
  var _DrilldownGroup = require("./DrilldownGroup");
28
28
  var _DrilldownPage = require("./DrilldownPage");
29
29
  var _styles = _interopRequireDefault(require("./styles"));
30
- var _props = require("./props");
30
+ var _props2 = require("./props");
31
31
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
32
32
  var _react2 = require("@emotion/react");
33
33
  const _excluded = ["groupProps"],
@@ -1049,12 +1049,20 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
1049
1049
  isSelected
1050
1050
  };
1051
1051
 
1052
- // we need to bind our own option props the render functions
1052
+ // Pre-fill drilldown option props into the render functions
1053
1053
  if (typeof optionProps.renderBeforeLabel === 'function' && !((_optionProps$renderBe = optionProps.renderBeforeLabel) !== null && _optionProps$renderBe !== void 0 && (_optionProps$renderBe2 = _optionProps$renderBe.prototype) !== null && _optionProps$renderBe2 !== void 0 && _optionProps$renderBe2.isReactComponent)) {
1054
- optionProps.renderBeforeLabel = optionProps.renderBeforeLabel.bind(null, renderLabelProps);
1054
+ const _fn = optionProps.renderBeforeLabel;
1055
+ const _props = renderLabelProps;
1056
+ optionProps.renderBeforeLabel = function DrilldownBeforeLabel(itemProps) {
1057
+ return _fn(_props, itemProps);
1058
+ };
1055
1059
  }
1056
1060
  if (typeof optionProps.renderAfterLabel === 'function' && !((_optionProps$renderAf = optionProps.renderAfterLabel) !== null && _optionProps$renderAf !== void 0 && (_optionProps$renderAf2 = _optionProps$renderAf.prototype) !== null && _optionProps$renderAf2 !== void 0 && _optionProps$renderAf2.isReactComponent)) {
1057
- optionProps.renderAfterLabel = optionProps.renderAfterLabel.bind(null, renderLabelProps);
1061
+ const _fn = optionProps.renderAfterLabel;
1062
+ const _props = renderLabelProps;
1063
+ optionProps.renderAfterLabel = function DrilldownAfterLabel(itemProps) {
1064
+ return _fn(_props, itemProps);
1065
+ };
1058
1066
  }
1059
1067
  const labelInfo = renderLabelInfo && (0, _callRenderProp.callRenderProp)(renderLabelInfo, renderLabelProps);
1060
1068
  const vAlignMap = {
@@ -1349,7 +1357,7 @@ let Drilldown = exports.Drilldown = (_dec = (0, _withDeterministicId.withDetermi
1349
1357
  children: this.renderPage()
1350
1358
  }) : this.renderPage();
1351
1359
  }
1352
- }, _Drilldown.displayName = "Drilldown", _Drilldown.componentId = 'Drilldown', _Drilldown.allowedProps = _props.allowedProps, _Drilldown.defaultProps = {
1360
+ }, _Drilldown.displayName = "Drilldown", _Drilldown.componentId = 'Drilldown', _Drilldown.allowedProps = _props2.allowedProps, _Drilldown.defaultProps = {
1353
1361
  disabled: false,
1354
1362
  rotateFocus: true,
1355
1363
  as: 'ul',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-drilldown",
3
- "version": "11.7.2-snapshot-49",
3
+ "version": "11.7.2-snapshot-50",
4
4
  "description": "A drilldown menu component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,29 +15,29 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.27.6",
18
- "@instructure/console": "11.7.2-snapshot-49",
19
- "@instructure/ui-dom-utils": "11.7.2-snapshot-49",
20
- "@instructure/emotion": "11.7.2-snapshot-49",
21
- "@instructure/shared-types": "11.7.2-snapshot-49",
22
- "@instructure/ui-icons": "11.7.2-snapshot-49",
23
- "@instructure/ui-options": "11.7.2-snapshot-49",
24
- "@instructure/ui-popover": "11.7.2-snapshot-49",
25
- "@instructure/ui-react-utils": "11.7.2-snapshot-49",
26
- "@instructure/ui-position": "11.7.2-snapshot-49",
27
- "@instructure/ui-utils": "11.7.2-snapshot-49",
28
- "@instructure/ui-selectable": "11.7.2-snapshot-49",
29
- "@instructure/ui-view": "11.7.2-snapshot-49"
18
+ "@instructure/console": "11.7.2-snapshot-50",
19
+ "@instructure/shared-types": "11.7.2-snapshot-50",
20
+ "@instructure/ui-dom-utils": "11.7.2-snapshot-50",
21
+ "@instructure/ui-icons": "11.7.2-snapshot-50",
22
+ "@instructure/emotion": "11.7.2-snapshot-50",
23
+ "@instructure/ui-options": "11.7.2-snapshot-50",
24
+ "@instructure/ui-popover": "11.7.2-snapshot-50",
25
+ "@instructure/ui-position": "11.7.2-snapshot-50",
26
+ "@instructure/ui-selectable": "11.7.2-snapshot-50",
27
+ "@instructure/ui-react-utils": "11.7.2-snapshot-50",
28
+ "@instructure/ui-utils": "11.7.2-snapshot-50",
29
+ "@instructure/ui-view": "11.7.2-snapshot-50"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@testing-library/jest-dom": "^6.6.3",
33
33
  "@testing-library/react": "15.0.7",
34
34
  "@testing-library/user-event": "^14.6.1",
35
35
  "vitest": "^3.2.2",
36
- "@instructure/ui-axe-check": "11.7.2-snapshot-49",
37
- "@instructure/ui-babel-preset": "11.7.2-snapshot-49",
38
- "@instructure/ui-color-utils": "11.7.2-snapshot-49",
39
- "@instructure/ui-scripts": "11.7.2-snapshot-49",
40
- "@instructure/ui-themes": "11.7.2-snapshot-49"
36
+ "@instructure/ui-axe-check": "11.7.2-snapshot-50",
37
+ "@instructure/ui-babel-preset": "11.7.2-snapshot-50",
38
+ "@instructure/ui-color-utils": "11.7.2-snapshot-50",
39
+ "@instructure/ui-scripts": "11.7.2-snapshot-50",
40
+ "@instructure/ui-themes": "11.7.2-snapshot-50"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=18 <=19"
@@ -1307,22 +1307,36 @@ class Drilldown extends Component<DrilldownProps, DrilldownState> {
1307
1307
  isSelected
1308
1308
  }
1309
1309
 
1310
- // we need to bind our own option props the render functions
1310
+ // Pre-fill drilldown option props into the render functions
1311
1311
  if (
1312
1312
  typeof optionProps.renderBeforeLabel === 'function' &&
1313
1313
  !optionProps.renderBeforeLabel?.prototype?.isReactComponent
1314
1314
  ) {
1315
- optionProps.renderBeforeLabel = (
1316
- optionProps.renderBeforeLabel as (args: any) => ReactNode
1317
- ).bind(null, renderLabelProps)
1315
+ const _fn = optionProps.renderBeforeLabel as (
1316
+ drilldownProps: any,
1317
+ itemProps: any
1318
+ ) => ReactNode
1319
+ const _props = renderLabelProps
1320
+ optionProps.renderBeforeLabel = function DrilldownBeforeLabel(
1321
+ itemProps: any
1322
+ ) {
1323
+ return _fn(_props, itemProps)
1324
+ }
1318
1325
  }
1319
1326
  if (
1320
1327
  typeof optionProps.renderAfterLabel === 'function' &&
1321
1328
  !optionProps.renderAfterLabel?.prototype?.isReactComponent
1322
1329
  ) {
1323
- optionProps.renderAfterLabel = (
1324
- optionProps.renderAfterLabel as (args: any) => ReactNode
1325
- ).bind(null, renderLabelProps)
1330
+ const _fn = optionProps.renderAfterLabel as (
1331
+ drilldownProps: any,
1332
+ itemProps: any
1333
+ ) => ReactNode
1334
+ const _props = renderLabelProps
1335
+ optionProps.renderAfterLabel = function DrilldownAfterLabel(
1336
+ itemProps: any
1337
+ ) {
1338
+ return _fn(_props, itemProps)
1339
+ }
1326
1340
  }
1327
1341
 
1328
1342
  const labelInfo =