@citizenplane/pimp 7.0.2 β 8.0.2
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/.eslintrc.js +1 -0
- package/.lintstagedrc.json +2 -2
- package/README.md +18 -6
- package/dist/pimp.es.js +603 -484
- package/dist/pimp.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package-lock.json +2486 -1851
- package/package.json +19 -19
- package/src/App.vue +0 -1
- package/src/README.md +23 -9
- package/src/assets/styles/base/_base.scss +2 -15
- package/src/assets/styles/helpers/_functions.scss +1 -1
- package/src/assets/styles/helpers/_keyframes.scss +25 -0
- package/src/assets/styles/lib/_normalize.scss +19 -41
- package/src/assets/styles/variables/_colors.scss +16 -16
- package/src/assets/styles/variables/_sizing.scss +1 -1
- package/src/assets/styles/variables/_spacing.scss +2 -2
- package/src/components/atomic-elements/CpBadge.vue +41 -29
- package/src/components/buttons/CpButton.vue +1 -1
- package/src/components/core/BaseInputLabel/index.vue +0 -1
- package/src/components/core/playground-sections/SectionAtomicElements.vue +20 -4
- package/src/components/core/playground-sections/SectionDatePickers.vue +32 -1
- package/src/components/core/playground-sections/SectionSimpleInputs.vue +6 -1
- package/src/components/date-pickers/CpCalendar.vue +57 -3
- package/src/components/date-pickers/CpDate/index.scss +162 -0
- package/src/components/date-pickers/{CpDate.vue β CpDate/index.vue} +77 -195
- package/src/components/date-pickers/CpDatepicker.vue +65 -4
- package/src/components/feedback-indicators/CpAlert.vue +16 -8
- package/src/components/index.js +1 -1
- package/src/components/inputs/CpInput.vue +59 -75
- package/src/components/inputs/CpTextarea.vue +19 -2
- package/src/components/lists-and-table/CpTable/index.scss +15 -9
- package/src/components/selects/CpSelect.vue +21 -2
- package/src/components/toggles/CpCheckbox/index.scss +1 -1
- package/src/components/toggles/CpRadio/index.scss +2 -2
- package/src/components/visual/CpIcon.vue +9 -2
- package/src/helpers/index.js +3 -3
- package/src/libs/CoreDatepicker.vue +110 -121
package/.eslintrc.js
CHANGED
package/.lintstagedrc.json
CHANGED
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<br />
|
|
15
15
|
|
|
16
16
|
---
|
|
17
|
+
|
|
17
18
|
## Pimp mission
|
|
18
19
|
|
|
19
20
|
Pimp aims to bring order and consistency to all of our products and processes. We elevate user experience and increase the speed and efficiency of how we design and build products.
|
|
@@ -33,8 +34,11 @@ yarn add @citizenplane/pimp
|
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
## Usage
|
|
37
|
+
|
|
36
38
|
### In a nuxt project
|
|
37
|
-
|
|
39
|
+
|
|
40
|
+
1. Add this line to your `nuxt-config.js`:
|
|
41
|
+
|
|
38
42
|
```javascript
|
|
39
43
|
// nuxt-config.js
|
|
40
44
|
...
|
|
@@ -48,20 +52,20 @@ css: [
|
|
|
48
52
|
|
|
49
53
|
```vue
|
|
50
54
|
<template>
|
|
51
|
-
<cp-button appearance=
|
|
55
|
+
<cp-button appearance="primary" color="purple" />
|
|
52
56
|
</template>
|
|
53
57
|
<script>
|
|
54
58
|
import CpButton from '@citizenplane/pimp'
|
|
55
59
|
|
|
56
60
|
export default {
|
|
57
61
|
components: {
|
|
58
|
-
CpButton
|
|
62
|
+
CpButton,
|
|
59
63
|
},
|
|
60
64
|
}
|
|
61
65
|
</script>
|
|
62
66
|
```
|
|
63
67
|
|
|
64
|
-
If you want to use any component without having to import them manually, you can create a plugin:
|
|
68
|
+
If you want to use any component without having to import them manually, you can create a plugin:
|
|
65
69
|
|
|
66
70
|
1. Create a plugin called `citizenplane-pimp.js`:
|
|
67
71
|
|
|
@@ -73,6 +77,7 @@ import Pimp from '@citizenplane/pimp'
|
|
|
73
77
|
|
|
74
78
|
Vue.use(Pimp)
|
|
75
79
|
```
|
|
80
|
+
|
|
76
81
|
2. Add this line to your `nuxt-config.js`:
|
|
77
82
|
|
|
78
83
|
```javascript
|
|
@@ -83,19 +88,23 @@ plugins: [
|
|
|
83
88
|
]
|
|
84
89
|
...
|
|
85
90
|
```
|
|
91
|
+
|
|
86
92
|
3. Use components directly in your project without having to import nor declaring them:
|
|
93
|
+
|
|
87
94
|
```vue
|
|
88
95
|
<template>
|
|
89
|
-
<cp-button appearance=
|
|
96
|
+
<cp-button appearance="primary" color="purple" />
|
|
90
97
|
</template>
|
|
91
98
|
```
|
|
92
99
|
|
|
93
100
|
## Components
|
|
101
|
+
|
|
94
102
|
Now that you're all set up, you can retrieve components documentation on [pimp.citizenplane.com](https://pimp.citizenplane.com).
|
|
95
103
|
|
|
96
104
|

|
|
97
105
|
|
|
98
106
|
## π§βπ» Contributing to Pimp
|
|
107
|
+
|
|
99
108
|
We are working on making this project a fully open source. We appreciate any contributions you might make.
|
|
100
109
|
|
|
101
110
|
### π΄ Step 1. Fork this repository
|
|
@@ -123,7 +132,7 @@ Now go to `http://localhost:8080` in your browser.
|
|
|
123
132
|
|
|
124
133
|
### π Step 3. Make your changes
|
|
125
134
|
|
|
126
|
-
Now you can start developing!
|
|
135
|
+
Now you can start developing!
|
|
127
136
|
|
|
128
137
|
All the components are under the `src/components/` directory and associated code changes will automatically be reflected in the playground.
|
|
129
138
|
|
|
@@ -148,9 +157,11 @@ To be done
|
|
|
148
157
|
Congrats, you're officially a Pimp contributor!
|
|
149
158
|
|
|
150
159
|
## Feedback
|
|
160
|
+
|
|
151
161
|
We want to provide only components of the highest quality. We canβt do that without your feedback. If you have any suggestions about what we can do to improve components, please report it directly as an issue or drop us a line at <a href="mailto:tech@citizenplane.com">tech@citizenplane.com</a>.
|
|
152
162
|
|
|
153
163
|
## π Respect earns Respect
|
|
164
|
+
|
|
154
165
|
Please respect our Code of Conduct, in short:
|
|
155
166
|
|
|
156
167
|
- Using welcoming and inclusive language
|
|
@@ -160,6 +171,7 @@ Please respect our Code of Conduct, in short:
|
|
|
160
171
|
- Showing empathy towards other community members
|
|
161
172
|
|
|
162
173
|
## License
|
|
174
|
+
|
|
163
175
|
Pimp is released under the MIT license.
|
|
164
176
|
|
|
165
177
|
Copyright Β© 2021 CitizenPlane, Inc.
|