@indielayer/ui 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/components/common/CodePreview.vue +1 -1
- package/docs/components/common/CodeSnippet.vue +5 -7
- package/docs/components/common/DocumentPage.vue +89 -93
- package/docs/components/menu/DocsMenu.vue +75 -122
- package/docs/components/toolbar/PreToolbar.vue +10 -12
- package/docs/components/toolbar/Toolbar.vue +21 -8
- package/docs/layouts/default.vue +7 -3
- package/docs/pages/colors.vue +49 -54
- package/docs/pages/component/button/button-group.vue +6 -2
- package/docs/pages/component/button/size.vue +1 -1
- package/docs/pages/component/carousel/usage.vue +2 -2
- package/docs/pages/component/form/usage.vue +3 -3
- package/docs/pages/component/formGroup/usage.vue +1 -0
- package/docs/pages/component/input/usage.vue +8 -9
- package/docs/pages/component/modal/composed.vue +3 -2
- package/docs/pages/component/modal/usage.vue +11 -6
- package/docs/pages/component/popover/usage.vue +3 -3
- package/docs/pages/component/select/usage.vue +1 -0
- package/docs/pages/component/tabs/usage.vue +6 -1
- package/docs/pages/component/textarea/usage.vue +10 -13
- package/docs/pages/component/toggle/usage.vue +9 -11
- package/docs/pages/component/tooltip/index.vue +2 -2
- package/docs/pages/component/tooltip/usage.vue +4 -8
- package/docs/pages/icons.vue +54 -58
- package/docs/pages/index.vue +73 -77
- package/docs/pages/play.vue +2 -14
- package/docs/pages/typography.vue +26 -30
- package/docs/router/index.ts +2 -0
- package/exports/tailwind.preset.js +0 -1
- package/lib/components/accordion/theme/AccordionItem.base.theme.js +7 -7
- package/lib/components/badge/Badge.vue.js +7 -7
- package/lib/components/breadcrumbs/theme/Breadcrumbs.base.theme.js +1 -1
- package/lib/components/button/theme/Button.base.theme.js +7 -7
- package/lib/components/card/theme/Card.base.theme.js +1 -1
- package/lib/components/checkbox/Checkbox.vue.d.ts +3 -0
- package/lib/components/checkbox/Checkbox.vue2.js +23 -23
- package/lib/components/checkbox/theme/Checkbox.base.theme.js +6 -6
- package/lib/components/checkbox/theme/Checkbox.carbon.theme.js +2 -2
- package/lib/components/container/theme/Container.base.theme.js +2 -2
- package/lib/components/divider/Divider.vue.js +14 -14
- package/lib/components/divider/theme/Divider.base.theme.js +2 -2
- package/lib/components/drawer/Drawer.vue.js +2 -2
- package/lib/components/drawer/theme/Drawer.base.theme.js +1 -1
- package/lib/components/form/Form.vue.js +1 -1
- package/lib/components/form/theme/Form.base.theme.js +4 -4
- package/lib/components/form/theme/Form.carbon.theme.js +4 -4
- package/lib/components/formGroup/FormGroup.vue.d.ts +3 -0
- package/lib/components/formGroup/FormGroup.vue.js +16 -15
- package/lib/components/formGroup/theme/FormGroup.base.theme.js +1 -1
- package/lib/components/icon/theme/Icon.base.theme.js +1 -1
- package/lib/components/index.js +108 -107
- package/lib/components/input/Input.vue.d.ts +3 -0
- package/lib/components/input/Input.vue.js +4 -3
- package/lib/components/input/theme/Input.base.theme.js +10 -10
- package/lib/components/input/theme/Input.carbon.theme.js +10 -10
- package/lib/components/inputFooter/theme/InputFooter.base.theme.js +3 -3
- package/lib/components/inputFooter/theme/InputFooter.carbon.theme.js +2 -2
- package/lib/components/label/Label.vue.d.ts +3 -0
- package/lib/components/label/Label.vue.js +26 -20
- package/lib/components/label/theme/Label.base.theme.js +1 -1
- package/lib/components/label/theme/Label.carbon.theme.js +3 -3
- package/lib/components/link/Link.vue.js +2 -2
- package/lib/components/link/Link.vue2.js +4 -4
- package/lib/components/loader/theme/Loader.base.theme.js +1 -1
- package/lib/components/loader/theme/Loader.carbon.theme.js +1 -1
- package/lib/components/menu/Menu.vue.js +19 -19
- package/lib/components/menu/theme/MenuItem.base.theme.js +21 -31
- package/lib/components/modal/Modal.vue.d.ts +4 -0
- package/lib/components/modal/Modal.vue.js +78 -74
- package/lib/components/modal/theme/Modal.base.theme.js +10 -10
- package/lib/components/modal/theme/Modal.carbon.theme.js +3 -3
- package/lib/components/notifications/Notifications.vue.js +1 -1
- package/lib/components/notifications/theme/Notifications.base.theme.js +1 -1
- package/lib/components/notifications/theme/Notifications.carbon.theme.js +3 -3
- package/lib/components/pagination/Pagination.vue.js +27 -27
- package/lib/components/popover/Popover.vue.d.ts +13 -0
- package/lib/components/popover/Popover.vue.js +13 -8
- package/lib/components/popover/Popover.vue2.js +3 -2
- package/lib/components/popover/Popover.vue3.js +2 -3
- package/lib/components/popover/theme/PopoverContainer.base.theme.js +4 -4
- package/lib/components/popover/theme/PopoverContainer.carbon.theme.js +4 -4
- package/lib/components/progress/Progress.vue.js +11 -11
- package/lib/components/progress/theme/Progress.base.theme.js +10 -10
- package/lib/components/radio/Radio.vue.d.ts +3 -0
- package/lib/components/radio/theme/Radio.base.theme.js +28 -28
- package/lib/components/radio/theme/Radio.carbon.theme.js +8 -8
- package/lib/components/select/Select.vue.d.ts +16 -0
- package/lib/components/select/Select.vue.js +95 -92
- package/lib/components/select/theme/Select.base.theme.js +11 -11
- package/lib/components/select/theme/Select.carbon.theme.js +10 -10
- package/lib/components/skeleton/theme/Skeleton.base.theme.js +1 -1
- package/lib/components/slider/Slider.vue.d.ts +3 -0
- package/lib/components/slider/Slider.vue.js +1 -1
- package/lib/components/slider/theme/Slider.carbon.theme.js +6 -6
- package/lib/components/stepper/Stepper.vue.js +14 -14
- package/lib/components/tab/Tab.vue.js +55 -54
- package/lib/components/tab/theme/TabGroup.base.theme.js +15 -15
- package/lib/components/tab/theme/TabGroup.carbon.theme.js +8 -8
- package/lib/components/table/Table.vue.js +192 -194
- package/lib/components/table/theme/Table.base.theme.js +3 -3
- package/lib/components/table/theme/Table.carbon.theme.js +7 -7
- package/lib/components/table/theme/TableHead.base.theme.js +1 -1
- package/lib/components/table/theme/TableHead.carbon.theme.js +1 -1
- package/lib/components/table/theme/TableHeader.base.theme.js +1 -1
- package/lib/components/table/theme/TableHeader.carbon.theme.js +2 -2
- package/lib/components/table/theme/TableRow.base.theme.js +3 -3
- package/lib/components/table/theme/TableRow.carbon.theme.js +3 -3
- package/lib/components/tag/Tag.vue.js +4 -4
- package/lib/components/textarea/Textarea.vue.d.ts +7 -0
- package/lib/components/textarea/Textarea.vue.js +23 -21
- package/lib/components/textarea/theme/Textarea.base.theme.js +6 -6
- package/lib/components/textarea/theme/Textarea.carbon.theme.js +6 -6
- package/lib/components/toggle/Toggle.vue.d.ts +3 -0
- package/lib/components/toggle/Toggle.vue.js +26 -26
- package/lib/components/toggle/theme/Toggle.base.theme.js +1 -1
- package/lib/components/tooltip/ToggleTip.vue.d.ts +14 -0
- package/lib/components/tooltip/ToggleTip.vue.js +29 -0
- package/lib/components/tooltip/ToggleTip.vue2.js +4 -0
- package/lib/components/tooltip/Tooltip.vue.d.ts +22 -3
- package/lib/components/tooltip/Tooltip.vue.js +26 -17
- package/lib/components/tooltip/__tests__/ToggleTip.spec.d.ts +1 -0
- package/lib/components/tooltip/index.d.ts +2 -0
- package/lib/composables/useColors.js +9 -9
- package/lib/composables/useInputtable.d.ts +1 -0
- package/lib/composables/useInputtable.js +20 -19
- package/lib/index.js +37 -35
- package/lib/index.umd.js +7 -3
- package/lib/tailwind.preset.js +0 -1
- package/lib/themes/base/index.js +3 -6
- package/lib/themes/base/styles.css.js +4 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -1
- package/src/components/accordion/theme/AccordionItem.base.theme.ts +2 -2
- package/src/components/badge/Badge.vue +1 -1
- package/src/components/breadcrumbs/theme/Breadcrumbs.base.theme.ts +1 -1
- package/src/components/button/theme/Button.base.theme.ts +2 -2
- package/src/components/card/theme/Card.base.theme.ts +1 -1
- package/src/components/checkbox/Checkbox.vue +1 -1
- package/src/components/checkbox/theme/Checkbox.base.theme.ts +8 -8
- package/src/components/checkbox/theme/Checkbox.carbon.theme.ts +2 -2
- package/src/components/container/theme/Container.base.theme.ts +2 -2
- package/src/components/divider/Divider.vue +1 -1
- package/src/components/divider/theme/Divider.base.theme.ts +2 -2
- package/src/components/drawer/Drawer.vue +2 -2
- package/src/components/drawer/theme/Drawer.base.theme.ts +1 -1
- package/src/components/form/Form.vue +1 -1
- package/src/components/form/theme/Form.base.theme.ts +1 -1
- package/src/components/form/theme/Form.carbon.theme.ts +1 -1
- package/src/components/formGroup/FormGroup.vue +1 -0
- package/src/components/formGroup/theme/FormGroup.base.theme.ts +1 -1
- package/src/components/icon/theme/Icon.base.theme.ts +2 -2
- package/src/components/input/Input.vue +2 -1
- package/src/components/input/theme/Input.base.theme.ts +5 -5
- package/src/components/input/theme/Input.carbon.theme.ts +6 -6
- package/src/components/inputFooter/theme/InputFooter.base.theme.ts +3 -3
- package/src/components/inputFooter/theme/InputFooter.carbon.theme.ts +2 -2
- package/src/components/label/Label.vue +4 -1
- package/src/components/label/theme/Label.base.theme.ts +1 -1
- package/src/components/label/theme/Label.carbon.theme.ts +1 -1
- package/src/components/link/Link.vue +1 -1
- package/src/components/loader/theme/Loader.base.theme.ts +1 -1
- package/src/components/loader/theme/Loader.carbon.theme.ts +1 -1
- package/src/components/menu/Menu.vue +3 -3
- package/src/components/menu/theme/MenuItem.base.theme.ts +30 -34
- package/src/components/modal/Modal.vue +8 -3
- package/src/components/modal/theme/Modal.base.theme.ts +9 -6
- package/src/components/modal/theme/Modal.carbon.theme.ts +3 -3
- package/src/components/notifications/Notifications.vue +1 -1
- package/src/components/notifications/theme/Notifications.base.theme.ts +1 -1
- package/src/components/notifications/theme/Notifications.carbon.theme.ts +1 -1
- package/src/components/pagination/Pagination.vue +3 -3
- package/src/components/popover/Popover.vue +77 -2
- package/src/components/popover/theme/PopoverContainer.base.theme.ts +1 -1
- package/src/components/popover/theme/PopoverContainer.carbon.theme.ts +1 -1
- package/src/components/progress/Progress.vue +1 -1
- package/src/components/progress/theme/Progress.base.theme.ts +2 -2
- package/src/components/radio/theme/Radio.base.theme.ts +8 -8
- package/src/components/radio/theme/Radio.carbon.theme.ts +1 -1
- package/src/components/select/Select.vue +7 -4
- package/src/components/select/theme/Select.base.theme.ts +8 -8
- package/src/components/select/theme/Select.carbon.theme.ts +8 -8
- package/src/components/skeleton/theme/Skeleton.base.theme.ts +1 -1
- package/src/components/slider/Slider.vue +1 -1
- package/src/components/slider/theme/Slider.carbon.theme.ts +1 -1
- package/src/components/stepper/Stepper.vue +3 -3
- package/src/components/tab/Tab.vue +3 -3
- package/src/components/tab/theme/TabGroup.base.theme.ts +4 -4
- package/src/components/tab/theme/TabGroup.carbon.theme.ts +3 -3
- package/src/components/table/Table.vue +2 -0
- package/src/components/table/theme/Table.base.theme.ts +1 -1
- package/src/components/table/theme/Table.carbon.theme.ts +2 -2
- package/src/components/table/theme/TableHead.base.theme.ts +1 -1
- package/src/components/table/theme/TableHead.carbon.theme.ts +1 -1
- package/src/components/table/theme/TableHeader.base.theme.ts +1 -1
- package/src/components/table/theme/TableHeader.carbon.theme.ts +2 -2
- package/src/components/table/theme/TableRow.base.theme.ts +3 -3
- package/src/components/table/theme/TableRow.carbon.theme.ts +3 -3
- package/src/components/tag/Tag.vue +1 -1
- package/src/components/textarea/Textarea.vue +3 -1
- package/src/components/textarea/theme/Textarea.base.theme.ts +5 -4
- package/src/components/textarea/theme/Textarea.carbon.theme.ts +5 -5
- package/src/components/toggle/Toggle.vue +3 -3
- package/src/components/toggle/theme/Toggle.base.theme.ts +1 -1
- package/src/components/tooltip/ToggleTip.vue +31 -0
- package/src/components/tooltip/Tooltip.vue +14 -4
- package/src/components/tooltip/__tests__/ToggleTip.spec.ts +11 -0
- package/src/components/tooltip/index.ts +3 -0
- package/src/composables/useColors.ts +1 -1
- package/src/composables/useInputtable.ts +1 -0
- package/src/themes/base/index.ts +0 -3
- package/src/themes/base/styles.css +4 -0
- package/src/version.ts +1 -1
- package/volar.d.ts +1 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as p, openBlock as
|
|
1
|
+
import { defineComponent as p, openBlock as o, createElementBlock as r, normalizeStyle as s, unref as t, normalizeClass as a, createElementVNode as n, toDisplayString as u, createCommentVNode as v } from "vue";
|
|
2
2
|
import { useTheme as y } from "../../composables/useTheme.js";
|
|
3
3
|
const h = ["textContent"], f = {
|
|
4
4
|
label: String,
|
|
5
5
|
vertical: Boolean
|
|
6
|
-
},
|
|
7
|
-
...
|
|
6
|
+
}, C = { name: "XDivider" }, x = /* @__PURE__ */ p({
|
|
7
|
+
...C,
|
|
8
8
|
props: f,
|
|
9
|
-
setup(
|
|
10
|
-
const c =
|
|
11
|
-
return (e,
|
|
12
|
-
style:
|
|
9
|
+
setup(i) {
|
|
10
|
+
const c = i, { styles: d, classes: l, className: m } = y("Divider", {}, c);
|
|
11
|
+
return (e, b) => (o(), r("div", {
|
|
12
|
+
style: s(t(d)),
|
|
13
13
|
class: a([
|
|
14
|
-
t(
|
|
14
|
+
t(m),
|
|
15
15
|
t(l).wrapper
|
|
16
16
|
])
|
|
17
17
|
}, [
|
|
18
|
-
|
|
18
|
+
n("div", {
|
|
19
19
|
class: a(t(l).line),
|
|
20
|
-
style:
|
|
20
|
+
style: s([
|
|
21
21
|
{
|
|
22
22
|
width: e.vertical ? "1px" : "auto",
|
|
23
23
|
height: e.vertical ? "auto" : "1px"
|
|
24
24
|
}
|
|
25
25
|
])
|
|
26
26
|
}, null, 6),
|
|
27
|
-
e.label ? (
|
|
27
|
+
e.label ? (o(), r("div", {
|
|
28
28
|
key: 0,
|
|
29
|
-
class: a(["font-medium text-sm text-
|
|
29
|
+
class: a(["font-medium text-sm text-secondary-600 dark:text-secondary-300", [
|
|
30
30
|
t(l).label,
|
|
31
31
|
{
|
|
32
32
|
"my-2": e.vertical,
|
|
@@ -35,9 +35,9 @@ const h = ["textContent"], f = {
|
|
|
35
35
|
]]),
|
|
36
36
|
textContent: u(e.label)
|
|
37
37
|
}, null, 10, h)) : v("", !0),
|
|
38
|
-
|
|
38
|
+
n("div", {
|
|
39
39
|
class: a(t(l).line),
|
|
40
|
-
style:
|
|
40
|
+
style: s([
|
|
41
41
|
{
|
|
42
42
|
width: e.vertical ? "1px" : "auto",
|
|
43
43
|
height: e.vertical ? "auto" : "1px"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const t = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: ({ props: e }) => `flex justify-center items-center ${e.vertical ? "h-full flex-col" : "w-full"}`,
|
|
4
|
-
label: "font-medium text-sm text-
|
|
5
|
-
line: "bg-
|
|
4
|
+
label: "font-medium text-sm text-secondary-600 dark:text-secondary-300",
|
|
5
|
+
line: "bg-secondary-200 dark:bg-secondary-700 flex-grow"
|
|
6
6
|
}
|
|
7
7
|
}, l = t;
|
|
8
8
|
export {
|
|
@@ -86,14 +86,14 @@ const ee = {
|
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
e.addEventListener("transitionend", o), setTimeout(() => {
|
|
89
|
-
t.backdrop && e.classList.add("bg-
|
|
89
|
+
t.backdrop && e.classList.add("bg-slate-500/30"), t.position === "top" ? e.style.top = "0" : t.position === "bottom" ? e.style.bottom = "0" : t.position === "left" ? e.style.left = "0" : t.position === "right" && (e.style.right = "0");
|
|
90
90
|
}, 1);
|
|
91
91
|
}
|
|
92
92
|
function R(e) {
|
|
93
93
|
}
|
|
94
94
|
function D(e, o) {
|
|
95
95
|
e.addEventListener("transitionend", o), setTimeout(() => {
|
|
96
|
-
t.backdrop && e.classList.remove("bg-
|
|
96
|
+
t.backdrop && e.classList.remove("bg-slate-500/30"), t.position === "top" ? e.style.top = `-${t.height}px` : t.position === "bottom" ? e.style.bottom = `-${t.height}px` : t.position === "left" ? e.style.left = `-${t.width}px` : t.position === "right" && (e.style.right = `-${t.width}px`);
|
|
97
97
|
}, 1);
|
|
98
98
|
}
|
|
99
99
|
function z(e) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "relative",
|
|
4
4
|
content: "",
|
|
5
5
|
title: "text-xl mb-1",
|
|
6
|
-
description: "text-
|
|
6
|
+
description: "text-secondary-500",
|
|
7
7
|
footer: "space-x-4 mt-4"
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, t = e;
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as default
|
|
12
12
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "relative",
|
|
4
4
|
content: "grid",
|
|
5
5
|
title: "text-xl mb-1",
|
|
6
|
-
description: "text-
|
|
6
|
+
description: "text-secondary-500",
|
|
7
7
|
footer: "grid grid-cols-2 gap-4 lg:flex mt-8"
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, t = e;
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
t as default
|
|
12
12
|
};
|
|
@@ -22,6 +22,7 @@ declare const formGroupProps: {
|
|
|
22
22
|
readonly type: ArrayConstructor;
|
|
23
23
|
readonly default: () => never[];
|
|
24
24
|
};
|
|
25
|
+
tooltip: StringConstructor;
|
|
25
26
|
disabled: BooleanConstructor;
|
|
26
27
|
loading: BooleanConstructor;
|
|
27
28
|
loadingLabel: StringConstructor;
|
|
@@ -67,6 +68,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
68
|
readonly type: ArrayConstructor;
|
|
68
69
|
readonly default: () => never[];
|
|
69
70
|
};
|
|
71
|
+
tooltip: StringConstructor;
|
|
70
72
|
disabled: BooleanConstructor;
|
|
71
73
|
loading: BooleanConstructor;
|
|
72
74
|
loadingLabel: StringConstructor;
|
|
@@ -102,6 +104,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
104
|
readonly type: ArrayConstructor;
|
|
103
105
|
readonly default: () => never[];
|
|
104
106
|
};
|
|
107
|
+
tooltip: StringConstructor;
|
|
105
108
|
disabled: BooleanConstructor;
|
|
106
109
|
loading: BooleanConstructor;
|
|
107
110
|
loadingLabel: StringConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as C, computed as k, provide as q, openBlock as
|
|
1
|
+
import { defineComponent as C, computed as k, provide as q, openBlock as p, createBlock as m, mergeProps as B, unref as o, toHandlers as N, withCtx as $, createElementVNode as w, normalizeClass as A, renderSlot as E, createCommentVNode as P } from "vue";
|
|
2
2
|
import { useTheme as j } from "../../composables/useTheme.js";
|
|
3
3
|
import { useInteractive as z } from "../../composables/useInteractive.js";
|
|
4
4
|
import { useInputtable as l } from "../../composables/useInputtable.js";
|
|
@@ -14,19 +14,19 @@ const S = {
|
|
|
14
14
|
}
|
|
15
15
|
}, T = {
|
|
16
16
|
name: "XFormGroup"
|
|
17
|
-
},
|
|
17
|
+
}, U = /* @__PURE__ */ C({
|
|
18
18
|
...T,
|
|
19
19
|
props: S,
|
|
20
20
|
emits: l.emits(),
|
|
21
21
|
setup(d, { expose: f, emit: c }) {
|
|
22
|
-
const r = d,
|
|
22
|
+
const r = d, t = [], V = k(() => typeof r.modelValue == "string" || typeof r.modelValue == "number" || Array.isArray(r.modelValue) ? r.modelValue : "");
|
|
23
23
|
q(H, {
|
|
24
|
-
registerInputGroup: (e,
|
|
25
|
-
|
|
24
|
+
registerInputGroup: (e, s) => {
|
|
25
|
+
t.push({ name: e, focus: s });
|
|
26
26
|
},
|
|
27
27
|
unregisterInputGroup: (e) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
28
|
+
const s = t.findIndex((_) => _.name === e);
|
|
29
|
+
t.splice(s, 1);
|
|
30
30
|
},
|
|
31
31
|
setValue: (e) => {
|
|
32
32
|
n("update:modelValue", e);
|
|
@@ -36,7 +36,7 @@ const S = {
|
|
|
36
36
|
});
|
|
37
37
|
function i() {
|
|
38
38
|
var e;
|
|
39
|
-
(e =
|
|
39
|
+
(e = t[0]) == null || e.focus();
|
|
40
40
|
}
|
|
41
41
|
const n = c, {
|
|
42
42
|
errorInternal: a,
|
|
@@ -49,8 +49,8 @@ const S = {
|
|
|
49
49
|
change: (e) => {
|
|
50
50
|
r.validateOnInput && !b.value && u(r.modelValue);
|
|
51
51
|
}
|
|
52
|
-
}, { styles: F, classes: G, className:
|
|
53
|
-
return f({ focus: i, blur, reset: h, validate: u, setError: v }), (e,
|
|
52
|
+
}, { styles: F, classes: G, className: g } = j("FormGroup", {}, r, { errorInternal: a });
|
|
53
|
+
return f({ focus: i, blur, reset: h, validate: u, setError: v }), (e, s) => (p(), m(K, B({
|
|
54
54
|
tag: "fieldset",
|
|
55
55
|
style: o(F),
|
|
56
56
|
disabled: e.disabled,
|
|
@@ -58,8 +58,9 @@ const S = {
|
|
|
58
58
|
"is-inside-form": o(y),
|
|
59
59
|
label: e.label,
|
|
60
60
|
class: [
|
|
61
|
-
o(
|
|
62
|
-
]
|
|
61
|
+
o(g)
|
|
62
|
+
],
|
|
63
|
+
tooltip: e.tooltip
|
|
63
64
|
}, N(I)), {
|
|
64
65
|
default: $(() => [
|
|
65
66
|
w("div", {
|
|
@@ -67,16 +68,16 @@ const S = {
|
|
|
67
68
|
}, [
|
|
68
69
|
E(e.$slots, "default")
|
|
69
70
|
], 2),
|
|
70
|
-
e.hideFooter ? P("", !0) : (
|
|
71
|
+
e.hideFooter ? P("", !0) : (p(), m(O, {
|
|
71
72
|
key: 0,
|
|
72
73
|
error: o(a),
|
|
73
74
|
helper: e.helper
|
|
74
75
|
}, null, 8, ["error", "helper"]))
|
|
75
76
|
]),
|
|
76
77
|
_: 3
|
|
77
|
-
}, 16, ["style", "disabled", "required", "is-inside-form", "label", "class"]));
|
|
78
|
+
}, 16, ["style", "disabled", "required", "is-inside-form", "label", "class", "tooltip"]));
|
|
78
79
|
}
|
|
79
80
|
});
|
|
80
81
|
export {
|
|
81
|
-
|
|
82
|
+
U as default
|
|
82
83
|
};
|
|
@@ -2,7 +2,7 @@ const t = {
|
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: ({ props: s }) => {
|
|
4
4
|
const e = "inline shrink-0";
|
|
5
|
-
return s.size === "xs" ? e + " h-3 w-3" : s.size === "sm" ? e + " h-4 w-4" : s.size === "lg" ? e + " h-6 w-6" : s.size === "xl" ? e + " h-
|
|
5
|
+
return s.size === "xs" ? e + " h-3 w-3" : s.size === "sm" ? e + " h-4 w-4" : s.size === "lg" ? e + " h-6 w-6" : s.size === "xl" ? e + " h-7 w-7" : e + " h-4 w-4";
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
}, i = t;
|
package/lib/components/index.js
CHANGED
|
@@ -1,111 +1,112 @@
|
|
|
1
1
|
import { default as a } from "./accordion/Accordion.vue.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import "./
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
2
|
+
import { default as t } from "./accordion/AccordionItem.vue.js";
|
|
3
|
+
import { default as l } from "./badge/Badge.vue.js";
|
|
4
|
+
import { default as p } from "./breadcrumbs/Breadcrumbs.vue.js";
|
|
5
|
+
import { default as m } from "./card/Card.vue.js";
|
|
6
|
+
import { default as x } from "./carousel/Carousel.vue.js";
|
|
7
|
+
import { default as n } from "./container/Container.vue.js";
|
|
8
|
+
import { default as T } from "./divider/Divider.vue.js";
|
|
9
|
+
import { default as c } from "./drawer/Drawer.vue.js";
|
|
10
|
+
import { default as S } from "./form/Form.vue.js";
|
|
11
|
+
import { default as I } from "./formGroup/FormGroup.vue.js";
|
|
12
|
+
import { default as v } from "./image/Image.vue.js";
|
|
13
|
+
import { default as A } from "./input/Input.vue.js";
|
|
14
|
+
import { default as F } from "./menu/Menu.vue.js";
|
|
15
|
+
import { default as L } from "./modal/Modal.vue.js";
|
|
16
|
+
import { default as h } from "./notifications/Notifications.vue.js";
|
|
17
|
+
import { default as D } from "./pagination/Pagination.vue.js";
|
|
18
|
+
import { default as R } from "./progress/Progress.vue.js";
|
|
19
|
+
import { default as N } from "./select/Select.vue.js";
|
|
20
|
+
import { default as q } from "./skeleton/Skeleton.vue.js";
|
|
21
|
+
import { default as E } from "./slider/Slider.vue.js";
|
|
22
|
+
import { default as K } from "./stepper/Stepper.vue.js";
|
|
23
|
+
import { default as Q } from "./tab/Tab.vue.js";
|
|
24
|
+
import { default as V } from "./tab/TabGroup.vue.js";
|
|
25
|
+
import { default as Y } from "./table/Table.vue.js";
|
|
26
|
+
import { default as _ } from "./textarea/Textarea.vue.js";
|
|
27
|
+
import { default as ee } from "./themeProvider/ThemeProvider.vue.js";
|
|
28
|
+
import { default as ae } from "./toggle/Toggle.vue.js";
|
|
29
|
+
import { default as te } from "./alert/Alert.vue.js";
|
|
30
|
+
import { default as le } from "./avatar/Avatar.vue.js";
|
|
31
|
+
import { default as pe } from "./button/Button.vue.js";
|
|
32
|
+
import { default as me } from "./button/ButtonGroup.vue.js";
|
|
33
|
+
import { default as xe } from "./carousel/CarouselSlide.vue.js";
|
|
34
|
+
import { default as ne } from "./checkbox/Checkbox.vue.js";
|
|
35
|
+
import { default as Te } from "./icon/Icon.vue.js";
|
|
36
|
+
import { default as ce } from "./inputFooter/InputFooter.vue.js";
|
|
37
|
+
import { default as Se } from "./label/Label.vue.js";
|
|
38
|
+
import { default as Ie } from "./link/Link.vue.js";
|
|
39
|
+
import { default as ve } from "./loader/Loader.vue.js";
|
|
40
|
+
import { default as Ae } from "./menu/MenuItem.vue.js";
|
|
41
|
+
import { default as Fe } from "./pagination/PaginationItem.vue.js";
|
|
42
|
+
import { default as Le } from "./popover/Popover.vue.js";
|
|
43
|
+
import { default as he } from "./popover/PopoverContainer.vue.js";
|
|
44
|
+
import { default as De } from "./radio/Radio.vue.js";
|
|
45
|
+
import { default as Re } from "./scroll/Scroll.vue.js";
|
|
46
|
+
import { default as Ne } from "./spacer/Spacer.js";
|
|
47
|
+
import { default as qe } from "./spinner/Spinner.vue.js";
|
|
48
|
+
import { default as Ee } from "./table/TableBody.js";
|
|
49
|
+
import { default as Ke } from "./table/TableCell.vue.js";
|
|
50
|
+
import { default as Qe } from "./table/TableHead.vue.js";
|
|
51
|
+
import { default as Ve } from "./table/TableHeader.vue.js";
|
|
52
|
+
import { default as Ye } from "./table/TableRow.vue.js";
|
|
53
|
+
import { default as _e } from "./tag/Tag.vue.js";
|
|
54
|
+
import { default as eo } from "./tooltip/Tooltip.vue.js";
|
|
55
|
+
import { default as ao } from "./tooltip/ToggleTip.vue.js";
|
|
56
56
|
export {
|
|
57
57
|
a as XAccordion,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
58
|
+
t as XAccordionItem,
|
|
59
|
+
te as XAlert,
|
|
60
|
+
le as XAvatar,
|
|
61
|
+
l as XBadge,
|
|
62
|
+
p as XBreadcrumbs,
|
|
63
|
+
pe as XButton,
|
|
64
|
+
me as XButtonGroup,
|
|
65
|
+
m as XCard,
|
|
66
|
+
x as XCarousel,
|
|
67
|
+
xe as XCarouselSlide,
|
|
68
|
+
ne as XCheckbox,
|
|
69
|
+
n as XContainer,
|
|
70
|
+
T as XDivider,
|
|
71
|
+
c as XDrawer,
|
|
72
|
+
S as XForm,
|
|
73
|
+
I as XFormGroup,
|
|
74
|
+
Te as XIcon,
|
|
75
|
+
v as XImage,
|
|
76
|
+
A as XInput,
|
|
77
|
+
ce as XInputFooter,
|
|
78
|
+
Se as XLabel,
|
|
79
|
+
Ie as XLink,
|
|
80
|
+
ve as XLoader,
|
|
81
|
+
F as XMenu,
|
|
82
|
+
Ae as XMenuItem,
|
|
83
|
+
L as XModal,
|
|
84
|
+
h as XNotifications,
|
|
85
|
+
D as XPagination,
|
|
86
|
+
Fe as XPaginationItem,
|
|
87
|
+
Le as XPopover,
|
|
88
|
+
he as XPopoverContainer,
|
|
89
|
+
R as XProgress,
|
|
90
|
+
De as XRadio,
|
|
91
|
+
Re as XScroll,
|
|
92
|
+
N as XSelect,
|
|
93
|
+
q as XSkeleton,
|
|
94
|
+
E as XSlider,
|
|
95
|
+
Ne as XSpacer,
|
|
96
|
+
qe as XSpinner,
|
|
97
|
+
K as XStepper,
|
|
98
|
+
Q as XTab,
|
|
99
|
+
V as XTabGroup,
|
|
100
|
+
Y as XTable,
|
|
101
|
+
Ee as XTableBody,
|
|
102
|
+
Ke as XTableCell,
|
|
103
|
+
Qe as XTableHead,
|
|
104
|
+
Ve as XTableHeader,
|
|
105
|
+
Ye as XTableRow,
|
|
106
|
+
_e as XTag,
|
|
107
|
+
_ as XTextarea,
|
|
108
|
+
ee as XThemeProvider,
|
|
109
|
+
ae as XToggle,
|
|
110
|
+
ao as XToggleTip,
|
|
111
|
+
eo as XTooltip
|
|
111
112
|
};
|
|
@@ -39,6 +39,7 @@ declare const inputProps: {
|
|
|
39
39
|
readonly type: ArrayConstructor;
|
|
40
40
|
readonly default: () => never[];
|
|
41
41
|
};
|
|
42
|
+
tooltip: StringConstructor;
|
|
42
43
|
disabled: BooleanConstructor;
|
|
43
44
|
loading: BooleanConstructor;
|
|
44
45
|
loadingLabel: StringConstructor;
|
|
@@ -102,6 +103,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
102
103
|
readonly type: ArrayConstructor;
|
|
103
104
|
readonly default: () => never[];
|
|
104
105
|
};
|
|
106
|
+
tooltip: StringConstructor;
|
|
105
107
|
disabled: BooleanConstructor;
|
|
106
108
|
loading: BooleanConstructor;
|
|
107
109
|
loadingLabel: StringConstructor;
|
|
@@ -163,6 +165,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
163
165
|
readonly type: ArrayConstructor;
|
|
164
166
|
readonly default: () => never[];
|
|
165
167
|
};
|
|
168
|
+
tooltip: StringConstructor;
|
|
166
169
|
disabled: BooleanConstructor;
|
|
167
170
|
loading: BooleanConstructor;
|
|
168
171
|
loadingLabel: StringConstructor;
|
|
@@ -79,7 +79,8 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
|
|
|
79
79
|
class: a([
|
|
80
80
|
r(E),
|
|
81
81
|
r(s).wrapper
|
|
82
|
-
])
|
|
82
|
+
]),
|
|
83
|
+
tooltip: e.tooltip
|
|
83
84
|
}, {
|
|
84
85
|
default: j(() => [
|
|
85
86
|
h("div", U, [
|
|
@@ -99,7 +100,7 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
|
|
|
99
100
|
r(s).input,
|
|
100
101
|
e.type === "password" ? "pr-10" : "",
|
|
101
102
|
// error
|
|
102
|
-
r(m) ? "border-
|
|
103
|
+
r(m) ? "border-error-500 dark:border-error-400 focus:outline-error-500" : "focus:outline-[color:var(--x-input-border)]",
|
|
103
104
|
{
|
|
104
105
|
"!pl-10": e.iconLeft,
|
|
105
106
|
"!pr-10": e.iconRight
|
|
@@ -139,7 +140,7 @@ const U = { class: "relative" }, W = ["id", "disabled", "min", "max", "minlength
|
|
|
139
140
|
}, null, 8, ["error", "helper"]))
|
|
140
141
|
]),
|
|
141
142
|
_: 3
|
|
142
|
-
}, 8, ["style", "block", "disabled", "required", "is-inside-form", "label", "class"]));
|
|
143
|
+
}, 8, ["style", "block", "disabled", "required", "is-inside-form", "label", "class", "tooltip"]));
|
|
143
144
|
}
|
|
144
145
|
});
|
|
145
146
|
export {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "",
|
|
4
|
-
input: ({ props: r, data:
|
|
5
|
-
const e = ["appearance-none block w-full placeholder-
|
|
6
|
-
return !
|
|
4
|
+
input: ({ props: r, data: s }) => {
|
|
5
|
+
const e = ["appearance-none block w-full placeholder-secondary-400 dark:placeholder-secondary-500 outline-transparent outline outline-2 outline-offset-[-1px] transition-all duration-150 ease-in-out border-secondary-300 dark:border-secondary-700 border shadow-sm rounded-md"];
|
|
6
|
+
return !s.errorInternal && !r.disabled && e.push("hover:border-secondary-400 dark:hover:border-secondary-500"), r.size === "xs" ? e.push("px-2 py-1 text-xs") : r.size === "sm" ? e.push("px-2 py-2 text-sm") : r.size === "lg" ? e.push("px-4 py-3 text-lg") : r.size === "xl" ? e.push("px-5 py-4 text-xl") : e.push("px-3 py-2"), e.push(r.disabled ? "bg-secondary-100 dark:bg-secondary-700 text-secondary-400 dark:text-secondary-600 cursor-not-allowed" : "bg-white dark:bg-secondary-800 text-secondary-700 dark:text-secondary-200"), e;
|
|
7
7
|
},
|
|
8
|
-
icon: "text-
|
|
8
|
+
icon: "text-secondary-600 dark:text-secondary-300 absolute my-auto inset-y-0"
|
|
9
9
|
},
|
|
10
|
-
styles: ({ colors: r, props:
|
|
11
|
-
const
|
|
12
|
-
return e.get("border",
|
|
10
|
+
styles: ({ colors: r, props: s, css: e }) => {
|
|
11
|
+
const t = r.getPalette(s.color);
|
|
12
|
+
return e.get("border", t[400]);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, a = o;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
a as default
|
|
17
17
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "",
|
|
4
|
-
input: ({ props: r, data:
|
|
5
|
-
const e = ["appearance-none block w-full placeholder-
|
|
6
|
-
return !
|
|
4
|
+
input: ({ props: r, data: s }) => {
|
|
5
|
+
const e = ["appearance-none block w-full placeholder-secondary-400 dark:placeholder-secondary-500 outline-transparent outline outline-2 outline-offset-[-1px] transition-all duration-150 ease-in-out border-secondary-300 dark:border-secondary-700 border-b text-sm px-4"];
|
|
6
|
+
return !s.errorInternal && !r.disabled && e.push("hover:border-secondary-400 dark:hover:border-secondary-500"), r.size === "xs" || r.size === "sm" ? e.push("py-1.5") : r.size === "lg" || r.size === "xl" ? e.push("py-3.5") : e.push("py-2.5"), r.disabled ? e.push("bg-secondary-100 dark:bg-secondary-900 text-secondary-300 cursor-not-allowed") : r.readonly ? e.push("bg-white dark:bg-secondary-900 text-secondary-700") : e.push("bg-secondary-50 dark:bg-secondary-800 text-secondary-700 dark:text-secondary-200"), e;
|
|
7
7
|
},
|
|
8
|
-
icon: "text-
|
|
8
|
+
icon: "text-secondary-600 dark:text-secondary-300 absolute my-auto inset-y-0"
|
|
9
9
|
},
|
|
10
|
-
styles: ({ colors: r, props:
|
|
11
|
-
const
|
|
12
|
-
return e.get("border",
|
|
10
|
+
styles: ({ colors: r, props: s, css: e }) => {
|
|
11
|
+
const a = r.getPalette(s.color);
|
|
12
|
+
return e.get("border", a[400]);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, t = o;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
t as default
|
|
17
17
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
classes: {
|
|
3
|
-
wrapper: "min-h-[1.3rem] text-
|
|
4
|
-
helperText: "text-
|
|
5
|
-
errorText: "text-
|
|
3
|
+
wrapper: "min-h-[1.3rem] text-xs mt-1",
|
|
4
|
+
helperText: "text-secondary-500 dark:text-secondary-400",
|
|
5
|
+
errorText: "text-error-500 dark:text-error-400"
|
|
6
6
|
}
|
|
7
7
|
}, t = e;
|
|
8
8
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "text-xs mt-1",
|
|
4
|
-
helperText: "text-
|
|
5
|
-
errorText: "text-
|
|
4
|
+
helperText: "text-secondary-500 dark:text-secondary-400",
|
|
5
|
+
errorText: "text-error-500 dark:text-error-400"
|
|
6
6
|
}
|
|
7
7
|
}, t = e;
|
|
8
8
|
export {
|