classcard-ui 0.2.363 → 0.2.366

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": "classcard-ui",
3
- "version": "0.2.363",
3
+ "version": "0.2.366",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,17 +1,17 @@
1
1
  <template>
2
- <span class="w-full relative z-0 inline-flex shadow-sm rounded-md">
2
+ <span class="relative z-0 inline-flex w-full rounded-md shadow-sm">
3
3
  <button
4
+ v-if="image"
4
5
  type="button"
5
- class="-ml-px relative inline-flex items-center rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500"
6
+ class="focus:outline-none relative -ml-px inline-flex items-center rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
6
7
  >
7
- <img
8
- class="w-12 h-full"
9
- :src="image"
10
- />
8
+ <img class="h-10 w-10" :src="image" />
11
9
  </button>
12
10
  <button
13
11
  type="button"
14
- class="w-full relative inline-flex items-center justify-between pl-4 pr-1 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500"
12
+ class="focus:outline-none relative inline-flex w-full items-center justify-between rounded-r-md border border-gray-300 bg-white py-2 pl-4 pr-1 text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500"
13
+ :class="image ? 'rounded-r-md' : 'rounded-md'"
14
+ @click="$emit('action')"
15
15
  >
16
16
  {{ label }}
17
17
  <c-icon type="solid" name="chevron-right" class="h-5 w-5"></c-icon>
@@ -29,6 +29,7 @@ export default {
29
29
  },
30
30
  image: {
31
31
  type: String,
32
+ default: null,
32
33
  },
33
34
  action: {
34
35
  type: Function,
@@ -9,6 +9,7 @@
9
9
  :value="content"
10
10
  :options="editorOption"
11
11
  @change="onChange($event)"
12
+ @ready="onReady($event)"
12
13
  ></quill-editor>
13
14
  <p v-if="helpText" class="mt-2 text-sm text-gray-500">
14
15
  {{ helpText }}
@@ -50,6 +51,9 @@ export default {
50
51
  onChange(params) {
51
52
  this.$emit("onEditorChange", params);
52
53
  },
54
+ onReady(params) {
55
+ this.$emit("onEditorReady", params);
56
+ },
53
57
  },
54
58
  computed: {
55
59
  editorOption() {
@@ -20,5 +20,5 @@ export const Default = Template.bind({});
20
20
  Default.args = {
21
21
  isLoading: false,
22
22
  label: "Button",
23
- image: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80"
23
+ image: null,
24
24
  };