bonkers-ui 1.0.64 → 1.0.65
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/CONSTANTS.d.ts +1 -0
- package/CONSTANTS.d.ts.map +1 -0
- package/bonkers-ui.umd.js +3 -3
- package/bonkers-ui.umd.js.map +1 -1
- package/components/ui-alert/_types.d.ts +1 -0
- package/components/ui-alert/_types.d.ts.map +1 -0
- package/components/ui-alert/index.d.ts +1 -0
- package/components/ui-alert/index.d.ts.map +1 -0
- package/components/ui-alert/ui-alert.vue.d.ts +3 -2
- package/components/ui-alert/ui-alert.vue.d.ts.map +1 -0
- package/components/ui-badge/_typings.d.ts +1 -0
- package/components/ui-badge/_typings.d.ts.map +1 -0
- package/components/ui-badge/index.d.ts +1 -12
- package/components/ui-badge/index.d.ts.map +1 -0
- package/components/ui-badge/ui-badge.vue.d.ts +3 -4
- package/components/ui-badge/ui-badge.vue.d.ts.map +1 -0
- package/components/ui-badge/ui-badge.vue.js +33 -37
- package/components/ui-badge/ui-badge.vue.js.map +1 -1
- package/components/ui-ber-rank/_types.d.ts +1 -0
- package/components/ui-ber-rank/_types.d.ts.map +1 -0
- package/components/ui-ber-rank/index.d.ts +3 -2
- package/components/ui-ber-rank/index.d.ts.map +1 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts +3 -2
- package/components/ui-ber-rank/ui-ber-rank.vue.d.ts.map +1 -0
- package/components/ui-ber-rank/ui-ber-rank.vue.js +6 -6
- package/components/ui-ber-rank/ui-ber-rank.vue.js.map +1 -1
- package/components/ui-button/_typings.d.ts +1 -0
- package/components/ui-button/_typings.d.ts.map +1 -0
- package/components/ui-button/index.d.ts +1 -0
- package/components/ui-button/index.d.ts.map +1 -0
- package/components/ui-button/ui-button.vue.d.ts +3 -2
- package/components/ui-button/ui-button.vue.d.ts.map +1 -0
- package/components/ui-card-cta/index.d.ts +1 -0
- package/components/ui-card-cta/index.d.ts.map +1 -0
- package/components/ui-card-cta/ui-card-cta.vue.d.ts +3 -2
- package/components/ui-card-cta/ui-card-cta.vue.d.ts.map +1 -0
- package/components/ui-card-result/index.d.ts +1 -0
- package/components/ui-card-result/index.d.ts.map +1 -0
- package/components/ui-card-result/ui-card-result.vue.d.ts +3 -2
- package/components/ui-card-result/ui-card-result.vue.d.ts.map +1 -0
- package/components/ui-card-result/ui-card-result.vue.js +5 -5
- package/components/ui-card-result/ui-card-result.vue2.js +18 -18
- package/components/ui-card-simple/index.d.ts +1 -0
- package/components/ui-card-simple/index.d.ts.map +1 -0
- package/components/ui-card-simple/ui-card-simple.vue.d.ts +3 -2
- package/components/ui-card-simple/ui-card-simple.vue.d.ts.map +1 -0
- package/components/ui-checkbox/index.d.ts +7 -6
- package/components/ui-checkbox/index.d.ts.map +1 -0
- package/components/ui-checkbox/ui-checkbox.vue.d.ts +5 -4
- package/components/ui-checkbox/ui-checkbox.vue.d.ts.map +1 -0
- package/components/ui-checkbox/ui-checkbox.vue.js +2 -2
- package/components/ui-checkbox/ui-checkbox.vue2.js +8 -8
- package/components/ui-checkbox/ui-checkbox.vue2.js.map +1 -1
- package/components/ui-dropdown/_typings.d.ts +1 -0
- package/components/ui-dropdown/_typings.d.ts.map +1 -0
- package/components/ui-dropdown/index.d.ts +1 -0
- package/components/ui-dropdown/index.d.ts.map +1 -0
- package/components/ui-dropdown/ui-dropdown.vue.d.ts +3 -2
- package/components/ui-dropdown/ui-dropdown.vue.d.ts.map +1 -0
- package/components/ui-dropdown/ui-dropdown.vue.js.map +1 -1
- package/components/ui-icon/_typings.d.ts +1 -0
- package/components/ui-icon/_typings.d.ts.map +1 -0
- package/components/ui-icon/index.d.ts +3 -2
- package/components/ui-icon/index.d.ts.map +1 -0
- package/components/ui-icon/ui-icon.vue.d.ts +3 -2
- package/components/ui-icon/ui-icon.vue.d.ts.map +1 -0
- package/components/ui-icon/ui-icon.vue.js +15 -15
- package/components/ui-icon-wrapper/_typings.d.ts +1 -0
- package/components/ui-icon-wrapper/_typings.d.ts.map +1 -0
- package/components/ui-icon-wrapper/index.d.ts +1 -0
- package/components/ui-icon-wrapper/index.d.ts.map +1 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts +3 -2
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.d.ts.map +1 -0
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue.js +3 -3
- package/components/ui-icon-wrapper/ui-icon-wrapper.vue2.js +3 -3
- package/components/ui-input/_typings.d.ts +1 -0
- package/components/ui-input/_typings.d.ts.map +1 -0
- package/components/ui-input/index.d.ts +8 -0
- package/components/ui-input/index.d.ts.map +1 -0
- package/components/ui-input/ui-input.vue.d.ts +6 -2
- package/components/ui-input/ui-input.vue.d.ts.map +1 -0
- package/components/ui-input/ui-input.vue.js +29 -25
- package/components/ui-input/ui-input.vue.js.map +1 -1
- package/components/ui-input-range/index.d.ts +5 -4
- package/components/ui-input-range/index.d.ts.map +1 -0
- package/components/ui-input-range/ui-input-range.vue.d.ts +5 -4
- package/components/ui-input-range/ui-input-range.vue.d.ts.map +1 -0
- package/components/ui-input-range/ui-input-range.vue.js +2 -2
- package/components/ui-input-range/ui-input-range.vue2.js +19 -19
- package/components/ui-input-range/ui-input-range.vue2.js.map +1 -1
- package/components/ui-list-item/_types.d.ts +1 -0
- package/components/ui-list-item/_types.d.ts.map +1 -0
- package/components/ui-list-item/index.d.ts +1 -0
- package/components/ui-list-item/index.d.ts.map +1 -0
- package/components/ui-list-item/ui-list-item.vue.d.ts +3 -2
- package/components/ui-list-item/ui-list-item.vue.d.ts.map +1 -0
- package/components/ui-list-item/ui-list-item.vue.js +14 -14
- package/components/ui-modal/_typings.d.ts +1 -0
- package/components/ui-modal/_typings.d.ts.map +1 -0
- package/components/ui-modal/index.d.ts +1 -0
- package/components/ui-modal/index.d.ts.map +1 -0
- package/components/ui-modal/ui-backdrop/index.d.ts +1 -0
- package/components/ui-modal/ui-backdrop/index.d.ts.map +1 -0
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts +3 -2
- package/components/ui-modal/ui-backdrop/ui-backdrop.vue.d.ts.map +1 -0
- package/components/ui-modal/ui-modal.vue.d.ts +3 -2
- package/components/ui-modal/ui-modal.vue.d.ts.map +1 -0
- package/components/ui-notification-badge/_types.d.ts +1 -0
- package/components/ui-notification-badge/_types.d.ts.map +1 -0
- package/components/ui-notification-badge/index.d.ts +1 -0
- package/components/ui-notification-badge/index.d.ts.map +1 -0
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts +3 -2
- package/components/ui-notification-badge/ui-notification-badge.vue.d.ts.map +1 -0
- package/components/ui-order-card/_types.d.ts +1 -0
- package/components/ui-order-card/_types.d.ts.map +1 -0
- package/components/ui-order-card/index.d.ts +1 -0
- package/components/ui-order-card/index.d.ts.map +1 -0
- package/components/ui-order-card/ui-order-card.vue.d.ts +3 -2
- package/components/ui-order-card/ui-order-card.vue.d.ts.map +1 -0
- package/components/ui-plain-radio/index.d.ts +1 -0
- package/components/ui-plain-radio/index.d.ts.map +1 -0
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts +3 -2
- package/components/ui-plain-radio/ui-plain-radio.vue.d.ts.map +1 -0
- 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-progress/_types.d.ts +1 -0
- package/components/ui-progress/_types.d.ts.map +1 -0
- package/components/ui-progress/index.d.ts +3 -2
- package/components/ui-progress/index.d.ts.map +1 -0
- package/components/ui-progress/ui-progress.vue.d.ts +3 -2
- package/components/ui-progress/ui-progress.vue.d.ts.map +1 -0
- package/components/ui-radio/index.d.ts +1 -0
- package/components/ui-radio/index.d.ts.map +1 -0
- package/components/ui-radio/ui-radio.vue.d.ts +3 -2
- package/components/ui-radio/ui-radio.vue.d.ts.map +1 -0
- package/components/ui-radio/ui-radio.vue.js +2 -2
- package/components/ui-radio/ui-radio.vue2.js +12 -12
- package/components/ui-radio/ui-radio.vue2.js.map +1 -1
- package/components/ui-radio-compact/index.d.ts +5 -1
- package/components/ui-radio-compact/index.d.ts.map +1 -0
- package/components/ui-radio-compact/index.js.map +1 -1
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts +3 -2
- package/components/ui-radio-compact/ui-radio-compact.vue.d.ts.map +1 -0
- package/components/ui-radio-fancy/_typings.d.ts +1 -0
- package/components/ui-radio-fancy/_typings.d.ts.map +1 -0
- package/components/ui-radio-fancy/index.d.ts +1 -0
- package/components/ui-radio-fancy/index.d.ts.map +1 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts +3 -2
- package/components/ui-radio-fancy/ui-radio-fancy.vue.d.ts.map +1 -0
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js +15 -15
- package/components/ui-radio-fancy/ui-radio-fancy.vue.js.map +1 -1
- package/components/ui-result-card-range/_types.d.ts +1 -0
- package/components/ui-result-card-range/_types.d.ts.map +1 -0
- package/components/ui-result-card-range/index.d.ts +1 -24
- package/components/ui-result-card-range/index.d.ts.map +1 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts +3 -6
- package/components/ui-result-card-range/ui-result-card-range.vue.d.ts.map +1 -0
- package/components/ui-result-card-range/ui-result-card-range.vue.js +9 -11
- package/components/ui-result-card-range/ui-result-card-range.vue.js.map +1 -1
- package/components/ui-ripple/index.d.ts +1 -0
- package/components/ui-ripple/index.d.ts.map +1 -0
- package/components/ui-ripple/ui-ripple.vue.d.ts +3 -2
- package/components/ui-ripple/ui-ripple.vue.d.ts.map +1 -0
- package/components/ui-select/index.d.ts +1 -0
- package/components/ui-select/index.d.ts.map +1 -0
- package/components/ui-select/ui-select.vue.d.ts +3 -2
- package/components/ui-select/ui-select.vue.d.ts.map +1 -0
- package/components/ui-skeleton/_typings.d.ts +1 -0
- package/components/ui-skeleton/_typings.d.ts.map +1 -0
- package/components/ui-skeleton/index.d.ts +3 -2
- package/components/ui-skeleton/index.d.ts.map +1 -0
- package/components/ui-skeleton/ui-skeleton.vue.d.ts +3 -2
- package/components/ui-skeleton/ui-skeleton.vue.d.ts.map +1 -0
- package/components/ui-snackbar/_types.d.ts +1 -0
- package/components/ui-snackbar/_types.d.ts.map +1 -0
- package/components/ui-snackbar/index.d.ts +1 -0
- package/components/ui-snackbar/index.d.ts.map +1 -0
- package/components/ui-snackbar/ui-snackbar.vue.d.ts +3 -2
- package/components/ui-snackbar/ui-snackbar.vue.d.ts.map +1 -0
- package/components/ui-table/_types.d.ts +1 -0
- package/components/ui-table/_types.d.ts.map +1 -0
- package/components/ui-table/index.d.ts +1 -0
- package/components/ui-table/index.d.ts.map +1 -0
- package/components/ui-table/ui-table-cell/index.d.ts +1 -0
- package/components/ui-table/ui-table-cell/index.d.ts.map +1 -0
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts +3 -2
- package/components/ui-table/ui-table-cell/ui-table-cell.vue.d.ts.map +1 -0
- package/components/ui-table/ui-table-row/_typings.d.ts +1 -0
- package/components/ui-table/ui-table-row/_typings.d.ts.map +1 -0
- package/components/ui-table/ui-table-row/index.d.ts +1 -0
- package/components/ui-table/ui-table-row/index.d.ts.map +1 -0
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts +3 -2
- package/components/ui-table/ui-table-row/ui-table-row.vue.d.ts.map +1 -0
- package/components/ui-table/ui-table.vue.d.ts +3 -2
- package/components/ui-table/ui-table.vue.d.ts.map +1 -0
- package/components/ui-tabs/index.d.ts +3 -2
- package/components/ui-tabs/index.d.ts.map +1 -0
- package/components/ui-tabs/ui-tabs.vue.d.ts +3 -2
- package/components/ui-tabs/ui-tabs.vue.d.ts.map +1 -0
- package/components/ui-toggle/index.d.ts +7 -6
- package/components/ui-toggle/index.d.ts.map +1 -0
- package/components/ui-toggle/ui-toggle.vue.d.ts +5 -4
- package/components/ui-toggle/ui-toggle.vue.d.ts.map +1 -0
- package/components/ui-toggle/ui-toggle.vue.js +3 -3
- package/components/ui-toggle/ui-toggle.vue2.js +10 -10
- package/components/ui-toggle/ui-toggle.vue2.js.map +1 -1
- package/components/ui-typography/_typings.d.ts +1 -0
- package/components/ui-typography/_typings.d.ts.map +1 -0
- package/components/ui-typography/index.d.ts +1 -0
- package/components/ui-typography/index.d.ts.map +1 -0
- package/components/ui-typography/ui-typography.vue.d.ts +3 -2
- package/components/ui-typography/ui-typography.vue.d.ts.map +1 -0
- package/components/ui-verification-input/index.d.ts +1 -0
- package/components/ui-verification-input/index.d.ts.map +1 -0
- package/components/ui-verification-input/ui-verification-input.vue.d.ts +3 -2
- package/components/ui-verification-input/ui-verification-input.vue.d.ts.map +1 -0
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -0
- package/index.js +117 -116
- package/index.js.map +1 -1
- package/package.json +28 -27
- package/tsconfig.json +4 -0
- package/types.d.ts +1 -0
- package/types.d.ts.map +1 -0
- package/types.js +6 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-plain-radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AACvC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
modelValue: string | number | boolean;
|
|
4
4
|
header?: string | undefined;
|
|
@@ -8,7 +8,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsT
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
10
10
|
"update:modelValue": (...args: any[]) => void;
|
|
11
|
-
}, string,
|
|
11
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
12
|
modelValue: string | number | boolean;
|
|
13
13
|
header?: string | undefined;
|
|
14
14
|
subHeader?: string | undefined;
|
|
@@ -36,3 +36,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
36
36
|
$slots: S;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
//# sourceMappingURL=ui-plain-radio.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-plain-radio.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-plain-radio/ui-plain-radio.vue"],"names":[],"mappings":"AA4FA;;;;;;;;;;;;;;;;;;;;;;;AAiMA,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,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as g, computed as k, openBlock as y, createElementBlock as w, withDirectives as x, 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
|
-
import
|
|
2
|
+
import z from "../ui-radio/index.js";
|
|
3
3
|
import u from "../ui-typography/index.js";
|
|
4
|
-
import { ETypographySizes as b, ETextWeight as
|
|
4
|
+
import { ETypographySizes as b, ETextWeight as E } from "../ui-typography/_typings.js";
|
|
5
5
|
import { EColors as m } from "../../_types/colors.js";
|
|
6
6
|
const D = ["for"], N = ["id", "value", "disabled"], H = /* @__PURE__ */ g({
|
|
7
7
|
__name: "ui-plain-radio",
|
|
@@ -39,9 +39,9 @@ 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
|
|
42
|
+
class: V(["ui-plain-radio__content box-border grid size-full cursor-pointer grid-flow-col items-center justify-start gap-sm rounded-xl border border-secondary-alt-500 bg-white p-sm before:absolute before:-z-10 before:box-border before:rounded-[16px] 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-xs peer-checked:active:before:-left-xs peer-checked:active:before:-right-xs peer-checked:active:before:-top-xs peer-focus:before:-bottom-xs peer-focus:before:-left-xs peer-focus:before:-right-xs peer-focus:before:-top-xs 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
|
-
l(r(
|
|
44
|
+
l(r(z), {
|
|
45
45
|
modelValue: o.value,
|
|
46
46
|
"onUpdate:modelValue": a[1] || (a[1] = (d) => o.value = d),
|
|
47
47
|
value: e.value.toString(),
|
|
@@ -54,7 +54,7 @@ const D = ["for"], N = ["id", "value", "disabled"], H = /* @__PURE__ */ g({
|
|
|
54
54
|
l(r(u), {
|
|
55
55
|
size: r(b).SM,
|
|
56
56
|
kind: r(m).SECONDARY,
|
|
57
|
-
weight: r(
|
|
57
|
+
weight: r(E).SEMI_BOLD,
|
|
58
58
|
"line-height": ""
|
|
59
59
|
}, {
|
|
60
60
|
default: s(() => [
|
|
@@ -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=\"ui-plain-radio__content\n\t\t\t\tbox-border\n\t\t\t\tgrid\n\t\t\t\
|
|
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=\"ui-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-xl border\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\n\t\t\t\tbefore:rounded-[16px]\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\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-xs\n\t\t\t\tpeer-checked:active:before:-left-xs\n\t\t\t\tpeer-checked:active:before:-right-xs\n\t\t\t\tpeer-checked:active:before:-top-xs\n\n\t\t\t\tpeer-focus:before:-bottom-xs\n\t\t\t\tpeer-focus:before:-left-xs\n\n\t\t\t\tpeer-focus:before:-right-xs\n\t\t\t\tpeer-focus:before:-top-xs\n\t\t\t\tpeer-active:before:-bottom-xxs\n\t\t\t\tpeer-active:before:-left-xxs\n\n\t\t\t\tpeer-active:before:-right-xxs\n\t\t\t\tpeer-active:before:-top-xxs\"\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":";;;;;;;;;;;;;;;;;AAkGC,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":"_types.d.ts","sourceRoot":"","sources":["../../../src/components/ui-progress/_types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, PropType, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import UiProgress from "./ui-progress.vue";
|
|
3
3
|
export { UiProgress };
|
|
4
4
|
/**
|
|
@@ -20,7 +20,7 @@ declare const deprecatedDefault: DefineComponent<{
|
|
|
20
20
|
required: true;
|
|
21
21
|
default: number;
|
|
22
22
|
};
|
|
23
|
-
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
23
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
24
24
|
min: {
|
|
25
25
|
type: PropType<number>;
|
|
26
26
|
required: true;
|
|
@@ -42,3 +42,4 @@ declare const deprecatedDefault: DefineComponent<{
|
|
|
42
42
|
current: number;
|
|
43
43
|
}, {}>;
|
|
44
44
|
export default deprecatedDefault;
|
|
45
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAa,CAAC;AACrC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
min: number;
|
|
4
4
|
max: number;
|
|
@@ -7,7 +7,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
7
7
|
min: number;
|
|
8
8
|
max: number;
|
|
9
9
|
current: number;
|
|
10
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string,
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
11
11
|
min: number;
|
|
12
12
|
max: number;
|
|
13
13
|
current: number;
|
|
@@ -38,3 +38,4 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
38
38
|
type __VLS_Prettify<T> = {
|
|
39
39
|
[K in keyof T]: T[K];
|
|
40
40
|
} & {};
|
|
41
|
+
//# sourceMappingURL=ui-progress.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-progress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-progress/ui-progress.vue"],"names":[],"mappings":"AAyBA;;SAoGO,MAAM;SACN,MAAM;aACF,MAAM;;;;;;SAFV,MAAM;SACN,MAAM;aACF,MAAM;;;;;;SAFV,MAAM;SACN,MAAM;aACF,MAAM;;AARjB,wBAUG;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gBAAgB,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAU,CAAC;AAClC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { EJustify } from "../../_types/align";
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
modelValue: string | number | boolean;
|
|
@@ -9,7 +9,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsT
|
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
11
11
|
"update:modelValue": (...args: any[]) => void;
|
|
12
|
-
}, string,
|
|
12
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
13
|
modelValue: string | number | boolean;
|
|
14
14
|
name: string | number | boolean;
|
|
15
15
|
value: string;
|
|
@@ -36,3 +36,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
36
36
|
$slots: S;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
//# sourceMappingURL=ui-radio.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-radio.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio/ui-radio.vue"],"names":[],"mappings":"AA0DA;AAGC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;;;;;;;;;;;;;;;;;;;;;;AAgM/C,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,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".ui-radio__dot[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".ui-radio__dot[data-v-a134125e]{transform:translate3d(-50%,-50%,0) scale(0);transition:transform .2s ease-in-out}input:checked+.ui-radio_custom .ui-radio__dot[data-v-a134125e]{transform:translate3d(-50%,-50%,0) scale(1)}input:checked+.ui-radio_custom:hover .ui-radio__dot[data-v-a134125e]{background-color:var(--color-primary-600)}input:checked:disabled+.ui-radio_custom[data-v-a134125e]{border:2px solid var(--color-primary-300)}input:checked:disabled+.ui-radio_custom .ui-radio__dot[data-v-a134125e]{background-color:var(--color-primary-300)}")),document.head.appendChild(a)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import o from "./ui-radio.vue2.js";
|
|
3
3
|
|
|
4
4
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
5
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a134125e"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as y, useSlots as c, computed as f, openBlock as b, createElementBlock as v, normalizeClass as l, unref as o, withDirectives as
|
|
1
|
+
import { defineComponent as y, useSlots as c, computed as f, openBlock as b, createElementBlock as v, normalizeClass as l, unref as o, withDirectives as j, createElementVNode as a, vModelRadio as g, renderSlot as h, pushScopeId as E, popScopeId as S } from "vue";
|
|
2
2
|
import { EJustify as r } from "../../_types/align.js";
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const N = (t) => (E("data-v-a134125e"), t = t(), S(), t), k = ["id", "name", "value", "disabled"], B = /* @__PURE__ */ N(() => /* @__PURE__ */ a("span", { class: "ui-radio__dot absolute left-2/4 top-2/4 block size-xs rounded-full bg-primary" }, null, -1)), V = [
|
|
4
|
+
B
|
|
5
5
|
], T = /* @__PURE__ */ y({
|
|
6
6
|
__name: "ui-radio",
|
|
7
7
|
props: {
|
|
@@ -14,7 +14,7 @@ const w = (t) => (E("data-v-3212099e"), t = t(), S(), t), N = ["id", "name", "va
|
|
|
14
14
|
},
|
|
15
15
|
emits: ["update:modelValue"],
|
|
16
16
|
setup(t, { emit: i }) {
|
|
17
|
-
const u = c(), n = t, p = i,
|
|
17
|
+
const u = c(), n = t, p = i, s = f({
|
|
18
18
|
get() {
|
|
19
19
|
return n.modelValue;
|
|
20
20
|
},
|
|
@@ -22,7 +22,7 @@ const w = (t) => (E("data-v-3212099e"), t = t(), S(), t), N = ["id", "name", "va
|
|
|
22
22
|
p("update:modelValue", e);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
return (e,
|
|
25
|
+
return (e, d) => (b(), v("label", {
|
|
26
26
|
class: l(["ui-radio group grid cursor-pointer grid-flow-col", [
|
|
27
27
|
o(u).default && "items-center gap-xs",
|
|
28
28
|
(!e.justify || e.justify === o(r).START) && "justify-start",
|
|
@@ -34,21 +34,21 @@ const w = (t) => (E("data-v-3212099e"), t = t(), S(), t), N = ["id", "name", "va
|
|
|
34
34
|
e.disabled && "pointer-events-none"
|
|
35
35
|
]])
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
j(a("input", {
|
|
38
38
|
id: e.value,
|
|
39
|
-
"onUpdate:modelValue":
|
|
39
|
+
"onUpdate:modelValue": d[0] || (d[0] = (m) => s.value = m),
|
|
40
40
|
type: "radio",
|
|
41
41
|
name: e.name.toString(),
|
|
42
42
|
value: e.value,
|
|
43
43
|
disabled: e.disabled,
|
|
44
44
|
class: "peer absolute appearance-none"
|
|
45
|
-
}, null, 8,
|
|
46
|
-
[
|
|
45
|
+
}, null, 8, k), [
|
|
46
|
+
[g, s.value]
|
|
47
47
|
]),
|
|
48
48
|
a("span", {
|
|
49
|
-
class: l(["ui-radio_custom relative block
|
|
50
|
-
},
|
|
51
|
-
|
|
49
|
+
class: l(["ui-radio_custom relative block size-md rounded-full border border-secondary-alt bg-white group-hover:border-secondary-alt-700 group-focus:border-secondary-alt-700 peer-checked:border-2 peer-checked:border-primary peer-checked:hover:border-primary-600 peer-focus:shadow-border-primary peer-disabled:border-secondary-alt-400 peer-disabled:bg-secondary-alt-200", e.invertOrder && "order-last"])
|
|
50
|
+
}, V, 2),
|
|
51
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
52
52
|
], 2));
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-radio.vue2.js","sources":["../../../src/components/ui-radio/ui-radio.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"ui-radio group grid cursor-pointer grid-flow-col\"\n\t\t:class=\"[\n\t\t\tslots.default && 'items-center gap-xs',\n\t\t\t(!justify || justify === EJustify.START) && 'justify-start',\n\t\t\tjustify === EJustify.END && 'justify-end',\n\t\t\tjustify === EJustify.AROUND && 'justify-around',\n\t\t\tjustify === EJustify.BETWEEN && 'justify-between',\n\t\t\tjustify === EJustify.EVENLY && 'justify-evenly',\n\t\t\tjustify === EJustify.CENTER && 'justify-center',\n\t\t\tdisabled && 'pointer-events-none',\n\t\t]\"\n\t>\n\t\t<input\n\t\t\t:id=\"value\"\n\t\t\tv-model=\"radioModel\"\n\t\t\ttype=\"radio\"\n\t\t\t:name=\"name.toString()\"\n\t\t\t:value=\"value\"\n\t\t\t:disabled=\"disabled\"\n\t\t\tclass=\"peer absolute appearance-none\"\n\t\t>\n\t\t<span\n\t\t\tclass=\"\n\t\t\t\tui-radio_custom\n\t\t\t\trelative\n\t\t\t\tblock\n\t\t\t\
|
|
1
|
+
{"version":3,"file":"ui-radio.vue2.js","sources":["../../../src/components/ui-radio/ui-radio.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"ui-radio group grid cursor-pointer grid-flow-col\"\n\t\t:class=\"[\n\t\t\tslots.default && 'items-center gap-xs',\n\t\t\t(!justify || justify === EJustify.START) && 'justify-start',\n\t\t\tjustify === EJustify.END && 'justify-end',\n\t\t\tjustify === EJustify.AROUND && 'justify-around',\n\t\t\tjustify === EJustify.BETWEEN && 'justify-between',\n\t\t\tjustify === EJustify.EVENLY && 'justify-evenly',\n\t\t\tjustify === EJustify.CENTER && 'justify-center',\n\t\t\tdisabled && 'pointer-events-none',\n\t\t]\"\n\t>\n\t\t<input\n\t\t\t:id=\"value\"\n\t\t\tv-model=\"radioModel\"\n\t\t\ttype=\"radio\"\n\t\t\t:name=\"name.toString()\"\n\t\t\t:value=\"value\"\n\t\t\t:disabled=\"disabled\"\n\t\t\tclass=\"peer absolute appearance-none\"\n\t\t>\n\t\t<span\n\t\t\tclass=\"\n\t\t\t\tui-radio_custom\n\t\t\t\trelative\n\t\t\t\tblock\n\t\t\t\tsize-md\n\t\t\t\trounded-full\n\t\t\t\tborder\n\t\t\t\tborder-secondary-alt\n\t\t\t\tbg-white\n\t\t\t\tgroup-hover:border-secondary-alt-700\n\t\t\t\tgroup-focus:border-secondary-alt-700\n\t\t\t\tpeer-checked:border-2\n\t\t\t\tpeer-checked:border-primary\n\t\t\t\tpeer-checked:hover:border-primary-600\n\t\t\t\tpeer-focus:shadow-border-primary\n\t\t\t\tpeer-disabled:border-secondary-alt-400\n\t\t\t\tpeer-disabled:bg-secondary-alt-200\"\n\t\t\t:class=\"invertOrder && 'order-last'\"\n\t\t>\n\t\t\t<span\n\t\t\t\tclass=\"\n\t\t\t\t\t\tui-radio__dot\n\t\t\t\t\t\tabsolute\n\t\t\t\t\t\tleft-2/4\n\t\t\t\t\t\ttop-2/4\n\t\t\t\t\t\tblock\n\t\t\t\t\t\tsize-xs\n\t\t\t\t\t\trounded-full\n\t\t\t\t\t\tbg-primary\"\n\t\t\t/>\n\t\t</span>\n\t\t<slot />\n\t</label>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed, useSlots } from \"vue\";\n\timport { EJustify } from \"../../_types/align\";\n\tconst slots = useSlots();\n\tconst props = defineProps<{\n\t\tmodelValue: string | number | boolean;\n\t\tname: string | number | boolean;\n\t\tvalue: string;\n\t\tjustify?: EJustify;\n\t\tinvertOrder?: 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\n<style scoped>\n\t.ui-radio__dot {\n\t\ttransform: translate3d(-50%, -50%, 0) scale(0);\n\t\ttransition: transform 0.2s ease-in-out;\n\t}\n\n\tinput:checked + .ui-radio_custom .ui-radio__dot {\n\t\ttransform: translate3d(-50%, -50%, 0) scale(1);\n\t}\n\n\tinput:checked + .ui-radio_custom:hover .ui-radio__dot {\n\t\tbackground-color: var(--color-primary-600);\n\t}\n\n\tinput:checked:disabled + .ui-radio_custom {\n\t\tborder: 2px solid var(--color-primary-300);\n\t}\n\n\tinput:checked:disabled + .ui-radio_custom .ui-radio__dot {\n\t\tbackground-color: var(--color-primary-300);\n\t}\n</style>\n"],"names":["slots","useSlots","props","__props","emit","__emit","radioModel","computed","value"],"mappings":";;;;;;;;;;;;;;;;AA8DC,UAAMA,IAAQC,KACRC,IAAQC,GASRC,IAAOC,GAEPC,IAAaC,EAAS;AAAA,MAC3B,MAAM;AACL,eAAOL,EAAM;AAAA,MACd;AAAA,MACA,IAAIM,GAAO;AACV,QAAAJ,EAAK,qBAAqBI,CAAK;AAAA,MAChC;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase } from 'vue';
|
|
2
2
|
import UiRadioCompact from "./ui-radio-compact.vue";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated The default should not be used at all (look at ui-radio-fancy compact)
|
|
5
|
+
*/
|
|
3
6
|
export { UiRadioCompact };
|
|
4
7
|
/**
|
|
5
|
-
* @deprecated The default should not be used
|
|
8
|
+
* @deprecated The default should not be used at all
|
|
6
9
|
*/
|
|
7
10
|
declare const deprecatedDefault: {
|
|
8
11
|
new (...args: any[]): CreateComponentPublicInstance<Readonly<ExtractPropTypes<{
|
|
@@ -98,3 +101,4 @@ declare const deprecatedDefault: {
|
|
|
98
101
|
};
|
|
99
102
|
});
|
|
100
103
|
export default deprecatedDefault;
|
|
104
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio-compact/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiB,CAAC;AACzC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/ui-radio-compact/index.ts"],"sourcesContent":["import UiRadioCompact from \"./ui-radio-compact.vue\";\n\nexport { UiRadioCompact };\n/**\n * @deprecated The default should not be used
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/ui-radio-compact/index.ts"],"sourcesContent":["import UiRadioCompact from \"./ui-radio-compact.vue\";\n/**\n * @deprecated The default should not be used at all (look at ui-radio-fancy compact)\n */\nexport { UiRadioCompact };\n/**\n * @deprecated The default should not be used at all\n */\nconst deprecatedDefault = UiRadioCompact;\nexport default deprecatedDefault;\n"],"names":["deprecatedDefault","UiRadioCompact"],"mappings":";AAQA,MAAMA,IAAoBC;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
modelValue: string | number | boolean;
|
|
4
4
|
name: string;
|
|
@@ -6,7 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsT
|
|
|
6
6
|
disabled?: boolean | undefined;
|
|
7
7
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
8
8
|
"update:modelValue": (...args: any[]) => void;
|
|
9
|
-
}, string,
|
|
9
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
modelValue: string | number | boolean;
|
|
11
11
|
name: string;
|
|
12
12
|
value: string | number | boolean;
|
|
@@ -31,3 +31,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
31
31
|
$slots: S;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
+
//# sourceMappingURL=ui-radio-compact.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-radio-compact.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio-compact/ui-radio-compact.vue"],"names":[],"mappings":"AAqEA;;;;;;;;;;;;;;;;;;AAuIA,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_typings.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio-fancy/_typings.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio-fancy/index.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,CAAC;AAExB;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AACvC,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { TIconName } from "../ui-icon";
|
|
3
3
|
import { ERadioSizes } from "./_typings";
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaul
|
|
|
13
13
|
iconName: undefined;
|
|
14
14
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
15
15
|
"update:modelValue": (...args: any[]) => void;
|
|
16
|
-
}, string,
|
|
16
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
17
17
|
modelValue: string | number | boolean;
|
|
18
18
|
name: string;
|
|
19
19
|
value: string | number | boolean;
|
|
@@ -54,3 +54,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
54
54
|
$slots: S;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
+
//# sourceMappingURL=ui-radio-fancy.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-radio-fancy.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-radio-fancy/ui-radio-fancy.vue"],"names":[],"mappings":"AAoGA;AAIC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoO1C,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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as h, computed as y, openBlock as a, createElementBlock as d, normalizeClass as i, withDirectives as
|
|
1
|
+
import { defineComponent as h, computed as y, openBlock as a, createElementBlock as d, normalizeClass as i, withDirectives as z, createElementVNode as n, vModelRadio as k, unref as o, createVNode as s, createCommentVNode as g, withCtx as S, renderSlot as N } from "vue";
|
|
2
2
|
import V from "../ui-typography/index.js";
|
|
3
3
|
import { ESize as p } from "../../_types/sizing.js";
|
|
4
4
|
import { EColors as M } from "../../_types/colors.js";
|
|
5
5
|
import { ERadioSizes as r } from "./_typings.js";
|
|
6
6
|
import m from "../ui-icon/index.js";
|
|
7
|
-
import { ETypographySizes as
|
|
8
|
-
const
|
|
7
|
+
import { ETypographySizes as C } from "../ui-typography/_typings.js";
|
|
8
|
+
const w = ["name", "value", "disabled"], E = { key: 0 }, D = { key: 1 }, x = { key: 2 }, U = /* @__PURE__ */ h({
|
|
9
9
|
__name: "ui-radio-fancy",
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -16,8 +16,8 @@ const C = ["name", "value", "disabled"], E = { key: 0 }, D = { key: 1 }, x = { k
|
|
|
16
16
|
radioSize: { default: r.DEFAULT }
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(
|
|
20
|
-
const b =
|
|
19
|
+
setup(c, { emit: u }) {
|
|
20
|
+
const b = c, f = u, t = y({
|
|
21
21
|
get() {
|
|
22
22
|
return b.modelValue;
|
|
23
23
|
},
|
|
@@ -25,28 +25,28 @@ const C = ["name", "value", "disabled"], E = { key: 0 }, D = { key: 1 }, x = { k
|
|
|
25
25
|
f("update:modelValue", e);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
return (e,
|
|
28
|
+
return (e, l) => (a(), d("label", {
|
|
29
29
|
class: i(["ui-radio-fancy relative", e.disabled && "pointer-events-none"])
|
|
30
30
|
}, [
|
|
31
|
-
|
|
32
|
-
"onUpdate:modelValue":
|
|
31
|
+
z(n("input", {
|
|
32
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => t.value = v),
|
|
33
33
|
type: "radio",
|
|
34
34
|
name: e.name,
|
|
35
35
|
value: e.value,
|
|
36
36
|
class: "group peer absolute appearance-none",
|
|
37
37
|
disabled: e.disabled
|
|
38
|
-
}, null, 8,
|
|
39
|
-
[
|
|
38
|
+
}, null, 8, w), [
|
|
39
|
+
[k, t.value]
|
|
40
40
|
]),
|
|
41
41
|
n("div", {
|
|
42
|
-
class: i(["ui-radio-fancy__content box-border
|
|
42
|
+
class: i(["ui-radio-fancy__content box-border size-full cursor-pointer rounded-xl border border-secondary-alt-500 bg-white p-sm before:absolute before:-z-10 before:box-border before:rounded-[16px] 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-xs peer-checked:active:before:-left-xs peer-checked:active:before:-right-xs peer-checked:active:before:-top-xs peer-focus:before:-bottom-xs peer-focus:before:-left-xs peer-focus:before:-right-xs peer-focus:before:-top-xs peer-active:before:-bottom-xxs peer-active:before:-left-xxs peer-active:before:-right-xxs peer-active:before:-top-xxs", [
|
|
43
43
|
e.disabled && "pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled",
|
|
44
44
|
e.radioSize === o(r).MINIMAL && "flex gap-sm align-middle",
|
|
45
45
|
e.radioSize === o(r).COMPACT && "grid cursor-pointer grid-flow-col px-md"
|
|
46
46
|
]])
|
|
47
47
|
}, [
|
|
48
48
|
e.radioSize === o(r).DEFAULT && e.iconName ? (a(), d("div", E, [
|
|
49
|
-
|
|
49
|
+
s(o(m), {
|
|
50
50
|
"icon-name": e.iconName,
|
|
51
51
|
size: o(p).MD,
|
|
52
52
|
class: i(["mb-md peer-checked:text-primary-500", [
|
|
@@ -56,7 +56,7 @@ const C = ["name", "value", "disabled"], E = { key: 0 }, D = { key: 1 }, x = { k
|
|
|
56
56
|
]])
|
|
57
57
|
}, null, 8, ["icon-name", "size", "class"])
|
|
58
58
|
])) : e.radioSize === o(r).MINIMAL && e.iconName ? (a(), d("div", D, [
|
|
59
|
-
|
|
59
|
+
s(o(m), {
|
|
60
60
|
"icon-name": e.iconName,
|
|
61
61
|
size: o(p).MD,
|
|
62
62
|
class: i([
|
|
@@ -66,8 +66,8 @@ const C = ["name", "value", "disabled"], E = { key: 0 }, D = { key: 1 }, x = { k
|
|
|
66
66
|
])
|
|
67
67
|
}, null, 8, ["icon-name", "size", "class"])
|
|
68
68
|
])) : e.radioSize === o(r).COMPACT ? (a(), d("div", x)) : g("", !0),
|
|
69
|
-
|
|
70
|
-
size: o(
|
|
69
|
+
s(o(V), {
|
|
70
|
+
size: o(C).SM,
|
|
71
71
|
kind: o(M).SECONDARY,
|
|
72
72
|
class: "pt-xxs"
|
|
73
73
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-radio-fancy.vue.js","sources":["../../../src/components/ui-radio-fancy/ui-radio-fancy.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"\n\t\t\tui-radio-fancy\n\t\t\trelative\n\n\t\t\"\n\t\t:class=\"disabled && 'pointer-events-none'\"\n\t>\n\t\t<input\n\t\t\tv-model=\"radioModel\"\n\t\t\ttype=\"radio\"\n\t\t\t:name=\"name\"\n\t\t\t:value=\"value\"\n\t\t\tclass=\"group peer absolute appearance-none\"\n\t\t\t:disabled=\"disabled\"\n\t\t>\n\t\t<div\n\t\t\tclass=\"\n\t\t\t\tui-radio-fancy__content\n\t\t\t\tbox-border\n\t\t\t\
|
|
1
|
+
{"version":3,"file":"ui-radio-fancy.vue.js","sources":["../../../src/components/ui-radio-fancy/ui-radio-fancy.vue"],"sourcesContent":["<template>\n\t<label\n\t\tclass=\"\n\t\t\tui-radio-fancy\n\t\t\trelative\n\n\t\t\"\n\t\t:class=\"disabled && 'pointer-events-none'\"\n\t>\n\t\t<input\n\t\t\tv-model=\"radioModel\"\n\t\t\ttype=\"radio\"\n\t\t\t:name=\"name\"\n\t\t\t:value=\"value\"\n\t\t\tclass=\"group peer absolute appearance-none\"\n\t\t\t:disabled=\"disabled\"\n\t\t>\n\t\t<div\n\t\t\tclass=\"\n\t\t\t\tui-radio-fancy__content\n\t\t\t\tbox-border\n\t\t\t\tsize-full\n\t\t\t\tcursor-pointer\n\t\t\t\trounded-xl border\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\n\t\t\t\tbefore:rounded-[16px]\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\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-xs\n\t\t\t\tpeer-checked:active:before:-left-xs\n\t\t\t\tpeer-checked:active:before:-right-xs\n\t\t\t\tpeer-checked:active:before:-top-xs\n\n\t\t\t\tpeer-focus:before:-bottom-xs\n\t\t\t\tpeer-focus:before:-left-xs\n\n\t\t\t\tpeer-focus:before:-right-xs\n\t\t\t\tpeer-focus:before:-top-xs\n\t\t\t\tpeer-active:before:-bottom-xxs\n\t\t\t\tpeer-active:before:-left-xxs\n\n\t\t\t\tpeer-active:before:-right-xxs\n\t\t\t\tpeer-active:before:-top-xxs\n\t\t\t\"\n\t\t\t:class=\"[\n\t\t\t\tdisabled\n\t\t\t\t\t&& 'pointer-events-none border-secondary-alt-400 peer-checked:shadow-border-primary-disabled',\n\t\t\t\tradioSize === ERadioSizes.MINIMAL && 'flex gap-sm align-middle',\n\t\t\t\tradioSize === ERadioSizes.COMPACT && 'grid cursor-pointer grid-flow-col px-md'\n\n\t\t\t]\"\n\t\t>\n\t\t\t<div\n\t\t\t\tv-if=\"radioSize === ERadioSizes.DEFAULT && iconName\"\n\t\t\t>\n\t\t\t\t<ui-icon\n\t\t\t\t\t:icon-name=\"iconName\"\n\t\t\t\t\t:size=\"ESize.MD\"\n\t\t\t\t\tclass=\" mb-md peer-checked:text-primary-500\"\n\t\t\t\t\t:class=\"[value === modelValue && 'text-primary',\n\t\t\t\t\t\tdisabled && 'text-secondary-alt-400',\n\t\t\t\t\t\tdisabled && value === modelValue && 'text-primary-300'\n\t\t\t\t\t]\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<div v-else-if=\"radioSize === ERadioSizes.MINIMAL && iconName\">\n\t\t\t\t<ui-icon\n\t\t\t\t\t:icon-name=\"iconName\"\n\t\t\t\t\t:size=\"ESize.MD\"\n\t\t\t\t\t:class=\"[value === modelValue && 'text-primary',\n\t\t\t\t\t\tdisabled && 'text-secondary-alt-400',\n\t\t\t\t\t\tdisabled && value === modelValue && 'text-primary-300'\n\t\t\t\t\t]\"\n\t\t\t\t/>\n\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tv-else-if=\"radioSize === ERadioSizes.COMPACT\"\n\t\t\t/>\n\t\t\t<ui-typography\n\t\t\t\t:size=\"ETypographySizes.SM\"\n\t\t\t\t:kind=\"EColors.SECONDARY\"\n\t\t\t\tclass=\"pt-xxs\"\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</ui-typography>\n\t\t</div>\n\t</label>\n</template>\n\n<script lang=\"ts\" setup>\n\timport { computed } from \"vue\";\n\timport UiTypography, { ETypographySizes } from \"../ui-typography\";\n\timport type { TIconName } from \"../ui-icon\";\n\timport { ESize } from \"../../_types/sizing\";\n\timport { EColors } from \"../../_types/colors\";\n\timport { ERadioSizes } from \"./_typings\";\n\timport uiIcon from \"../ui-icon\";\n\n\tconst props = withDefaults(defineProps<{\n\t\tmodelValue: string | number | boolean;\n\t\tname: string;\n\t\tvalue: string | number | boolean;\n\t\ticonName?: TIconName;\n\t\tdisabled?: boolean;\n\t\tradioSize?: ERadioSizes;\n\t}>(), {\n\t\tradioSize: ERadioSizes.DEFAULT,\n\t\ticonName: undefined\n\t});\n\tconst emit = defineEmits([\"update:modelValue\"]);\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":";;;;;;;;;;;;;;;;;;;AA8GC,UAAMA,IAAQC,GAWRC,IAAOC,GACPC,IAAaC,EAAS;AAAA,MAC3B,MAAM;AACL,eAAOL,EAAM;AAAA,MACd;AAAA,MACA,IAAIM,GAAO;AACV,QAAAJ,EAAK,qBAAqBI,CAAK;AAAA,MAChC;AAAA,IAAA,CACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../src/components/ui-result-card-range/_types.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAChC,OAAO,YAAY;CACnB;AAED,oBAAY,qBAAqB;IAChC,OAAO,YAAY;IACnB,IAAI,SAAS;CACb"}
|
|
@@ -13,12 +13,6 @@ declare const deprecatedDefault: {
|
|
|
13
13
|
title: {
|
|
14
14
|
type: PropType<string>;
|
|
15
15
|
};
|
|
16
|
-
size: {
|
|
17
|
-
type: PropType<string>;
|
|
18
|
-
};
|
|
19
|
-
description: {
|
|
20
|
-
type: PropType<string>;
|
|
21
|
-
};
|
|
22
16
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<{
|
|
23
17
|
iconName: {
|
|
24
18
|
type: PropType<TIconName>;
|
|
@@ -26,12 +20,6 @@ declare const deprecatedDefault: {
|
|
|
26
20
|
title: {
|
|
27
21
|
type: PropType<string>;
|
|
28
22
|
};
|
|
29
|
-
size: {
|
|
30
|
-
type: PropType<string>;
|
|
31
|
-
};
|
|
32
|
-
description: {
|
|
33
|
-
type: PropType<string>;
|
|
34
|
-
};
|
|
35
23
|
}>>, {}, true, {}, {}, {
|
|
36
24
|
P: {};
|
|
37
25
|
B: {};
|
|
@@ -46,12 +34,6 @@ declare const deprecatedDefault: {
|
|
|
46
34
|
title: {
|
|
47
35
|
type: PropType<string>;
|
|
48
36
|
};
|
|
49
|
-
size: {
|
|
50
|
-
type: PropType<string>;
|
|
51
|
-
};
|
|
52
|
-
description: {
|
|
53
|
-
type: PropType<string>;
|
|
54
|
-
};
|
|
55
37
|
}>>, {}, {}, {}, {}, {}>;
|
|
56
38
|
__isFragment?: undefined;
|
|
57
39
|
__isTeleport?: undefined;
|
|
@@ -63,15 +45,10 @@ declare const deprecatedDefault: {
|
|
|
63
45
|
title: {
|
|
64
46
|
type: PropType<string>;
|
|
65
47
|
};
|
|
66
|
-
size: {
|
|
67
|
-
type: PropType<string>;
|
|
68
|
-
};
|
|
69
|
-
description: {
|
|
70
|
-
type: PropType<string>;
|
|
71
|
-
};
|
|
72
48
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
73
49
|
$slots: {
|
|
74
50
|
default?(_: {}): any;
|
|
75
51
|
};
|
|
76
52
|
});
|
|
77
53
|
export default deprecatedDefault;
|
|
54
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui-result-card-range/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAC7B;;GAEG;AACH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC;AAC5C,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { type TIconName } from "../ui-icon";
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
iconName?: TIconName | undefined;
|
|
5
5
|
title?: string | undefined;
|
|
6
|
-
|
|
7
|
-
description?: string | undefined;
|
|
8
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
7
|
iconName?: TIconName | undefined;
|
|
10
8
|
title?: string | undefined;
|
|
11
|
-
size?: string | undefined;
|
|
12
|
-
description?: string | undefined;
|
|
13
9
|
}>>>, {}, {}>, {
|
|
14
10
|
default?(_: {}): any;
|
|
15
11
|
}>;
|
|
@@ -28,3 +24,4 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
28
24
|
$slots: S;
|
|
29
25
|
};
|
|
30
26
|
};
|
|
27
|
+
//# sourceMappingURL=ui-result-card-range.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-result-card-range.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ui-result-card-range/ui-result-card-range.vue"],"names":[],"mappings":"AAiCA;AAEC,OAAe,EAAS,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;;;;;;;;;;AAqH5D,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"}
|