Skip to content

Commit 67e760f

Browse files
committed
remove icons from core package
1 parent 0e87e06 commit 67e760f

File tree

359 files changed

+122
-4250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

359 files changed

+122
-4250
lines changed

packages/core/.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import * as VibeComponents from "../src/components";
33
import * as VibeComponentsNext from "../src/components/next";
44
import * as VibeHooks from "../src/hooks";
5-
import * as VibeIcons from "../src/components/Icon/Icons";
5+
import * as VibeIcons from "@vibe/core";
66
import { Preview } from "@storybook/react";
77
import isChromatic from "chromatic/isChromatic";
88
import { DocsContainer, DocsPage, Unstyled } from "@storybook/blocks";

packages/core/package.json

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
"import": "./dist/src/index.js",
1212
"default": "./dist/src/index.js"
1313
},
14-
"./icons": {
15-
"types": "./dist/components/Icon/Icons/index.d.ts",
16-
"import": "./dist/src/components/Icon/Icons/icons.js",
17-
"default": "./dist/src/components/Icon/Icons/icons.js"
18-
},
1914
"./interactionsTests": {
2015
"types": "./dist/tests/interactions-utils.d.ts",
2116
"import": "./dist/src/tests/interactionsTests.js",
@@ -39,9 +34,6 @@
3934
},
4035
"typesVersions": {
4136
"*": {
42-
"icons": [
43-
"./dist/components/Icon/Icons/index.d.ts"
44-
],
4537
"interactionsTests": [
4638
"./dist/tests/interactions-utils.d.ts"
4739
],
@@ -58,11 +50,10 @@
5850
"test:watch": "jest --watch",
5951
"test:update": "yarn test -u",
6052
"test:coverage": "yarn test -- --coverage",
61-
"start": "yarn build:react-icons && yarn build:esm -- --watch",
62-
"build": "yarn build:react-icons && yarn build:esm && yarn build:esm:mock-classnames",
53+
"start": "yarn build:esm -- --watch",
54+
"build": "&& yarn build:esm && yarn build:esm:mock-classnames",
6355
"build:esm": "rollup -c",
6456
"build:esm:mock-classnames": "mock_classnames=on rollup -c",
65-
"build:react-icons": "svg2react-icon --typescript --keep-colors ../../node_modules/monday-ui-style/src/Icons src/components/Icon/Icons",
6657
"storybook": "storybook dev -p 7008",
6758
"build-storybook": "storybook build -o static_storybook",
6859
"deploy-storybook": "storybook-to-ghpages",
@@ -89,6 +80,7 @@
8980
"homepage": "https://github.com/mondaycom/vibe#readme",
9081
"dependencies": {
9182
"@popperjs/core": "2.11.6",
83+
"@vibe/icons": "^0.0.4",
9284
"a11y-dialog": "^7.5.2",
9385
"body-scroll-lock": "^4.0.0-beta.0",
9486
"browserslist-config-monday": "1.0.6",
@@ -248,7 +240,6 @@
248240
"stylelint-config-recommended-scss": "^6.0.0",
249241
"stylelint-config-standard": "^24.0.0",
250242
"stylelint-config-standard-scss": "^3.0.0",
251-
"svg2react-icon": "^3.1.178",
252243
"ts-jest": "^29.1.2",
253244
"ts-loader": "^9.3.1",
254245
"ts-node": "^10.9.2",

packages/core/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export default {
6767
},
6868
input: {
6969
index: path.join(SRC_PATH, "index.ts"),
70-
icons: path.join(SRC_PATH, "components/Icon/Icons/index.ts"),
7170
interactionsTests: path.join(SRC_PATH, "tests/interactions-utils.ts"),
7271
testIds: path.join(SRC_PATH, "tests/test-ids-utils.ts"),
7372
next: path.join(SRC_PATH, "components/next.ts")

packages/core/src/components/AlertBanner/AlertBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getStyle } from "../../helpers/typesciptCssModulesHelper";
22
import cx from "classnames";
33
import React, { ForwardedRef, forwardRef, ReactElement, useMemo } from "react";
44
import IconButton from "../../components/IconButton/IconButton";
5-
import CloseSmall from "../../components/Icon/Icons/components/CloseSmall";
5+
import { CloseSmall } from "@vibe/icons";
66
import { AlertBannerBackgroundColor as AlertBannerBackgroundColorEnum } from "./AlertBannerConstants";
77
import { AlertBannerBackgroundColor } from "./AlertBanner.types";
88
import { NOOP } from "../../utils/function-utils";

packages/core/src/components/AttentionBox/AttentionBox.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { getStyle } from "../../helpers/typesciptCssModulesHelper";
55
import { ComponentDefaultTestId, getTestId } from "../../tests/test-ids-utils";
66
import Icon from "../Icon/Icon";
77
import IconButton from "../IconButton/IconButton";
8-
import CloseSmall from "../Icon/Icons/components/CloseSmall";
9-
import AlertIcon from "../Icon/Icons/components/Alert";
10-
import InfoIcon from "../Icon/Icons/components/Info";
8+
import { CloseSmall, Alert as AlertIcon, Info as InfoIcon } from "@vibe/icons";
119
import { IconType as IconTypeEnum } from "../Icon/IconConstants";
1210
import { AttentionBoxType as AttentionBoxTypeEnum } from "./AttentionBoxConstants";
1311
import { AttentionBoxType } from "./AttentionBox.types";

packages/core/src/components/AttentionBox/__stories__/AttentionBox.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Canvas, Meta } from "@storybook/blocks";
22
import AttentionBox from "../AttentionBox";
33
import { Link } from "vibe-storybook-components";
4-
import { Info } from "../../Icon/Icons";
4+
import { Info } from "@vibe/icons";
55
import {
66
ALERT_BANNER,
77
TOAST,

packages/core/src/components/AttentionBox/__stories__/AttentionBox.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import AttentionBox from "../AttentionBox";
44
import { createStoryMetaSettingsDecorator } from "../../../storybook";
55
import { createComponentTemplate, StoryDescription } from "vibe-storybook-components";
66
import DialogContentContainer from "../../DialogContentContainer/DialogContentContainer";
7-
import { Info, Invite, ThumbsUp } from "../../Icon/Icons";
7+
import { Info, Invite, ThumbsUp, Favorite } from "@vibe/icons";
88
import Icon from "../../Icon/Icon";
99
import Search from "../../Search/Search";
1010
import Avatar from "../../Avatar/Avatar";
1111
import person from "./assets/person.png";
1212
import Flex from "../../Flex/Flex";
13-
import Favorite from "../../Icon/Icons/components/Favorite";
1413
import AttentionBoxLink from "../AttentionBoxLink/AttentionBoxLink";
1514
import "./AttentionBox.stories.scss";
1615

packages/core/src/components/Avatar/__stories__/Avatar.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { createStoryMetaSettingsDecorator } from "../../../storybook";
55
import { createComponentTemplate, StoryDescription } from "vibe-storybook-components";
66
import { Counter, Flex } from "../..";
77
import { guest, home, minus, owner, person1, person2, person3 } from "./assets";
8-
import { WhatsNew } from "../../Icon/Icons";
8+
import { WhatsNew } from "@vibe/icons";
99
import { useCallback, useState } from "react";
1010
import "./Avatar.stories.scss";
1111

packages/core/src/components/Avatar/__tests__/Avatar.snapshot.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import renderer from "react-test-renderer";
33
import Avatar from "../Avatar";
4-
import { WhatsNew } from "../../Icon/Icons";
4+
import { WhatsNew } from "@vibe/icons";
55

66
jest.mock("../../Icon/Icon", () => ({ icon }: { icon: string | null }) => <div data-testid="icon-mock">{icon}</div>);
77
jest.mock("../../Icon/CustomSvgIcon/CustomSvgIcon", () => () => <div data-testid="custom-icon-mock" />);

packages/core/src/components/Badge/__stories__/Badge.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Badge from "../Badge";
22
import { Canvas, Meta } from "@storybook/blocks";
33
import person from "./assets/person.png";
4-
import { WhatsNew } from "../../Icon/Icons";
4+
import { WhatsNew } from "@vibe/icons";
55
import Link from "../../Link/Link";
66
import Button from "../../Button/Button";
77
import Avatar from "../../Avatar/Avatar";

0 commit comments

Comments
 (0)