@citizenplane/pimp 8.1.0 → 8.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenplane/pimp",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "scripts": {
5
5
  "dev": "vite --host",
6
6
  "build": "vite build",
@@ -29,24 +29,24 @@
29
29
  "animejs": "^3.2.0",
30
30
  "core-js": "^3.26.1",
31
31
  "feather-icons": "^4.29.0",
32
- "luxon": "^3.1.0",
33
- "maska": "^1.5.0"
32
+ "luxon": "^3.1.1",
33
+ "maska": "^2.1.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@babel/core": "^7.20.2",
36
+ "@babel/core": "^7.20.5",
37
37
  "@vitejs/plugin-vue": "^2.3.4",
38
38
  "@vue/babel-preset-app": "^5.0.8",
39
39
  "@vue/eslint-config-prettier": "^7.0.0",
40
- "@vue/test-utils": "^2.2.2",
40
+ "@vue/test-utils": "^2.2.6",
41
41
  "babel-core": "^7.0.0-bridge.0",
42
- "eslint": "^8.27.0",
42
+ "eslint": "^8.29.0",
43
43
  "eslint-plugin-prettier": "^4.2.1",
44
- "eslint-plugin-vue": "^9.7.0",
44
+ "eslint-plugin-vue": "^9.8.0",
45
45
  "husky": "^8.0.2",
46
46
  "jest": "^26.6.3",
47
- "lint-staged": "^13.0.3",
48
- "prettier": "^2.7.1",
49
- "sass": "~1.56.1",
47
+ "lint-staged": "^13.1.0",
48
+ "prettier": "^2.8.1",
49
+ "sass": "~1.56.2",
50
50
  "sass-loader": "^13.2.0",
51
51
  "stylus": "^0.59.0",
52
52
  "stylus-loader": "^3.0.2",
@@ -6,7 +6,8 @@
6
6
  <div class="cpDate__inputs">
7
7
  <input
8
8
  v-model="day"
9
- v-maska="'##'"
9
+ v-maska
10
+ data-maska="##"
10
11
  :placeholder="dayInputPlaceholder"
11
12
  class="cpDate__day"
12
13
  inputmode="numeric"
@@ -33,7 +34,8 @@
33
34
  <div class="cpDate__divider" />
34
35
  <input
35
36
  v-model="year"
36
- v-maska="'####'"
37
+ v-maska
38
+ data-maska="####"
37
39
  :placeholder="yearInputPlaceholder"
38
40
  class="cpDate__year"
39
41
  inputmode="numeric"
@@ -1,5 +1,5 @@
1
1
  // PLUGINS
2
- import maska from 'maska'
2
+ import { vMaska } from 'maska'
3
3
 
4
4
  // DIRECTIVES
5
5
  import ClickOutside from '../directives/ClickOutside'
@@ -78,9 +78,7 @@ const Pimp = {
78
78
 
79
79
  // Directives
80
80
  app.directive('click-outside', ClickOutside)
81
-
82
- // Plugins
83
- app.use(maska)
81
+ app.directive('maska', vMaska)
84
82
  },
85
83
  }
86
84
 
@@ -22,7 +22,8 @@
22
22
  </div>
23
23
  <input
24
24
  :id="inputIdentifier"
25
- v-maska="mask"
25
+ v-maska
26
+ :data-maska="mask"
26
27
  :value="modelValue"
27
28
  v-bind="restAttributes"
28
29
  class="cpInput__inner"
@@ -129,7 +129,7 @@ $cp-radio-base-width: pxToEm(20);
129
129
  justify-content: space-between;
130
130
  flex-wrap: wrap;
131
131
  text-transform: capitalize;
132
- margin: 0 -$space;
132
+ margin: 0 (-$space);
133
133
  }
134
134
 
135
135
  &__label,
package/src/main.js CHANGED
@@ -10,12 +10,5 @@ app.use(Pimp)
10
10
  import Toaster from './plugins/toaster'
11
11
  app.use(Toaster)
12
12
 
13
- import Maska from 'maska'
14
- app.use(Maska)
15
-
16
- // Directives
17
- import ClickOutside from './directives/ClickOutside'
18
- app.directive('click-outside', ClickOutside)
19
-
20
13
  // Mount
21
14
  app.mount('#app')