bonkers-ui 1.0.67 → 1.0.69
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/.eslintrc.js +12 -2
- package/CONSTANTS.d.ts +3 -1
- package/CONSTANTS.d.ts.map +1 -1
- package/_types/align.d.ts +9 -0
- package/_types/align.d.ts.map +1 -0
- package/_types/colors.d.ts +55 -0
- package/_types/colors.d.ts.map +1 -0
- package/_types/colors.js +1 -1
- package/_types/colors.js.map +1 -1
- package/_types/sizing.d.ts +55 -0
- package/_types/sizing.d.ts.map +1 -0
- package/_types/sizing.js +1 -1
- package/_types/sizing.js.map +1 -1
- package/bonkers-ui.umd.js +7 -7
- package/bonkers-ui.umd.js.map +1 -1
- package/components/ui-alert/index.d.ts +6 -6
- package/components/ui-alert/ui-alert.vue.d.ts +10 -8
- package/components/ui-alert/ui-alert.vue.d.ts.map +1 -1
- package/components/ui-alert/ui-alert.vue.js +3 -3
- package/components/ui-badge/_typings.d.ts +5 -1
- package/components/ui-badge/_typings.d.ts.map +1 -1
- package/components/ui-badge/_typings.js +3 -3
- package/components/ui-badge/_typings.js.map +1 -1
- package/components/ui-badge/index.d.ts +53 -17
- package/components/ui-badge/index.d.ts.map +1 -1
- package/components/ui-badge/ui-badge.vue.d.ts +36 -12
- package/components/ui-badge/ui-badge.vue.d.ts.map +1 -1
- package/components/ui-badge/ui-badge.vue.js +41 -35
- package/components/ui-badge/ui-badge.vue.js.map +1 -1
- package/components/ui-ber-rank/index.d.ts +2 -2
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +3 -3
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts.map +1 -1
- package/components/ui-button/index.d.ts +5 -5
- package/components/ui-button/ui-button.vue.d.ts +9 -7
- package/components/ui-button/ui-button.vue.d.ts.map +1 -1
- package/components/ui-button/ui-button.vue.js +4 -4
- package/components/ui-button/ui-button.vue.js.map +1 -1
- package/components/ui-card-cta/index.d.ts +5 -5
- package/components/ui-card-cta/ui-card-cta.vue.d.ts +17 -15
- package/components/ui-card-cta/ui-card-cta.vue.d.ts.map +1 -1
- package/components/ui-card-cta/ui-card-cta.vue.js +1 -1
- package/components/ui-card-result/index.d.ts +4 -4
- package/components/ui-card-result/ui-card-result.vue.d.ts +16 -14
- package/components/ui-card-result/ui-card-result.vue.d.ts.map +1 -1
- package/components/ui-card-result/ui-card-result.vue.js +4 -4
- package/components/ui-card-result/ui-card-result.vue2.js +14 -14
- package/components/ui-card-simple/_typings.d.ts +5 -0
- package/components/ui-card-simple/_typings.d.ts.map +1 -0
- package/components/ui-card-simple/index.d.ts +4 -4
- package/components/ui-card-simple/ui-card-simple.vue.d.ts +4 -2
- package/components/ui-card-simple/ui-card-simple.vue.d.ts.map +1 -1
- package/components/ui-card-simple/ui-card-simple.vue.js +7 -8
- package/components/ui-card-simple/ui-card-simple.vue.js.map +1 -1
- package/components/ui-checkbox/index.d.ts +5 -5
- package/components/ui-checkbox/ui-checkbox.vue.d.ts +15 -13
- package/components/ui-checkbox/ui-checkbox.vue.d.ts.map +1 -1
- package/components/ui-dropdown/index.d.ts +6 -6
- package/components/ui-dropdown/ui-dropdown.vue.d.ts +16 -14
- package/components/ui-dropdown/ui-dropdown.vue.d.ts.map +1 -1
- package/components/ui-dropdown/ui-dropdown.vue.js +4 -4
- package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -1
- package/components/ui-icon/index.d.ts +3 -3
- package/components/ui-icon/ui-icon.vue.d.ts +4 -4
- package/components/ui-icon/ui-icon.vue.d.ts.map +1 -1
- package/components/ui-icon/ui-icon.vue.js +19 -15
- package/components/ui-icon/ui-icon.vue.js.map +1 -1
- package/components/ui-icon-wrapper/index.d.ts +5 -5
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +7 -5
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts.map +1 -1
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js +2 -2
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js +2 -2
- package/components/ui-input/index.d.ts +5 -5
- package/components/ui-input/ui-input.vue.d.ts +34 -32
- package/components/ui-input/ui-input.vue.d.ts.map +1 -1
- package/components/ui-input/ui-input.vue.js +3 -3
- package/components/ui-input/ui-input.vue.js.map +1 -1
- package/components/ui-input-range/index.d.ts +1 -1
- package/components/ui-input-range/ui-input-range.vue.d.ts.map +1 -1
- package/components/ui-input-range/ui-input-range.vue.js +2 -2
- package/components/ui-input-range/ui-input-range.vue2.js +11 -11
- package/components/ui-input-range/ui-input-range.vue2.js.map +1 -1
- package/components/ui-list-item/index.d.ts +9 -9
- package/components/ui-list-item/ui-list-item.vue.d.ts +22 -20
- package/components/ui-list-item/ui-list-item.vue.d.ts.map +1 -1
- package/components/ui-list-item/ui-list-item.vue.js +6 -6
- package/components/ui-modal/index.d.ts +5 -5
- package/components/ui-modal/ui-backdrop/index.d.ts +4 -4
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +4 -2
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts.map +1 -1
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js +6 -6
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.js.map +1 -1
- package/components/ui-modal/ui-modal.vue.d.ts +14 -12
- package/components/ui-modal/ui-modal.vue.d.ts.map +1 -1
- package/components/ui-modal/ui-modal.vue.js +2 -2
- package/components/ui-modal/ui-modal.vue2.js +20 -24
- package/components/ui-modal/ui-modal.vue2.js.map +1 -1
- package/components/ui-notification-badge/index.d.ts +5 -5
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +9 -7
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts.map +1 -1
- package/components/ui-notification-badge/ui-notification-badge.vue.js +1 -1
- package/components/ui-order-card/index.d.ts +6 -6
- package/components/ui-order-card/ui-order-card.vue.d.ts +12 -10
- package/components/ui-order-card/ui-order-card.vue.d.ts.map +1 -1
- package/components/ui-order-card/ui-order-card.vue.js +4 -4
- package/components/ui-order-card/ui-order-card.vue.js.map +1 -1
- package/components/ui-plain-radio/index.d.ts +4 -4
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +13 -11
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts.map +1 -1
- package/components/ui-plain-radio/ui-plain-radio.vue.js +5 -5
- package/components/ui-plain-radio/ui-plain-radio.vue.js.map +1 -1
- package/components/ui-product-card/index.d.ts +4 -0
- package/components/ui-product-card/index.d.ts.map +1 -0
- package/components/ui-progress/index.d.ts +10 -1
- package/components/ui-progress/index.d.ts.map +1 -1
- package/components/ui-progress/ui-progress.vue.d.ts +5 -0
- package/components/ui-progress/ui-progress.vue.d.ts.map +1 -1
- package/components/ui-progress/ui-progress.vue.js +29 -13
- package/components/ui-progress/ui-progress.vue.js.map +1 -1
- package/components/ui-radio/index.d.ts +5 -5
- package/components/ui-radio/ui-radio.vue.d.ts +13 -11
- package/components/ui-radio/ui-radio.vue.d.ts.map +1 -1
- package/components/ui-radio/ui-radio.vue.js +2 -2
- package/components/ui-radio/ui-radio.vue2.js +9 -9
- package/components/ui-radio/ui-radio.vue2.js.map +1 -1
- package/components/ui-radio-compact/index.d.ts +4 -4
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +8 -6
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts.map +1 -1
- package/components/ui-radio-compact/ui-radio-compact.vue.js +5 -5
- package/components/ui-radio-compact/ui-radio-compact.vue.js.map +1 -1
- package/components/ui-radio-fancy/index.d.ts +6 -6
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +14 -12
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts.map +1 -1
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js +20 -20
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js.map +1 -1
- package/components/ui-result-card-range/index.d.ts +5 -5
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +11 -9
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts.map +1 -1
- package/components/ui-result-card-range/ui-result-card-range.vue.js +2 -2
- package/components/ui-ripple/index.d.ts +4 -4
- package/components/ui-ripple/ui-ripple.vue.d.ts +4 -2
- package/components/ui-ripple/ui-ripple.vue.d.ts.map +1 -1
- package/components/ui-select/index.d.ts +4 -4
- package/components/ui-select/ui-select.vue.d.ts +15 -13
- package/components/ui-select/ui-select.vue.d.ts.map +1 -1
- package/components/ui-select/ui-select.vue.js +5 -5
- package/components/ui-select/ui-select.vue.js.map +1 -1
- package/components/ui-skeleton/index.d.ts +2 -2
- package/components/ui-skeleton/ui-skeleton.vue.d.ts +3 -3
- package/components/ui-skeleton/ui-skeleton.vue.d.ts.map +1 -1
- package/components/ui-skeleton/ui-skeleton.vue.js +26 -28
- package/components/ui-skeleton/ui-skeleton.vue.js.map +1 -1
- package/components/ui-snackbar/index.d.ts +5 -5
- package/components/ui-snackbar/ui-snackbar.vue.d.ts +11 -9
- package/components/ui-snackbar/ui-snackbar.vue.d.ts.map +1 -1
- package/components/ui-snackbar/ui-snackbar.vue.js +2 -2
- package/components/ui-table/index.d.ts +5 -5
- package/components/ui-table/ui-table-cell/index.d.ts +5 -5
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +11 -9
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts.map +1 -1
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.js +1 -1
- package/components/ui-table/ui-table-row/index.d.ts +5 -5
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +9 -7
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts.map +1 -1
- package/components/ui-table/ui-table-row/ui-table-row.vue.js +3 -3
- package/components/ui-table/ui-table.vue.d.ts +9 -7
- package/components/ui-table/ui-table.vue.d.ts.map +1 -1
- package/components/ui-table/ui-table.vue.js +4 -4
- package/components/ui-table/ui-table.vue2.js +1 -1
- package/components/ui-tabs/index.d.ts +1 -1
- package/components/ui-tabs/ui-tabs.vue.d.ts +2 -2
- package/components/ui-tabs/ui-tabs.vue.d.ts.map +1 -1
- package/components/ui-tabs/ui-tabs.vue.js +3 -3
- package/components/ui-tabs/ui-tabs.vue2.js +6 -6
- package/components/ui-tabs/ui-tabs.vue2.js.map +1 -1
- package/components/ui-toggle/index.d.ts +4 -4
- package/components/ui-toggle/ui-toggle.vue.d.ts +19 -17
- package/components/ui-toggle/ui-toggle.vue.d.ts.map +1 -1
- package/components/ui-toggle/ui-toggle.vue.js +3 -3
- package/components/ui-toggle/ui-toggle.vue2.js +8 -8
- package/components/ui-toggle/ui-toggle.vue2.js.map +1 -1
- package/components/ui-typography/index.d.ts +6 -6
- package/components/ui-typography/ui-typography.vue.d.ts +24 -22
- package/components/ui-typography/ui-typography.vue.d.ts.map +1 -1
- package/components/ui-typography/ui-typography.vue.js +7 -3
- package/components/ui-typography/ui-typography.vue.js.map +1 -1
- package/components/ui-verification-input/index.d.ts +4 -4
- package/components/ui-verification-input/ui-verification-input.vue.d.ts +6 -4
- package/components/ui-verification-input/ui-verification-input.vue.d.ts.map +1 -1
- package/index.js +48 -48
- package/package.json +39 -42
- package/plugin.ts +17 -10
- package/postcss.config.js +8 -0
- package/src/_styles/_colors.json +5 -1
- package/src/_styles/_spacing.json +7 -3
- package/tailwind.config.ts +1 -1
- package/types.js +56 -55
- package/types.js.map +1 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as o, createElementBlock as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as f, openBlock as o, createElementBlock as r, normalizeClass as h, unref as t, renderSlot as i, createCommentVNode as a, createBlock as s, withCtx as d, createTextVNode as p, toDisplayString as g } from "vue";
|
|
2
|
+
import m from "../ui-typography/index.js";
|
|
3
3
|
import { EModalSizes as l } from "./_typings.js";
|
|
4
|
-
import { ETextWeight as n, ETextAlign as u, ETypographySizes as
|
|
5
|
-
const
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "mb-sm mt-md"
|
|
8
|
-
}, S = {
|
|
4
|
+
import { ETextWeight as n, ETextAlign as u, ETypographySizes as w } from "../ui-typography/_typings.js";
|
|
5
|
+
const S = { key: 0 }, E = {
|
|
9
6
|
key: 2,
|
|
10
7
|
class: "mt-auto w-full"
|
|
11
8
|
}, C = /* @__PURE__ */ f({
|
|
@@ -14,48 +11,47 @@ const c = {
|
|
|
14
11
|
title: { default: void 0 },
|
|
15
12
|
modalSize: { default: l.SM }
|
|
16
13
|
},
|
|
17
|
-
setup(
|
|
18
|
-
return (e,
|
|
19
|
-
class: h(["ui-modal max-height max-width inset-0 z-10 flex w-full flex-col items-center overflow-y-scroll rounded-2xl bg-white p-md shadow-md", [
|
|
14
|
+
setup(c) {
|
|
15
|
+
return (e, z) => (o(), r("div", {
|
|
16
|
+
class: h(["ui-modal max-height max-width inset-0 z-10 flex w-full flex-col items-center gap-md overflow-y-scroll rounded-2xl bg-white p-md shadow-md", [
|
|
20
17
|
e.modalSize === t(l).SM && "h-fit max-w-[24rem]",
|
|
21
18
|
e.modalSize === t(l).MD && "h-fit max-w-[32rem]",
|
|
22
19
|
e.modalSize === t(l).LG && "h-fit max-w-[40rem]",
|
|
23
20
|
e.modalSize === t(l).RESPONSIVE && "h-full"
|
|
24
21
|
]])
|
|
25
22
|
}, [
|
|
26
|
-
e.$slots.icon ? (o(),
|
|
23
|
+
e.$slots.icon ? (o(), r("div", S, [
|
|
27
24
|
i(e.$slots, "icon", {}, void 0, !0)
|
|
28
|
-
])) :
|
|
25
|
+
])) : a("", !0),
|
|
29
26
|
i(e.$slots, "title", {}, () => [
|
|
30
|
-
e.title ? (o(),
|
|
27
|
+
e.title ? (o(), s(t(m), {
|
|
31
28
|
key: 0,
|
|
32
|
-
class: "my-md",
|
|
33
29
|
weight: t(n).BOLD,
|
|
34
30
|
align: t(u).CENTER,
|
|
35
|
-
size: t(
|
|
31
|
+
size: t(w).LG
|
|
36
32
|
}, {
|
|
37
|
-
default:
|
|
38
|
-
p(
|
|
33
|
+
default: d(() => [
|
|
34
|
+
p(g(e.title), 1)
|
|
39
35
|
]),
|
|
40
36
|
_: 1
|
|
41
|
-
}, 8, ["weight", "align", "size"])) :
|
|
37
|
+
}, 8, ["weight", "align", "size"])) : a("", !0)
|
|
42
38
|
], !0),
|
|
43
|
-
e.$slots.default ? (o(),
|
|
39
|
+
e.$slots.default ? (o(), s(t(m), {
|
|
44
40
|
key: 1,
|
|
45
41
|
is: "div",
|
|
46
42
|
weight: t(n).REGULAR,
|
|
47
43
|
align: t(u).CENTER,
|
|
48
44
|
"line-height": "",
|
|
49
|
-
class: "
|
|
45
|
+
class: "w-full overflow-y-auto text-secondary"
|
|
50
46
|
}, {
|
|
51
|
-
default:
|
|
47
|
+
default: d(() => [
|
|
52
48
|
i(e.$slots, "default", {}, void 0, !0)
|
|
53
49
|
]),
|
|
54
50
|
_: 3
|
|
55
|
-
}, 8, ["weight", "align"])) :
|
|
56
|
-
e.$slots.footer ? (o(),
|
|
51
|
+
}, 8, ["weight", "align"])) : a("", !0),
|
|
52
|
+
e.$slots.footer ? (o(), r("div", E, [
|
|
57
53
|
i(e.$slots, "footer", {}, void 0, !0)
|
|
58
|
-
])) :
|
|
54
|
+
])) : a("", !0)
|
|
59
55
|
], 2));
|
|
60
56
|
}
|
|
61
57
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-modal.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-modal.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EBadgeOrigin } from './_types';
|
|
2
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
1
|
import { default as UiNotificationBadge } from './ui-notification-badge.vue';
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
|
+
import { EBadgeOrigin } from './_types';
|
|
4
4
|
|
|
5
5
|
export { UiNotificationBadge };
|
|
6
6
|
export { EBadgeOrigin } from './_types';
|
|
@@ -35,9 +35,9 @@ declare const deprecatedDefault: {
|
|
|
35
35
|
}>>, {}, {}, {}, {}, {
|
|
36
36
|
origin: EBadgeOrigin;
|
|
37
37
|
}>;
|
|
38
|
-
__isFragment?:
|
|
39
|
-
__isTeleport?:
|
|
40
|
-
__isSuspense?:
|
|
38
|
+
__isFragment?: never;
|
|
39
|
+
__isTeleport?: never;
|
|
40
|
+
__isSuspense?: never;
|
|
41
41
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
42
42
|
origin: {
|
|
43
43
|
type: PropType<EBadgeOrigin>;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
1
|
import { EBadgeOrigin } from './_types';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
declare
|
|
5
|
-
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
|
+
origin?: EBadgeOrigin;
|
|
6
9
|
}>, {
|
|
7
10
|
origin: EBadgeOrigin;
|
|
8
11
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
origin?: EBadgeOrigin
|
|
12
|
+
origin?: EBadgeOrigin;
|
|
10
13
|
}>, {
|
|
11
14
|
origin: EBadgeOrigin;
|
|
12
15
|
}>>>, {
|
|
13
16
|
origin: EBadgeOrigin;
|
|
14
|
-
}, {}
|
|
15
|
-
|
|
16
|
-
}>;
|
|
17
|
+
}, {}>;
|
|
18
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
17
19
|
export default _default;
|
|
18
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
21
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-notification-badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-notification-badge/ui-notification-badge.vue"],"names":[],"mappings":"AAyBA;AAEC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"ui-notification-badge.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-notification-badge/ui-notification-badge.vue"],"names":[],"mappings":"AAyBA;AAEC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAiBzC,iBAAS,cAAc;qBAwCM,GAAG;EAK/B;AAWD,QAAA,MAAM,eAAe;aAMV,YAAY;;;;aAAZ,YAAY;;;;YAAZ,YAAY;MAErB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -9,7 +9,7 @@ const p = /* @__PURE__ */ r({
|
|
|
9
9
|
return (e, d) => (n(), i("div", {
|
|
10
10
|
class: a(["notification-badge absolute h-sm min-w-sm rounded-full border border-white bg-error text-center text-xxs font-bold leading-none text-white", [
|
|
11
11
|
e.origin === t(o).DEFAULT && "right-0 top-0",
|
|
12
|
-
e.origin === t(o).OFFSET_TOP_RIGHT && "-right-
|
|
12
|
+
e.origin === t(o).OFFSET_TOP_RIGHT && "-right-xxxs -top-xxxs"
|
|
13
13
|
]])
|
|
14
14
|
}, [
|
|
15
15
|
s(e.$slots, "default")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TIconName } from '../ui-icon';
|
|
2
|
-
import { EOrderCardTypes } from './_types';
|
|
3
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
4
1
|
import { default as UiOrderCard } from './ui-order-card.vue';
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
|
+
import { EOrderCardTypes } from './_types';
|
|
4
|
+
import { TIconName } from '../ui-icon';
|
|
5
5
|
|
|
6
6
|
export { UiOrderCard };
|
|
7
7
|
/**
|
|
@@ -47,9 +47,9 @@ declare const deprecatedDefault: {
|
|
|
47
47
|
}>>, {}, {}, {}, {}, {
|
|
48
48
|
kind: EOrderCardTypes;
|
|
49
49
|
}>;
|
|
50
|
-
__isFragment?:
|
|
51
|
-
__isTeleport?:
|
|
52
|
-
__isSuspense?:
|
|
50
|
+
__isFragment?: never;
|
|
51
|
+
__isTeleport?: never;
|
|
52
|
+
__isSuspense?: never;
|
|
53
53
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
54
54
|
kind: {
|
|
55
55
|
type: PropType<EOrderCardTypes>;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { EOrderCardTypes } from './_types';
|
|
3
1
|
import { TIconName } from '../ui-icon';
|
|
2
|
+
import { EOrderCardTypes } from './_types';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
title?(_: {}): any;
|
|
7
|
+
textBody?(_: {}): any;
|
|
8
|
+
footer?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
11
|
iconName: TIconName;
|
|
7
|
-
kind?: EOrderCardTypes
|
|
12
|
+
kind?: EOrderCardTypes;
|
|
8
13
|
}>, {
|
|
9
14
|
kind: EOrderCardTypes;
|
|
10
15
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
16
|
iconName: TIconName;
|
|
12
|
-
kind?: EOrderCardTypes
|
|
17
|
+
kind?: EOrderCardTypes;
|
|
13
18
|
}>, {
|
|
14
19
|
kind: EOrderCardTypes;
|
|
15
20
|
}>>>, {
|
|
16
21
|
kind: EOrderCardTypes;
|
|
17
|
-
}, {}
|
|
18
|
-
|
|
19
|
-
textBody?(_: {}): any;
|
|
20
|
-
footer?(_: {}): any;
|
|
21
|
-
}>;
|
|
22
|
+
}, {}>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
22
24
|
export default _default;
|
|
23
25
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
26
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-order-card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-order-card/ui-order-card.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-order-card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-order-card/ui-order-card.vue"],"names":[],"mappings":"AAkEA;AAMC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAyB5C,iBAAS,cAAc;mBAsIK,GAAG;sBACA,GAAG;oBACL,GAAG;EAG/B;AAkBD,QAAA,MAAM,eAAe;cAMT,SAAS;WACZ,eAAe;;;;cADZ,SAAS;WACZ,eAAe;;;;UAAf,eAAe;MAEtB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -12,8 +12,8 @@ const I = /* @__PURE__ */ c({
|
|
|
12
12
|
kind: { default: r.DEFAULT }
|
|
13
13
|
},
|
|
14
14
|
setup(f) {
|
|
15
|
-
const
|
|
16
|
-
switch (
|
|
15
|
+
const k = f, g = w(() => {
|
|
16
|
+
switch (k.kind) {
|
|
17
17
|
case r.WARNING:
|
|
18
18
|
return u.WARNING_700;
|
|
19
19
|
default:
|
|
@@ -40,7 +40,7 @@ const I = /* @__PURE__ */ c({
|
|
|
40
40
|
t.kind === e(r).DEFAULT && "text-primary-700",
|
|
41
41
|
t.kind === e(r).WARNING && "text-warning-700"
|
|
42
42
|
]]),
|
|
43
|
-
kind:
|
|
43
|
+
kind: g.value,
|
|
44
44
|
size: e(m).XL,
|
|
45
45
|
weight: e(p).BOLD
|
|
46
46
|
}, {
|
|
@@ -65,7 +65,7 @@ const I = /* @__PURE__ */ c({
|
|
|
65
65
|
}, 8, ["class", "size", "weight"])) : d("", !0),
|
|
66
66
|
t.$slots.footer ? (s(), n(e(l), {
|
|
67
67
|
key: 2,
|
|
68
|
-
class: i(["rounded-b-
|
|
68
|
+
class: i(["rounded-b-xl py-sm text-white", [
|
|
69
69
|
t.kind === e(r).DEFAULT && "bg-primary-700",
|
|
70
70
|
t.kind === e(r).WARNING && "bg-warning-700"
|
|
71
71
|
]]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-order-card.vue.js","sources":["../../../src/components/ui-order-card/ui-order-card.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"ui-order-card relative mt-sm rounded-md pt-md text-center\"\n\t\t:class=\"[\n\t\t\tkind === EOrderCardTypes.DEFAULT && 'bg-primary-300 text-white',\n\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-300 text-warning-700'\n\t\t]\"\n\t>\n\t\t<ui-icon\n\t\t\t:icon-name=\"iconName\"\n\t\t\t:size=\"ESize.LG\"\n\t\t\tclass=\"
|
|
1
|
+
{"version":3,"file":"ui-order-card.vue.js","sources":["../../../src/components/ui-order-card/ui-order-card.vue"],"sourcesContent":["<template>\n\t<div\n\t\tclass=\"ui-order-card relative mt-sm rounded-md pt-md text-center\"\n\t\t:class=\"[\n\t\t\tkind === EOrderCardTypes.DEFAULT && 'bg-primary-300 text-white',\n\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-300 text-warning-700'\n\t\t]\"\n\t>\n\t\t<ui-icon\n\t\t\t:icon-name=\"iconName\"\n\t\t\t:size=\"ESize.LG\"\n\t\t\tclass=\"\n\t\t\t\tabsolute\n\t\t\t\tleft-1/2\n\t\t\t\ttop-0\n\t\t\t\t-translate-x-1/2\n\t\t\t\t-translate-y-1/2\n\t\t\t\trounded-full\n\t\t\t\tbg-primary-300\n\t\t\t\t\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'text-white',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-300 text-white'\n\t\t\t]\"\n\t\t/>\n\t\t<ui-typography\n\t\t\tv-if=\"$slots.title\"\n\t\t\tclass=\"pt-sm\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'text-primary-700',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'text-warning-700'\n\t\t\t]\"\n\t\t\t:kind=\"pickKind\"\n\t\t\t:size=\"ETypographySizes.XL\"\n\t\t\t:weight=\"ETextWeight.BOLD\"\n\t\t>\n\t\t\t<slot name=\"title\" />\n\t\t</ui-typography>\n\n\t\t<ui-typography\n\t\t\tv-if=\"$slots.textBody\"\n\t\t\tclass=\"mb-sm p-sm\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'text-primary-700',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'text-warning-700'\n\t\t\t]\"\n\t\t\t:size=\"ETypographySizes.MD\"\n\t\t\t:weight=\"ETextWeight.REGULAR\"\n\t\t>\n\t\t\t<slot name=\"textBody\" />\n\t\t</ui-typography>\n\n\t\t<ui-typography\n\t\t\tv-if=\"$slots.footer\"\n\t\t\tclass=\"rounded-b-xl py-sm text-white\"\n\t\t\t:class=\"[\n\t\t\t\tkind === EOrderCardTypes.DEFAULT && 'bg-primary-700',\n\t\t\t\tkind === EOrderCardTypes.WARNING && 'bg-warning-700'\n\t\t\t]\"\n\t\t\t:size=\"ETypographySizes.XXS\"\n\t\t\t:weight=\"ETextWeight.REGULAR\"\n\t\t>\n\t\t\t<slot name=\"footer\" />\n\t\t</ui-typography>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport { ESize } from \"../../_types/sizing\";\n\timport { EColors } from \"../../_types/colors\";\n\timport UiTypography, { ETextWeight, ETypographySizes } from \"../ui-typography\";\n\timport type { TIconName } from \"../ui-icon\";\n\timport UiIcon from \"../ui-icon\";\n\timport { EOrderCardTypes } from \"./_types\";\n\n\tconst props = withDefaults(defineProps<{\n\t\ticonName: TIconName;\n\t\tkind?: EOrderCardTypes;\n\t}>(), {\n\t\tkind: EOrderCardTypes.DEFAULT\n\t});\n\n\tconst pickKind = computed(()=>{\n\t\tswitch (props.kind) {\n\t\t\tcase EOrderCardTypes.WARNING: return EColors.WARNING_700;\n\t\t\tdefault: return EColors.PRIMARY_700;\n\t\t}\n\t});\n\n</script>\n"],"names":["props","__props","pickKind","computed","EOrderCardTypes","EColors"],"mappings":";;;;;;;;;;;;;;AA4EC,UAAMA,IAAQC,GAORC,IAAWC,EAAS,MAAI;AAC7B,cAAQH,EAAM,MAAM;AAAA,QACnB,KAAKI,EAAgB;AAAS,iBAAOC,EAAQ;AAAA,QAC7C;AAAS,iBAAOA,EAAQ;AAAA,MACzB;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
2
1
|
import { default as UiPlainRadio } from './ui-plain-radio.vue';
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
3
|
|
|
4
4
|
export { UiPlainRadio };
|
|
5
5
|
/**
|
|
@@ -88,9 +88,9 @@ declare const deprecatedDefault: {
|
|
|
88
88
|
}>> & {
|
|
89
89
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
90
90
|
}, {}, {}, {}, {}, {}>;
|
|
91
|
-
__isFragment?:
|
|
92
|
-
__isTeleport?:
|
|
93
|
-
__isSuspense?:
|
|
91
|
+
__isFragment?: never;
|
|
92
|
+
__isTeleport?: never;
|
|
93
|
+
__isSuspense?: never;
|
|
94
94
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
95
95
|
modelValue: {
|
|
96
96
|
type: PropType<string | number | boolean>;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
header?(_: {}): any;
|
|
4
|
+
subHeader?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
7
|
modelValue: string | number | boolean;
|
|
4
|
-
header?: string
|
|
5
|
-
subHeader?: string
|
|
8
|
+
header?: string;
|
|
9
|
+
subHeader?: string;
|
|
6
10
|
name: string;
|
|
7
11
|
value: string | number | boolean;
|
|
8
|
-
disabled?: boolean
|
|
12
|
+
disabled?: boolean;
|
|
9
13
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
14
|
"update:modelValue": (...args: any[]) => void;
|
|
11
15
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
16
|
modelValue: string | number | boolean;
|
|
13
|
-
header?: string
|
|
14
|
-
subHeader?: string
|
|
17
|
+
header?: string;
|
|
18
|
+
subHeader?: string;
|
|
15
19
|
name: string;
|
|
16
20
|
value: string | number | boolean;
|
|
17
|
-
disabled?: boolean
|
|
21
|
+
disabled?: boolean;
|
|
18
22
|
}>>> & {
|
|
19
23
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
20
|
-
}, {}, {}
|
|
21
|
-
|
|
22
|
-
subHeader?(_: {}): any;
|
|
23
|
-
}>;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
24
26
|
export default _default;
|
|
25
27
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
28
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-plain-radio.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-plain-radio/ui-plain-radio.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-plain-radio.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-plain-radio/ui-plain-radio.vue"],"names":[],"mappings":"AA0FA;AA+BA,iBAAS,cAAc;oBAuHM,GAAG;uBACA,GAAG;EAKlC;AAsBD,QAAA,MAAM,eAAe;gBAMP,MAAM,GAAG,MAAM,GAAG,OAAO;aAC5B,MAAM;gBACH,MAAM;UACZ,MAAM;WACL,MAAM,GAAG,MAAM,GAAG,OAAO;eACrB,OAAO;;;;gBALN,MAAM,GAAG,MAAM,GAAG,OAAO;aAC5B,MAAM;gBACH,MAAM;UACZ,MAAM;WACL,MAAM,GAAG,MAAM,GAAG,OAAO;eACrB,OAAO;;;UAGlB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, computed as
|
|
1
|
+
import { defineComponent as g, computed as x, openBlock as k, createElementBlock as y, withDirectives as w, createElementVNode as t, vModelRadio as S, normalizeClass as V, createVNode as l, unref as r, renderSlot as i, withCtx as s, createTextVNode as n, toDisplayString as p } from "vue";
|
|
2
2
|
import z from "../ui-radio/index.js";
|
|
3
3
|
import u from "../ui-typography/index.js";
|
|
4
4
|
import { ETypographySizes as b, ETextWeight as E } from "../ui-typography/_typings.js";
|
|
@@ -15,7 +15,7 @@ const D = ["for"], N = ["id", "value", "disabled"], H = /* @__PURE__ */ g({
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["update:modelValue"],
|
|
17
17
|
setup(c, { emit: f }) {
|
|
18
|
-
const h = c, v = f, o =
|
|
18
|
+
const h = c, v = f, o = x({
|
|
19
19
|
get() {
|
|
20
20
|
return h.modelValue;
|
|
21
21
|
},
|
|
@@ -23,11 +23,11 @@ const D = ["for"], N = ["id", "value", "disabled"], H = /* @__PURE__ */ g({
|
|
|
23
23
|
v("update:modelValue", e);
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
return (e, a) => (
|
|
26
|
+
return (e, a) => (k(), y("label", {
|
|
27
27
|
class: "ui-plain-radio relative mb-sm",
|
|
28
28
|
for: e.name + e.value
|
|
29
29
|
}, [
|
|
30
|
-
|
|
30
|
+
w(t("input", {
|
|
31
31
|
id: e.name + e.value,
|
|
32
32
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
|
|
33
33
|
value: e.value,
|
|
@@ -39,7 +39,7 @@ const D = ["for"], N = ["id", "value", "disabled"], H = /* @__PURE__ */ g({
|
|
|
39
39
|
[S, o.value]
|
|
40
40
|
]),
|
|
41
41
|
t("div", {
|
|
42
|
-
class: V(["ui-plain-radio__content box-border grid size-full cursor-pointer grid-flow-col items-center justify-start gap-sm rounded-
|
|
42
|
+
class: V(["ui-plain-radio__content box-border grid size-full cursor-pointer grid-flow-col items-center justify-start gap-sm rounded-lg border border-secondary-alt-500 bg-white p-sm before:absolute before:-z-10 before:box-border before:rounded-2xl before:bg-primary-300 hover:border-secondary-alt-700 peer-checked:border-transparent peer-checked:shadow-selected-shadow peer-checked:hover:shadow-border-selected peer-checked:active:shadow-border-primary peer-checked:active:before:-bottom-xxs peer-checked:active:before:-left-xxs peer-checked:active:before:-right-xxs peer-checked:active:before:-top-xxs peer-focus:before:-bottom-xxs peer-focus:before:-left-xxs peer-focus:before:-right-xxs peer-focus:before:-top-xxs peer-active:before:-bottom-xxs peer-active:before:-left-xxs peer-active:before:-right-xxs peer-active:before:-top-xxs", e.disabled && "pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled"])
|
|
43
43
|
}, [
|
|
44
44
|
l(r(z), {
|
|
45
45
|
modelValue: o.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-plain-radio.vue.js","sources":["../../../src/components/ui-plain-radio/ui-plain-radio.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"ui-plain-radio relative mb-sm\"\n\t\t:for=\"name + value\"\n\t>\n\n\t\t<input\n\t\t\t:id=\"name + value\"\n\t\t\tv-model=\"radioModel\"\n\t\t\t:value=\"value\"\n\t\t\tname=\"ui-plain-radio\"\n\t\t\ttype=\"radio\"\n\t\t\t:disabled=\"disabled\"\n\t\t\tclass=\"peer absolute appearance-none\"\n\t\t>\n\n\t\t<div\n\t\t\tclass=\"
|
|
1
|
+
{"version":3,"file":"ui-plain-radio.vue.js","sources":["../../../src/components/ui-plain-radio/ui-plain-radio.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"ui-plain-radio relative mb-sm\"\n\t\t:for=\"name + value\"\n\t>\n\n\t\t<input\n\t\t\t:id=\"name + value\"\n\t\t\tv-model=\"radioModel\"\n\t\t\t:value=\"value\"\n\t\t\tname=\"ui-plain-radio\"\n\t\t\ttype=\"radio\"\n\t\t\t:disabled=\"disabled\"\n\t\t\tclass=\"peer absolute appearance-none\"\n\t\t>\n\n\t\t<div\n\t\t\tclass=\"\n\t\t\t\tui-plain-radio__content\n\t\t\t\tbox-border\n\t\t\t\tgrid\n\t\t\t\tsize-full\n\t\t\t\tcursor-pointer\n\t\t\t\tgrid-flow-col\n\t\t\t\titems-center\n\t\t\t\tjustify-start\n\t\t\t\tgap-sm\n\t\t\t\trounded-lg\n\t\t\t\tborder\n\t\t\t\tborder-secondary-alt-500\n\t\t\t\tbg-white\n\t\t\t\tp-sm\n\t\t\t\tbefore:absolute\n\t\t\t\tbefore:-z-10\n\t\t\t\tbefore:box-border\n\t\t\t\tbefore:rounded-2xl\n\t\t\t\tbefore:bg-primary-300\n\t\t\t\thover:border-secondary-alt-700\n\t\t\t\tpeer-checked:border-transparent\n\t\t\t\tpeer-checked:shadow-selected-shadow\n\t\t\t\tpeer-checked:hover:shadow-border-selected\n\t\t\t\tpeer-checked:active:shadow-border-primary\n\t\t\t\tpeer-checked:active:before:-bottom-xxs\n\t\t\t\tpeer-checked:active:before:-left-xxs\n\t\t\t\tpeer-checked:active:before:-right-xxs\n\t\t\t\tpeer-checked:active:before:-top-xxs\n\t\t\t\tpeer-focus:before:-bottom-xxs\n\t\t\t\tpeer-focus:before:-left-xxs\n\t\t\t\tpeer-focus:before:-right-xxs\n\t\t\t\tpeer-focus:before:-top-xxs\n\t\t\t\tpeer-active:before:-bottom-xxs\n\t\t\t\tpeer-active:before:-left-xxs\n\t\t\t\tpeer-active:before:-right-xxs\n\t\t\t\tpeer-active:before:-top-xxs\n\t\t\t\t\"\n\t\t\t:class=\"disabled\n\t\t\t\t&& 'pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled'\"\n\t\t>\n\t\t\t<ui-radio\n\t\t\t\tv-model=\"radioModel\"\n\t\t\t\t:value=\"value.toString()\"\n\t\t\t\t:name=\"name\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\tclass=\"pointer-events-none\"\n\t\t\t/>\n\n\t\t\t<span>\n\t\t\t\t<slot name=\"header\">\n\t\t\t\t\t<ui-typography\n\t\t\t\t\t\t:size=\"ETypographySizes.SM\"\n\t\t\t\t\t\t:kind=\"EColors.SECONDARY\"\n\t\t\t\t\t\t:weight=\"ETextWeight.SEMI_BOLD\"\n\t\t\t\t\t\tline-height\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ header }}\n\t\t\t\t\t</ui-typography>\n\t\t\t\t</slot>\n\n\t\t\t\t<slot name=\"subHeader\">\n\t\t\t\t\t<ui-typography\n\t\t\t\t\t\t:size=\"ETypographySizes.XS\"\n\t\t\t\t\t\t:kind=\"EColors.SECONDARY_ALT\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{{ subHeader }}\n\t\t\t\t\t</ui-typography>\n\t\t\t\t</slot>\n\t\t\t</span>\n\t\t</div>\n\t</label>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport UiRadio from \"../ui-radio\";\n\timport UiTypography, { ETypographySizes, EColors, ETextWeight } from \"../ui-typography\";\n\n\tconst props = defineProps<{\n\t\tmodelValue: string | number | boolean;\n\t\theader?: string;\n\t\tsubHeader?: string;\n\t\tname: string;\n\t\tvalue: string | number | boolean;\n\t\tdisabled?: boolean;\n\t}>();\n\n\tconst emit = defineEmits([\"update:modelValue\"]);\n\n\tconst radioModel = computed({\n\t\tget() {\n\t\t\treturn props.modelValue;\n\t\t},\n\t\tset(value) {\n\t\t\temit (\"update:modelValue\", value);\n\t\t}\n\t});\n</script>\n"],"names":["props","__props","emit","__emit","radioModel","computed","value"],"mappings":";;;;;;;;;;;;;;;;;AAgGC,UAAMA,IAAQC,GASRC,IAAOC,GAEPC,IAAaC,EAAS;AAAA,MAC3B,MAAM;AACL,eAAOL,EAAM;AAAA,MACd;AAAA,MACA,IAAIM,GAAO;AACV,QAAAJ,EAAM,qBAAqBI,CAAK;AAAA,MACjC;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-product-card/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { default as UiProgress } from './ui-progress.vue';
|
|
2
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
3
|
|
|
4
4
|
export { UiProgress };
|
|
5
5
|
/**
|
|
@@ -21,6 +21,10 @@ declare const deprecatedDefault: DefineComponent<{
|
|
|
21
21
|
required: true;
|
|
22
22
|
default: number;
|
|
23
23
|
};
|
|
24
|
+
progressText: {
|
|
25
|
+
type: PropType<string>;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
24
28
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
29
|
min: {
|
|
26
30
|
type: PropType<number>;
|
|
@@ -37,10 +41,15 @@ declare const deprecatedDefault: DefineComponent<{
|
|
|
37
41
|
required: true;
|
|
38
42
|
default: number;
|
|
39
43
|
};
|
|
44
|
+
progressText: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
40
48
|
}>>, {
|
|
41
49
|
min: number;
|
|
42
50
|
max: number;
|
|
43
51
|
current: number;
|
|
52
|
+
progressText: string;
|
|
44
53
|
}, {}>;
|
|
45
54
|
export default deprecatedDefault;
|
|
46
55
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;GAEG;AACH,QAAA,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAa,CAAC;AACrC,eAAe,iBAAiB,CAAC"}
|
|
@@ -3,22 +3,27 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
3
3
|
min: number;
|
|
4
4
|
max: number;
|
|
5
5
|
current: number;
|
|
6
|
+
progressText?: string;
|
|
6
7
|
}>, {
|
|
7
8
|
min: number;
|
|
8
9
|
max: number;
|
|
9
10
|
current: number;
|
|
11
|
+
progressText: string;
|
|
10
12
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
13
|
min: number;
|
|
12
14
|
max: number;
|
|
13
15
|
current: number;
|
|
16
|
+
progressText?: string;
|
|
14
17
|
}>, {
|
|
15
18
|
min: number;
|
|
16
19
|
max: number;
|
|
17
20
|
current: number;
|
|
21
|
+
progressText: string;
|
|
18
22
|
}>>>, {
|
|
19
23
|
min: number;
|
|
20
24
|
max: number;
|
|
21
25
|
current: number;
|
|
26
|
+
progressText: string;
|
|
22
27
|
}, {}>;
|
|
23
28
|
export default _default;
|
|
24
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-progress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-progress/ui-progress.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-progress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-progress/ui-progress.vue"],"names":[],"mappings":"AAmCA;;SA+HO,MAAM;SACN,MAAM;aACF,MAAM;mBACA,MAAM;;;;;;;SAHhB,MAAM;SACN,MAAM;aACF,MAAM;mBACA,MAAM;;;;;;;SAHhB,MAAM;SACN,MAAM;aACF,MAAM;kBACA,MAAM;;AATvB,wBAWG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as n, computed as a, openBlock as o, createElementBlock as d, createElementVNode as l, normalizeStyle as m, createBlock as u, unref as t, withCtx as c, createTextVNode as p, toDisplayString as f, createCommentVNode as _ } from "vue";
|
|
2
|
+
import g from "../ui-typography/ui-typography.vue.js";
|
|
3
|
+
import { ETextAlign as x, ETextWeight as h } from "../ui-typography/_typings.js";
|
|
4
|
+
import { EColors as T } from "../../_types/colors.js";
|
|
5
|
+
const k = { class: "ui-progress" }, v = { class: "relative h-xxs w-full overflow-hidden rounded-xl bg-primary-200" }, C = /* @__PURE__ */ n({
|
|
3
6
|
__name: "ui-progress",
|
|
4
7
|
props: {
|
|
5
8
|
min: { default: 0 },
|
|
6
9
|
max: { default: 100 },
|
|
7
|
-
current: { default: 0 }
|
|
10
|
+
current: { default: 0 },
|
|
11
|
+
progressText: { default: "" }
|
|
8
12
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const e =
|
|
11
|
-
return (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class: "ui-progress__bar-fill absolute left-0 top-0 z-10 h-full rounded-
|
|
15
|
-
style:
|
|
16
|
-
width:
|
|
13
|
+
setup(i) {
|
|
14
|
+
const e = i, s = a(() => (e.current - e.min) / (e.max - e.min) * 100);
|
|
15
|
+
return (r, w) => (o(), d("div", k, [
|
|
16
|
+
l("div", v, [
|
|
17
|
+
l("div", {
|
|
18
|
+
class: "ui-progress__bar-fill absolute left-0 top-0 z-10 h-full rounded-xl bg-primary-alt-700 transition-all duration-300",
|
|
19
|
+
style: m({
|
|
20
|
+
width: s.value + "%"
|
|
17
21
|
})
|
|
18
22
|
}, null, 4)
|
|
19
|
-
])
|
|
23
|
+
]),
|
|
24
|
+
r.progressText ? (o(), u(t(g), {
|
|
25
|
+
key: 0,
|
|
26
|
+
kind: t(T).PRIMARY_ALT_700,
|
|
27
|
+
align: t(x).RIGHT,
|
|
28
|
+
weight: t(h).SEMI_BOLD,
|
|
29
|
+
class: "mt-xxs"
|
|
30
|
+
}, {
|
|
31
|
+
default: c(() => [
|
|
32
|
+
p(f(r.progressText), 1)
|
|
33
|
+
]),
|
|
34
|
+
_: 1
|
|
35
|
+
}, 8, ["kind", "align", "weight"])) : _("", !0)
|
|
20
36
|
]));
|
|
21
37
|
}
|
|
22
38
|
});
|
|
23
39
|
export {
|
|
24
|
-
|
|
40
|
+
C as default
|
|
25
41
|
};
|
|
26
42
|
//# sourceMappingURL=ui-progress.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-progress.vue.js","sources":["../../../src/components/ui-progress/ui-progress.vue"],"sourcesContent":["<template>\n\t<div class=\"ui-progress\">\n\t\t<div\n\t\t\tclass=\"relative h-
|
|
1
|
+
{"version":3,"file":"ui-progress.vue.js","sources":["../../../src/components/ui-progress/ui-progress.vue"],"sourcesContent":["<template>\n\t<div class=\"ui-progress\">\n\t\t<div\n\t\t\tclass=\"relative h-xxs w-full overflow-hidden rounded-xl bg-primary-200\"\n\t\t>\n\t\t\t<div\n\t\t\t\tclass=\"\n\t\t\t\t\tui-progress__bar-fill\n\t\t\t\t\tabsolute\n\t\t\t\t\tleft-0\n\t\t\t\t\ttop-0\n\t\t\t\t\tz-10\n\t\t\t\t\th-full\n\t\t\t\t\trounded-xl\n\t\t\t\t\tbg-primary-alt-700\n\t\t\t\t\ttransition-all\n\t\t\t\t\tduration-300\n\t\t\t\t\t\"\n\t\t\t\t:style=\"{\n\t\t\t\t\twidth: filler + '%'\n\t\t\t\t}\"\n\t\t\t/>\n\t\t</div>\n\n\t\t<ui-typography\n\t\t\tv-if=\"progressText\"\n\t\t\t:kind=\"EColors.PRIMARY_ALT_700\"\n\t\t\t:align=\"ETextAlign.RIGHT\"\n\t\t\t:weight=\"ETextWeight.SEMI_BOLD\"\n\t\t\tclass=\"mt-xxs\"\n\t\t>\n\t\t\t{{ progressText }}\n\t\t</ui-typography>\n\t</div>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport { UiTypography, EColors, ETextAlign, ETextWeight } from \"../ui-typography\";\n\n\tconst props = withDefaults(defineProps<{\n\t\tmin: number\n\t\tmax: number\n\t\tcurrent: number\n\t\tprogressText?: string\n\t}>(),{\n\t\tmin: 0,\n\t\tmax: 100,\n\t\tcurrent: 0,\n\t\tprogressText: \"\"\n\t});\n\n\tconst filler = computed(() => {\n\t\treturn ((props.current - props.min) / (props.max - props.min)) * 100;\n\t});\n</script>\n"],"names":["props","__props","filler","computed"],"mappings":";;;;;;;;;;;;;AAwCC,UAAMA,IAAQC,GAYRC,IAASC,EAAS,OACdH,EAAM,UAAUA,EAAM,QAAQA,EAAM,MAAMA,EAAM,OAAQ,GACjE;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EJustify } from '../../types';
|
|
2
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
1
|
import { default as UiRadio } from './ui-radio.vue';
|
|
2
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
3
|
+
import { EJustify } from '../../types';
|
|
4
4
|
|
|
5
5
|
export { UiRadio };
|
|
6
6
|
/**
|
|
@@ -89,9 +89,9 @@ declare const deprecatedDefault: {
|
|
|
89
89
|
}>> & {
|
|
90
90
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
91
91
|
}, {}, {}, {}, {}, {}>;
|
|
92
|
-
__isFragment?:
|
|
93
|
-
__isTeleport?:
|
|
94
|
-
__isSuspense?:
|
|
92
|
+
__isFragment?: never;
|
|
93
|
+
__isTeleport?: never;
|
|
94
|
+
__isSuspense?: never;
|
|
95
95
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
96
96
|
modelValue: {
|
|
97
97
|
type: PropType<string | number | boolean>;
|