@brumaombra/ui-vintage 0.6.3 → 0.6.5
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/{Busy-BaCc_Jo8.js → Busy-DRHkNObd.js} +2 -2
- package/dist/{CalendarPrevButton.vue_vue_type_script_setup_true_lang-DdzS6YGM.js → CalendarPrevButton.vue_vue_type_script_setup_true_lang-D4jkKsDX.js} +3 -3
- package/dist/{DatePicker.vue_vue_type_script_setup_true_lang-C2Ug81pX.js → DatePicker.vue_vue_type_script_setup_true_lang-C_bocxOu.js} +1 -1
- package/dist/{DialogTitle.vue_vue_type_script_setup_true_lang-CycrzAMT.js → DialogTitle.vue_vue_type_script_setup_true_lang-B79YbKSf.js} +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-BdjbS5s7.js → Input.vue_vue_type_script_setup_true_lang-KQETSF2I.js} +1 -1
- package/dist/{Label.vue_vue_type_script_setup_true_lang-CdLIMAdF.js → Label.vue_vue_type_script_setup_true_lang-BzHEIagR.js} +1 -1
- package/dist/{LandingFooter.vue_vue_type_script_setup_true_lang-B8TcoKDG.js → LandingFooter.vue_vue_type_script_setup_true_lang-Dxc03HyK.js} +3 -3
- package/dist/{LandingNavbar.vue_vue_type_script_setup_true_lang-0jX2tmdb.js → LandingNavbar.vue_vue_type_script_setup_true_lang-DDB1dSjS.js} +4 -0
- package/dist/{MessageToast-Bq8GKXzJ.js → MessageToast-DBztWhRL.js} +3 -3
- package/dist/{TimePicker.vue_vue_type_script_setup_true_lang-tbOoMfZu.js → TimePicker.vue_vue_type_script_setup_true_lang-CwuwDICo.js} +1 -1
- package/dist/badge.js +13 -3
- package/dist/busy-indicator.js +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.js +1 -1
- package/dist/command.js +2 -2
- package/dist/components/dashboard-shell/DashboardShell.vue.d.ts +2 -0
- package/dist/components/ui/badge/Badge.vue.d.ts +5 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +3 -0
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +1 -0
- package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +2 -0
- package/dist/components/ui/sidebar/index.d.ts +1 -0
- package/dist/dashboard-shell.js +5 -3
- package/dist/data-list.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-time-picker.js +3 -3
- package/dist/dialog.js +1 -1
- package/dist/field.js +4 -4
- package/dist/input.js +1 -1
- package/dist/label.js +1 -1
- package/dist/landing-footer.js +1 -1
- package/dist/landing-navbar.js +1 -1
- package/dist/landing.js +2 -2
- package/dist/message-toast.js +1 -1
- package/dist/progress-component.js +2 -2
- package/dist/select.js +34 -33
- package/dist/sidebar.js +28 -25
- package/dist/single-value-card.js +1 -1
- package/dist/slider-form-component.js +2 -2
- package/dist/style.css +146 -32
- package/dist/switch-form-component.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-link.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/time-picker.js +1 -1
- package/package.json +1 -1
package/dist/select.js
CHANGED
|
@@ -1797,14 +1797,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1797
1797
|
position: { default: "popper" },
|
|
1798
1798
|
bodyLock: { type: Boolean },
|
|
1799
1799
|
side: {},
|
|
1800
|
-
sideOffset: {},
|
|
1800
|
+
sideOffset: { default: 4 },
|
|
1801
1801
|
sideFlip: { type: Boolean },
|
|
1802
|
-
align: {},
|
|
1802
|
+
align: { default: "start" },
|
|
1803
1803
|
alignOffset: {},
|
|
1804
1804
|
alignFlip: { type: Boolean },
|
|
1805
1805
|
avoidCollisions: { type: Boolean },
|
|
1806
1806
|
collisionBoundary: {},
|
|
1807
|
-
collisionPadding: {},
|
|
1807
|
+
collisionPadding: { default: 8 },
|
|
1808
1808
|
arrowPadding: {},
|
|
1809
1809
|
hideShiftedArrow: { type: Boolean },
|
|
1810
1810
|
sticky: {},
|
|
@@ -1830,7 +1830,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1830
1830
|
default: withCtx(() => [
|
|
1831
1831
|
createVNode(unref(SelectContent_default), mergeProps({ "data-slot": "select-content" }, { ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
1832
1832
|
class: unref(cn)(
|
|
1833
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded border border-border transition-colors duration-300 ease-in-out",
|
|
1833
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--reka-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded border border-border transition-colors duration-300 ease-in-out sm:max-w-[30rem] max-sm:w-[calc(100vw-1rem)] max-sm:max-w-[calc(100vw-1rem)] max-sm:min-w-0",
|
|
1834
1834
|
_ctx.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1835
1835
|
props.class
|
|
1836
1836
|
)
|
|
@@ -1933,7 +1933,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1933
1933
|
};
|
|
1934
1934
|
}
|
|
1935
1935
|
});
|
|
1936
|
-
const _hoisted_1$1 = { class: "flex min-w-0 flex-1 flex-col" };
|
|
1936
|
+
const _hoisted_1$1 = { class: "flex min-w-0 flex-1 flex-col gap-0.5" };
|
|
1937
1937
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1938
1938
|
__name: "SelectItemContent",
|
|
1939
1939
|
props: {
|
|
@@ -1950,27 +1950,27 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1950
1950
|
return (_ctx, _cache) => {
|
|
1951
1951
|
return openBlock(), createElementBlock("div", {
|
|
1952
1952
|
"data-slot": "select-item-content",
|
|
1953
|
-
class: normalizeClass(unref(cn)("flex min-w-0 flex-1 items-
|
|
1953
|
+
class: normalizeClass(unref(cn)("flex min-w-0 flex-1 items-center gap-2", props.class))
|
|
1954
1954
|
}, [
|
|
1955
1955
|
props.icon ? (openBlock(), createElementBlock("div", {
|
|
1956
1956
|
key: 0,
|
|
1957
1957
|
"data-slot": "select-item-content-icon",
|
|
1958
|
-
class: normalizeClass(unref(cn)("
|
|
1958
|
+
class: normalizeClass(unref(cn)("shrink-0 self-center", props.iconClass))
|
|
1959
1959
|
}, [
|
|
1960
1960
|
createVNode(unref(HugeiconsIcon), {
|
|
1961
1961
|
icon: props.icon,
|
|
1962
|
-
"
|
|
1962
|
+
class: "block size-3 sm:size-4"
|
|
1963
1963
|
}, null, 8, ["icon"])
|
|
1964
1964
|
], 2)) : createCommentVNode("", true),
|
|
1965
1965
|
createElementVNode("div", _hoisted_1$1, [
|
|
1966
1966
|
createElementVNode("span", {
|
|
1967
1967
|
"data-slot": "select-item-content-text",
|
|
1968
|
-
class: normalizeClass(unref(cn)("min-w-0 truncate", props.textClass))
|
|
1968
|
+
class: normalizeClass(unref(cn)("min-w-0 truncate font-semibold text-xs sm:text-sm leading-5", props.textClass))
|
|
1969
1969
|
}, toDisplayString(props.label), 3),
|
|
1970
1970
|
props.description ? (openBlock(), createElementBlock("span", {
|
|
1971
1971
|
key: 0,
|
|
1972
1972
|
"data-slot": "select-item-content-description",
|
|
1973
|
-
class: normalizeClass(unref(cn)("text-xs text-(--text-secondary-light) dark:text-(--text-secondary-dark)", props.descriptionClass))
|
|
1973
|
+
class: normalizeClass(unref(cn)("font-regular text-[11px] sm:text-xs leading-4 sm:leading-5 text-(--text-secondary-light) dark:text-(--text-secondary-dark)", props.descriptionClass))
|
|
1974
1974
|
}, toDisplayString(props.description), 3)) : createCommentVNode("", true)
|
|
1975
1975
|
])
|
|
1976
1976
|
], 2);
|
|
@@ -2111,7 +2111,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2111
2111
|
"data-size": _ctx.size
|
|
2112
2112
|
}, unref(forwardedProps), {
|
|
2113
2113
|
class: unref(cn)(
|
|
2114
|
-
"data-[placeholder]:text-(--text-secondary-light) [&_svg:not([class*='text-'])]:text-(--text-secondary-light) flex w-fit cursor-pointer items-center justify-between gap-2 rounded border border-(--border-light) bg-(--button-secondary-light) px-4 py-3 text-xs font-
|
|
2114
|
+
"data-[placeholder]:text-(--text-secondary-light) [&_svg:not([class*='text-'])]:text-(--text-secondary-light) flex w-fit cursor-pointer items-center justify-between gap-2 rounded border border-(--border-light) bg-(--button-secondary-light) px-4 py-3 text-xs font-semibold whitespace-nowrap text-(--text-primary-light) transition-all duration-300 ease-in-out outline-none disabled:cursor-not-allowed disabled:opacity-60 data-[size=default]:h-[52px] data-[size=sm]:h-10 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 dark:border-(--border-dark) dark:bg-(--button-secondary-dark) dark:text-(--text-primary-dark) dark:data-[placeholder]:text-(--text-secondary-dark) dark:[&_svg:not([class*='text-'])]:text-(--text-secondary-dark) sm:text-sm",
|
|
2115
2115
|
"focus-visible:border-(--border-hover-light) focus-visible:ring-0 dark:focus-visible:border-(--border-hover-dark)",
|
|
2116
2116
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
2117
2117
|
props.class
|
|
@@ -2153,7 +2153,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
2155
|
});
|
|
2156
|
-
const _hoisted_1 = { class: "flex min-w-0 flex-1 flex-col" };
|
|
2156
|
+
const _hoisted_1 = { class: "flex min-w-0 flex-1 flex-col gap-0.5" };
|
|
2157
2157
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2158
2158
|
__name: "SelectValueContent",
|
|
2159
2159
|
props: {
|
|
@@ -2174,30 +2174,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2174
2174
|
return openBlock(), createBlock(unref(SelectValue_default), {
|
|
2175
2175
|
"data-slot": "select-value-content",
|
|
2176
2176
|
placeholder: props.placeholder,
|
|
2177
|
-
class: normalizeClass(unref(cn)("flex min-w-0 flex-1 gap-
|
|
2177
|
+
class: normalizeClass(unref(cn)("flex min-w-0 flex-1 gap-1.5 text-left sm:gap-2", props.description ? "items-start" : "items-center", props.class))
|
|
2178
2178
|
}, {
|
|
2179
2179
|
default: withCtx(() => [
|
|
2180
|
-
props.
|
|
2181
|
-
|
|
2182
|
-
"data-slot": "select-value-content-icon",
|
|
2183
|
-
class: normalizeClass(unref(cn)("shrink-0", props.iconClass))
|
|
2184
|
-
}, [
|
|
2185
|
-
createVNode(unref(HugeiconsIcon), {
|
|
2186
|
-
icon: props.icon,
|
|
2187
|
-
"stroke-width": 1.8
|
|
2188
|
-
}, null, 8, ["icon"])
|
|
2189
|
-
], 2)) : createCommentVNode("", true),
|
|
2190
|
-
createElementVNode("div", _hoisted_1, [
|
|
2191
|
-
createElementVNode("span", {
|
|
2192
|
-
"data-slot": "select-value-content-text",
|
|
2193
|
-
class: normalizeClass(unref(cn)("min-w-0 truncate", props.textClass))
|
|
2194
|
-
}, toDisplayString(props.label), 3),
|
|
2195
|
-
props.description ? (openBlock(), createElementBlock("span", {
|
|
2180
|
+
props.label != null || props.description != null ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2181
|
+
props.icon ? (openBlock(), createElementBlock("div", {
|
|
2196
2182
|
key: 0,
|
|
2197
|
-
"data-slot": "select-value-content-
|
|
2198
|
-
class: normalizeClass(unref(cn)("
|
|
2199
|
-
},
|
|
2200
|
-
|
|
2183
|
+
"data-slot": "select-value-content-icon",
|
|
2184
|
+
class: normalizeClass(unref(cn)("shrink-0", props.iconClass))
|
|
2185
|
+
}, [
|
|
2186
|
+
createVNode(unref(HugeiconsIcon), {
|
|
2187
|
+
icon: props.icon
|
|
2188
|
+
}, null, 8, ["icon"])
|
|
2189
|
+
], 2)) : createCommentVNode("", true),
|
|
2190
|
+
createElementVNode("div", _hoisted_1, [
|
|
2191
|
+
createElementVNode("span", {
|
|
2192
|
+
"data-slot": "select-value-content-text",
|
|
2193
|
+
class: normalizeClass(unref(cn)("min-w-0 whitespace-normal break-words text-xs leading-5 sm:truncate sm:text-sm max-sm:[display:-webkit-box] max-sm:[overflow:hidden] max-sm:[-webkit-box-orient:vertical] max-sm:[-webkit-line-clamp:2]", props.textClass))
|
|
2194
|
+
}, toDisplayString(props.label), 3),
|
|
2195
|
+
props.description ? (openBlock(), createElementBlock("span", {
|
|
2196
|
+
key: 0,
|
|
2197
|
+
"data-slot": "select-value-content-description",
|
|
2198
|
+
class: normalizeClass(unref(cn)("min-w-0 whitespace-normal break-words text-[11px] leading-4 text-(--text-secondary-light) dark:text-(--text-secondary-dark) sm:text-xs sm:leading-5 max-sm:[display:-webkit-box] max-sm:[overflow:hidden] max-sm:[-webkit-box-orient:vertical] max-sm:[-webkit-line-clamp:3]", props.descriptionClass))
|
|
2199
|
+
}, toDisplayString(props.description), 3)) : createCommentVNode("", true)
|
|
2200
|
+
])
|
|
2201
|
+
], 64)) : createCommentVNode("", true)
|
|
2201
2202
|
]),
|
|
2202
2203
|
_: 1
|
|
2203
2204
|
}, 8, ["placeholder", "class"]);
|
package/dist/sidebar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var _a;
|
|
2
2
|
import { c as cva } from "./index-FpH8cK6B.js";
|
|
3
|
-
import { defineComponent, openBlock, createElementBlock, mergeProps, unref, renderSlot, createBlock, withCtx, createVNode, normalizeStyle, createTextVNode, createElementVNode, normalizeClass, normalizeProps, guardReactiveProps, Fragment, toDisplayString, resolveDynamicComponent,
|
|
3
|
+
import { defineComponent, openBlock, createElementBlock, mergeProps, unref, renderSlot, createBlock, withCtx, createVNode, normalizeStyle, createTextVNode, createElementVNode, normalizeClass, normalizeProps, guardReactiveProps, Fragment, toDisplayString, resolveDynamicComponent, createCommentVNode, ref, computed } from "vue";
|
|
4
4
|
import { c as cn } from "./utils-Bz4m9VPB.js";
|
|
5
5
|
import { _ as _sfc_main$o, a as _sfc_main$p, c as _sfc_main$q, d as _sfc_main$r, b as _sfc_main$s } from "./SheetTitle.vue_vue_type_script_setup_true_lang-Ja7-gmXd.js";
|
|
6
6
|
import { c as createContext } from "./createContext-BabAT1K8.js";
|
|
7
7
|
import { P as Primitive } from "./Primitive-D3IcFg81.js";
|
|
8
|
-
import { _ as _sfc_main$t } from "./Input.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as _sfc_main$t } from "./Input.vue_vue_type_script_setup_true_lang-KQETSF2I.js";
|
|
9
9
|
import { _ as _sfc_main$u, b as _sfc_main$v, a as _sfc_main$w, T as TooltipProvider_default } from "./TooltipTrigger.vue_vue_type_script_setup_true_lang-BMdZRPa3.js";
|
|
10
10
|
import { _ as _sfc_main$x } from "./Skeleton.vue_vue_type_script_setup_true_lang-BSbVyZz7.js";
|
|
11
11
|
import { g as useMediaQuery, a as useVModel, c as useEventListener, h as defaultDocument } from "./index-Dw56kNV0.js";
|
|
@@ -35,6 +35,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
35
35
|
side: { default: "left" },
|
|
36
36
|
variant: { default: "sidebar" },
|
|
37
37
|
collapsible: { default: "offcanvas" },
|
|
38
|
+
compact: { type: Boolean, default: false },
|
|
38
39
|
class: {}
|
|
39
40
|
},
|
|
40
41
|
setup(__props) {
|
|
@@ -50,7 +51,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
50
51
|
return _ctx.collapsible === "none" ? (openBlock(), createElementBlock("div", mergeProps({
|
|
51
52
|
key: 0,
|
|
52
53
|
"data-slot": "sidebar",
|
|
53
|
-
class: unref(cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", props.class)
|
|
54
|
+
class: unref(cn)("group/sidebar-wrapper bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", props.class)
|
|
54
55
|
}, _ctx.$attrs), [
|
|
55
56
|
renderSlot(_ctx.$slots, "default")
|
|
56
57
|
], 16)) : unref(isMobile) ? (openBlock(), createBlock(unref(_sfc_main$o), mergeProps({
|
|
@@ -62,8 +63,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
62
63
|
"data-sidebar": "sidebar",
|
|
63
64
|
"data-slot": "sidebar",
|
|
64
65
|
"data-mobile": "true",
|
|
66
|
+
"data-compact": props.compact ? "true" : "false",
|
|
65
67
|
side: _ctx.side,
|
|
66
|
-
class: "border-sidebar-border bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
68
|
+
class: "group/sidebar-wrapper border-sidebar-border bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",
|
|
67
69
|
style: normalizeStyle({
|
|
68
70
|
"--sidebar-width": unref(SIDEBAR_WIDTH_MOBILE)
|
|
69
71
|
})
|
|
@@ -94,12 +96,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
94
96
|
])
|
|
95
97
|
]),
|
|
96
98
|
_: 3
|
|
97
|
-
}, 8, ["side", "style"])
|
|
99
|
+
}, 8, ["data-compact", "side", "style"])
|
|
98
100
|
]),
|
|
99
101
|
_: 3
|
|
100
102
|
}, 16, ["open", "onUpdate:open"])) : (openBlock(), createElementBlock("div", {
|
|
101
103
|
key: 2,
|
|
102
|
-
class: "group peer text-sidebar-foreground hidden md:block",
|
|
104
|
+
class: "group/sidebar-wrapper group peer text-sidebar-foreground hidden md:block",
|
|
103
105
|
"data-slot": "sidebar",
|
|
104
106
|
"data-state": unref(state),
|
|
105
107
|
"data-collapsible": unref(state) === "collapsed" ? _ctx.collapsible : "",
|
|
@@ -142,7 +144,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
142
144
|
return openBlock(), createElementBlock("div", {
|
|
143
145
|
"data-slot": "sidebar-content",
|
|
144
146
|
"data-sidebar": "content",
|
|
145
|
-
class: normalizeClass(unref(cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", props.class))
|
|
147
|
+
class: normalizeClass(unref(cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[compact=true]/sidebar-wrapper:gap-1.5 group-data-[collapsible=icon]:overflow-hidden", props.class))
|
|
146
148
|
}, [
|
|
147
149
|
renderSlot(_ctx.$slots, "default")
|
|
148
150
|
], 2);
|
|
@@ -160,7 +162,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
160
162
|
return openBlock(), createElementBlock("div", {
|
|
161
163
|
"data-slot": "sidebar-footer",
|
|
162
164
|
"data-sidebar": "footer",
|
|
163
|
-
class: normalizeClass(unref(cn)("flex flex-col gap-2 p-2", props.class))
|
|
165
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-2 p-2 group-data-[compact=true]/sidebar-wrapper:gap-1.5 group-data-[compact=true]/sidebar-wrapper:p-2.5", props.class))
|
|
164
166
|
}, [
|
|
165
167
|
renderSlot(_ctx.$slots, "default")
|
|
166
168
|
], 2);
|
|
@@ -178,7 +180,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
178
180
|
return openBlock(), createElementBlock("div", {
|
|
179
181
|
"data-slot": "sidebar-group",
|
|
180
182
|
"data-sidebar": "group",
|
|
181
|
-
class: normalizeClass(unref(cn)("relative flex w-full min-w-0 flex-col p-2", props.class))
|
|
183
|
+
class: normalizeClass(unref(cn)("relative flex w-full min-w-0 flex-col p-2 group-data-[compact=true]/sidebar-wrapper:p-2.5", props.class))
|
|
182
184
|
}, [
|
|
183
185
|
renderSlot(_ctx.$slots, "default")
|
|
184
186
|
], 2);
|
|
@@ -249,7 +251,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
249
251
|
as: _ctx.as,
|
|
250
252
|
"as-child": _ctx.asChild,
|
|
251
253
|
class: normalizeClass(unref(cn)(
|
|
252
|
-
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-
|
|
254
|
+
"text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-semibold outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 group-data-[compact=true]/sidebar-wrapper:h-7 group-data-[compact=true]/sidebar-wrapper:px-1.5 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
253
255
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
254
256
|
props.class
|
|
255
257
|
))
|
|
@@ -273,7 +275,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
273
275
|
return openBlock(), createElementBlock("div", {
|
|
274
276
|
"data-slot": "sidebar-header",
|
|
275
277
|
"data-sidebar": "header",
|
|
276
|
-
class: normalizeClass(unref(cn)("flex flex-col gap-2 p-2", props.class))
|
|
278
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-2 p-2 group-data-[compact=true]/sidebar-wrapper:gap-1.5 group-data-[compact=true]/sidebar-wrapper:p-2.5", props.class))
|
|
277
279
|
}, [
|
|
278
280
|
renderSlot(_ctx.$slots, "default")
|
|
279
281
|
], 2);
|
|
@@ -292,7 +294,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
292
294
|
"data-slot": "sidebar-input",
|
|
293
295
|
"data-sidebar": "input",
|
|
294
296
|
class: normalizeClass(unref(cn)(
|
|
295
|
-
"bg-background h-8 w-full shadow-none",
|
|
297
|
+
"bg-background h-8 w-full shadow-none group-data-[compact=true]/sidebar-wrapper:h-7 group-data-[compact=true]/sidebar-wrapper:text-xs",
|
|
296
298
|
props.class
|
|
297
299
|
))
|
|
298
300
|
}, {
|
|
@@ -363,6 +365,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
363
365
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
364
366
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
365
367
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
368
|
+
"group-data-[compact=true]/sidebar-wrapper:top-1",
|
|
366
369
|
"group-data-[collapsible=icon]:hidden",
|
|
367
370
|
_ctx.showOnHover && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",
|
|
368
371
|
props.class
|
|
@@ -390,11 +393,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
390
393
|
"data-slot": "sidebar-menu-badge",
|
|
391
394
|
"data-sidebar": "menu-badge",
|
|
392
395
|
class: normalizeClass(unref(cn)(
|
|
393
|
-
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-
|
|
396
|
+
"text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-semibold tabular-nums select-none",
|
|
394
397
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground",
|
|
395
398
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
396
399
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
397
400
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
401
|
+
"group-data-[compact=true]/sidebar-wrapper:top-1",
|
|
398
402
|
"group-data-[collapsible=icon]:hidden",
|
|
399
403
|
props.class
|
|
400
404
|
))
|
|
@@ -507,6 +511,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
507
511
|
};
|
|
508
512
|
}
|
|
509
513
|
});
|
|
514
|
+
const width = "72%";
|
|
510
515
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
511
516
|
__name: "SidebarMenuSkeleton",
|
|
512
517
|
props: {
|
|
@@ -515,24 +520,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
515
520
|
},
|
|
516
521
|
setup(__props) {
|
|
517
522
|
const props = __props;
|
|
518
|
-
const width = computed(() => {
|
|
519
|
-
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
520
|
-
});
|
|
521
523
|
return (_ctx, _cache) => {
|
|
522
524
|
return openBlock(), createElementBlock("div", {
|
|
523
525
|
"data-slot": "sidebar-menu-skeleton",
|
|
524
526
|
"data-sidebar": "menu-skeleton",
|
|
525
|
-
class: normalizeClass(unref(cn)("flex h-8 items-center gap-2 rounded-md px-2", props.class))
|
|
527
|
+
class: normalizeClass(unref(cn)("flex h-8 items-center gap-2 rounded-md px-2 group-data-[compact=true]/sidebar-wrapper:h-7 group-data-[compact=true]/sidebar-wrapper:gap-1.5 group-data-[compact=true]/sidebar-wrapper:px-1.5", props.class))
|
|
526
528
|
}, [
|
|
527
529
|
_ctx.showIcon ? (openBlock(), createBlock(unref(_sfc_main$x), {
|
|
528
530
|
key: 0,
|
|
529
|
-
class: "size-4 rounded-md",
|
|
531
|
+
class: "size-4 rounded-md group-data-[compact=true]/sidebar-wrapper:size-3.5",
|
|
530
532
|
"data-sidebar": "menu-skeleton-icon"
|
|
531
533
|
})) : createCommentVNode("", true),
|
|
532
534
|
createVNode(unref(_sfc_main$x), {
|
|
533
535
|
class: "h-4 max-w-(--skeleton-width) flex-1",
|
|
534
536
|
"data-sidebar": "menu-skeleton-text",
|
|
535
|
-
style: normalizeStyle({ "--skeleton-width": width
|
|
537
|
+
style: normalizeStyle({ "--skeleton-width": width })
|
|
536
538
|
}, null, 8, ["style"])
|
|
537
539
|
], 2);
|
|
538
540
|
};
|
|
@@ -580,10 +582,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
580
582
|
"data-size": _ctx.size,
|
|
581
583
|
"data-active": _ctx.isActive,
|
|
582
584
|
class: normalizeClass(unref(cn)(
|
|
583
|
-
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2
|
|
585
|
+
"text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex min-h-7 min-w-0 -translate-x-px items-center gap-2 rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 group-data-[compact=true]/sidebar-wrapper:min-h-6 group-data-[compact=true]/sidebar-wrapper:gap-1.5 group-data-[compact=true]/sidebar-wrapper:px-1.5 group-data-[compact=true]/sidebar-wrapper:[&>svg]:size-3.5 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
584
586
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
585
587
|
_ctx.size === "sm" && "text-xs",
|
|
586
|
-
_ctx.size === "md" && "text-sm",
|
|
588
|
+
_ctx.size === "md" && "text-sm group-data-[compact=true]/sidebar-wrapper:text-xs",
|
|
587
589
|
"group-data-[collapsible=icon]:hidden",
|
|
588
590
|
props.class
|
|
589
591
|
))
|
|
@@ -619,6 +621,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
619
621
|
props: {
|
|
620
622
|
defaultOpen: { type: Boolean, default: !((_a = defaultDocument) == null ? void 0 : _a.cookie.includes(`${SIDEBAR_COOKIE_NAME}=false`)) },
|
|
621
623
|
open: { type: Boolean, default: void 0 },
|
|
624
|
+
compact: { type: Boolean, default: false },
|
|
622
625
|
class: {}
|
|
623
626
|
},
|
|
624
627
|
emits: ["update:open"],
|
|
@@ -756,7 +759,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
756
759
|
}
|
|
757
760
|
});
|
|
758
761
|
const sidebarMenuButtonVariants = cva(
|
|
759
|
-
"peer/menu-button flex w-full items-center gap-2
|
|
762
|
+
"peer/menu-button flex w-full items-center gap-2 rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,min-height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-semibold data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! group-data-[compact=true]/sidebar-wrapper:gap-1.5 group-data-[compact=true]/sidebar-wrapper:p-2.5 group-data-[compact=true]/sidebar-wrapper:[&>svg]:size-3.5 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
760
763
|
{
|
|
761
764
|
variants: {
|
|
762
765
|
variant: {
|
|
@@ -764,9 +767,9 @@ const sidebarMenuButtonVariants = cva(
|
|
|
764
767
|
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
765
768
|
},
|
|
766
769
|
size: {
|
|
767
|
-
default: "h-8 text-sm",
|
|
768
|
-
sm: "h-7 text-xs",
|
|
769
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
770
|
+
default: "min-h-8 text-sm group-data-[compact=true]/sidebar-wrapper:min-h-7 group-data-[compact=true]/sidebar-wrapper:text-xs",
|
|
771
|
+
sm: "min-h-7 text-xs group-data-[compact=true]/sidebar-wrapper:min-h-6",
|
|
772
|
+
lg: "min-h-12 text-sm group-data-[compact=true]/sidebar-wrapper:min-h-10 group-data-[collapsible=icon]:p-0!"
|
|
770
773
|
}
|
|
771
774
|
},
|
|
772
775
|
defaultVariants: {
|
|
@@ -3,7 +3,7 @@ import { H as HugeiconsIcon } from "./HugeiconsIcon.vue-By2RXWWz.js";
|
|
|
3
3
|
import { _ as _sfc_main$1 } from "./Card.vue_vue_type_script_setup_true_lang-DwBhZuSq.js";
|
|
4
4
|
import { _ as _sfc_main$2 } from "./CardContent.vue_vue_type_script_setup_true_lang-dBzO0q1t.js";
|
|
5
5
|
const _hoisted_1 = { class: "flex flex-col" };
|
|
6
|
-
const _hoisted_2 = { class: "mb-1 text-xs font-
|
|
6
|
+
const _hoisted_2 = { class: "mb-1 text-xs font-semibold text-[var(--text-secondary-light)] dark:text-[var(--text-secondary-dark)]" };
|
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
__name: "SingleValueCard",
|
|
9
9
|
props: {
|
|
@@ -3,12 +3,12 @@ import { _ as _sfc_main$1 } from "./Card.vue_vue_type_script_setup_true_lang-DwB
|
|
|
3
3
|
import { _ as _sfc_main$2 } from "./Slider.vue_vue_type_script_setup_true_lang-CSOSwGGr.js";
|
|
4
4
|
const _hoisted_1 = { class: "flex items-center justify-between gap-3" };
|
|
5
5
|
const _hoisted_2 = { class: "space-y-2" };
|
|
6
|
-
const _hoisted_3 = { class: "text-sm font-
|
|
6
|
+
const _hoisted_3 = { class: "text-sm font-semibold" };
|
|
7
7
|
const _hoisted_4 = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "text-xs text-muted-foreground"
|
|
10
10
|
};
|
|
11
|
-
const _hoisted_5 = { class: "rounded border border-border bg-background px-2 py-1 text-xs font-
|
|
11
|
+
const _hoisted_5 = { class: "rounded border border-border bg-background px-2 py-1 text-xs font-semibold" };
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
__name: "SliderFormComponent",
|
|
14
14
|
props: {
|