@indielayer/ui 1.4.0 → 1.5.1
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 +10 -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/Button.vue.js +2 -2
- package/lib/components/button/Button.vue2.js +26 -26
- 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 +80 -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/Button.vue +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 +11 -4
- 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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as R, computed as s, ref as
|
|
2
|
-
import { useMutationObserver as
|
|
3
|
-
import { injectTabGroupKey as
|
|
4
|
-
import { useCommon as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { closeIcon as
|
|
9
|
-
const
|
|
10
|
-
...
|
|
1
|
+
import { defineComponent as R, computed as s, ref as d, inject as j, reactive as D, onMounted as E, openBlock as c, createBlock as m, resolveDynamicComponent as L, normalizeStyle as V, unref as o, normalizeClass as v, withCtx as M, renderSlot as g, createElementVNode as z, createCommentVNode as p, toDisplayString as O, Teleport as P, createElementBlock as X } from "vue";
|
|
2
|
+
import { useMutationObserver as F } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { injectTabGroupKey as G } from "../../composables/keys.js";
|
|
4
|
+
import { useCommon as x } from "../../composables/useCommon.js";
|
|
5
|
+
import { useTheme as I } from "../../composables/useTheme.js";
|
|
6
|
+
import C from "../icon/Icon.vue.js";
|
|
7
|
+
import K from "../link/Link.vue.js";
|
|
8
|
+
import { closeIcon as q } from "../../common/icons.js";
|
|
9
|
+
const A = {
|
|
10
|
+
...x.props(),
|
|
11
11
|
value: {
|
|
12
12
|
type: [String, Number]
|
|
13
13
|
},
|
|
@@ -21,21 +21,21 @@ const q = {
|
|
|
21
21
|
disabled: Boolean,
|
|
22
22
|
exact: Boolean,
|
|
23
23
|
removable: Boolean
|
|
24
|
-
},
|
|
24
|
+
}, H = {
|
|
25
25
|
name: "XTab",
|
|
26
26
|
validators: {
|
|
27
|
-
...
|
|
27
|
+
...x.validators()
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
...
|
|
31
|
-
props:
|
|
29
|
+
}, te = /* @__PURE__ */ R({
|
|
30
|
+
...H,
|
|
31
|
+
props: A,
|
|
32
32
|
emits: ["remove"],
|
|
33
33
|
setup(T) {
|
|
34
34
|
const t = T, i = s(() => {
|
|
35
35
|
var e, u;
|
|
36
36
|
return ((u = (e = l.value) == null ? void 0 : e.$el) == null ? void 0 : u.href) || t.value;
|
|
37
|
-
}), S = s(() => t.label || t.value),
|
|
38
|
-
tabsContentRef:
|
|
37
|
+
}), S = s(() => t.label || t.value), b = d(null), l = d(null), a = j(G, {
|
|
38
|
+
tabsContentRef: d(null),
|
|
39
39
|
activateTab: () => {
|
|
40
40
|
},
|
|
41
41
|
state: D({
|
|
@@ -47,43 +47,43 @@ const q = {
|
|
|
47
47
|
size: "md",
|
|
48
48
|
color: "primary"
|
|
49
49
|
})
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
}), k = s(() => a.state.exact || t.exact), f = s(() => t.size || a.state.size);
|
|
51
|
+
E(() => {
|
|
52
|
+
b.value = a.tabsContentRef.value, t.to && l.value && (y(), F(l.value.$el, y, {
|
|
53
53
|
attributes: !0,
|
|
54
54
|
attributeFilter: ["class"]
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
57
|
function y() {
|
|
58
|
-
l.value && l.value.$el && t.to && l.value.$el.classList.contains(
|
|
58
|
+
l.value && l.value.$el && t.to && l.value.$el.classList.contains(k.value ? "router-link-exact-active" : "router-link-active") && a.activateTab(i.value);
|
|
59
59
|
}
|
|
60
|
-
const r = s(() => a.state.active === i.value),
|
|
61
|
-
function
|
|
60
|
+
const r = s(() => a.state.active === i.value), $ = s(() => a.state.color);
|
|
61
|
+
function h(e) {
|
|
62
62
|
if (t.disabled) {
|
|
63
63
|
e.preventDefault(), e.stopPropagation();
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
!t.to && typeof i.value < "u" && a.activateTab(i.value);
|
|
67
67
|
}
|
|
68
|
-
const { styles: w, classes: n, className: B } =
|
|
68
|
+
const { styles: w, classes: n, className: B } = I("Tab", {}, d({
|
|
69
69
|
...t,
|
|
70
|
-
size:
|
|
71
|
-
exact:
|
|
70
|
+
size: f.value,
|
|
71
|
+
exact: k.value
|
|
72
72
|
}), {
|
|
73
73
|
...a.state,
|
|
74
74
|
selected: r
|
|
75
75
|
});
|
|
76
|
-
return (e, u) => (
|
|
76
|
+
return (e, u) => (c(), m(L(e.to ? K : e.tag), {
|
|
77
77
|
ref_key: "elRef",
|
|
78
78
|
ref: l,
|
|
79
79
|
"data-value": i.value,
|
|
80
80
|
to: e.to,
|
|
81
|
-
color: r.value ?
|
|
82
|
-
style:
|
|
81
|
+
color: r.value ? $.value : void 0,
|
|
82
|
+
style: V([
|
|
83
83
|
o(w),
|
|
84
84
|
e.to && r.value && o(a).state.variant === "block" ? "--x-link-text: var(--x-tab-group-text); --x-link-text-hover: var(--x-tab-group-text);" : ""
|
|
85
85
|
]),
|
|
86
|
-
class:
|
|
86
|
+
class: v([
|
|
87
87
|
o(B),
|
|
88
88
|
o(n).wrapper,
|
|
89
89
|
"shrink-0",
|
|
@@ -92,57 +92,58 @@ const q = {
|
|
|
92
92
|
"text-[color:var(--x-tab-group-text)] dark:text-[color:var(--x-tab-group-dark-text)]": r.value,
|
|
93
93
|
"cursor-pointer": !e.disabled,
|
|
94
94
|
"cursor-not-allowed": e.disabled,
|
|
95
|
-
"cursor-not-allowed text-
|
|
95
|
+
"cursor-not-allowed text-secondary-500": e.disabled && !r.value
|
|
96
96
|
}
|
|
97
97
|
]),
|
|
98
98
|
"aria-disabled": e.disabled ? "true" : void 0,
|
|
99
99
|
"aria-selected": r.value ? "true" : "false",
|
|
100
|
-
onClick:
|
|
100
|
+
onClick: h
|
|
101
101
|
}, {
|
|
102
102
|
default: M(() => [
|
|
103
|
-
|
|
103
|
+
g(e.$slots, "tab", {
|
|
104
104
|
label: e.label,
|
|
105
105
|
value: e.value,
|
|
106
|
-
size:
|
|
106
|
+
size: f.value,
|
|
107
107
|
icon: e.icon
|
|
108
108
|
}, () => [
|
|
109
|
-
|
|
110
|
-
class:
|
|
109
|
+
z("div", {
|
|
110
|
+
class: v(o(n).content)
|
|
111
111
|
}, [
|
|
112
|
-
e.icon ? (
|
|
112
|
+
e.icon ? (c(), m(C, {
|
|
113
113
|
key: 0,
|
|
114
114
|
icon: e.icon,
|
|
115
|
-
size:
|
|
116
|
-
class:
|
|
117
|
-
}, null, 8, ["icon", "size", "class"])) :
|
|
118
|
-
|
|
119
|
-
class:
|
|
115
|
+
size: f.value,
|
|
116
|
+
class: v(o(n).icon)
|
|
117
|
+
}, null, 8, ["icon", "size", "class"])) : p("", !0),
|
|
118
|
+
z("div", {
|
|
119
|
+
class: v(o(n).label)
|
|
120
120
|
}, O(S.value), 3),
|
|
121
|
-
e.removable ? (
|
|
121
|
+
e.removable ? (c(), m(C, {
|
|
122
122
|
key: 1,
|
|
123
123
|
size: "sm",
|
|
124
|
-
icon: o(
|
|
125
|
-
class: "ml-2 cursor-pointer hover:text-
|
|
124
|
+
icon: o(q),
|
|
125
|
+
class: "ml-2 cursor-pointer hover:text-secondary-700 dark:hover:text-secondary-500 transition-colors duration-150",
|
|
126
126
|
onClick: u[0] || (u[0] = (N) => e.$emit("remove", N))
|
|
127
|
-
}, null, 8, ["icon"])) :
|
|
127
|
+
}, null, 8, ["icon"])) : p("", !0)
|
|
128
128
|
], 2)
|
|
129
129
|
]),
|
|
130
|
-
r.value &&
|
|
130
|
+
r.value && b.value ? (c(), m(P, {
|
|
131
131
|
key: 0,
|
|
132
|
-
to:
|
|
132
|
+
to: b.value
|
|
133
133
|
}, [
|
|
134
|
-
|
|
134
|
+
e.$slots.default ? (c(), X("div", {
|
|
135
|
+
key: 0,
|
|
135
136
|
role: "tabpanel",
|
|
136
|
-
class:
|
|
137
|
+
class: v(o(n).tabpanel)
|
|
137
138
|
}, [
|
|
138
|
-
|
|
139
|
-
], 2)
|
|
140
|
-
], 8, ["to"])) :
|
|
139
|
+
g(e.$slots, "default")
|
|
140
|
+
], 2)) : p("", !0)
|
|
141
|
+
], 8, ["to"])) : p("", !0)
|
|
141
142
|
]),
|
|
142
143
|
_: 3
|
|
143
144
|
}, 8, ["data-value", "to", "color", "style", "class", "aria-disabled", "aria-selected"]));
|
|
144
145
|
}
|
|
145
146
|
});
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
te as default
|
|
148
149
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "",
|
|
4
4
|
scroller: ({ props: t }) => {
|
|
5
|
-
const
|
|
6
|
-
return t.fullWidth ||
|
|
5
|
+
const r = [""];
|
|
6
|
+
return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push("rounded-md"), t.variant === "block" && !t.ghost && r.push("bg-secondary-100 dark:bg-secondary-800 p-1"), r;
|
|
7
7
|
},
|
|
8
8
|
list: ({ props: t }) => {
|
|
9
|
-
const
|
|
10
|
-
return t.variant === "line" &&
|
|
9
|
+
const r = ["flex min-w-full w-fit"];
|
|
10
|
+
return t.variant === "line" && r.push("border-b border-secondary-200 dark:border-secondary-700"), t.variant === "line" && !t.grow && r.push("space-x-8"), t.variant === "block" && r.push("z-[1]"), t.align === "center" && r.push("justify-center"), t.align === "right" && r.push("justify-end"), r;
|
|
11
11
|
},
|
|
12
12
|
tracker: ({ props: t }) => {
|
|
13
|
-
const
|
|
14
|
-
return t.variant === "line" &&
|
|
13
|
+
const r = ["absolute transition-all duration-150"];
|
|
14
|
+
return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("rounded-md h-full top-0 bg-[color:var(--x-tab-group-bg)] dark:bg-[color:var(--x-tab-group-dark-bg)]"), r;
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
-
styles: ({ props: t, colors:
|
|
18
|
-
const
|
|
17
|
+
styles: ({ props: t, colors: r, css: e }) => {
|
|
18
|
+
const n = r.getPalette("secondary"), a = r.getPalette(t.color);
|
|
19
19
|
return e.variables({
|
|
20
|
-
text:
|
|
21
|
-
bg: t.ghost ?
|
|
20
|
+
text: a[600],
|
|
21
|
+
bg: t.ghost ? a[50] : "#fff",
|
|
22
22
|
dark: {
|
|
23
|
-
text:
|
|
24
|
-
bg: t.ghost ?
|
|
23
|
+
text: a[400],
|
|
24
|
+
bg: t.ghost ? a[900] : n[700]
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, i = o;
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
i as default
|
|
31
31
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = {
|
|
2
2
|
classes: {
|
|
3
3
|
wrapper: "",
|
|
4
4
|
scroller: ({ props: t }) => {
|
|
5
5
|
const r = [""];
|
|
6
|
-
return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push(""), t.variant === "block" && !t.ghost && r.push("bg-
|
|
6
|
+
return t.fullWidth || r.push("!w-fit"), t.variant === "block" && r.push(""), t.variant === "block" && !t.ghost && r.push("bg-secondary-200 dark:bg-secondary-800"), r;
|
|
7
7
|
},
|
|
8
8
|
list: ({ props: t }) => {
|
|
9
9
|
const r = ["flex min-w-full w-fit"];
|
|
10
|
-
return t.variant === "line" && r.push("border-b border-
|
|
10
|
+
return t.variant === "line" && r.push("border-b border-secondary-200 dark:border-secondary-700"), t.variant === "line" && !t.grow && r.push(""), t.variant === "block" && r.push("z-[1] py-1.5"), t.align === "center" && r.push("justify-center"), t.align === "right" && r.push("justify-end"), r;
|
|
11
11
|
},
|
|
12
12
|
tracker: ({ props: t }) => {
|
|
13
13
|
const r = ["absolute transition-all duration-150"];
|
|
14
|
-
return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-
|
|
14
|
+
return t.variant === "line" && r.push("h-[2px] -mt-[2px] bg-[color:var(--x-tab-group-text)] dark:bg-[color:var(--x-tab-group-dark-text)]"), t.variant === "block" && r.push("border-t-2 border-solid border-[color:var(--x-tab-group-text)] dark:border-[color:var(--x-tab-group-dark-text)] h-full top-0 bg-secondary-100 dark:bg-secondary-700"), r;
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
styles: ({ props: t, colors: r, css: e }) => {
|
|
18
|
-
const
|
|
18
|
+
const o = r.getPalette("gray"), a = r.getPalette(t.color);
|
|
19
19
|
return e.variables({
|
|
20
20
|
text: a[600],
|
|
21
21
|
bg: t.ghost ? a[50] : "#fff",
|
|
22
22
|
dark: {
|
|
23
23
|
text: a[400],
|
|
24
|
-
bg: t.ghost ? a[900] :
|
|
24
|
+
bg: t.ghost ? a[900] : o[700]
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, i = n;
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
i as default
|
|
31
31
|
};
|