Skip to content

Commit

Permalink
Mark Severity as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Oct 14, 2024
1 parent 4cc2906 commit 9366edf
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions dist/components-By2GeFa7.js → dist/components-DbfrqVkK.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ const ap = {
}), hp = /* @__PURE__ */ dt({
__name: "UFLabel",
props: {
severity: {}
severity: { default: "" }
},
setup(i) {
const s = i, a = ce(() => {
switch (s.severity) {
const s = ce(() => {
switch (i.severity) {
case Nt.Success:
return "uk-label-success";
case Nt.Warning:
Expand All @@ -114,10 +114,10 @@ const ap = {
return "uk-label-primary";
}
});
return (r, u) => (I(), j("span", {
class: ye(["uk-label", a.value])
return (a, r) => (I(), j("span", {
class: ye(["uk-label", s.value])
}, [
Z(r.$slots, "default")
Z(a.$slots, "default")
], 2));
}
}), dp = ["href"], fp = { key: 1 }, Ho = /* @__PURE__ */ dt({
Expand Down
11 changes: 0 additions & 11 deletions dist/components-Dwrhu1Yx.cjs

This file was deleted.

11 changes: 11 additions & 0 deletions dist/components-azP0qeil.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/components.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./components-Dwrhu1Yx.cjs");exports.AppLink=a._sfc_main$2;exports.CardBox=a._sfc_main$4;exports.CardBoxBig=a._sfc_main$5;exports.FooterContent=a.FooterContent;exports.FormForgotPassword=a._sfc_main$9;exports.FormLogin=a._sfc_main$7;exports.FormRegister=a._sfc_main$8;exports.HeaderPage=a._sfc_main$6;exports.InfoBox=a._sfc_main$3;exports.MainContent=a.MainContent;exports.NavBar=a._sfc_main$10;exports.NavBarDropdown=a._sfc_main$11;exports.NavBarDropdownSeparator=a.NavBarDropdownSeparator;exports.NavBarItem=a._sfc_main$12;exports.NavBarLogin=a._sfc_main$13;exports.NavBarUserCard=a._sfc_main$14;exports.NavBarUserCardButton=a._sfc_main$15;exports.PageForgotPassword=a._sfc_main$18;exports.PageLogin=a._sfc_main$16;exports.PageRegister=a._sfc_main$17;exports.PageResendVerification=a._sfc_main$19;exports.SideBar=a.SideBar;exports.SideBarDropdown=a._sfc_main$20;exports.SideBarItem=a._sfc_main$21;exports.SideBarLabel=a._sfc_main$22;exports.SprunjeColumn=a.SprunjeColumn;exports.SprunjeHeader=a._sfc_main$23;exports.SprunjePaginator=a._sfc_main$24;exports.SprunjeTable=a._sfc_main$25;exports.UFAlert=a._sfc_main;exports.UFLabel=a._sfc_main$1;exports.default=a.PinkCupcakeComponents;
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./components-azP0qeil.cjs");exports.AppLink=a._sfc_main$2;exports.CardBox=a._sfc_main$4;exports.CardBoxBig=a._sfc_main$5;exports.FooterContent=a.FooterContent;exports.FormForgotPassword=a._sfc_main$9;exports.FormLogin=a._sfc_main$7;exports.FormRegister=a._sfc_main$8;exports.HeaderPage=a._sfc_main$6;exports.InfoBox=a._sfc_main$3;exports.MainContent=a.MainContent;exports.NavBar=a._sfc_main$10;exports.NavBarDropdown=a._sfc_main$11;exports.NavBarDropdownSeparator=a.NavBarDropdownSeparator;exports.NavBarItem=a._sfc_main$12;exports.NavBarLogin=a._sfc_main$13;exports.NavBarUserCard=a._sfc_main$14;exports.NavBarUserCardButton=a._sfc_main$15;exports.PageForgotPassword=a._sfc_main$18;exports.PageLogin=a._sfc_main$16;exports.PageRegister=a._sfc_main$17;exports.PageResendVerification=a._sfc_main$19;exports.SideBar=a.SideBar;exports.SideBarDropdown=a._sfc_main$20;exports.SideBarItem=a._sfc_main$21;exports.SideBarLabel=a._sfc_main$22;exports.SprunjeColumn=a.SprunjeColumn;exports.SprunjeHeader=a._sfc_main$23;exports.SprunjePaginator=a._sfc_main$24;exports.SprunjeTable=a._sfc_main$25;exports.UFAlert=a._sfc_main;exports.UFLabel=a._sfc_main$1;exports.default=a.PinkCupcakeComponents;
2 changes: 1 addition & 1 deletion dist/components.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { b as s, e, f as o, F as n, k as t, i as d, j as i, h as B, d as g, M as p, l as S, m as F, N as P, n as m, o as u, p as v, q as N, t as l, r as C, s as w, u as L, S as f, v as j, w as x, x as b, y as U, z as A, A as D, B as I, _ as R, a as k, P as H } from "./components-By2GeFa7.js";
import { b as s, e, f as o, F as n, k as t, i as d, j as i, h as B, d as g, M as p, l as S, m as F, N as P, n as m, o as u, p as v, q as N, t as l, r as C, s as w, u as L, S as f, v as j, w as x, x as b, y as U, z as A, A as D, B as I, _ as R, a as k, P as H } from "./components-DbfrqVkK.js";
export {
s as AppLink,
e as CardBox,
Expand Down
4 changes: 2 additions & 2 deletions dist/components/Content/UFLabel.vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ declare function __VLS_template(): {
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<{
severity: Severity | keyof typeof Severity;
severity?: Severity | keyof typeof Severity;
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
severity: Severity | keyof typeof Severity;
severity?: Severity | keyof typeof Severity;
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { c as is, g as fs, U as ts, P as rs } from "./components-By2GeFa7.js";
import { c as is, g as fs, U as ts, P as rs } from "./components-DbfrqVkK.js";
import { defineComponent as t2, computed as y, watch as zs, h as W3 } from "vue";
const x3 = () => {
};
Expand Down
6 changes: 3 additions & 3 deletions src/components/Content/UFLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import { defineProps, computed } from 'vue'
import { Severity } from '@userfrosting/sprinkle-core/types'
const props = defineProps<{
severity: Severity | keyof typeof Severity
const { severity = '' } = defineProps<{
severity?: Severity | keyof typeof Severity
}>()
/**
* Defines style class to use
*/
const styleClass = computed(() => {
switch (props.severity) {
switch (severity) {
case Severity.Success: {
return 'uk-label-success'
}
Expand Down

0 comments on commit 9366edf

Please sign in to comment.