@instructure/ui-icons 11.7.4-snapshot-11 → 11.7.4-snapshot-49
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 +1 -1
- package/LICENSE.md +1 -0
- package/es/IconPropsProvider/IconPropsProvider.js +2 -1
- package/es/IconPropsProvider/index.js +5 -4
- package/es/IconPropsProvider/renderIconWithProps.js +1 -1
- package/es/IconPropsProvider/useIconProps.js +1 -1
- package/es/custom/wrapCustomIcon.js +3 -2
- package/es/index.js +16 -6
- package/es/lucide/wrapLucideIcon.js +3 -2
- package/lib/IconPropsProvider/IconPropsProvider.js +1 -1
- package/lib/IconPropsProvider/index.js +4 -4
- package/lib/IconPropsProvider/renderIconWithProps.js +1 -1
- package/lib/IconPropsProvider/useIconProps.js +1 -1
- package/lib/custom/wrapCustomIcon.js +3 -3
- package/lib/index.js +8 -8
- package/lib/lucide/wrapLucideIcon.js +3 -3
- package/package.json +8 -8
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/IconPropsProvider/index.d.ts +4 -4
- package/types/IconPropsProvider/index.d.ts.map +1 -1
- package/types/IconPropsProvider/renderIconWithProps.d.ts +1 -1
- package/types/IconPropsProvider/renderIconWithProps.d.ts.map +1 -1
- package/types/IconPropsProvider/useIconProps.d.ts +1 -1
- package/types/IconPropsProvider/useIconProps.d.ts.map +1 -1
- package/types/index.d.ts +6 -6
- package/types/index.d.ts.map +1 -1
- package/types/styles.d.ts +1 -1
- package/types/styles.d.ts.map +1 -1
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.7.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-icons
|
|
9
9
|
|
package/LICENSE.md
CHANGED
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
import { IconPropsContext } from './IconPropsContext.js';
|
|
25
26
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
26
27
|
const IconPropsProvider = ({
|
|
27
28
|
children,
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { IconPropsProvider } from './IconPropsProvider.js';
|
|
26
|
+
export { IconPropsContext } from './IconPropsContext.js';
|
|
27
|
+
export { useIconProps } from './useIconProps.js';
|
|
28
|
+
export { renderIconWithProps } from './renderIconWithProps.js';
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import React from 'react';
|
|
26
|
-
import { IconPropsProvider } from
|
|
26
|
+
import { IconPropsProvider } from './IconPropsProvider.js';
|
|
27
27
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
28
28
|
/**
|
|
29
29
|
* Renders an icon wrapped in IconPropsProvider to apply size and color via React context.
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
import React, { useId, useContext } from 'react';
|
|
26
26
|
import { useStyleNew } from '@instructure/emotion';
|
|
27
27
|
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { IconPropsContext } from
|
|
29
|
-
import generateStyle from
|
|
28
|
+
import { IconPropsContext } from '../IconPropsProvider/index.js';
|
|
29
|
+
import generateStyle from '../styles.js';
|
|
30
|
+
|
|
30
31
|
/**
|
|
31
32
|
* Unified wrapper for custom icons (both stroke and filled) rendered from a
|
|
32
33
|
* JSX paths component.
|
package/es/index.js
CHANGED
|
@@ -21,10 +21,20 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
+
|
|
24
25
|
// Shared icon utilities
|
|
25
|
-
|
|
26
|
-
export
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export *
|
|
30
|
-
|
|
26
|
+
|
|
27
|
+
export { renderIconWithProps } from './IconPropsProvider/index.js';
|
|
28
|
+
|
|
29
|
+
// Lucide icons
|
|
30
|
+
export * from './generated/lucide/index.js';
|
|
31
|
+
|
|
32
|
+
// Custom/brand icons
|
|
33
|
+
export * from './generated/custom/index.js';
|
|
34
|
+
|
|
35
|
+
// Re-export legacy icons for backwards compatibility
|
|
36
|
+
export * from './generated/index.js';
|
|
37
|
+
|
|
38
|
+
// Re-export as namespaces for cases where distinction is needed (e.g., icon gallery)
|
|
39
|
+
export * as CustomIcons from './generated/custom/index.js';
|
|
40
|
+
export * as LucideIcons from './generated/lucide/index.js';
|
|
@@ -25,8 +25,9 @@
|
|
|
25
25
|
import React, { useId, useContext } from 'react';
|
|
26
26
|
import { useStyleNew } from '@instructure/emotion';
|
|
27
27
|
import { passthroughProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { IconPropsContext } from
|
|
29
|
-
import generateStyle from
|
|
28
|
+
import { IconPropsContext } from '../IconPropsProvider/index.js';
|
|
29
|
+
import generateStyle from '../styles.js';
|
|
30
|
+
|
|
30
31
|
/**
|
|
31
32
|
* Wraps a Lucide icon with InstUI theming, RTL support, and semantic sizing.
|
|
32
33
|
* Only accepts InstUI semantic tokens (size="lg", color="baseColor").
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.IconPropsProvider = void 0;
|
|
7
|
-
var _IconPropsContext = require("./IconPropsContext");
|
|
7
|
+
var _IconPropsContext = require("./IconPropsContext.js");
|
|
8
8
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "useIconProps", {
|
|
|
27
27
|
return _useIconProps.useIconProps;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
var _IconPropsProvider = require("./IconPropsProvider");
|
|
31
|
-
var _IconPropsContext = require("./IconPropsContext");
|
|
32
|
-
var _useIconProps = require("./useIconProps");
|
|
33
|
-
var _renderIconWithProps = require("./renderIconWithProps");
|
|
30
|
+
var _IconPropsProvider = require("./IconPropsProvider.js");
|
|
31
|
+
var _IconPropsContext = require("./IconPropsContext.js");
|
|
32
|
+
var _useIconProps = require("./useIconProps.js");
|
|
33
|
+
var _renderIconWithProps = require("./renderIconWithProps.js");
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.renderIconWithProps = renderIconWithProps;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _IconPropsProvider = require("./IconPropsProvider");
|
|
9
|
+
var _IconPropsProvider = require("./IconPropsProvider.js");
|
|
10
10
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
11
11
|
/*
|
|
12
12
|
* The MIT License (MIT)
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useIconProps = useIconProps;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var _IconPropsContext = require("./IconPropsContext");
|
|
8
|
+
var _IconPropsContext = require("./IconPropsContext.js");
|
|
9
9
|
/*
|
|
10
10
|
* The MIT License (MIT)
|
|
11
11
|
*
|
|
@@ -9,8 +9,8 @@ exports.wrapCustomIcon = wrapCustomIcon;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
11
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
12
|
-
var
|
|
13
|
-
var _styles = _interopRequireDefault(require("../styles"));
|
|
12
|
+
var _index = require("../IconPropsProvider/index.js");
|
|
13
|
+
var _styles = _interopRequireDefault(require("../styles.js"));
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
15
|
/*
|
|
16
16
|
* The MIT License (MIT)
|
|
@@ -66,7 +66,7 @@ function wrapCustomIcon(PathsComponent, iconName, viewBox = '0 0 24 24') {
|
|
|
66
66
|
themeOverride,
|
|
67
67
|
...rest
|
|
68
68
|
} = props;
|
|
69
|
-
const contextProps = (0, _react.useContext)(
|
|
69
|
+
const contextProps = (0, _react.useContext)(_index.IconPropsContext);
|
|
70
70
|
const finalSize = contextProps?.size ?? size;
|
|
71
71
|
const finalColor = contextProps?.color ?? color;
|
|
72
72
|
const handleElementRef = el => {
|
package/lib/index.js
CHANGED
|
@@ -13,11 +13,11 @@ exports.LucideIcons = exports.CustomIcons = void 0;
|
|
|
13
13
|
Object.defineProperty(exports, "renderIconWithProps", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _index.renderIconWithProps;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
var
|
|
20
|
-
var _LucideIcons = _interopRequireWildcard(require("./generated/lucide"));
|
|
19
|
+
var _index = require("./IconPropsProvider/index.js");
|
|
20
|
+
var _LucideIcons = _interopRequireWildcard(require("./generated/lucide/index.js"));
|
|
21
21
|
exports.LucideIcons = _LucideIcons;
|
|
22
22
|
Object.keys(_LucideIcons).forEach(function (key) {
|
|
23
23
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -30,7 +30,7 @@ Object.keys(_LucideIcons).forEach(function (key) {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
|
-
var _CustomIcons = _interopRequireWildcard(require("./generated/custom"));
|
|
33
|
+
var _CustomIcons = _interopRequireWildcard(require("./generated/custom/index.js"));
|
|
34
34
|
exports.CustomIcons = _CustomIcons;
|
|
35
35
|
Object.keys(_CustomIcons).forEach(function (key) {
|
|
36
36
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -43,15 +43,15 @@ Object.keys(_CustomIcons).forEach(function (key) {
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
|
-
var
|
|
47
|
-
Object.keys(
|
|
46
|
+
var _index4 = require("./generated/index.js");
|
|
47
|
+
Object.keys(_index4).forEach(function (key) {
|
|
48
48
|
if (key === "default" || key === "__esModule") return;
|
|
49
49
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
50
|
-
if (key in exports && exports[key] ===
|
|
50
|
+
if (key in exports && exports[key] === _index4[key]) return;
|
|
51
51
|
Object.defineProperty(exports, key, {
|
|
52
52
|
enumerable: true,
|
|
53
53
|
get: function () {
|
|
54
|
-
return
|
|
54
|
+
return _index4[key];
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
});
|
|
@@ -9,8 +9,8 @@ exports.wrapLucideIcon = wrapLucideIcon;
|
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
11
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
12
|
-
var
|
|
13
|
-
var _styles = _interopRequireDefault(require("../styles"));
|
|
12
|
+
var _index = require("../IconPropsProvider/index.js");
|
|
13
|
+
var _styles = _interopRequireDefault(require("../styles.js"));
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
15
|
/*
|
|
16
16
|
* The MIT License (MIT)
|
|
@@ -56,7 +56,7 @@ function wrapLucideIcon(Icon) {
|
|
|
56
56
|
themeOverride,
|
|
57
57
|
...rest
|
|
58
58
|
} = props;
|
|
59
|
-
const contextProps = (0, _react.useContext)(
|
|
59
|
+
const contextProps = (0, _react.useContext)(_index.IconPropsContext);
|
|
60
60
|
const finalSize = contextProps?.size ?? size;
|
|
61
61
|
const finalColor = contextProps?.color ?? color;
|
|
62
62
|
const handleElementRef = el => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-icons",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-49",
|
|
4
4
|
"description": "Icon set for Instructure, Inc. products",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.5.4",
|
|
22
|
-
"@instructure/ui-babel-preset": "11.7.4-snapshot-
|
|
22
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-49"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/runtime": "^7.29.2",
|
|
26
26
|
"lucide-react": "1.7.0",
|
|
27
|
-
"@instructure/emotion": "11.7.4-snapshot-
|
|
28
|
-
"@instructure/
|
|
29
|
-
"@instructure/ui-
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/
|
|
32
|
-
"@instructure/ui-utils": "11.7.4-snapshot-
|
|
27
|
+
"@instructure/emotion": "11.7.4-snapshot-49",
|
|
28
|
+
"@instructure/shared-types": "11.7.4-snapshot-49",
|
|
29
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-49",
|
|
30
|
+
"@instructure/ui-svg-images": "11.7.4-snapshot-49",
|
|
31
|
+
"@instructure/ui-themes": "11.7.4-snapshot-49",
|
|
32
|
+
"@instructure/ui-utils": "11.7.4-snapshot-49"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": ">=18 <=19"
|