Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@wix/wix-ui-icons-common
Advanced tools
A set of commonly used icons for the Wix UI design system. [Storybook](https://wix-pages.com/wix-ui-icons-common)
A set of commonly used icons for the Wix UI design system. Storybook
Note: This project was migrated from wix-ui. The old Git history is available here.
npm install @wix/wix-ui-icons-common
You should use the system icons for internal components and the general icons for the consumer of your project. To import and use wixStyleReact icons:
import { SomeGeneralIcon } from '@wix/wix-ui-icons-common';
import { SomeSystemIcon } from '@wix/wix-ui-icons-common/system';
To import and use classic editor (wix-base-ui) icons:
import { SomeGeneralIcon } from '@wix/wix-ui-icons-common/classic-editor';
import { SomeSystemIcon } from '@wix/wix-ui-icons-common/classic-editor/system';
To import and use on-stage icons:
import { SomeIcon } from '@wix/wix-ui-icons-common/on-stage';
import { SomeSystemIcon } from '@wix/wix-ui-icons-common/on-stage/system';
import { SomeReactionsIcon } from '@wix/wix-ui-icons-common/on-stage/reactions';
wix-ui-icons-common
@wix/wix-ui-icons-common
prop name | type | default value | required | description |
---|---|---|---|---|
size | string | 1em | - | Shorthand for setting width and height attributes of the SVG to the same value |
All other Props are passed to the SVG element |
All icons have the same interface which you can import like so:
import { IconProps } from '@wix/wix-ui-icons-common';
Before adding a new icon, please consult with your relevant UX. Not from Wix? Please open a github issue and we'll be happy to help
SVG icons will be transformed into their monochrome version and be stripped from redundant data they should be as lean as possible and should contain only path
s and shape
s.
Make sure to remove def
, mask
stroke
, fill
, transform
, mirror
, border thickness
and any other similar attributes that doesn't make the component flat. https://jakearchibald.github.io/svgomg/ can be used for SVG optimization.
the id
attribute should be removed as well.
Make sure SVGs are correctly exported from Illustrator/Sketch/Figma, meaning they should merge all layers into one, and apply the masks, which will result in an SVG with a single path.
Use a descriptive name since it'll be used as the React component name.
If the icon has multiple variations (small, large, outlined, filled), specify the variation at the end of the file name, e.g. FormFieldErrorSmall.svg
.
Add the new SVG file to the src/general/raw
or src/system/raw
folder according to its purpose of usage (internal or external)
Every icon must have additional metadata describing the following attributes:
title
- the name of the iconcategory
- icon type (one of: Actions
, General
, Toggle
, Communication
, Document
, Users
, Date & Time
, Arrows
, Layout & Sorting
, Media
, Composer Actions
, Composer Adjustments
, Composer Layers & Alignment
, Composer Shapes
, Composer Tools
, Composer Effects
, Composer Ratio
, Composer Other
, Food
, Brands
, Money
, Text
, Wix Brands
)description
- a short summary explaining the purpose of the icon and the context where it may appeartags
- list of terms that may apply to icon, used in storybook searchsizes
- maps between the icon size in pixels ("18"
/"24"
) to the file namealiases
- list of other filenames the icon appears asWhen adding an icon, add the icon's metadata to the following file: src/general/metadata.ts for general icons or src/system/metadata.ts for system icons
Icons should be entered in the following format:
{
title: "Hidden",
category: "Toggle",
description:
"Static indicator- marks item an unlisted or hidden\nButton - makes item hidden or unlisted",
tags: ["eye", "hide", "show"],
sizes: { "18": "HiddenSmall", "24": "Hidden" },
aliases: ["VisibleHidden", "VisibileHidden"],
}
FAQs
A set of commonly used icons for the Wix UI design system. [Storybook](https://wix-pages.com/wix-ui-icons-common)
The npm package @wix/wix-ui-icons-common receives a total of 1,163 weekly downloads. As such, @wix/wix-ui-icons-common popularity was classified as popular.
We found that @wix/wix-ui-icons-common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.