@namelivia/vue-components 4.0.0 → 4.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.
@@ -6,9 +6,7 @@ const config = {
6
6
  "../src/**/*.mdx",
7
7
  "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
8
8
  ],
9
- "addons": [
10
- "@storybook/addon-essentials",
11
- ],
9
+ "addons": ["@storybook/addon-docs"],
12
10
  "framework": {
13
11
  "name": "@storybook/vue3-vite",
14
12
  "options": {}
@@ -1,4 +1,4 @@
1
- /** @type { import('@storybook/vue3').Preview } */
1
+ /** @type { import('@storybook/vue3-vite').Preview } */
2
2
  import '../styles/index.css';
3
3
  const preview = {
4
4
  parameters: {
package/dist/index.esm.js CHANGED
@@ -114,12 +114,12 @@ var script$s = defineComponent({
114
114
  });
115
115
 
116
116
  const _hoisted_1$n = { class: "card-body" };
117
- const _hoisted_2$d = { class: "card-title" };
117
+ const _hoisted_2$e = { class: "card-title" };
118
118
  const _hoisted_3$9 = { class: "card-text" };
119
119
 
120
120
  function render$s(_ctx, _cache, $props, $setup, $data, $options) {
121
121
  return (openBlock(), createElementBlock("div", _hoisted_1$n, [
122
- createElementVNode("div", _hoisted_2$d, toDisplayString(_ctx.title), 1 /* TEXT */),
122
+ createElementVNode("div", _hoisted_2$e, toDisplayString(_ctx.title), 1 /* TEXT */),
123
123
  createElementVNode("p", _hoisted_3$9, [
124
124
  renderSlot(_ctx.$slots, "default")
125
125
  ])
@@ -147,12 +147,14 @@ var script$r = defineComponent({
147
147
  CardImage: script$t,
148
148
  CardBody: script$s,
149
149
  },
150
+ emits: ['width']
150
151
  });
151
152
 
152
153
  const _hoisted_1$m = {
153
154
  key: 0,
154
155
  class: "card-container"
155
156
  };
157
+ const _hoisted_2$d = { class: "card" };
156
158
 
157
159
  function render$r(_ctx, _cache, $props, $setup, $data, $options) {
158
160
  const _component_card_image = resolveComponent("card-image");
@@ -160,17 +162,19 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
160
162
 
161
163
  return (!_ctx.dismissed)
162
164
  ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
163
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "card" }, null, -1 /* HOISTED */)),
164
- createVNode(_component_card_image, {
165
- src: _ctx.image,
166
- alt: _ctx.title
167
- }, null, 8 /* PROPS */, ["src", "alt"]),
168
- createVNode(_component_card_body, { title: _ctx.title }, {
169
- default: withCtx(() => [
170
- renderSlot(_ctx.$slots, "default")
171
- ]),
172
- _: 3 /* FORWARDED */
173
- }, 8 /* PROPS */, ["title"])
165
+ createElementVNode("div", _hoisted_2$d, [
166
+ createVNode(_component_card_image, {
167
+ src: _ctx.image,
168
+ alt: _ctx.title,
169
+ onWidth: _cache[0] || (_cache[0] = $event => (_ctx.$emit('width', $event)))
170
+ }, null, 8 /* PROPS */, ["src", "alt"]),
171
+ createVNode(_component_card_body, { title: _ctx.title }, {
172
+ default: withCtx(() => [
173
+ renderSlot(_ctx.$slots, "default")
174
+ ]),
175
+ _: 3 /* FORWARDED */
176
+ }, 8 /* PROPS */, ["title"])
177
+ ])
174
178
  ]))
175
179
  : createCommentVNode("v-if", true)
176
180
  }