UNPKG

@wix/design-system

Version:

@wix/design-system

364 lines 13.6 kB
{ "name": "@wix/design-system", "description": "@wix/design-system", "version": "1.221.1", "license": "MIT", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "dist/types/index.d.ts", "sideEffects": [ "*.st.css.js", "./*.css" ], "files": [ "dist", "styles.css", "styles.global.css", "styles-*.global.css", "tokens-*.global.css", "AtlasAddressInput", "!dist/statics/janet/**" ], "perfer": { "bundleSize": { "files": [ { "glob": "./dist/statics/design-system.esm.min.js", "maxSize": "700kb" }, { "glob": "./dist/statics/design-system.cjs.min.js", "maxSize": "700kb" }, { "glob": "./dist/statics/design-system.umd.min.js", "maxSize": "820kb" }, { "glob": "./styles.global.css", "maxSize": "100kb" }, { "glob": "./styles-default.global.css", "maxSize": "110kb" }, { "glob": "./styles-studio.global.css", "maxSize": "110kb" }, { "glob": "./styles-wixel.global.css", "maxSize": "110kb" }, { "glob": "./__tests__/bundle-size/**/*.js", "maxDegradation": "20%" } ] } }, "wix": { "artifact": { "groupId": "com.wixpress", "artifactId": "wix-design-system", "targets": { "static": true }, "previewUrls": [ { "title": "Private Docs Preview", "url": "https://bo.wix.com/pages/wix-design-system-employees/" } ] }, "validations": { "source": [ "lint", "lint:style" ], "postDependenciesBuild": [ "test:visuals:default-tokens", "test:visuals:studio-tokens", "test:visuals:wixel-tokens", "test:visuals:odeditor-tokens", "test:visuals:new-branding" ], "postBuild": [ "test:dependencies", "test:npm-package-size", "test:jest", "test:types", "test:e2e", "test:testkit-exports" ] }, "loki": { "enable": true } }, "scripts": { "start": "yarn start:docs-employees", "build": "node ./scripts/transpile/index.mjs && ./scripts/compliance/generate-compliance-tests.sh && yarn build:docs", "build:docs": "npx build-storybook -c ./.storybook/docs-employees --output-dir storybook-docs-employees && janet-build", "generate-component": "wuf generate --output src --codemods .wuf/generator/codemods --templates .wuf/generator/templates && npm run update-components && git add . -A", "------ local storybooks": "", "dev": "npx start-storybook -p 6012 -c ./.storybook/dev", "start:docs-employees": "npx start-storybook -p 6006 -c ./.storybook/docs-employees", "start:docs-public": "npx start-storybook -p 6005 -c ./.storybook/docs-public", "start:new-branding": "npx start-storybook -p 6008 -c ./.storybook/visual-new-branding", "start:default-tokens": "npx start-storybook -p 6009 -c ./.storybook/visual-default-tokens", "start:studio-tokens": "npx start-storybook -p 6011 -c ./.storybook/visual-studio-tokens", "start:wixel-tokens": "npx start-storybook -p 6014 -c ./.storybook/visual-wixel-tokens", "start:odeditor-tokens": "npx start-storybook -p 6013 -c ./.storybook/visual-odeditor-tokens", "start:e2e": "npx start-storybook -p 6010 -c ./.storybook/e2e", "------tests": "", "test:jest": "yarn run test:unit && yarn run test:compliance", "test:unit": "NODE_ICU_DATA=node_modules/full-icu TZ=UTC node --expose-gc --no-compilation-cache ../../node_modules/.bin/jest -c config/jest-components.config.js", "test:unit:watch": "NODE_ICU_DATA=node_modules/full-icu TZ=UTC node --expose-gc --no-compilation-cache ../../node_modules/.bin/jest -c config/jest-components.config.js --watch", "test:compliance": "node --max-old-space-size=4096 --expose-gc --no-compilation-cache ../../node_modules/.bin/jest -c config/jest-compliance.config.js", "test:update-screenshots": "./scripts/update-screenshots.sh", "test:visuals:new-branding": "NODE_OPTIONS=--max_old_space_size=4096 npx build-storybook -c ./.storybook/visual-new-branding --output-dir storybook-visual-new-branding && npx sled-test-runner remote --config sled-new-branding.json", "test:visuals:default-tokens": "NODE_OPTIONS=--max_old_space_size=4096 npx build-storybook -c ./.storybook/visual-default-tokens --output-dir storybook-visual-default-tokens && npx sled-test-runner remote --config sled-default-tokens.json", "test:visuals:studio-tokens": "NODE_OPTIONS=--max_old_space_size=4096 npx build-storybook -c ./.storybook/visual-studio-tokens --output-dir storybook-visual-studio-tokens && npx sled-test-runner remote --config sled-studio-tokens.json", "test:visuals:wixel-tokens": "NODE_OPTIONS=--max_old_space_size=4096 npx build-storybook -c ./.storybook/visual-wixel-tokens --output-dir storybook-visual-wixel-tokens && npx sled-test-runner remote --config sled-wixel-tokens.json", "test:visuals:odeditor-tokens": "NODE_OPTIONS=--max_old_space_size=4096 npx build-storybook -c ./.storybook/visual-odeditor-tokens --output-dir storybook-visual-odeditor-tokens && npx sled-test-runner remote --config sled-odeditor-tokens.json", "test:e2e": "npx build-storybook -c ./.storybook/e2e --output-dir storybook-e2e-static && npx sled-test-runner remote --config sled-e2e.json", "test:testkit-exports": "node ./scripts/compliance/validate-testkit-exports.mjs", "test:dependencies": "node ./scripts/compliance/validate-dependencies.mjs", "test:npm-package-size": "node ./scripts/compliance/validate-npm-package-size.js", "test:types": "tsc -p tsconfig.declarations.json", "cleanup-statics": "./scripts/cleanup-visual-test-statics.sh", "------code style": "", "lint": "eslint --cache .", "lint:style": "stylelint \"src/**/*.css\"", "lint:style:fix": "npm run lint:style -- --fix", "clean:corrupted-pngs": "node ./scripts/check-corrupted-pngs.js" }, "homepage": "https://www.wixdesignsystem.com", "peerDependencies": { "@playwright/test": "^1.49.0", "@types/react": "^16.14.0 || ^17.0.0 || ^18.0.0", "@types/react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0", "@wix/ambassador": "^4.0.485", "@wix/ambassador-wix-atlas-service-web": "^1.0.150", "playwright": "^1.49.0", "puppeteer": "^5.5.0 || ^14.0.0", "puppeteer-core": "^10.1.0 || ^14.0.0", "react": "^16.14.0 || ^17.0.0 || ^18.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" }, "peerDependenciesMeta": { "@playwright/test": { "optional": true }, "@types/react": { "optional": true }, "@types/react-dom": { "optional": true }, "@wix/ambassador": { "optional": true }, "@wix/ambassador-wix-atlas-service-web": { "optional": true }, "playwright": { "optional": true }, "puppeteer": { "optional": true }, "puppeteer-core": { "optional": true } }, "publishConfig": { "registry": "https://registry.npmjs.org/", "access": "public" }, "unpkg": true, "dependencies": { "@babel/runtime": "^7.26.0", "@floating-ui/core": "^1.6.8", "@floating-ui/react": "0.26.28", "@react-aria/focus": "^3.19.0", "@wix/design-system-tokens": "^1.135.1", "@wix/wix-ui-icons-common": "^3.98.0", "@wix/wix-ui-test-utils": "^1.3.3", "chart.js": "^2.9.4", "classnames": "^2.5.1", "color": "^2.0.1", "css-element-queries": "^1.2.3", "d3-array": "^2.12.1", "d3-axis": "^2.1.0", "d3-ease": "^2.0.0", "d3-format": "^2.0.0", "d3-scale": "^3.3.0", "d3-selection": "^2.0.0", "d3-shape": "^2.1.0", "d3-transition": "^2.0.0", "date-fns": "^2.30.0", "difference": "^1.0.2", "fbjs": "^2.0.0", "framer-motion": "6.2.4", "globals": "^16.0.0", "gradient-parser": "^1.0.2", "hoist-non-react-methods": "^1.1.0", "howler": "^2.2.4", "immutable": "~3.8.2", "invariant": "^2.2.1", "lodash": "^4.17.21", "object-assign": "^4.1.1", "omit": "^1.0.1", "overlayscrollbars": "2.6.1", "popper.js": "^1.16.1", "prop-types": "^15.8.1", "rc-slider": "9.7.2", "react-chartjs-2": "^2.11.2", "react-day-picker": "^7.4.10", "react-dnd": "^11.1.3", "react-dnd-test-backend": "^11.1.3", "react-dnd-touch-backend": "^11.1.3", "react-dom-instance": "^2.0.0", "react-modal": "^3.16.1", "react-popper": "^1.3.11", "react-scroll-sync": "0.11.0", "react-slick": "^0.30.2", "react-transition-group": "^4.4.5", "react-window": "^1.8.10", "shallowequal": "^1.1.0", "tslib": "^2.8.1", "wix-design-systems-locale-utils": "1.176.0" }, "devDependencies": { "@babel/cli": "^7.26.4", "@babel/core": "^7.26.0", "@babel/parser": "^7.26.3", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/plugin-transform-modules-commonjs": "^7.26.3", "@babel/plugin-transform-runtime": "^7.25.9", "@babel/preset-env": "^7.26.0", "@babel/preset-react": "^7.26.3", "@babel/register": "^7.25.9", "@playwright/test": "^1.49.0", "@storybook/addon-essentials": "^6.5.16", "@storybook/addon-google-analytics": "^6.2.9", "@storybook/addon-links": "^6.5.16", "@storybook/addons": "^6.5.16", "@storybook/builder-webpack5": "^6.5.16", "@storybook/core": "^6.5.16", "@storybook/manager-webpack5": "^6.5.16", "@stylable/cli": "^5.19.0", "@stylable/core": "^5.19.0", "@stylable/jest": "^5.19.0", "@stylable/module-utils": "^5.19.0", "@stylable/node": "^5.19.0", "@stylable/runtime": "^5.19.0", "@stylable/webpack-plugin": "^5.19.0", "@testing-library/react": "^15.0.7", "@testing-library/react-hooks": "^3.7.0", "@testing-library/user-event": "^14.6.1", "@types/color": "^2.0.5", "@types/d3-axis": "^2.0.0", "@types/d3-format": "^2.0.0", "@types/d3-scale": "^3.0.0", "@types/d3-selection": "^2.0.0", "@types/enzyme": "^3.10.19", "@types/gradient-parser": "^0.1.5", "@types/howler": "^2.2.12", "@types/jest": "^27.5.2", "@types/lodash": "^4.17.13", "@types/node": "^18.19.68", "@types/react": "^18.3.16", "@types/react-dom": "^18.3.5", "@types/react-modal": "^3.16.3", "@types/react-transition-group": "^4.4.12", "@types/shallowequal": "^1.1.5", "@wix/ambassador": "^4.0.606", "@wix/ambassador-testkit": "5.0.349", "@wix/ambassador-wix-atlas-service-web": "1.0.191", "@wix/awaiter-utils": "^1.0.130", "@wix/babel-preset-yoshi": "^6.160.0", "@wix/ci-build-info": "^1.0.326", "@wix/janet-build": "^1.0.8", "@wix/janet-dev-server": "^1.16.20", "@wix/react-autodocs-utils": "^3.12.4", "@wix/sled-test-runner": "^2.0.481", "@wix/unidriver-core": "^1.4.7", "@wix/wix-storybook-playground": "^1.0.10", "@wix/wix-storybook-utils": "^4.3.9", "@wix/yoshi-flow-library": "^6.160.0", "axe-core": "^4.10.2", "babel-loader": "^8.4.1", "babel-plugin-dynamic-import-node": "^2.3.3", "browserify-fs": "^1.0.0", "codemirror": "^5.65.18", "copy": "^0.3.2", "copyfiles": "^2.4.1", "core-js": "^2.6.12", "csso": "^5.0.5", "detect-port": "^1.6.1", "draft-convert": "^2.1.13", "draft-js": "patch:draft-js@npm:0.11.7#~/.yarn/patches/draft-js-npm-0.11.7-9f0b749c35.patch", "draft-js-export-html": "^1.4.1", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.8", "esbuild": "^0.25.0", "eslint": "^9.21.0", "eslint-plugin-jest": "^28.11.0", "eslint-plugin-jsdoc": "^50.6.3", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-prettier": "^5.2.3", "eslint-plugin-react": "^7.37.4", "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-stylable": "^6.1.1", "execa": "^5.1.1", "full-icu": "^1.5.0", "fuse.js": "^6.6.2", "globby": "^11.1.0", "identity-obj-proxy": "^3.0.0", "jest": "^27.5.1", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^27.5.1", "jest-environment-node": "^27.5.1", "jscodeshift": "^0.16.1", "node-fetch": "^2.7.0", "path-browserify": "^1.0.1", "playwright": "^1.49.0", "postcss": "^8.4.49", "prettier": "^3.5.2", "progress": "^2.0.3", "raw-loader": "^4.0.2", "react": "^18.3.1", "react-codemirror-runmode": "^1.0.5", "react-dom": "^18.3.1", "react-frame-component": "^5.2.7", "react-ga4": "^1.4.1", "react-hook-form": "^7.54.1", "react-markdown": "^8.0.7", "react-syntax-highlighter": "^15.6.1", "react-test-renderer": "^16.14.0", "regenerator-runtime": "^0.14.1", "rehype-raw": "^6.1.1", "remark-gfm": "^3.0.1", "rimraf": "^2.7.1", "storybook-addon-rtl-direction": "^0.0.19", "storybook-snapper": "^1.0.67", "stream-browserify": "^3.0.0", "stylelint": "^16.11.0", "stylelint-plugin-use-baseline": "^0.8.0", "ts-jest": "^27.1.5", "ts-node": "^10.9.2", "typescript": "^5.8.3", "typescript-eslint": "^8.25.0", "use-debounce": "^4.0.0", "webpack": "^5.97.1", "wix-eventually": "^2.3.0", "wix-storybook-config": "^1.0.2", "wix-ui-framework": "^3.7.11", "wixds-storybook-utils": "^1.0.1" }, "falconPackageHash": "178731ec41fd79529e732a4c54a17fe592ec62679bcbbc74294c2c3b" }