@code-coaching/vuetiful 0.5.1 → 0.6.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/dist/styles/all.css +30 -0
- package/dist/types/components/atoms/VBadge.vue.d.ts +2 -0
- package/dist/types/components/atoms/index.d.ts +2 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/vuetiful.es.mjs +18 -3
- package/dist/vuetiful.umd.js +8 -8
- package/package.json +1 -1
- package/src/components/atoms/VBadge.vue +10 -0
- package/src/components/atoms/index.ts +2 -1
- package/src/components/index.ts +2 -2
package/dist/styles/all.css
CHANGED
|
@@ -1070,6 +1070,36 @@ progress::-webkit-progress-value {
|
|
|
1070
1070
|
--tw-backdrop-sepia: ;
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
|
+
.badge {
|
|
1074
|
+
/* Core */
|
|
1075
|
+
display: inline-flex;
|
|
1076
|
+
align-items: center;
|
|
1077
|
+
justify-content: center;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
.badge > :not([hidden]) ~ :not([hidden]) {
|
|
1081
|
+
--tw-space-x-reverse: 0;
|
|
1082
|
+
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
|
1083
|
+
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
.badge {
|
|
1087
|
+
white-space: nowrap;
|
|
1088
|
+
align-items:center;
|
|
1089
|
+
justify-content:center;
|
|
1090
|
+
/* Text */
|
|
1091
|
+
font-weight: 600;
|
|
1092
|
+
font-size:.75rem;
|
|
1093
|
+
line-height:1rem;
|
|
1094
|
+
/* Padding */
|
|
1095
|
+
padding-left: 0.5rem;
|
|
1096
|
+
padding-right: 0.5rem;
|
|
1097
|
+
padding-top: 0.25rem;
|
|
1098
|
+
padding-bottom: 0.25rem;
|
|
1099
|
+
/* Theme: Rounded */
|
|
1100
|
+
border-radius:var(--theme-rounded-base);
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1073
1103
|
/* === Variants === */
|
|
1074
1104
|
|
|
1075
1105
|
/* Glass */
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { VButton } from "./atoms";
|
|
1
|
+
import { VBadge, VButton } from "./atoms";
|
|
2
2
|
import { VDrawer, VRail, VRailTile, VShell } from "./molecules";
|
|
3
|
-
export { VButton, VRail, VRailTile, VShell, VDrawer };
|
|
3
|
+
export { VButton, VRail, VRailTile, VShell, VDrawer, VBadge };
|
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, openBlock,
|
|
1
|
+
import { defineComponent, useAttrs, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createBlock, resolveDynamicComponent, withCtx, Fragment, createTextVNode, toDisplayString, createCommentVNode, ref, reactive, readonly, toRefs, computed, onMounted, createVNode, Transition, provide, createElementVNode, inject, mergeProps, withDirectives, resolveComponent, renderList, pushScopeId, popScopeId } from "vue";
|
|
2
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "VBadge",
|
|
4
|
+
setup(__props) {
|
|
5
|
+
const attrs = useAttrs();
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return openBlock(), createElementBlock("div", {
|
|
9
|
+
class: normalizeClass(`vuetiful-badge badge ${(_a = unref(attrs).class) != null ? _a : ""}`)
|
|
10
|
+
}, [
|
|
11
|
+
renderSlot(_ctx.$slots, "default")
|
|
12
|
+
], 2);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
2
16
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3
17
|
__name: "VButton",
|
|
4
18
|
props: {
|
|
@@ -354,7 +368,8 @@ var components = /* @__PURE__ */ Object.freeze({
|
|
|
354
368
|
VRail: _sfc_main$5,
|
|
355
369
|
VRailTile: _sfc_main$4,
|
|
356
370
|
VShell: _sfc_main$3,
|
|
357
|
-
VDrawer: _sfc_main$6
|
|
371
|
+
VDrawer: _sfc_main$6,
|
|
372
|
+
VBadge: _sfc_main$8
|
|
358
373
|
});
|
|
359
374
|
var main = "";
|
|
360
375
|
var tailwind = "";
|
|
@@ -47277,4 +47292,4 @@ function install(app) {
|
|
|
47277
47292
|
}
|
|
47278
47293
|
}
|
|
47279
47294
|
var index = { install };
|
|
47280
|
-
export { _sfc_main$2 as CodeBlock, DarkModeSwitch, themeSwitcher as ThemeSwitcher, _sfc_main$7 as VButton, _sfc_main$6 as VDrawer, _sfc_main$5 as VRail, _sfc_main$4 as VRailTile, _sfc_main$3 as VShell, index as default, useDarkMode, useDrawer, useRail, useTheme, clipboard as vClipboard };
|
|
47295
|
+
export { _sfc_main$2 as CodeBlock, DarkModeSwitch, themeSwitcher as ThemeSwitcher, _sfc_main$8 as VBadge, _sfc_main$7 as VButton, _sfc_main$6 as VDrawer, _sfc_main$5 as VRail, _sfc_main$4 as VRailTile, _sfc_main$3 as VShell, index as default, useDarkMode, useDrawer, useRail, useTheme, clipboard as vClipboard };
|