classcard-ui 0.2.593 → 0.2.594

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.593",
3
+ "version": "0.2.594",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -39,10 +39,10 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@babel/core": "^7.15.5",
42
- "@storybook/addon-actions": "^6.5.8",
43
- "@storybook/addon-essentials": "^6.5.8",
44
- "@storybook/addon-links": "^6.5.8",
45
- "@storybook/vue": "^6.5.8",
42
+ "@storybook/addon-actions": "^6.5.9",
43
+ "@storybook/addon-essentials": "^6.5.9",
44
+ "@storybook/addon-links": "^6.5.9",
45
+ "@storybook/vue": "^6.5.9",
46
46
  "@tailwindcss/postcss7-compat": "^2.2.14",
47
47
  "@types/lodash-es": "^4.17.5",
48
48
  "@vue/cli-plugin-babel": "^4.5.13",
@@ -2,7 +2,7 @@
2
2
  <!-- This example requires Tailwind CSS v2.0+ -->
3
3
  <div>
4
4
  <div class="grid grid-cols-1 md:grid-cols-2 md:gap-8">
5
- <div>
5
+ <div :class="`sticky top-0 md:block ${calendarClasses}`">
6
6
  <div
7
7
  class="relative z-20 flex items-center justify-between border-b border-gray-200 py-4"
8
8
  >
@@ -123,9 +123,9 @@
123
123
  </div>
124
124
  <section
125
125
  v-if="eventsData && validSelectedDate"
126
- class="col-span-1 mt-4 md:mt-0"
126
+ class="md: col-span-1 my-10 mx-4 md:mx-0 md:my-0"
127
127
  >
128
- <h2 class="py-4 font-semibold text-gray-900">
128
+ <h2 class="hidden py-4 font-semibold text-gray-900 md:block">
129
129
  Schedule for
130
130
  <time :datetime="selectedDateForDateTime">{{
131
131
  formattedSelectedDate
@@ -138,6 +138,7 @@
138
138
  Sorry, no events found for this date.
139
139
  </p>
140
140
  <ol
141
+ v-if="getEventsForDate(value).length !== 0"
141
142
  class="mt-3 divide-y divide-gray-100 overflow-hidden rounded-lg bg-white text-sm shadow ring-1 ring-indigo-700 ring-opacity-5"
142
143
  >
143
144
  <li
@@ -268,6 +269,10 @@ export default {
268
269
  type: Array,
269
270
  default: () => null,
270
271
  },
272
+ calendarClasses: {
273
+ type: String,
274
+ default: "",
275
+ },
271
276
  },
272
277
  data() {
273
278
  return {