@dot-system/css-utility 0.1.0
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/README.md +27 -0
- package/cbt.config.js +39 -0
- package/es/config/utilities.json +1149 -0
- package/es/css_utility_layer.module.css +1 -0
- package/es/index.js +6 -0
- package/es/js/clsx.js +4 -0
- package/es/js/cn.js +5 -0
- package/es/js/csv.js +29 -0
- package/es/js/cva.js +4 -0
- package/es/js/dotMerge.js +43 -0
- package/es/utilities.plain.css +2145 -0
- package/lib/config/utilities.json +1149 -0
- package/lib/css_utility_layer.module.css +1 -0
- package/lib/index.js +45 -0
- package/lib/js/clsx.js +16 -0
- package/lib/js/cn.js +16 -0
- package/lib/js/csv.js +38 -0
- package/lib/js/cva.js +14 -0
- package/lib/js/dotMerge.js +77 -0
- package/lib/utilities.plain.css +2145 -0
- package/package.json +86 -0
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dot-system/css-utility",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "es/index.js",
|
|
5
|
+
"module": "es/index.js",
|
|
6
|
+
"private": false,
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"author": "DOT Team",
|
|
11
|
+
"homepage": "https://www.npmjs.com/search?q=@dot-system",
|
|
12
|
+
"license": "ISC",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"DOT",
|
|
15
|
+
"ZOHODESK",
|
|
16
|
+
"ZTEAM",
|
|
17
|
+
"LIBRARY"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"_lint": "react-cli lint",
|
|
21
|
+
"lintAll": "react-cli lint ./src",
|
|
22
|
+
"lintAllFix": "npm run lintAll --eslint:fix=true",
|
|
23
|
+
"lint": "npx eslint ./src",
|
|
24
|
+
"clean": "react-cli clean build unittest coverage es lib assets && mkdir assets",
|
|
25
|
+
"dubCheck": "node ./node_modules/@zohodesk-private/node-plugins/es/dublication_css_file_finder node_modules/@zohodesk/icons/es node_modules/@zohodesk/variables/es",
|
|
26
|
+
"init": "npm run clean ",
|
|
27
|
+
"build:lib": "cbt build:lib src,assets lib,assets",
|
|
28
|
+
"build:es": "cbt build:es src,assets es,assets",
|
|
29
|
+
"build:es:watch": "cbt build:es src es",
|
|
30
|
+
"build": "npm run theme:validate && npm run build:lib && npm run build:es",
|
|
31
|
+
"build:local": "npm run build",
|
|
32
|
+
"build:watch": "npm run build:es:watch --module:mode=dev -- -w",
|
|
33
|
+
"coverage": "react-cli coverage",
|
|
34
|
+
"prepare": "npm run init && npm run css:build ",
|
|
35
|
+
"prepublishOnly": "node prePublish.js && npm run download_only",
|
|
36
|
+
"postpublish": "node postPublish.js",
|
|
37
|
+
"report": "react-cli publish:report",
|
|
38
|
+
"test": "react-cli test",
|
|
39
|
+
"customTest": "node ./__testUtils__/runTest.js",
|
|
40
|
+
"test-clean": "react-cli clean ./coverage && react-cli clean ./unittest react-cli clean ./es && react-cli clean ./lib && react-cli clean ./package-lock.json && react-cli clean ./result.json ",
|
|
41
|
+
"snap-update": "npm run test-clean && npm run test -- -u",
|
|
42
|
+
"sstest": "npm run init && react-cli sstest",
|
|
43
|
+
"build:external": "npm run clean && npm run init && npm run docsjs:build && npm run build:externalDocCopy && npm run externalDocHTMLChange",
|
|
44
|
+
"download": "npm run download_only ",
|
|
45
|
+
"download_only": "react-cli clean ./node_modules ./package-lock.json && npm install --legacy-peer-deps",
|
|
46
|
+
"expublish": "npm publish --tag experimental-version",
|
|
47
|
+
"css:lineheight:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/lineheight_automation/lineHeightErrorCheck.js ./src/",
|
|
48
|
+
"variable:addignore": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableIgnore.js ./src",
|
|
49
|
+
"variable:convert": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/pxParserPostcss.js ./src",
|
|
50
|
+
"variable:check": "node ./node_modules/@zohodesk-private/css-variable-migrator/es/variableErrorCheck.js ./src ./node_modules/@zohodesk-private/css-variable-migrator/es/config/cssVariableReplacementOptions.json",
|
|
51
|
+
"css:review": " npm run dubCheck && npm run css:lineheight:validate && npm run theme:validate ",
|
|
52
|
+
"theme:validate": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation validate ./src ./.cli ./.cli/themeValidate/stringContains.js",
|
|
53
|
+
"theme:addignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation addignore ./src ./.cli ./.cli/themeValidate/stringContains.js",
|
|
54
|
+
"theme:removeignore": "node ./node_modules/@zohodesk-private/node-plugins/es/appearance_theme_validation removeignore ./src ./.cli",
|
|
55
|
+
"review:props": "node ./node_modules/@zohodesk-private/react-prop-validator/es/propValidation.js propValidationArg.json ",
|
|
56
|
+
"css:layer_config_generate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/scan_css_generate_json.js ./src css_layer_config.json",
|
|
57
|
+
"css:layer_wrap_es": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./es css_layer_config.json --rewrite=src=es --rewrite=assets=assets --skip-existing-layer",
|
|
58
|
+
"css:layer_wrap_lib": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/write_layer_in_css.js ./lib css_layer_config.json --rewrite=src=lib --rewrite=assets=assets --skip-existing-layer",
|
|
59
|
+
"css:layer_generate_order": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/generate_layer_order.js css_layer_config.json ./src/css_utility_layer.module.css",
|
|
60
|
+
"css:layer_config_validate": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/validate.js css_layer_config.json ./src/ ",
|
|
61
|
+
"css:build": "npm run css:layer_config_validate && npm run css:layer_generate_order && npm run build",
|
|
62
|
+
"css:layer_remove": "node ./node_modules/@zohodesk-private/node-plugins/es/css_layer_generator/remove_layer.js ./es css_layer_config.json --rewrite=src=es --rewrite=assets=assets",
|
|
63
|
+
"css:audit": "npx css-audit --common-css=common/common.module.css --dir src --port 8085 --report ",
|
|
64
|
+
"generate:utilities": "node ./preprocess/index.js"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"postcss-discard-comments": "^7.0.5",
|
|
68
|
+
"@testing-library/jest-dom": "^5.11.9",
|
|
69
|
+
"@testing-library/react": "^11.2.5",
|
|
70
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
71
|
+
"@testing-library/user-event": "^13.0.10",
|
|
72
|
+
"@zohodesk-private/css-audit-tool": "0.0.2",
|
|
73
|
+
"@zohodesk-private/color-variable-preprocessor": "1.3.0",
|
|
74
|
+
"@zohodesk-private/css-variable-migrator": "1.0.9",
|
|
75
|
+
"@zohodesk-private/node-plugins": "1.1.13",
|
|
76
|
+
"@zohodesk-private/react-prop-validator": "1.2.3",
|
|
77
|
+
"@zohodesk/react-cli": "1.1.27",
|
|
78
|
+
"@zohodesk/client_build_tool": "0.0.20"
|
|
79
|
+
},
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"class-variance-authority": "^0.7.1",
|
|
82
|
+
"clsx": "^2.1.1",
|
|
83
|
+
"tailwind-merge": "^3.5.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {}
|
|
86
|
+
}
|