@wikicasa-dev/components 2.2.9-alpha.57 → 2.2.9-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Swiper/autoplay.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/AccessibleSelect.d.ts +4 -4
- package/dist/UIKit/AccessibleSelect.js +2 -3
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +2 -7
- package/dist/UIKit/BaseAutocomplete.d.ts +4 -4
- package/dist/UIKit/BaseButton.d.ts +8 -14
- package/dist/UIKit/BaseCard.js +3 -1
- package/dist/UIKit/BaseDropDown.d.ts +11 -17
- package/dist/UIKit/BaseFloatingLabel.js +4 -4
- package/dist/UIKit/BaseInput.d.ts +2 -3
- package/dist/UIKit/BaseInput.js +1 -1
- package/dist/UIKit/BaseSnackbar.d.ts +2 -2
- package/dist/UIKit/BaseTextarea.d.ts +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -5
- package/dist/UIKit/Radio/RadioButton.d.ts +23 -28
- package/dist/UIKit/Radio/RadioGroup.d.ts +50 -49
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseDropDown.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +83 -90
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +157 -151
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +6 -4
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +105 -112
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +36 -36
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +24 -28
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +13 -13
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +105 -102
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +64 -65
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +36 -42
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +17 -18
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +24 -22
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +55 -60
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +14 -16
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +33 -37
- package/dist/types/index.d.ts +0 -2
- package/package.json +7 -8
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +0 -29
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +0 -16
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +0 -5
- package/dist/assets/AccessibleSelect.css +0 -1
- package/dist/assets/RadioButtonItem.css +0 -1
- package/dist/composables/mock.d.ts +0 -25
- package/dist/composables/mock.js +0 -49
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js +0 -49
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js +0 -44
- /package/dist/assets/{swiper-thumbs.css → swiper-controller.css} +0 -0
|
@@ -1,64 +1,60 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as C, mergeModels as d, useModel as h, ref as $, watch as V, renderSlot as u, createElementVNode as p, normalizeClass as c, createElementBlock as k, openBlock as m, Fragment as y, renderList as R, createBlock as g } from "vue";
|
|
2
|
+
import B from "./RadioButton.vue.js";
|
|
3
|
+
const b = ["data-cy"], z = /* @__PURE__ */ C({
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "RadioGroup",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ d({
|
|
7
7
|
radioValues: { default: () => [] },
|
|
8
8
|
dataCy: {},
|
|
9
9
|
radioContainerClasses: {}
|
|
10
10
|
}, {
|
|
11
11
|
resetRadio: { type: Boolean, default: !1 },
|
|
12
|
-
resetRadioModifiers: {}
|
|
13
|
-
refresh: { type: Boolean, default: !1 },
|
|
14
|
-
refreshModifiers: {}
|
|
12
|
+
resetRadioModifiers: {}
|
|
15
13
|
}),
|
|
16
|
-
emits: /* @__PURE__ */
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
a.value = e,
|
|
14
|
+
emits: /* @__PURE__ */ d(["update:modelValue"], ["update:resetRadio"]),
|
|
15
|
+
setup(t, { emit: f }) {
|
|
16
|
+
const n = f, i = h(t, "resetRadio"), a = $(null), l = (e) => {
|
|
17
|
+
a.value = e, n("update:modelValue", e);
|
|
20
18
|
}, s = () => {
|
|
21
|
-
a.value = null,
|
|
22
|
-
},
|
|
23
|
-
|
|
19
|
+
a.value = null, i.value = !1, n("update:modelValue", null);
|
|
20
|
+
}, r = (e) => a.value ? `${a.value.id}` == `${e.id}` : !1;
|
|
21
|
+
return (() => {
|
|
22
|
+
for (const e of t.radioValues)
|
|
24
23
|
if (e.active) {
|
|
25
|
-
|
|
24
|
+
l(e);
|
|
26
25
|
return;
|
|
27
26
|
}
|
|
28
|
-
}
|
|
29
|
-
return u(), v(n, (e) => {
|
|
27
|
+
})(), V(i, (e) => {
|
|
30
28
|
e && s();
|
|
31
|
-
}),
|
|
32
|
-
|
|
33
|
-
}), (e, c) => h(e.$slots, "default", {
|
|
34
|
-
handleClick: t,
|
|
29
|
+
}), (e, A) => u(e.$slots, "default", {
|
|
30
|
+
handleClick: l,
|
|
35
31
|
activeValue: a.value,
|
|
36
32
|
reset: s,
|
|
37
|
-
isActive:
|
|
33
|
+
isActive: r
|
|
38
34
|
}, () => [
|
|
39
|
-
|
|
40
|
-
class:
|
|
41
|
-
"data-cy":
|
|
35
|
+
p("div", {
|
|
36
|
+
class: c(["radio-group-container", e.$attrs.class]),
|
|
37
|
+
"data-cy": t.dataCy
|
|
42
38
|
}, [
|
|
43
|
-
|
|
44
|
-
handleClick:
|
|
39
|
+
u(e.$slots, "radio_elements", {
|
|
40
|
+
handleClick: l,
|
|
45
41
|
activeValue: a.value,
|
|
46
42
|
reset: s,
|
|
47
|
-
isActive:
|
|
43
|
+
isActive: r
|
|
48
44
|
}, () => [
|
|
49
|
-
(
|
|
50
|
-
id:
|
|
51
|
-
key:
|
|
52
|
-
class:
|
|
53
|
-
label: `${
|
|
54
|
-
"model-value": `${
|
|
55
|
-
onChange:
|
|
45
|
+
(m(!0), k(y, null, R(t.radioValues, (o, v) => (m(), g(B, {
|
|
46
|
+
id: o.id,
|
|
47
|
+
key: v,
|
|
48
|
+
class: c(t.radioContainerClasses),
|
|
49
|
+
label: `${o.label}`,
|
|
50
|
+
"model-value": `${o.id}` == `${a.value?.id}`,
|
|
51
|
+
onChange: l
|
|
56
52
|
}, null, 8, ["id", "class", "label", "model-value"]))), 128))
|
|
57
53
|
])
|
|
58
|
-
], 10,
|
|
54
|
+
], 10, b)
|
|
59
55
|
]);
|
|
60
56
|
}
|
|
61
57
|
});
|
|
62
58
|
export {
|
|
63
|
-
|
|
59
|
+
z as default
|
|
64
60
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,5 +8,3 @@ export type { BaseComplexToggleProps, ToggleType, } from '../UIKit/BaseComplexTo
|
|
|
8
8
|
export type { SnackbarProps } from '../UIKit/BaseSnackbar';
|
|
9
9
|
export type { ChartOptions, ChartData } from 'chart.js';
|
|
10
10
|
export type { BaseAutocompleteThemes } from '../UIKit/BaseAutocomplete';
|
|
11
|
-
export type { RadioButtonGroupProps } from '../UIKit/Radio/v2/RadioButtonGroup';
|
|
12
|
-
export type { RadioButtonItemProps } from '../UIKit/Radio/v2/RadioButtonItem';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.2.9-alpha.
|
|
3
|
+
"version": "2.2.9-alpha.6",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
"default": "./dist/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./style": "./dist/assets/tailwind.css",
|
|
20
|
-
"./css/*": "./dist/assets/*.css",
|
|
21
20
|
"./generic/*": {
|
|
22
21
|
"import": "./dist/components/*.js",
|
|
23
22
|
"types": "./dist/components/*.d.ts"
|
|
@@ -44,9 +43,9 @@
|
|
|
44
43
|
"peerDependencies": {
|
|
45
44
|
"vue": "^3.5.0",
|
|
46
45
|
"date-fns": "^4.0.0",
|
|
47
|
-
"@wikicasa-dev/svg-icons": "^1.2.
|
|
48
|
-
"@wikicasa-dev/vue-composables": "0.0.
|
|
49
|
-
"@wikicasa-dev/types": "^2.
|
|
46
|
+
"@wikicasa-dev/svg-icons": "^1.2.24",
|
|
47
|
+
"@wikicasa-dev/vue-composables": "^0.0.29",
|
|
48
|
+
"@wikicasa-dev/types": "^2.4.0",
|
|
50
49
|
"@wikicasa-dev/utilities": "^1.2.0"
|
|
51
50
|
},
|
|
52
51
|
"dependencies": {
|
|
@@ -64,10 +63,10 @@
|
|
|
64
63
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
65
64
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
66
65
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
67
|
-
"@wikicasa-dev/svg-icons": "1.2.
|
|
68
|
-
"@wikicasa-dev/vue-composables": "0.0.
|
|
66
|
+
"@wikicasa-dev/svg-icons": "1.2.24",
|
|
67
|
+
"@wikicasa-dev/vue-composables": "0.0.29",
|
|
69
68
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
70
|
-
"@wikicasa-dev/types": "2.
|
|
69
|
+
"@wikicasa-dev/types": "2.4.6",
|
|
71
70
|
"@wikicasa-dev/utilities": "1.2.0",
|
|
72
71
|
"autoprefixer": "^10.4.22",
|
|
73
72
|
"date-fns": "4.1.0",
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AcceptableValue, RadioGroupRootProps, RadioGroupItemProps } from 'reka-ui';
|
|
2
|
-
export type RadioButtonItem = {
|
|
3
|
-
dataCy?: string;
|
|
4
|
-
value: RadioGroupItemProps["value"];
|
|
5
|
-
required?: RadioGroupItemProps["required"];
|
|
6
|
-
as?: RadioGroupItemProps["as"];
|
|
7
|
-
label: string;
|
|
8
|
-
};
|
|
9
|
-
export interface RadioButtonGroupProps extends RadioGroupRootProps {
|
|
10
|
-
dataCy?: string;
|
|
11
|
-
items?: RadioButtonItem[];
|
|
12
|
-
}
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
14
|
-
modelValue?: AcceptableValue;
|
|
15
|
-
} & RadioButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
-
"update:modelValue": (value: AcceptableValue) => any;
|
|
17
|
-
}, string, import('vue').PublicProps, Readonly<{
|
|
18
|
-
modelValue?: AcceptableValue;
|
|
19
|
-
} & RadioButtonGroupProps> & Readonly<{
|
|
20
|
-
"onUpdate:modelValue"?: ((value: AcceptableValue) => any) | undefined;
|
|
21
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
22
|
-
default?(_: {}): any;
|
|
23
|
-
}>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
-
new (): {
|
|
27
|
-
$slots: S;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RadioGroupItemProps } from 'reka-ui';
|
|
2
|
-
import { ClassTypeProp } from '../../types';
|
|
3
|
-
export interface RadioButtonItemProps extends RadioGroupItemProps {
|
|
4
|
-
itemClasses?: ClassTypeProp;
|
|
5
|
-
labelClasses?: ClassTypeProp;
|
|
6
|
-
dataCy?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<RadioButtonItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RadioButtonItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
}>;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
13
|
-
new (): {
|
|
14
|
-
$slots: S;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uikit-select-dropdown.uikit-dropdown-content{--dropdown-border-color: #B4C2F0;--dropdown-max-height: 225px;--dropdown-min-width: unset;--dropdown-margin-top: 10px;margin-top:var(--dropdown-margin-top)}.uikit-select-dropdown.uikit-dropdown-content[data-side=down]{--dropdown-border-top-width: 1px;--dropdown-border-top-left-radius: 12px;--dropdown-border-top-right-radius: 12px;--dropdown-border-bottom-left-radius: 12px;--dropdown-border-bottom-right-radius: 12px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.uikit-radio-btn{--font-size: 16px;font-size:var(--font-size)}.uikit-radio-btn .uikit-radio-group-item[data-state=checked]:focus .uikit-radio-group-indicator{width:10px;height:10px}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
interface KeyboardControllerProps {
|
|
3
|
-
optionsLength: Ref<number> | number;
|
|
4
|
-
isDropdownOpen?: Ref<boolean>;
|
|
5
|
-
disableSpaceHandler?: boolean;
|
|
6
|
-
activate?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* If true, the listener will be initialized on the document element
|
|
9
|
-
*/
|
|
10
|
-
global?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* List of keys that will close the dropdown.
|
|
13
|
-
* For the full list of keys, see
|
|
14
|
-
* @link https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
|
|
15
|
-
* @default "Escape" and "Enter"
|
|
16
|
-
*/
|
|
17
|
-
closeKeys?: string[];
|
|
18
|
-
}
|
|
19
|
-
export declare const useKeyboardController: (props: KeyboardControllerProps) => {
|
|
20
|
-
activeIdx: Ref<number, number>;
|
|
21
|
-
selectedIdx: Ref<number, number>;
|
|
22
|
-
$reset: () => void;
|
|
23
|
-
onKeyDownHandler: (e: KeyboardEvent) => void;
|
|
24
|
-
};
|
|
25
|
-
export {};
|
package/dist/composables/mock.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ref as _, onMounted as A, onUnmounted as D, unref as p } from "vue";
|
|
2
|
-
const u = "ArrowUp", a = "ArrowDown", c = "Enter", i = "Escape", v = " ", d = "PageUp", K = "Home", E = "PageDown", m = "End", O = (l) => {
|
|
3
|
-
const {
|
|
4
|
-
isDropdownOpen: t,
|
|
5
|
-
disableSpaceHandler: P,
|
|
6
|
-
global: f = !0,
|
|
7
|
-
closeKeys: Y = [i, c]
|
|
8
|
-
} = l, n = _(-1), o = _(-1), w = l.activate === void 0 ? !0 : l.activate, y = () => {
|
|
9
|
-
n.value = -1, o.value = -1, t && (t.value = !1);
|
|
10
|
-
}, k = (e) => {
|
|
11
|
-
t && Y.includes(e) && (t.value = !1);
|
|
12
|
-
}, r = (e) => {
|
|
13
|
-
if (!t?.value || ![
|
|
14
|
-
u,
|
|
15
|
-
a,
|
|
16
|
-
c,
|
|
17
|
-
i,
|
|
18
|
-
v,
|
|
19
|
-
d,
|
|
20
|
-
K,
|
|
21
|
-
E,
|
|
22
|
-
m
|
|
23
|
-
].includes(e.key))
|
|
24
|
-
return;
|
|
25
|
-
const s = p(l.optionsLength);
|
|
26
|
-
if ([u, a, d, E].includes(e.key) && e.preventDefault(), e.key === u)
|
|
27
|
-
n.value = n.value === 0 ? s - 1 : n.value - 1;
|
|
28
|
-
else if (e.key === a)
|
|
29
|
-
n.value = (n.value + 1) % s;
|
|
30
|
-
else if (e.key === c || e.key === v) {
|
|
31
|
-
if (e.key === v && P) return;
|
|
32
|
-
o.value = n.value, k(e.key);
|
|
33
|
-
} else e.key === i ? (n.value = o.value, k(e.key)) : e.key === d || e.key === K ? n.value = 0 : (e.key === E || e.key === m) && (n.value = s - 1);
|
|
34
|
-
e.stopPropagation();
|
|
35
|
-
};
|
|
36
|
-
return w ? (A(() => {
|
|
37
|
-
!document || !f || document.addEventListener("keydown", r);
|
|
38
|
-
}), D(() => {
|
|
39
|
-
!document || !f || document.removeEventListener("keydown", r);
|
|
40
|
-
}), {
|
|
41
|
-
activeIdx: n,
|
|
42
|
-
selectedIdx: o,
|
|
43
|
-
onKeyDownHandler: r,
|
|
44
|
-
$reset: y
|
|
45
|
-
}) : { activeIdx: n, selectedIdx: o, $reset: y, onKeyDownHandler: r };
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
O as useKeyboardController
|
|
49
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, mergeModels as p, createPropsRestProxy as f, useModel as c, createBlock as d, openBlock as t, unref as V, mergeProps as u, withCtx as m, renderSlot as y, createElementBlock as B, Fragment as g, renderList as k, createTextVNode as x, toDisplayString as C } from "vue";
|
|
2
|
-
import { RadioGroupRoot as R } from "reka-ui";
|
|
3
|
-
import _ from "./RadioButtonItem.vue.js";
|
|
4
|
-
import '../../../../../../assets/RadioButtonItem.css';/* empty css */
|
|
5
|
-
const G = /* @__PURE__ */ s({
|
|
6
|
-
__name: "RadioButtonGroup",
|
|
7
|
-
props: /* @__PURE__ */ p({
|
|
8
|
-
dataCy: {},
|
|
9
|
-
items: { default: () => [] },
|
|
10
|
-
modelValue: {},
|
|
11
|
-
defaultValue: {},
|
|
12
|
-
disabled: { type: Boolean },
|
|
13
|
-
orientation: {},
|
|
14
|
-
dir: {},
|
|
15
|
-
loop: { type: Boolean },
|
|
16
|
-
asChild: { type: Boolean },
|
|
17
|
-
as: {},
|
|
18
|
-
name: {},
|
|
19
|
-
required: { type: Boolean }
|
|
20
|
-
}, {
|
|
21
|
-
modelValue: {},
|
|
22
|
-
modelModifiers: {}
|
|
23
|
-
}),
|
|
24
|
-
emits: ["update:modelValue"],
|
|
25
|
-
setup(e) {
|
|
26
|
-
const n = f(e, ["items"]), l = c(e, "modelValue");
|
|
27
|
-
return (i, a) => (t(), d(V(R), u(n, {
|
|
28
|
-
modelValue: l.value,
|
|
29
|
-
"onUpdate:modelValue": a[0] || (a[0] = (o) => l.value = o)
|
|
30
|
-
}), {
|
|
31
|
-
default: m(() => [
|
|
32
|
-
y(i.$slots, "default", {}, () => [
|
|
33
|
-
(t(!0), B(g, null, k(e.items, ({ label: o, ...r }) => (t(), d(_, u({ ref_for: !0 }, r, {
|
|
34
|
-
key: `radio-item-${r.value}`
|
|
35
|
-
}), {
|
|
36
|
-
default: m(() => [
|
|
37
|
-
x(C(o), 1)
|
|
38
|
-
]),
|
|
39
|
-
_: 2
|
|
40
|
-
}, 1040))), 128))
|
|
41
|
-
])
|
|
42
|
-
]),
|
|
43
|
-
_: 3
|
|
44
|
-
}, 16, ["modelValue"]));
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
export {
|
|
48
|
-
G as default
|
|
49
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, createPropsRestProxy as n, useId as c, computed as k, createElementBlock as s, openBlock as r, createVNode as a, createCommentVNode as m, unref as u, mergeProps as p, withCtx as f, normalizeClass as b, renderSlot as C } from "vue";
|
|
2
|
-
import { RadioGroupItem as y, RadioGroupIndicator as h } from "reka-ui";
|
|
3
|
-
const x = { class: "uikit-radio-btn uikit-flex uikit-items-center uikit-gap-x-[8px]" }, g = ["for"], _ = /* @__PURE__ */ d({
|
|
4
|
-
__name: "RadioButtonItem",
|
|
5
|
-
props: {
|
|
6
|
-
itemClasses: {},
|
|
7
|
-
labelClasses: {},
|
|
8
|
-
dataCy: {},
|
|
9
|
-
id: {},
|
|
10
|
-
value: {},
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
asChild: { type: Boolean },
|
|
13
|
-
as: {},
|
|
14
|
-
name: {},
|
|
15
|
-
required: { type: Boolean }
|
|
16
|
-
},
|
|
17
|
-
setup(e) {
|
|
18
|
-
const i = n(e, ["itemClasses", "labelClasses"]), l = c(), t = k(() => i.id ?? l);
|
|
19
|
-
return (o, w) => (r(), s("div", x, [
|
|
20
|
-
a(u(y), p(i, {
|
|
21
|
-
id: t.value,
|
|
22
|
-
class: [
|
|
23
|
-
"uikit-radio-group-item uikit-inline-flex uikit-size-[18px] uikit-shrink-0 uikit-cursor-default uikit-items-center uikit-justify-center uikit-rounded-full uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white uikit-p-0 uikit-shadow-sm uikit-outline-none focus:uikit-border-2 focus:uikit-border-w-primary",
|
|
24
|
-
e.itemClasses
|
|
25
|
-
]
|
|
26
|
-
}), {
|
|
27
|
-
default: f(() => [
|
|
28
|
-
a(u(h), { class: "uikit-radio-group-indicator uikit-size-[12px] uikit-rounded-[50%] uikit-bg-w-primary" })
|
|
29
|
-
]),
|
|
30
|
-
_: 1
|
|
31
|
-
}, 16, ["id", "class"]),
|
|
32
|
-
o.$slots.default ? (r(), s("label", {
|
|
33
|
-
key: 0,
|
|
34
|
-
for: t.value,
|
|
35
|
-
class: b(e.labelClasses)
|
|
36
|
-
}, [
|
|
37
|
-
C(o.$slots, "default")
|
|
38
|
-
], 10, g)) : m("", !0)
|
|
39
|
-
]));
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export {
|
|
43
|
-
_ as default
|
|
44
|
-
};
|
|
File without changes
|