@thednp/color-picker 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -14
- package/dist/css/color-picker.css +3 -6
- package/dist/css/color-picker.css.map +1 -0
- package/dist/css/color-picker.min.css +1 -2
- package/dist/css/color-picker.min.css.map +1 -0
- package/dist/css/color-picker.rtl.css +3 -6
- package/dist/css/color-picker.rtl.css.map +1 -0
- package/dist/css/color-picker.rtl.min.css +1 -2
- package/dist/css/color-picker.rtl.min.css.map +1 -0
- package/dist/js/color-picker.cjs +2 -2
- package/dist/js/color-picker.cjs.map +1 -1
- package/dist/js/color-picker.d.ts +307 -300
- package/dist/js/color-picker.js +2 -2
- package/dist/js/color-picker.js.map +1 -1
- package/dist/js/color-picker.mjs +369 -332
- package/dist/js/color-picker.mjs.map +1 -1
- package/package.json +36 -44
- package/.eslintrc.cjs +0 -199
- package/.lgtm.yml +0 -9
- package/.prettierrc.json +0 -15
- package/.stylelintrc.json +0 -236
- package/compile.cjs +0 -51
- package/dts.config.ts +0 -15
- package/src/scss/_variables.scss +0 -6
- package/src/scss/color-picker.rtl.scss +0 -27
- package/src/scss/color-picker.scss +0 -536
- package/src/ts/colorPalette.ts +0 -89
- package/src/ts/index.ts +0 -1237
- package/src/ts/interface/ColorNames.ts +0 -20
- package/src/ts/interface/colorPickerLabels.ts +0 -20
- package/src/ts/interface/colorPickerOptions.ts +0 -11
- package/src/ts/interface/paletteOptions.ts +0 -6
- package/src/ts/util/colorNames.ts +0 -21
- package/src/ts/util/colorPickerLabels.ts +0 -24
- package/src/ts/util/getColorControls.ts +0 -90
- package/src/ts/util/getColorForm.ts +0 -75
- package/src/ts/util/getColorMenu.ts +0 -83
- package/src/ts/util/isValidJSON.ts +0 -19
- package/src/ts/util/setMarkup.ts +0 -130
- package/src/ts/util/vHidden.ts +0 -2
- package/test/color-palette.test.ts +0 -137
- package/test/color-picker.test.ts +0 -705
- package/test/fixtures/colorNamesFrench.js +0 -3
- package/test/fixtures/componentLabelsFrench.js +0 -21
- package/test/fixtures/format.js +0 -3
- package/test/fixtures/getMarkup.js +0 -36
- package/test/fixtures/getRandomInt.js +0 -6
- package/test/fixtures/sampleWebcolors.js +0 -18
- package/test/fixtures/swipe.ts +0 -33
- package/test/fixtures/testSample.js +0 -8
- package/test/fixtures/write.ts +0 -37
- package/tsconfig.json +0 -47
- package/vite.config.mts +0 -27
- package/vitest.config-ui.ts +0 -26
- package/vitest.config.ts +0 -26
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@thednp/color-picker",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.3",
|
4
4
|
"author": "thednp",
|
5
5
|
"license": "MIT",
|
6
6
|
"description": "🎨 Modern Color Picker Component",
|
@@ -18,19 +18,19 @@
|
|
18
18
|
"import": "./dist/js/color-picker.mjs",
|
19
19
|
"types": "./dist/js/color-picker.d.ts"
|
20
20
|
},
|
21
|
-
"./
|
21
|
+
"./color-picker.css": {
|
22
22
|
"import": "./dist/css/color-picker.css",
|
23
23
|
"require": "./dist/css/color-picker.css"
|
24
24
|
},
|
25
|
-
"./
|
25
|
+
"./color-picker.rtl.css": {
|
26
26
|
"import": "./dist/css/color-picker.rtl.css",
|
27
27
|
"require": "./dist/css/color-picker.rtl.css"
|
28
28
|
},
|
29
|
-
"./
|
29
|
+
"./color-picker.scss": {
|
30
30
|
"import": "./src/scss/color-picker.scss",
|
31
31
|
"require": "./src/scss/color-picker.scss"
|
32
32
|
},
|
33
|
-
"./
|
33
|
+
"./color-picker.rtl.scss": {
|
34
34
|
"import": "./src/scss/color-picker.rtl.scss",
|
35
35
|
"require": "./src/scss/color-picker.rtl.scss"
|
36
36
|
}
|
@@ -56,59 +56,51 @@
|
|
56
56
|
"typescript"
|
57
57
|
],
|
58
58
|
"dependencies": {
|
59
|
-
"@thednp/color": "^1.0.
|
60
|
-
"@thednp/shorty": "^2.0.
|
59
|
+
"@thednp/color": "^1.0.13",
|
60
|
+
"@thednp/shorty": "^2.0.9"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
|
-
"@types/node": "^22.
|
64
|
-
"@
|
65
|
-
"@
|
66
|
-
"@vitest/
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
73
|
-
"eslint-plugin-prettier": "^5.2.1",
|
74
|
-
"playwright": "^1.47.1",
|
75
|
-
"prettier": "^3.3.3",
|
76
|
-
"sass": "^1.79.1",
|
77
|
-
"stylelint": "^15.11.0",
|
78
|
-
"stylelint-config-standard": "^34.0.0",
|
79
|
-
"stylelint-config-standard-scss": "^11.1.0",
|
63
|
+
"@types/node": "^22.9.3",
|
64
|
+
"@vitest/browser": "^2.1.5",
|
65
|
+
"@vitest/coverage-istanbul": "^2.1.5",
|
66
|
+
"@vitest/ui": "^2.1.5",
|
67
|
+
"playwright": "^1.49.0",
|
68
|
+
"sass": "^1.81.0",
|
69
|
+
"stylelint": "^16.10.0",
|
70
|
+
"stylelint-config-standard": "^36.0.1",
|
71
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
80
72
|
"stylelint-order": "^6.0.4",
|
81
|
-
"stylelint-scss": "^
|
82
|
-
"typescript": "^5.
|
83
|
-
"vite": "^5.4.
|
84
|
-
"
|
73
|
+
"stylelint-scss": "^6.10.0",
|
74
|
+
"typescript": "^5.7.2",
|
75
|
+
"vite": "^5.4.11",
|
76
|
+
"vite-plugin-dts": "^4.3.0",
|
77
|
+
"vite-plugin-strip-comments": "^0.0.3",
|
78
|
+
"vitest": "^2.1.5"
|
85
79
|
},
|
86
80
|
"scripts": {
|
87
81
|
"pre-test": "pnpm clean-coverage",
|
88
|
-
"test": "pnpm pre-test && vitest --config vitest.config.
|
89
|
-
"test-ui": "pnpm pre-test && vitest --config vitest.config-ui.
|
90
|
-
"badges": "npx -p dependency-version-badge update-badge typescript
|
82
|
+
"test": "pnpm pre-test && vitest --config vitest.config.mts",
|
83
|
+
"test-ui": "pnpm pre-test && vitest --config vitest.config-ui.mts --browser=chrome",
|
84
|
+
"badges": "npx -p dependency-version-badge update-badge typescript vitest vite",
|
91
85
|
"clean-coverage": "rm -rf coverage && rm -rf .nyc_output",
|
92
|
-
"
|
93
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
86
|
+
"format": "deno fmt src/ts",
|
94
87
|
"lint": "pnpm lint:ts && pnpm check:ts && pnpm lint:css",
|
95
|
-
"fix:ts": "
|
96
|
-
"lint:ts": "
|
88
|
+
"fix:ts": "deno lint src/ts --fix",
|
89
|
+
"lint:ts": "deno lint src/ts",
|
97
90
|
"check:ts": "tsc --noEmit",
|
98
91
|
"fix:css": "stylelint --config .stylelintrc.json --fix scss \"src/scss/*.scss\"",
|
99
92
|
"lint:css": "stylelint --config .stylelintrc.json scss \"src/scss/*.scss\"",
|
100
|
-
"build": "vite build
|
93
|
+
"build": "vite build",
|
101
94
|
"dev": "vite --open ./docs/dev.html --port 8577",
|
102
|
-
"
|
103
|
-
"copy": "pnpm copy-css-cp && pnpm copy-css-rtl && pnpm copy-js && pnpm copy-js-map",
|
95
|
+
"copy": "pnpm run --parallel /^copy-/",
|
104
96
|
"copy-js": "cp dist/js/color-picker.js docs/js/color-picker.js",
|
105
97
|
"copy-js-map": "cp dist/js/color-picker.js.map docs/js/color-picker.js.map",
|
106
|
-
"copy-css
|
98
|
+
"copy-css": "cp dist/css/color-picker.css docs/css/color-picker.css",
|
107
99
|
"copy-css-rtl": "cp dist/css/color-picker.rtl.css docs/css/color-picker.rtl.css",
|
108
|
-
"compile": "pnpm lint:css && pnpm
|
109
|
-
"compile-scss": "node
|
110
|
-
"compile-scss-min": "
|
111
|
-
"compile-scss-rtl": "
|
112
|
-
"compile-scss-rtl-min": "
|
100
|
+
"compile": "pnpm lint:css && pnpm run --parallel /^compile-/",
|
101
|
+
"compile-scss": "pnpm sass src/scss/color-picker.scss dist/css/color-picker.css --pkg-importer=node --style=expanded --load-path=src/scss",
|
102
|
+
"compile-scss-min": "pnpm sass src/scss/color-picker.scss dist/css/color-picker.min.css --pkg-importer=node --style=compressed --load-path=src/scss",
|
103
|
+
"compile-scss-rtl": "pnpm sass src/scss/color-picker.rtl.scss dist/css/color-picker.rtl.css --pkg-importer=node --style=expanded --load-path=src/scss",
|
104
|
+
"compile-scss-rtl-min": "pnpm sass src/scss/color-picker.rtl.scss dist/css/color-picker.rtl.min.css --pkg-importer=node --style=compressed --load-path=src/scss"
|
113
105
|
}
|
114
106
|
}
|
package/.eslintrc.cjs
DELETED
@@ -1,199 +0,0 @@
|
|
1
|
-
module.exports = {
|
2
|
-
env: {
|
3
|
-
browser: true,
|
4
|
-
es6: true,
|
5
|
-
},
|
6
|
-
extends: ['plugin:@typescript-eslint/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking'],
|
7
|
-
parser: '@typescript-eslint/parser',
|
8
|
-
parserOptions: {
|
9
|
-
project: 'tsconfig.json',
|
10
|
-
sourceType: 'module',
|
11
|
-
},
|
12
|
-
plugins: [
|
13
|
-
'eslint-plugin-jsdoc',
|
14
|
-
'eslint-plugin-prefer-arrow',
|
15
|
-
// "eslint-plugin-react",
|
16
|
-
'@typescript-eslint',
|
17
|
-
'prettier',
|
18
|
-
],
|
19
|
-
root: true,
|
20
|
-
rules: {
|
21
|
-
'prettier/prettier': 'error',
|
22
|
-
'@typescript-eslint/adjacent-overload-signatures': 'error',
|
23
|
-
'@typescript-eslint/array-type': [
|
24
|
-
'error',
|
25
|
-
{
|
26
|
-
default: 'array',
|
27
|
-
},
|
28
|
-
],
|
29
|
-
'@typescript-eslint/ban-types': [
|
30
|
-
'error',
|
31
|
-
{
|
32
|
-
types: {
|
33
|
-
Object: {
|
34
|
-
message: 'Avoid using the `Object` type. Did you mean `object`?',
|
35
|
-
},
|
36
|
-
Function: {
|
37
|
-
message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.',
|
38
|
-
},
|
39
|
-
Boolean: {
|
40
|
-
message: 'Avoid using the `Boolean` type. Did you mean `boolean`?',
|
41
|
-
},
|
42
|
-
Number: {
|
43
|
-
message: 'Avoid using the `Number` type. Did you mean `number`?',
|
44
|
-
},
|
45
|
-
String: {
|
46
|
-
message: 'Avoid using the `String` type. Did you mean `string`?',
|
47
|
-
},
|
48
|
-
Symbol: {
|
49
|
-
message: 'Avoid using the `Symbol` type. Did you mean `symbol`?',
|
50
|
-
},
|
51
|
-
},
|
52
|
-
},
|
53
|
-
],
|
54
|
-
'@typescript-eslint/unbound-method': 'off',
|
55
|
-
'@typescript-eslint/consistent-type-assertions': 'error',
|
56
|
-
'@typescript-eslint/dot-notation': 'error',
|
57
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
58
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
59
|
-
'@typescript-eslint/indent': 'off',
|
60
|
-
'@typescript-eslint/member-delimiter-style': [
|
61
|
-
'off',
|
62
|
-
{
|
63
|
-
multiline: {
|
64
|
-
delimiter: 'none',
|
65
|
-
requireLast: true,
|
66
|
-
},
|
67
|
-
singleline: {
|
68
|
-
delimiter: 'semi',
|
69
|
-
requireLast: false,
|
70
|
-
},
|
71
|
-
},
|
72
|
-
],
|
73
|
-
'@typescript-eslint/naming-convention': 'off', // error
|
74
|
-
'@typescript-eslint/no-empty-function': 'error',
|
75
|
-
'@typescript-eslint/no-empty-interface': 'error',
|
76
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
77
|
-
'@typescript-eslint/no-misused-new': 'error',
|
78
|
-
'@typescript-eslint/no-namespace': 'error',
|
79
|
-
'@typescript-eslint/no-parameter-properties': 'off',
|
80
|
-
'@typescript-eslint/no-shadow': [
|
81
|
-
'error',
|
82
|
-
{
|
83
|
-
hoist: 'all',
|
84
|
-
},
|
85
|
-
],
|
86
|
-
'@typescript-eslint/no-unused-expressions': 'error',
|
87
|
-
'@typescript-eslint/no-use-before-define': 'off',
|
88
|
-
'@typescript-eslint/no-var-requires': 'error',
|
89
|
-
'@typescript-eslint/prefer-for-of': 'error',
|
90
|
-
'@typescript-eslint/prefer-function-type': 'error',
|
91
|
-
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
92
|
-
'@typescript-eslint/quotes': 'off',
|
93
|
-
'@typescript-eslint/semi': ['off', null],
|
94
|
-
'@typescript-eslint/triple-slash-reference': [
|
95
|
-
'error',
|
96
|
-
{
|
97
|
-
path: 'always',
|
98
|
-
types: 'prefer-import',
|
99
|
-
lib: 'always',
|
100
|
-
},
|
101
|
-
],
|
102
|
-
'@typescript-eslint/type-annotation-spacing': 'off',
|
103
|
-
'@typescript-eslint/typedef': 'off',
|
104
|
-
'@typescript-eslint/unified-signatures': 'error',
|
105
|
-
'arrow-parens': ['off', 'always'],
|
106
|
-
'brace-style': ['off', 'off'],
|
107
|
-
'comma-dangle': 'off',
|
108
|
-
complexity: 'off',
|
109
|
-
'constructor-super': 'error',
|
110
|
-
'dot-notation': 'off',
|
111
|
-
'eol-last': 'off',
|
112
|
-
eqeqeq: ['error', 'smart'],
|
113
|
-
'guard-for-in': 'error',
|
114
|
-
'id-denylist': [
|
115
|
-
'error',
|
116
|
-
'any',
|
117
|
-
'Number',
|
118
|
-
'number',
|
119
|
-
'String',
|
120
|
-
'string',
|
121
|
-
'Boolean',
|
122
|
-
'boolean',
|
123
|
-
'Undefined',
|
124
|
-
'undefined',
|
125
|
-
],
|
126
|
-
'id-match': 'error',
|
127
|
-
indent: 'off',
|
128
|
-
'jsdoc/check-alignment': 'error',
|
129
|
-
'jsdoc/check-indentation': 'error',
|
130
|
-
// 'jsdoc/newline-after-description': 'error',
|
131
|
-
'linebreak-style': 'off',
|
132
|
-
'max-classes-per-file': ['error', 1],
|
133
|
-
'max-len': 'off',
|
134
|
-
'new-parens': 'off',
|
135
|
-
'newline-per-chained-call': 'off',
|
136
|
-
'no-bitwise': 'error',
|
137
|
-
'no-caller': 'error',
|
138
|
-
'no-cond-assign': 'error',
|
139
|
-
'no-console': 'error',
|
140
|
-
'no-debugger': 'error',
|
141
|
-
'no-empty': 'error',
|
142
|
-
'no-empty-function': 'off',
|
143
|
-
'no-eval': 'error',
|
144
|
-
'no-extra-semi': 'off',
|
145
|
-
'no-fallthrough': 'off',
|
146
|
-
'no-invalid-this': 'off',
|
147
|
-
'no-irregular-whitespace': 'off',
|
148
|
-
'no-multiple-empty-lines': 'off',
|
149
|
-
'no-new-wrappers': 'error',
|
150
|
-
'no-shadow': 'off',
|
151
|
-
'no-throw-literal': 'error',
|
152
|
-
'no-trailing-spaces': 'off',
|
153
|
-
'no-undef-init': 'error',
|
154
|
-
'no-underscore-dangle': 'off',
|
155
|
-
'no-unsafe-finally': 'error',
|
156
|
-
'no-unused-expressions': 'off',
|
157
|
-
'no-unused-labels': 'error',
|
158
|
-
'no-use-before-define': 'off',
|
159
|
-
'no-var': 'error',
|
160
|
-
'object-shorthand': 'error',
|
161
|
-
'one-var': ['error', 'never'],
|
162
|
-
'padded-blocks': [
|
163
|
-
'off',
|
164
|
-
{
|
165
|
-
blocks: 'never',
|
166
|
-
},
|
167
|
-
{
|
168
|
-
allowSingleLineBlocks: true,
|
169
|
-
},
|
170
|
-
],
|
171
|
-
'prefer-arrow/prefer-arrow-functions': 'error',
|
172
|
-
'prefer-const': 'error',
|
173
|
-
'quote-props': 'off',
|
174
|
-
quotes: 'off',
|
175
|
-
radix: 'error',
|
176
|
-
// "react/jsx-curly-spacing": "off",
|
177
|
-
// "react/jsx-equals-spacing": "off",
|
178
|
-
// "react/jsx-tag-spacing": [
|
179
|
-
// "off",
|
180
|
-
// {
|
181
|
-
// "afterOpening": "allow",
|
182
|
-
// "closingSlash": "allow"
|
183
|
-
// }
|
184
|
-
// ],
|
185
|
-
// "react/jsx-wrap-multilines": "off",
|
186
|
-
semi: 'off',
|
187
|
-
'space-before-function-paren': 'off',
|
188
|
-
'space-in-parens': ['off', 'never'],
|
189
|
-
'spaced-comment': [
|
190
|
-
'error',
|
191
|
-
'always',
|
192
|
-
{
|
193
|
-
markers: ['/'],
|
194
|
-
},
|
195
|
-
],
|
196
|
-
'use-isnan': 'error',
|
197
|
-
'valid-typeof': 'off',
|
198
|
-
},
|
199
|
-
};
|
package/.lgtm.yml
DELETED
package/.prettierrc.json
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"arrowParens": "avoid",
|
3
|
-
"bracketSpacing": true,
|
4
|
-
"endOfLine": "lf",
|
5
|
-
"bracketSameLine": false,
|
6
|
-
"jsxSingleQuote": false,
|
7
|
-
"printWidth": 120,
|
8
|
-
"proseWrap": "preserve",
|
9
|
-
"quoteProps": "as-needed",
|
10
|
-
"semi": true,
|
11
|
-
"singleQuote": true,
|
12
|
-
"tabWidth": 2,
|
13
|
-
"trailingComma": "all",
|
14
|
-
"useTabs": false
|
15
|
-
}
|
package/.stylelintrc.json
DELETED
@@ -1,236 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"plugins": [
|
3
|
-
"stylelint-scss",
|
4
|
-
"stylelint-order"
|
5
|
-
],
|
6
|
-
"extends": ["stylelint-config-standard-scss"],
|
7
|
-
"rules": {
|
8
|
-
"color-named": "never",
|
9
|
-
"declaration-block-no-duplicate-properties": true,
|
10
|
-
"no-descending-specificity": null,
|
11
|
-
"color-function-notation": null,
|
12
|
-
"block-no-empty": true,
|
13
|
-
"color-hex-length": "short",
|
14
|
-
"color-no-invalid-hex": true,
|
15
|
-
"max-nesting-depth": 4,
|
16
|
-
"selector-max-compound-selectors": 5,
|
17
|
-
"order/properties-order": [
|
18
|
-
"position",
|
19
|
-
"top",
|
20
|
-
"right",
|
21
|
-
"bottom",
|
22
|
-
"left",
|
23
|
-
"z-index",
|
24
|
-
"box-sizing",
|
25
|
-
"display",
|
26
|
-
"flex",
|
27
|
-
"flex-align",
|
28
|
-
"flex-basis",
|
29
|
-
"flex-direction",
|
30
|
-
"flex-wrap",
|
31
|
-
"flex-flow",
|
32
|
-
"flex-grow",
|
33
|
-
"flex-order",
|
34
|
-
"flex-pack",
|
35
|
-
"align-items",
|
36
|
-
"align-self",
|
37
|
-
"justify-content",
|
38
|
-
"float",
|
39
|
-
"width",
|
40
|
-
"min-width",
|
41
|
-
"max-width",
|
42
|
-
"height",
|
43
|
-
"min-height",
|
44
|
-
"max-height",
|
45
|
-
"padding",
|
46
|
-
"padding-top",
|
47
|
-
"padding-right",
|
48
|
-
"padding-bottom",
|
49
|
-
"padding-left",
|
50
|
-
"margin",
|
51
|
-
"margin-top",
|
52
|
-
"margin-right",
|
53
|
-
"margin-bottom",
|
54
|
-
"margin-left",
|
55
|
-
"overflow",
|
56
|
-
"overflow-x",
|
57
|
-
"overflow-y",
|
58
|
-
"-webkit-overflow-scrolling",
|
59
|
-
"-ms-overflow-style",
|
60
|
-
"clip",
|
61
|
-
"clear",
|
62
|
-
"font",
|
63
|
-
"font-family",
|
64
|
-
"font-size",
|
65
|
-
"font-style",
|
66
|
-
"font-weight",
|
67
|
-
"font-variant",
|
68
|
-
"font-size-adjust",
|
69
|
-
"font-stretch",
|
70
|
-
"font-effect",
|
71
|
-
"font-emphasize",
|
72
|
-
"font-emphasize-position",
|
73
|
-
"font-emphasize-style",
|
74
|
-
"font-smooth",
|
75
|
-
"hyphens",
|
76
|
-
"line-height",
|
77
|
-
"color",
|
78
|
-
"text-align",
|
79
|
-
"text-align-last",
|
80
|
-
"text-emphasis",
|
81
|
-
"text-emphasis-color",
|
82
|
-
"text-emphasis-style",
|
83
|
-
"text-emphasis-position",
|
84
|
-
"text-decoration",
|
85
|
-
"text-indent",
|
86
|
-
"text-justify",
|
87
|
-
"text-outline",
|
88
|
-
"text-overflow",
|
89
|
-
"text-overflow-ellipsis",
|
90
|
-
"text-overflow-mode",
|
91
|
-
"text-shadow",
|
92
|
-
"text-transform",
|
93
|
-
"text-wrap",
|
94
|
-
"-webkit-text-size-adjust",
|
95
|
-
"-ms-text-size-adjust",
|
96
|
-
"letter-spacing",
|
97
|
-
"word-break",
|
98
|
-
"word-spacing",
|
99
|
-
"word-wrap",
|
100
|
-
"overflow-wrap",
|
101
|
-
"tab-size",
|
102
|
-
"white-space",
|
103
|
-
"vertical-align",
|
104
|
-
"list-style",
|
105
|
-
"list-style-position",
|
106
|
-
"list-style-type",
|
107
|
-
"list-style-image",
|
108
|
-
"pointer-events",
|
109
|
-
"touch-action",
|
110
|
-
"cursor",
|
111
|
-
"visibility",
|
112
|
-
"zoom",
|
113
|
-
"table-layout",
|
114
|
-
"empty-cells",
|
115
|
-
"caption-side",
|
116
|
-
"border-spacing",
|
117
|
-
"border-collapse",
|
118
|
-
"content",
|
119
|
-
"quotes",
|
120
|
-
"counter-reset",
|
121
|
-
"counter-increment",
|
122
|
-
"resize",
|
123
|
-
"user-select",
|
124
|
-
"nav-index",
|
125
|
-
"nav-up",
|
126
|
-
"nav-right",
|
127
|
-
"nav-down",
|
128
|
-
"nav-left",
|
129
|
-
"background",
|
130
|
-
"background-color",
|
131
|
-
"background-image",
|
132
|
-
"filter",
|
133
|
-
"background-repeat",
|
134
|
-
"background-attachment",
|
135
|
-
"background-position",
|
136
|
-
"background-position-x",
|
137
|
-
"background-position-y",
|
138
|
-
"background-clip",
|
139
|
-
"background-origin",
|
140
|
-
"background-size",
|
141
|
-
"border",
|
142
|
-
"border-color",
|
143
|
-
"border-style",
|
144
|
-
"border-width",
|
145
|
-
"border-top",
|
146
|
-
"border-top-color",
|
147
|
-
"border-top-style",
|
148
|
-
"border-top-width",
|
149
|
-
"border-right",
|
150
|
-
"border-right-color",
|
151
|
-
"border-right-style",
|
152
|
-
"border-right-width",
|
153
|
-
"border-bottom",
|
154
|
-
"border-bottom-color",
|
155
|
-
"border-bottom-style",
|
156
|
-
"border-bottom-width",
|
157
|
-
"border-left",
|
158
|
-
"border-left-color",
|
159
|
-
"border-left-style",
|
160
|
-
"border-left-width",
|
161
|
-
"border-radius",
|
162
|
-
"border-top-left-radius",
|
163
|
-
"border-top-right-radius",
|
164
|
-
"border-bottom-right-radius",
|
165
|
-
"border-bottom-left-radius",
|
166
|
-
"border-image",
|
167
|
-
"border-image-source",
|
168
|
-
"border-image-slice",
|
169
|
-
"border-image-width",
|
170
|
-
"border-image-outset",
|
171
|
-
"border-image-repeat",
|
172
|
-
"outline",
|
173
|
-
"outline-width",
|
174
|
-
"outline-style",
|
175
|
-
"outline-color",
|
176
|
-
"outline-offset",
|
177
|
-
"box-shadow",
|
178
|
-
"opacity",
|
179
|
-
"-ms-interpolation-mode",
|
180
|
-
"transition",
|
181
|
-
"transition-delay",
|
182
|
-
"transition-timing-function",
|
183
|
-
"transition-duration",
|
184
|
-
"transition-property",
|
185
|
-
"transform",
|
186
|
-
"transform-origin",
|
187
|
-
"animation",
|
188
|
-
"animation-name",
|
189
|
-
"animation-duration",
|
190
|
-
"animation-play-state",
|
191
|
-
"animation-timing-function",
|
192
|
-
"animation-delay",
|
193
|
-
"animation-iteration-count",
|
194
|
-
"animation-direction"
|
195
|
-
],
|
196
|
-
"function-url-no-scheme-relative": true,
|
197
|
-
"function-url-quotes": "always",
|
198
|
-
"length-zero-no-unit": true,
|
199
|
-
"property-no-unknown": true,
|
200
|
-
"property-no-vendor-prefix": true,
|
201
|
-
"scss/dollar-variable-colon-space-before": "never",
|
202
|
-
"scss/selector-no-redundant-nesting-selector": true,
|
203
|
-
"shorthand-property-no-redundant-values": true,
|
204
|
-
"unit-allowed-list": [
|
205
|
-
"ch",
|
206
|
-
"em",
|
207
|
-
"ex",
|
208
|
-
"rem",
|
209
|
-
"cm",
|
210
|
-
"in",
|
211
|
-
"mm",
|
212
|
-
"pc",
|
213
|
-
"pt",
|
214
|
-
"px",
|
215
|
-
"q",
|
216
|
-
"vh",
|
217
|
-
"vw",
|
218
|
-
"vmin",
|
219
|
-
"vmax",
|
220
|
-
"fr",
|
221
|
-
"deg",
|
222
|
-
"grad",
|
223
|
-
"rad",
|
224
|
-
"turn",
|
225
|
-
"ms",
|
226
|
-
"s",
|
227
|
-
"Hz",
|
228
|
-
"kHz",
|
229
|
-
"dpi",
|
230
|
-
"dpcm",
|
231
|
-
"dppx",
|
232
|
-
"%"
|
233
|
-
],
|
234
|
-
"value-no-vendor-prefix": true
|
235
|
-
}
|
236
|
-
}
|
package/compile.cjs
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
// ColorPicker | Compile SCSS Script
|
2
|
-
// Build script to compile and minify the CSS file from SCSS folder
|
3
|
-
// Usage: npm run compile-scss
|
4
|
-
|
5
|
-
const {writeFileSync} = require("fs");
|
6
|
-
// const writeFileSync = fs.writeFileSync;
|
7
|
-
// import { writeFileSync } from "fs";
|
8
|
-
const sass = require("sass");
|
9
|
-
const pkg = require("./package.json");
|
10
|
-
const year = new Date().getFullYear();
|
11
|
-
const args = {};
|
12
|
-
const pkName = pkg.name.includes(pkg.author) ? pkg.name.replace('@','') : `${pkg.author}/${pkg.name}`;
|
13
|
-
const home = `https://github.com/${pkName}`;
|
14
|
-
|
15
|
-
const ARGS = process.argv.slice(-1)[0].split(",");
|
16
|
-
ARGS.map((x) => {
|
17
|
-
const [name, value] = x.split(":");
|
18
|
-
args[name] = value;
|
19
|
-
});
|
20
|
-
|
21
|
-
const RTL = args.DIR === "rtl" ? "RTL " : "";
|
22
|
-
const banner =
|
23
|
-
args.MIN === "true"
|
24
|
-
? `/* ColorPicker ${RTL}v${pkg.version} | ${pkg.author} © ${year} | ${pkg.license}-License */`
|
25
|
-
: `/*!
|
26
|
-
* ColorPicker v${pkg.version} (${pkg.homepage})
|
27
|
-
* Copyright ${year} © ${pkg.author}
|
28
|
-
* Licensed under MIT (${home}/blob/main/LICENSE)
|
29
|
-
*/`;
|
30
|
-
|
31
|
-
const DIR = args.DIR === "rtl" ? ".rtl" : "";
|
32
|
-
const MIN = args.MIN === "true" ? ".min" : "";
|
33
|
-
const INPUTFILE = args.INPUTFILE
|
34
|
-
? args.INPUTFILE
|
35
|
-
: `./src/scss/color-picker${DIR}.scss`;
|
36
|
-
const OUTPUTFILE = args.OUTPUTFILE
|
37
|
-
? args.OUTPUTFILE
|
38
|
-
: `./dist/css/color-picker${DIR}${MIN}.css`;
|
39
|
-
const COMPRESS = args.MIN === "true" ? "compressed" : "expanded";
|
40
|
-
|
41
|
-
// Helper Functions
|
42
|
-
function compile(inputPath, writePath, compressType) {
|
43
|
-
const result = sass.compile(inputPath, {
|
44
|
-
style: compressType,
|
45
|
-
loadPaths: ["src/scss"],
|
46
|
-
});
|
47
|
-
writeFileSync(writePath, `${banner}\n` + result.css.toString());
|
48
|
-
console.log(`✅ Compiled ${inputPath} to ${writePath}.`);
|
49
|
-
}
|
50
|
-
|
51
|
-
compile(INPUTFILE, OUTPUTFILE, COMPRESS);
|
package/dts.config.ts
DELETED