@namelivia/vue-components 3.0.0 → 4.0.0

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/README.md CHANGED
@@ -5,14 +5,11 @@
5
5
  To have a quick overview, run the following command to start the Storybook server:
6
6
 
7
7
  ```bash
8
- npm run storybook
8
+ pnpm run storybook
9
9
  ```
10
10
 
11
11
  Then open your browser and navigate to `http://localhost:6006`.
12
12
 
13
13
  ### Colors
14
14
 
15
- Colors set via CSS variables. The palette has the following colors:
16
-
17
- - `--color-danger`
18
- - `--color-danger-hover`
15
+ Colors set via CSS variables. The example theme can be found in `styles/index.css`.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, toDisplayString, createStaticVNode, createElementVNode, renderSlot, normalizeClass, resolveComponent, createBlock, Transition, withCtx, createCommentVNode, Fragment, renderList, createVNode, withDirectives, vModelSelect } from 'vue';
1
+ import { defineComponent, createElementBlock, openBlock, toDisplayString, createStaticVNode, createElementVNode, renderSlot, resolveComponent, createCommentVNode, createVNode, withCtx, normalizeClass, createBlock, Transition, Fragment, renderList, withDirectives, vModelSelect } from 'vue';
2
2
 
3
3
  var script$v = defineComponent({
4
4
  name: 'SectionTitle',
@@ -71,28 +71,6 @@ script$u.__scopeId = "data-v-7a9a3040";
71
71
  script$u.__file = "src/Loading/Loading.vue";
72
72
 
73
73
  var script$t = defineComponent({
74
- name: "Card"
75
- });
76
-
77
- const _hoisted_1$o = { class: "card-container" };
78
- const _hoisted_2$e = { class: "card" };
79
-
80
- function render$t(_ctx, _cache, $props, $setup, $data, $options) {
81
- return (openBlock(), createElementBlock("div", _hoisted_1$o, [
82
- createElementVNode("div", _hoisted_2$e, [
83
- renderSlot(_ctx.$slots, "default")
84
- ])
85
- ]))
86
- }
87
-
88
- var css_248z$l = "\n.card-container[data-v-da3858b4] {\n margin: 2rem;\n}\n.card[data-v-da3858b4] {\n max-width: 24rem;\n border-radius: 0.375rem;\n overflow: hidden;\n box-shadow: 0 4px 6px var(--color-card-shadow);\n}\n";
89
- styleInject(css_248z$l);
90
-
91
- script$t.render = render$t;
92
- script$t.__scopeId = "data-v-da3858b4";
93
- script$t.__file = "src/Card/Card.vue";
94
-
95
- var script$s = defineComponent({
96
74
  name: "CardImage",
97
75
  props: {
98
76
  src: String,
@@ -114,33 +92,33 @@ var script$s = defineComponent({
114
92
  },
115
93
  });
116
94
 
117
- const _hoisted_1$n = ["src", "alt"];
95
+ const _hoisted_1$o = ["src", "alt"];
118
96
 
119
- function render$s(_ctx, _cache, $props, $setup, $data, $options) {
97
+ function render$t(_ctx, _cache, $props, $setup, $data, $options) {
120
98
  return (openBlock(), createElementBlock("img", {
121
99
  class: "w-full",
122
100
  src: _ctx.src,
123
101
  alt: _ctx.alt,
124
102
  ref: "image"
125
- }, null, 8 /* PROPS */, _hoisted_1$n))
103
+ }, null, 8 /* PROPS */, _hoisted_1$o))
126
104
  }
127
105
 
128
- script$s.render = render$s;
129
- script$s.__file = "src/CardImage/CardImage.vue";
106
+ script$t.render = render$t;
107
+ script$t.__file = "src/Card/CardImage.vue";
130
108
 
131
- var script$r = defineComponent({
109
+ var script$s = defineComponent({
132
110
  name: "CardBody",
133
111
  props: {
134
112
  title: String,
135
113
  },
136
114
  });
137
115
 
138
- const _hoisted_1$m = { class: "card-body" };
116
+ const _hoisted_1$n = { class: "card-body" };
139
117
  const _hoisted_2$d = { class: "card-title" };
140
118
  const _hoisted_3$9 = { class: "card-text" };
141
119
 
142
- function render$r(_ctx, _cache, $props, $setup, $data, $options) {
143
- return (openBlock(), createElementBlock("div", _hoisted_1$m, [
120
+ function render$s(_ctx, _cache, $props, $setup, $data, $options) {
121
+ return (openBlock(), createElementBlock("div", _hoisted_1$n, [
144
122
  createElementVNode("div", _hoisted_2$d, toDisplayString(_ctx.title), 1 /* TEXT */),
145
123
  createElementVNode("p", _hoisted_3$9, [
146
124
  renderSlot(_ctx.$slots, "default")
@@ -148,12 +126,61 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
148
126
  ]))
149
127
  }
150
128
 
151
- var css_248z$k = "\n.card-body[data-v-ec34b134] {\n padding: 1.5rem 1.5rem;\n}\n.card-title[data-v-ec34b134] {\n font-weight: bold;\n font-size: 1.25rem;\n margin-bottom: 0.5rem;\n}\n.card-text[data-v-ec34b134] {\n color: var(--color-card-text);\n font-size: 1rem;\n}\n";
129
+ var css_248z$l = "\n.card-body[data-v-c140cd30] {\n padding: 1.5rem 1.5rem;\n}\n.card-title[data-v-c140cd30] {\n font-weight: bold;\n font-size: 1.25rem;\n margin-bottom: 0.5rem;\n}\n.card-text[data-v-c140cd30] {\n color: var(--color-card-text);\n font-size: 1rem;\n}\n";
130
+ styleInject(css_248z$l);
131
+
132
+ script$s.render = render$s;
133
+ script$s.__scopeId = "data-v-c140cd30";
134
+ script$s.__file = "src/Card/CardBody.vue";
135
+
136
+ var script$r = defineComponent({
137
+ name: "Card",
138
+ props: {
139
+ image: String,
140
+ title: String,
141
+ dismissed: {
142
+ type: Boolean,
143
+ default: false,
144
+ },
145
+ },
146
+ components: {
147
+ CardImage: script$t,
148
+ CardBody: script$s,
149
+ },
150
+ });
151
+
152
+ const _hoisted_1$m = {
153
+ key: 0,
154
+ class: "card-container"
155
+ };
156
+
157
+ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
158
+ const _component_card_image = resolveComponent("card-image");
159
+ const _component_card_body = resolveComponent("card-body");
160
+
161
+ return (!_ctx.dismissed)
162
+ ? (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"])
174
+ ]))
175
+ : createCommentVNode("v-if", true)
176
+ }
177
+
178
+ var css_248z$k = "\n.card-container[data-v-da3858b4] {\n margin: 2rem;\n}\n.card[data-v-da3858b4] {\n max-width: 24rem;\n border-radius: 0.375rem;\n overflow: hidden;\n box-shadow: 0 4px 6px var(--color-card-shadow);\n}\n";
152
179
  styleInject(css_248z$k);
153
180
 
154
181
  script$r.render = render$r;
155
- script$r.__scopeId = "data-v-ec34b134";
156
- script$r.__file = "src/CardBody/CardBody.vue";
182
+ script$r.__scopeId = "data-v-da3858b4";
183
+ script$r.__file = "src/Card/Card.vue";
157
184
 
158
185
  var script$q = defineComponent({
159
186
  name: "CardGrid"
@@ -4916,5 +4943,5 @@ script.render = render;
4916
4943
  script.__scopeId = "data-v-008e1be2";
4917
4944
  script.__file = "src/Inputs/Selector/Selector.vue";
4918
4945
 
4919
- export { script$d as Badge, script$t as Card, script$r as CardBody, script$q as CardGrid, script$s as CardImage, script$4 as CheckBoxInput, script$p as Container, script$6 as DangerButton, script$2 as ImageInput, script$u as Loading, script$c as Modal, script$h as Navbar, script$3 as NumberInput, script$e as Pagination, script$a as RangeView, script$f as RegularButton, script$9 as ResetButton, script$1 as ResizeImageUpload, script$7 as SecondaryButton, script$v as SectionTitle, script as Selector, script$b as Spinner, script$g as StyledTable, script$8 as SubmitButton, script$5 as TextInput };
4946
+ export { script$d as Badge, script$r as Card, script$q as CardGrid, script$4 as CheckBoxInput, script$p as Container, script$6 as DangerButton, script$2 as ImageInput, script$u as Loading, script$c as Modal, script$h as Navbar, script$3 as NumberInput, script$e as Pagination, script$a as RangeView, script$f as RegularButton, script$9 as ResetButton, script$1 as ResizeImageUpload, script$7 as SecondaryButton, script$v as SectionTitle, script as Selector, script$b as Spinner, script$g as StyledTable, script$8 as SubmitButton, script$5 as TextInput };
4920
4947
  //# sourceMappingURL=index.esm.js.map