@thednp/color-picker 2.0.0-alpha5 → 2.0.0-alpha7

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thednp/color-picker",
3
- "version": "2.0.0-alpha5",
3
+ "version": "2.0.0-alpha7",
4
4
  "author": "thednp",
5
5
  "license": "MIT",
6
6
  "description": "🎨 Modern Color Picker Component",
@@ -8,13 +8,29 @@
8
8
  "source": "./src/ts/index.ts",
9
9
  "main": "./dist/js/color-picker.js",
10
10
  "module": "./dist/js/color-picker.mjs",
11
- "types": "./dist/js/color-picker.d.ts",
12
11
  "style": "./dist/css/color-picker.css",
13
12
  "sass": "./src/scss/color-picker.scss",
14
13
  "exports": {
15
14
  ".": {
16
15
  "require": "./dist/js/color-picker.cjs",
17
- "import": "./dist/js/color-picker.mjs"
16
+ "import": "./dist/js/color-picker.mjs",
17
+ "types": "./dist/js/color-picker.d.ts"
18
+ },
19
+ "./dist/color-picker.css": {
20
+ "import": "./dist/color-picker.css",
21
+ "require": "./dist/color-picker.css"
22
+ },
23
+ "./dist/color-picker.rtl.css": {
24
+ "import": "./dist/color-picker.rtl.css",
25
+ "require": "./dist/color-picker.rtl.css"
26
+ },
27
+ "./src/scss/color-picker.scss": {
28
+ "import": "./src/scss/color-picker.scss",
29
+ "require": "./src/scss/color-picker.scss"
30
+ },
31
+ "./src/scss/color-picker.rtl.scss": {
32
+ "import": "./src/scss/color-picker.rtl.scss",
33
+ "require": "./src/scss/color-picker.rtl.scss"
18
34
  }
19
35
  },
20
36
  "scripts": {
@@ -63,36 +79,36 @@
63
79
  "typescript"
64
80
  ],
65
81
  "dependencies": {
66
- "@thednp/color": "^1.0.7",
67
- "@thednp/event-listener": "^2.0.1",
68
- "@thednp/shorty": "^2.0.0-alpha15"
82
+ "@thednp/color": "^1.0.8",
83
+ "@thednp/event-listener": "^2.0.2",
84
+ "@thednp/shorty": "^2.0.0-alpha16"
69
85
  },
70
86
  "devDependencies": {
71
87
  "@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
72
- "@cypress/code-coverage": "^3.10.7",
88
+ "@cypress/code-coverage": "^3.11.0",
73
89
  "@types/istanbul-lib-instrument": "^1.7.4",
74
- "@typescript-eslint/eslint-plugin": "^5.60.1",
75
- "@typescript-eslint/parser": "^5.60.1",
76
- "cypress": "^12.16.0",
90
+ "@typescript-eslint/eslint-plugin": "^6.3.0",
91
+ "@typescript-eslint/parser": "^6.3.0",
92
+ "cypress": "^12.17.3",
77
93
  "dts-bundle-generator": "^8.0.1",
78
- "eslint": "^8.43.0",
79
- "eslint-plugin-jsdoc": "^46.3.0",
94
+ "eslint": "^8.47.0",
95
+ "eslint-plugin-jsdoc": "^46.4.6",
80
96
  "eslint-plugin-prefer-arrow": "^1.2.3",
81
- "eslint-plugin-prettier": "^4.2.1",
97
+ "eslint-plugin-prettier": "^5.0.0",
82
98
  "istanbul-lib-coverage": "^3.2.0",
83
- "istanbul-lib-instrument": "^5.2.1",
99
+ "istanbul-lib-instrument": "^6.0.0",
84
100
  "ncp": "^2.0.0",
85
101
  "npm-run-all": "^4.1.5",
86
102
  "nyc": "^15.1.0",
87
- "prettier": "^2.8.8",
103
+ "prettier": "^3.0.1",
88
104
  "rimraf": "^5.0.1",
89
- "sass": "^1.63.6",
90
- "stylelint": "^15.9.0",
91
- "stylelint-config-standard": "^33.0.0",
92
- "stylelint-config-standard-scss": "^9.0.0",
105
+ "sass": "^1.65.1",
106
+ "stylelint": "^15.10.2",
107
+ "stylelint-config-standard": "^34.0.0",
108
+ "stylelint-config-standard-scss": "^10.0.0",
93
109
  "stylelint-order": "^6.0.3",
94
- "stylelint-scss": "^5.0.1",
95
- "typescript": "^5.1.3",
96
- "vite": "^4.3.9"
110
+ "stylelint-scss": "^5.1.0",
111
+ "typescript": "^5.1.6",
112
+ "vite": "^4.4.9"
97
113
  }
98
114
  }
@@ -5,6 +5,10 @@
5
5
  position: relative;
6
6
  display: flex;
7
7
 
8
+ *, *::before, *::after {
9
+ box-sizing: border-box;
10
+ }
11
+
8
12
  @each $name in "white", "black" {
9
13
  @each $lvl in $transparency-levels {
10
14
  @if type-of($name) == "string" and type-of($lvl) == "number" {
@@ -98,7 +102,8 @@
98
102
  /* btn-appearance */
99
103
  .btn-appearance {
100
104
  width: 100%;
101
- height: 1.5rem;
105
+
106
+ // height: 1.5rem;
102
107
  padding: .6rem 1rem;
103
108
  font-size: 1rem;
104
109
  line-height: 1.5;
@@ -151,10 +156,10 @@
151
156
  /* picker-toggle */
152
157
  .picker-toggle {
153
158
  position: absolute;
154
- top: 0;
155
- left: 0;
159
+ inset: 0;
156
160
  width: 100%;
157
161
  height: 100%;
162
+ cursor: pointer;
158
163
  background: transparent;
159
164
  border: 0;
160
165
  }
@@ -461,6 +466,7 @@
461
466
  position: absolute;
462
467
  top: 0;
463
468
  left: 0;
469
+ width: 100%;
464
470
  height: 7px;
465
471
 
466
472
  /* important for mobile devices */