@citizenplane/pimp 9.13.2 → 9.13.3
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/dist/pimp.es.js +9 -7
- package/dist/pimp.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/CpBadge.vue +10 -4
- package/src/stories/CpBadge.stories.ts +24 -0
package/dist/pimp.es.js
CHANGED
|
@@ -18161,6 +18161,7 @@ const Ks = /* @__PURE__ */ I(Qg, [["render", yC]]), vC = ["title"], gC = /* @__P
|
|
|
18161
18161
|
props: {
|
|
18162
18162
|
color: { default: Oi.GRAY },
|
|
18163
18163
|
isClearable: { type: Boolean, default: !1 },
|
|
18164
|
+
isDashed: { type: Boolean },
|
|
18164
18165
|
isDisabled: { type: Boolean, default: !1 },
|
|
18165
18166
|
isSquare: { type: Boolean, default: !1 },
|
|
18166
18167
|
isStroked: { type: Boolean, default: !1 },
|
|
@@ -18176,6 +18177,7 @@ const Ks = /* @__PURE__ */ I(Qg, [["render", yC]]), vC = ["title"], gC = /* @__P
|
|
|
18176
18177
|
`cpBadge--is${bt(n.color)}`,
|
|
18177
18178
|
{ "cpBadge--isStroked": n.isStroked },
|
|
18178
18179
|
{ "cpBadge--isSquare": n.isSquare },
|
|
18180
|
+
{ "cpBadge--isDashed": n.isDashed },
|
|
18179
18181
|
{ "cpBadge--isDisabled": n.isDisabled }
|
|
18180
18182
|
]), o = () => i("onClear");
|
|
18181
18183
|
return (s, a) => {
|
|
@@ -18186,8 +18188,8 @@ const Ks = /* @__PURE__ */ I(Qg, [["render", yC]]), vC = ["title"], gC = /* @__P
|
|
|
18186
18188
|
Y(s.$slots, "leading-icon", {}, () => [
|
|
18187
18189
|
t.leadingIcon ? (m(), ne(d, {
|
|
18188
18190
|
key: 0,
|
|
18189
|
-
|
|
18190
|
-
|
|
18191
|
+
class: "cpBadge__icon",
|
|
18192
|
+
type: t.leadingIcon
|
|
18191
18193
|
}, null, 8, ["type"])) : V("", !0)
|
|
18192
18194
|
]),
|
|
18193
18195
|
C("span", _C, [
|
|
@@ -18198,20 +18200,20 @@ const Ks = /* @__PURE__ */ I(Qg, [["render", yC]]), vC = ["title"], gC = /* @__P
|
|
|
18198
18200
|
t.isClearable ? V("", !0) : Y(s.$slots, "trailing-icon", { key: 0 }, () => [
|
|
18199
18201
|
t.trailingIcon ? (m(), ne(d, {
|
|
18200
18202
|
key: 0,
|
|
18201
|
-
|
|
18202
|
-
|
|
18203
|
+
class: "cpBadge__icon",
|
|
18204
|
+
type: t.trailingIcon
|
|
18203
18205
|
}, null, 8, ["type"])) : V("", !0)
|
|
18204
18206
|
]),
|
|
18205
18207
|
t.isClearable ? (m(), v("button", {
|
|
18206
18208
|
key: 1,
|
|
18207
18209
|
class: "cpBadge__clear",
|
|
18208
|
-
type: "button",
|
|
18209
18210
|
disabled: t.isDisabled,
|
|
18211
|
+
type: "button",
|
|
18210
18212
|
onClick: o
|
|
18211
18213
|
}, [
|
|
18212
18214
|
G(d, {
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
+
class: "cpBadge__clearIcon",
|
|
18216
|
+
type: "x"
|
|
18215
18217
|
})
|
|
18216
18218
|
], 8, SC)) : V("", !0)
|
|
18217
18219
|
], 2);
|