@box/blueprint-web-assets 4.37.0 → 4.37.1
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/dist/icons/ContentItemNoBackground/DummyToBeRemovedLater.d.ts +3 -0
- package/dist/icons/ContentItemNoBackground/DummyToBeRemovedLater.js +3 -0
- package/dist/icons/ContentItemNoBackground/index.d.ts +1 -0
- package/dist/icons/ContentItemNoBackground/index.js +1 -0
- package/dist/icons/stories/types.d.ts +3 -0
- package/dist/icons/stories/types.js +1 -0
- package/dist/illustrations/stories/types.d.ts +3 -0
- package/dist/illustrations/stories/types.js +1 -0
- package/dist/utils/all-icons-template.d.ts +7 -0
- package/dist/utils/all-icons-template.js +9 -0
- package/package.json +16 -16
- /package/dist/icons/{Medium-Filled → MediumFilled}/Apps.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Apps.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/BarChart.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/BarChart.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Canvas.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Canvas.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Clock.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Clock.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Collections.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Collections.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Favorites.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Favorites.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Favorites1.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Favorites1.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Folder.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Folder.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Gear.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Gear.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Hubs.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Hubs.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Inbox.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Inbox.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Information.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Information.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Nav.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Nav.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Question.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Question.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Relay.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/Relay.js +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/index.d.ts +0 -0
- /package/dist/icons/{Medium-Filled → MediumFilled}/index.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DummyToBeRemovedLater } from './DummyToBeRemovedLater';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DummyToBeRemovedLater } from './DummyToBeRemovedLater';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import FileAudio from '../icons/Content/FileAudio';
|
|
2
|
+
interface IconStoryArgs {
|
|
3
|
+
color: string;
|
|
4
|
+
size: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const AllIconsTemplate: (iconGroup: Record<string, typeof FileAudio>, canChangeColor: boolean, isBranded?: boolean) => (props: IconStoryArgs) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styles from './all-icons-template.module.scss';
|
|
3
|
+
export const AllIconsTemplate = (iconGroup, canChangeColor, isBranded = false) => (props) => {
|
|
4
|
+
const brandingStylesUrl = `${process.env.STORYBOOK_URL}/?path=/story/components-brandingstyles--brand-theme-playground`;
|
|
5
|
+
const iconsToShow = Object.entries(iconGroup);
|
|
6
|
+
return (_jsxs("div", { className: styles.container, children: [canChangeColor && !isBranded ? (_jsxs("h1", { children: ["Icons color: ", _jsx("span", { style: { color: props.color }, children: props.color || 'Default' })] })) : (_jsx("h1", { children: isBranded ? `Info: These icons are branded` : `Info: These icons do not support color changes` })), isBranded ? _jsx("a", { href: brandingStylesUrl, children: "See BrandingStyles playground" }) : null, _jsxs("h1", { children: ["size: ", props.size, "px"] }), _jsx("hr", {}), _jsx("div", { className: styles.iconGrid, children: iconsToShow.map(([iconName, IconComponent]) => {
|
|
7
|
+
return (_jsxs("div", { className: styles.iconSlot, children: [_jsx("h4", { children: iconName }), _jsx(IconComponent, { width: props.size, height: props.size, ...props })] }, iconName));
|
|
8
|
+
}) })] }));
|
|
9
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web-assets",
|
|
3
|
-
"version": "4.37.
|
|
3
|
+
"version": "4.37.1",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build-local-all": "yarn nx clone-repo && yarn build-local && yarn lint-local && yarn lint-local-css",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"postbuild": "rimraf ./tmp",
|
|
15
15
|
"remove-clippaths": "node scripts/remove_clippaths",
|
|
16
16
|
"svgr-content": "svgr --config-file svgrConfig/common.svgrrc.js -d src/icons/Content ./tmp/repo/Icon/Content",
|
|
17
|
-
"svgr-
|
|
17
|
+
"svgr-content-item-no-background": "svgr --config-file svgrConfig/replace-color.svgrrc.js -d src/icons/ContentItemNoBackground ./tmp/repo/Icon/ContentItemNoBackground",
|
|
18
18
|
"svgr-fill": "svgr --config-file svgrConfig/replace-color.svgrrc.js -d src/icons/Fill ./tmp/repo/Icon/Fill",
|
|
19
19
|
"svgr-illustration": "svgr --config-file svgrConfig/replace-with-branding-color.svgrrc.js -d src/illustrations ./tmp/repo/Illustration",
|
|
20
20
|
"svgr-line": "svgr --config-file svgrConfig/replace-color.svgrrc.js -d src/icons/Line ./tmp/repo/Icon/Line",
|
|
21
21
|
"svgr-logo": "svgr --config-file svgrConfig/common.svgrrc.js -d src/icons/Logo ./tmp/repo/Icon/Logo",
|
|
22
|
-
"svgr-medium-filled": "svgr --config-file svgrConfig/replace-color.svgrrc.js -d src/icons/
|
|
22
|
+
"svgr-medium-filled": "svgr --config-file svgrConfig/replace-color.svgrrc.js -d src/icons/MediumFilled ./tmp/repo/Icon/MediumFilled",
|
|
23
23
|
"svgr-medium": "svgr --config-file svgrConfig/replace-color.svgrrc.js -d src/icons/Medium ./tmp/repo/Icon/Medium",
|
|
24
|
-
"svgr": "rimraf src/icons/Content src/icons/
|
|
24
|
+
"svgr": "rimraf src/icons/Content src/icons/ContentItemNoBackground src/icons/Fill src/icons/Line src/icons/Logo src/icons/MediumFilled src/icons/Medium && concurrently 'yarn svgr-content' 'yarn svgr-content-item-no-background' 'yarn svgr-fill' 'yarn svgr-illustration' 'yarn svgr-line' 'yarn svgr-logo' 'yarn svgr-medium-filled' 'yarn svgr-medium' && yarn remove-clippaths",
|
|
25
25
|
"tokens-build-styles-all": "yarn tokens-build-styles && yarn tokens-build-styles-create-typography-mixins",
|
|
26
26
|
"tokens-build-styles-create-typography-mixins": "node scripts/create_typography_mixins.js --input tmp/repo/Style/values.json --output src/tokens/mixins.scss",
|
|
27
27
|
"tokens-build-styles": "token-transformer --expandTypography --expandComposition --resolveReferences=false tmp/repo/Style tmp/tokens_output_styles.json light-mode,values && node scripts/build-tokens.js"
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"types": "./icons/Content/*.d.ts",
|
|
61
61
|
"default": "./icons/Content/*.js"
|
|
62
62
|
},
|
|
63
|
-
"./icons/
|
|
64
|
-
"types": "./icons/
|
|
65
|
-
"default": "./icons/
|
|
63
|
+
"./icons/ContentItemNoBackground/*": {
|
|
64
|
+
"types": "./icons/ContentItemNoBackground/*.d.ts",
|
|
65
|
+
"default": "./icons/ContentItemNoBackground/*.js"
|
|
66
66
|
},
|
|
67
67
|
"./icons/Fill/*": {
|
|
68
68
|
"types": "./icons/Fill/*.d.ts",
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
"types": "./icons/Logo/*.d.ts",
|
|
77
77
|
"default": "./icons/Logo/*.js"
|
|
78
78
|
},
|
|
79
|
-
"./icons/
|
|
80
|
-
"types": "./icons/
|
|
81
|
-
"default": "./icons/
|
|
79
|
+
"./icons/MediumFilled/*": {
|
|
80
|
+
"types": "./icons/MediumFilled/*.d.ts",
|
|
81
|
+
"default": "./icons/MediumFilled/*.js"
|
|
82
82
|
},
|
|
83
83
|
"./icons/Medium/*": {
|
|
84
84
|
"types": "./icons/Medium/*.d.ts",
|
|
@@ -88,9 +88,9 @@
|
|
|
88
88
|
"types": "./icons/Content/index.d.ts",
|
|
89
89
|
"default": "./icons/Content/index.js"
|
|
90
90
|
},
|
|
91
|
-
"./icons/
|
|
92
|
-
"types": "./icons/
|
|
93
|
-
"default": "./icons/
|
|
91
|
+
"./icons/ContentItemNoBackground": {
|
|
92
|
+
"types": "./icons/ContentItemNoBackground/index.d.ts",
|
|
93
|
+
"default": "./icons/ContentItemNoBackground/index.js"
|
|
94
94
|
},
|
|
95
95
|
"./icons/Fill": {
|
|
96
96
|
"types": "./icons/Fill/index.d.ts",
|
|
@@ -104,9 +104,9 @@
|
|
|
104
104
|
"types": "./icons/Logo/index.d.ts",
|
|
105
105
|
"default": "./icons/Logo/index.js"
|
|
106
106
|
},
|
|
107
|
-
"./icons/
|
|
108
|
-
"types": "./icons/
|
|
109
|
-
"default": "./icons/
|
|
107
|
+
"./icons/MediumFilled": {
|
|
108
|
+
"types": "./icons/MediumFilled/index.d.ts",
|
|
109
|
+
"default": "./icons/MediumFilled/index.js"
|
|
110
110
|
},
|
|
111
111
|
"./icons/Medium": {
|
|
112
112
|
"types": "./icons/Medium/index.d.ts",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|