@propelinc/citrus-ui 0.2.6 → 0.2.7
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/.nvmrc +1 -0
- package/README.md +82 -15
- package/dist/citrus-ui.common.js +27 -27
- package/dist/citrus-ui.common.js.map +1 -1
- package/dist/citrus-ui.css +1 -1
- package/dist/citrus-ui.umd.js +27 -27
- package/dist/citrus-ui.umd.js.map +1 -1
- package/dist/citrus-ui.umd.min.js +3 -3
- package/dist/citrus-ui.umd.min.js.map +1 -1
- package/package.json +4 -4
- package/src/components/CAlert.vue +6 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propelinc/citrus-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/propelinc/citrus-ui"
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"license": "UNLICENSED",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build:dist": "vue-cli-service build --target lib ./src/index.ts",
|
|
11
|
+
"build:storybook": "vue-cli-service storybook:build -c .storybook",
|
|
11
12
|
"generate:component": "plop component",
|
|
12
13
|
"lint": "npm run lint:js && npm run lint:css",
|
|
13
14
|
"lint:css": "stylelint \"src/**/*.(vue|less)\"",
|
|
14
15
|
"lint:js": "vue-cli-service lint",
|
|
15
16
|
"publish:dist": "npm run build:dist && npm publish",
|
|
16
|
-
"storybook
|
|
17
|
-
"storybook
|
|
18
|
-
"storybook:publish": "storybook-to-aws-s3 --script=\"storybook:build\" --bucket-path=citrus-ui-storybook",
|
|
17
|
+
"publish:storybook": "storybook-to-aws-s3 --script=\"storybook:build\" --bucket-path=citrus-ui-storybook",
|
|
18
|
+
"serve:storybook": "vue-cli-service storybook:serve -p 6006 -c .storybook",
|
|
19
19
|
"test:unit": "vue-cli-service test:unit"
|
|
20
20
|
},
|
|
21
21
|
"main": "./dist/citrus-ui.common.js",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-snackbar
|
|
3
3
|
data-test="alert"
|
|
4
|
-
class="
|
|
4
|
+
class="c-alert"
|
|
5
5
|
:class="{
|
|
6
|
-
'
|
|
7
|
-
'
|
|
6
|
+
'c-alert--error': error,
|
|
7
|
+
'c-alert--success': success,
|
|
8
8
|
}"
|
|
9
9
|
top
|
|
10
10
|
:timeout="timeout"
|
|
@@ -56,8 +56,7 @@ export default class CAlert extends Vue {
|
|
|
56
56
|
<style lang="less" scoped>
|
|
57
57
|
@import '~@/styles/variables.less';
|
|
58
58
|
|
|
59
|
-
.
|
|
60
|
-
font-weight: @font-weight-bold;
|
|
59
|
+
.c-alert {
|
|
61
60
|
left: 16px;
|
|
62
61
|
margin-top: 24px;
|
|
63
62
|
right: 16px;
|
|
@@ -71,13 +70,13 @@ export default class CAlert extends Vue {
|
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
|
|
74
|
-
.
|
|
73
|
+
.c-alert--error {
|
|
75
74
|
& /deep/ .v-snack__wrapper {
|
|
76
75
|
background-color: @color-red;
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
80
|
-
.
|
|
79
|
+
.c-alert--success {
|
|
81
80
|
& /deep/ .v-snack__wrapper {
|
|
82
81
|
background-color: @color-accent-green-shade-1;
|
|
83
82
|
}
|