brutx-ui-vue 0.9.8 → 0.9.9
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/chunks/{AlertDescription--g0juUsk.js → AlertDescription-B3f7NHHQ.js} +2 -1
- package/dist/chunks/{AlertDialogCancel-DXBjaQOy.js → AlertDialogCancel-CG-fZMiS.js} +1 -1
- package/dist/chunks/{AuthCard-CLfIvsPF.js → AuthCard-DAk6Q3n2.js} +1 -1
- package/dist/chunks/{AvatarFallback-XHhqvLLl.js → AvatarFallback-D0QK2v6h.js} +4 -5
- package/dist/chunks/{Backtop-C0dv95GB.js → Backtop-DBubMyq3.js} +2 -2
- package/dist/chunks/{BrutalistHero-GC6JuTAI.js → BrutalistHero-C2yBfDVL.js} +1 -1
- package/dist/chunks/{Button-UuduRGTk.js → Button-CQH3jyWY.js} +43 -30
- package/dist/chunks/{Card3D-Cif05TB8.js → Card3D-COE-PpwE.js} +6 -5
- package/dist/chunks/{Cascader-B3r5-pva.js → Cascader-B9zMvT7J.js} +2 -2
- package/dist/chunks/{ChatContainer-DRhBWX4o.js → ChatContainer-DxI1-cmJ.js} +1 -1
- package/dist/chunks/{ColorModeSwitcher-RVMWkIfS.js → ColorModeSwitcher-BfODyloh.js} +2 -2
- package/dist/chunks/{ColorPicker-WsvdNWAG.js → ColorPicker-BV26AO0E.js} +173 -180
- package/dist/chunks/{Combobox-CeqXGYgx.js → Combobox-C2ofWZgq.js} +2 -2
- package/dist/chunks/{CommandItem-BV531Ar9.js → CommandItem-Dw9_4gxY.js} +10 -7
- package/dist/chunks/{CommandShortcut-3GbB6Ein.js → CommandShortcut-DhzQhH2k.js} +3 -3
- package/dist/chunks/{CookieConsent-NsvHl_gZ.js → CookieConsent-Bo6vtorq.js} +1 -1
- package/dist/chunks/Counter-31XZDA73.js +210 -0
- package/dist/chunks/{DashboardShell-ClWWXba9.js → DashboardShell-C9QDHVsG.js} +1 -1
- package/dist/chunks/{DataTable-CGxfdmGr.js → DataTable-v6odfpSY.js} +171 -127
- package/dist/chunks/{DescriptionsItem-D1aF-T7B.js → DescriptionsItem-D4XARnKw.js} +9 -5
- package/dist/chunks/{DialogContent-D2qrMldz.js → DialogContent-Z0m9vo4R.js} +1 -1
- package/dist/chunks/{DialogDescription-CfCXGTBn.js → DialogDescription-DrSqSwMT.js} +1 -1
- package/dist/chunks/{DropdownMenuSubContent-Ckj44RIf.js → DropdownMenuSubContent-DSIimQoJ.js} +4 -4
- package/dist/chunks/{FeedbackForm-BbqNPMnK.js → FeedbackForm-Bj38uGf-.js} +1 -1
- package/dist/chunks/{FooterSection-ToS_S5lc.js → FooterSection-Cv2eQQXH.js} +3 -3
- package/dist/chunks/{HeaderSection-CCmQTIPS.js → HeaderSection-Dm7MhNWk.js} +6 -1
- package/dist/chunks/{Image-lqwvaj3I.js → Image-DQGjNrw9.js} +1 -1
- package/dist/chunks/{KanbanBoard-DVNOkmzM.js → KanbanBoard-CsmS0Sr-.js} +2 -2
- package/dist/chunks/{NoiseBackground-DMmhOuH6.js → NoiseBackground-MyEeaFgH.js} +1 -1
- package/dist/chunks/{NumberInput-CVcDnKxX.js → NumberInput-CFt8MTPz.js} +51 -36
- package/dist/chunks/{Pagination-B9ve3vK2.js → Pagination-D94MJ-5i.js} +1 -1
- package/dist/chunks/{Popconfirm-DajAlkbJ.js → Popconfirm-DG62odoW.js} +2 -2
- package/dist/chunks/{PopoverContent-DHbLlAZi.js → PopoverContent-BR4RHXYa.js} +1 -1
- package/dist/chunks/{PricingSection-DVKnTUsG.js → PricingSection-DkEGF-aq.js} +1 -1
- package/dist/chunks/{ScratchCard-CImGMiua.js → ScratchCard-ndvLtKC8.js} +1 -1
- package/dist/chunks/{SelectItem-D-A3LuAd.js → SelectItem-B541Rhqy.js} +1 -1
- package/dist/chunks/{SelectSeparator-XL6nqi6Q.js → SelectSeparator-B4kviEmv.js} +1 -1
- package/dist/chunks/{SubMenu-B3R80Jvm.js → SubMenu-oD7qBrtZ.js} +42 -14
- package/dist/chunks/{ToastContainer-D8r-05Mo.js → ToastContainer-DnN_ODER.js} +1 -1
- package/dist/chunks/{Tour-Ba-Np-dh.js → Tour-BZGKQNf7.js} +1 -1
- package/dist/chunks/{Transfer-DHnGAnEB.js → Transfer-BcLrawvV.js} +1 -1
- package/dist/chunks/{TreeSelect-CDI74xVq.js → TreeSelect-Dt2UiMnG.js} +3 -3
- package/dist/chunks/{TreeView-DrI18G3O.js → TreeView-B7ETE04q.js} +2 -2
- package/dist/chunks/{UploadFileList-B8PZDonm.js → UploadFileList-CWrGZQo3.js} +1 -1
- package/dist/chunks/{Watermark-C0x6abRB.js → Watermark-D7VB39cd.js} +1 -1
- package/dist/chunks/{calendar-mlrDCSZg.js → calendar-CEKwjlLo.js} +2 -2
- package/dist/chunks/{carousel-iBio6ygy.js → carousel-5zxBv91A.js} +1 -1
- package/dist/chunks/{code-block-CvwtiX00.js → code-block-BJoWlko2.js} +66 -61
- package/dist/chunks/{date-CEjFRzNr.js → date-CJcu94DA.js} +26 -17
- package/dist/chunks/{date-picker-CFnMshAr.js → date-picker-BJqcquOb.js} +77 -73
- package/dist/chunks/{env-Blte_yub.js → env-CvRqOgSF.js} +7 -1
- package/dist/chunks/{floating-animation-classes-CTHbi2Bu.js → floating-animation-classes-BpG5LmZa.js} +1 -0
- package/dist/chunks/{form-CFHGIwd8.js → form-BMVZ-Mdq.js} +5 -2
- package/dist/chunks/{functional-DDO2c-ry.js → functional-ZVsrDRu9.js} +4 -4
- package/dist/chunks/plugin-CHaCenTo.js +16 -0
- package/dist/chunks/{tree-variants-D0dVGpxo.js → tree-variants-DlN-XSM-.js} +1 -1
- package/dist/chunks/{useInfiniteScroll-pXsyVd0x.js → useInfiniteScroll-Bj0Hy8eF.js} +1 -1
- package/dist/chunks/{useMessage-DXR-nOoc.js → useMessage-DSUQYEbg.js} +4 -3
- package/dist/components/alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/alert-dialog/index.js +1 -1
- package/dist/components/auth-card/index.js +1 -1
- package/dist/components/avatar/AvatarImage.vue.d.ts.map +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/backtop/index.js +1 -1
- package/dist/components/brutalist-hero/index.js +1 -1
- package/dist/components/button/Button.vue.d.ts +2 -2
- package/dist/components/button/Button.vue.d.ts.map +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/card-3d/Card3D.vue.d.ts.map +1 -1
- package/dist/components/card-3d/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/cascader/index.js +1 -1
- package/dist/components/chat-bubble/ChatContainer.vue.d.ts.map +1 -1
- package/dist/components/chat-bubble/index.js +1 -1
- package/dist/components/code-block/CodeBlock.vue.d.ts.map +1 -1
- package/dist/components/code-block/index.js +1 -1
- package/dist/components/color-mode-switcher/index.js +1 -1
- package/dist/components/color-picker/ColorPicker.vue.d.ts +1 -1
- package/dist/components/color-picker/ColorPicker.vue.d.ts.map +1 -1
- package/dist/components/color-picker/ColorPickerInput.vue.d.ts.map +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command/CommandInput.vue.d.ts.map +1 -1
- package/dist/components/command/index.js +2 -2
- package/dist/components/cookie-consent/index.js +1 -1
- package/dist/components/counter/Counter.vue.d.ts.map +1 -1
- package/dist/components/counter/index.js +1 -1
- package/dist/components/dashboard-shell/index.js +1 -1
- package/dist/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/components/data-table/DataTableColumnFilter.vue.d.ts.map +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-picker/DatePickerPanel.vue.d.ts.map +1 -1
- package/dist/components/date-picker/DatePickerRange.vue.d.ts.map +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/descriptions/DescriptionsItem.vue.d.ts +5 -1
- package/dist/components/descriptions/DescriptionsItem.vue.d.ts.map +1 -1
- package/dist/components/descriptions/index.js +1 -1
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/feedback-form/index.js +1 -1
- package/dist/components/footer-section/FooterSection.vue.d.ts.map +1 -1
- package/dist/components/footer-section/index.js +1 -1
- package/dist/components/form/FormConditional.vue.d.ts.map +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/header-section/HeaderSection.vue.d.ts.map +1 -1
- package/dist/components/header-section/index.js +1 -1
- package/dist/components/image/index.js +1 -1
- package/dist/components/infinite-scroll/index.js +1 -1
- package/dist/components/kanban/index.js +1 -1
- package/dist/components/menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/menu/SubMenu.vue.d.ts.map +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/menu/menu-types.d.ts +2 -0
- package/dist/components/menu/menu-types.d.ts.map +1 -1
- package/dist/components/message/index.js +1 -1
- package/dist/components/noise-background/index.js +1 -1
- package/dist/components/number-input/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/popconfirm/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/pricing-section/index.js +1 -1
- package/dist/components/scratch-card/index.js +1 -1
- package/dist/components/select/index.js +2 -2
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/transfer/index.js +1 -1
- package/dist/components/tree-select/index.js +1 -1
- package/dist/components/tree-view/index.js +1 -1
- package/dist/components/upload/index.js +1 -1
- package/dist/components/watermark/index.js +1 -1
- package/dist/composables/destroyFallbacks.js +1 -1
- package/dist/composables/useAudioEngine.js +1 -1
- package/dist/composables/useCanvasInteraction.js +1 -1
- package/dist/composables/useClipboard.js +1 -1
- package/dist/composables/useColorHistory.js +1 -1
- package/dist/composables/useColorPicker.d.ts +2 -0
- package/dist/composables/useColorPicker.d.ts.map +1 -1
- package/dist/composables/useColorPicker.js +32 -24
- package/dist/composables/useDataTableFilter.d.ts.map +1 -1
- package/dist/composables/useDataTableFilter.js +6 -4
- package/dist/composables/useDataTableSelection.d.ts.map +1 -1
- package/dist/composables/useDataTableSelection.js +1 -1
- package/dist/composables/useDatePicker.d.ts.map +1 -1
- package/dist/composables/useDatePicker.js +2 -2
- package/dist/composables/useDebounce.d.ts +2 -2
- package/dist/composables/useDebounce.d.ts.map +1 -1
- package/dist/composables/useDialog.js +1 -1
- package/dist/composables/useDialogEnhanced.d.ts.map +1 -1
- package/dist/composables/useDialogEnhanced.js +45 -18
- package/dist/composables/useGlitchEffect.d.ts.map +1 -1
- package/dist/composables/useGlitchEffect.js +5 -1
- package/dist/composables/useKanban.d.ts.map +1 -1
- package/dist/composables/useKanban.js +5 -1
- package/dist/composables/useMessage.d.ts.map +1 -1
- package/dist/composables/useMessage.js +1 -1
- package/dist/composables/useMessageBox.d.ts.map +1 -1
- package/dist/composables/useMessageBox.js +9 -7
- package/dist/composables/useReducedMotion.js +1 -1
- package/dist/composables/useStepper.d.ts.map +1 -1
- package/dist/composables/useStepper.js +26 -23
- package/dist/composables/useTheme.d.ts.map +1 -1
- package/dist/composables/useTheme.js +25 -24
- package/dist/composables/useToast.js +1 -1
- package/dist/directives/loading.js +1 -1
- package/dist/index.js +213 -202
- package/dist/lib/date.d.ts +2 -0
- package/dist/lib/date.d.ts.map +1 -1
- package/dist/lib/devtools-plugin.d.ts +6 -37
- package/dist/lib/devtools-plugin.d.ts.map +1 -1
- package/dist/lib/env.d.ts.map +1 -1
- package/dist/lib/floating-animation-classes.d.ts +1 -1
- package/dist/lib/floating-animation-classes.d.ts.map +1 -1
- package/dist/lib/theme-variables.d.ts.map +1 -1
- package/dist/lib/tree-variants.d.ts +1 -1
- package/dist/lib/tree-variants.d.ts.map +1 -1
- package/dist/plugin.d.ts +0 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/test-utils/a11y.d.ts.map +1 -1
- package/dist/vitest.browser.setup.d.ts.map +1 -1
- package/dist/vitest.setup.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/Counter-hM305rfh.js +0 -210
- package/dist/chunks/plugin-oGQ0IQs4.js +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./utils-CUXX1zll.js";
|
|
2
2
|
import { t } from "./icon-size-variants-nPLFCnI7.js";
|
|
3
3
|
import { useLocale as n } from "../composables/useLocale.js";
|
|
4
|
-
import { t as r } from "./Button-
|
|
4
|
+
import { t as r } from "./Button-CQH3jyWY.js";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderSlot as f, unref as p, useSlots as m, withCtx as h } from "vue";
|
|
6
6
|
import { X as g } from "@lucide/vue";
|
|
7
7
|
import { Primitive as _ } from "reka-ui";
|
|
@@ -50,6 +50,7 @@ var y = v([
|
|
|
50
50
|
p(v).actions ? (d(), s("div", b, [f(e.$slots, "actions")])) : o("", !0),
|
|
51
51
|
l.closable ? (d(), a(r, {
|
|
52
52
|
key: 1,
|
|
53
|
+
type: "button",
|
|
53
54
|
variant: "ghost",
|
|
54
55
|
size: "icon",
|
|
55
56
|
class: "absolute right-3 top-3 h-8 w-8",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./utils-CUXX1zll.js";
|
|
2
2
|
import { t } from "./button-variants-BLYYjo0C.js";
|
|
3
3
|
import { a as n, i as r, r as i, t as a } from "./modal-variants-CyL0Kxke.js";
|
|
4
|
-
import { t as o } from "./floating-animation-classes-
|
|
4
|
+
import { t as o } from "./floating-animation-classes-BpG5LmZa.js";
|
|
5
5
|
import { computed as s, createBlock as c, createElementBlock as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, renderSlot as h, unref as g, withCtx as _ } from "vue";
|
|
6
6
|
import { AlertDialogAction as v, AlertDialogCancel as y, AlertDialogContent as b, AlertDialogDescription as x, AlertDialogOverlay as S, AlertDialogPortal as C, AlertDialogTitle as w, useForwardProps as T } from "reka-ui";
|
|
7
7
|
import { cva as E } from "class-variance-authority";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./utils-CUXX1zll.js";
|
|
2
2
|
import { t } from "./icon-size-variants-nPLFCnI7.js";
|
|
3
3
|
import { useLocale as n } from "../composables/useLocale.js";
|
|
4
|
-
import { t as r } from "./Button-
|
|
4
|
+
import { t as r } from "./Button-CQH3jyWY.js";
|
|
5
5
|
import { t as i } from "./Label-B3416ZVX.js";
|
|
6
6
|
import { t as a } from "./Input-Cgt7mldw.js";
|
|
7
7
|
import { t as o } from "./Card-BbuXTMF2.js";
|
|
@@ -82,17 +82,16 @@ var y = v(["relative flex shrink-0 overflow-hidden", "border-3 border-brutal"],
|
|
|
82
82
|
class: {}
|
|
83
83
|
},
|
|
84
84
|
setup(t) {
|
|
85
|
-
let
|
|
86
|
-
return (e, n) =>
|
|
87
|
-
key: 0,
|
|
85
|
+
let i = t, a = n(() => e("aspect-square h-full w-full object-cover", i.class));
|
|
86
|
+
return (e, n) => (u(), r(p(g), {
|
|
88
87
|
src: t.src,
|
|
89
88
|
alt: t.alt,
|
|
90
|
-
class: l(
|
|
89
|
+
class: l(a.value)
|
|
91
90
|
}, null, 8, [
|
|
92
91
|
"src",
|
|
93
92
|
"alt",
|
|
94
93
|
"class"
|
|
95
|
-
]))
|
|
94
|
+
]));
|
|
96
95
|
}
|
|
97
96
|
}), E = /* @__PURE__ */ s({
|
|
98
97
|
__name: "AvatarFallback",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./utils-CUXX1zll.js";
|
|
2
|
-
import { c as t, m as n } from "./env-
|
|
3
|
-
import { t as r } from "./Button-
|
|
2
|
+
import { c as t, m as n } from "./env-CvRqOgSF.js";
|
|
3
|
+
import { t as r } from "./Button-CQH3jyWY.js";
|
|
4
4
|
import { useThrottle as i } from "../composables/useThrottle.js";
|
|
5
5
|
import { Transition as a, computed as o, createBlock as s, createCommentVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, renderSlot as _, unref as v, watch as y, withCtx as b } from "vue";
|
|
6
6
|
import { ArrowUp as x } from "@lucide/vue";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./utils-CUXX1zll.js";
|
|
2
2
|
import { t } from "./icon-size-variants-nPLFCnI7.js";
|
|
3
3
|
import { useLocale as n } from "../composables/useLocale.js";
|
|
4
|
-
import { t as r } from "./Button-
|
|
4
|
+
import { t as r } from "./Button-CQH3jyWY.js";
|
|
5
5
|
import { t as i } from "./Badge-CHXf0ZM1.js";
|
|
6
6
|
import { t as a } from "./Card-BbuXTMF2.js";
|
|
7
7
|
import { t as o } from "./CardContent-BMUyIIpB.js";
|
|
@@ -5,12 +5,12 @@ import { useLocale as r } from "../composables/useLocale.js";
|
|
|
5
5
|
import { p as i } from "./defaults-BrqEfXpQ.js";
|
|
6
6
|
import { useGlitchEffect as a } from "../composables/useGlitchEffect.js";
|
|
7
7
|
import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createTextVNode as f, defineComponent as p, normalizeClass as m,
|
|
9
|
-
import { Loader2 as
|
|
10
|
-
import { Primitive as
|
|
8
|
+
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createTextVNode as f, defineComponent as p, normalizeClass as m, onMounted as h, onUpdated as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
|
|
9
|
+
import { Loader2 as C } from "@lucide/vue";
|
|
10
|
+
import { Primitive as w } from "reka-ui";
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/components/button/Button.vue
|
|
13
|
-
var
|
|
13
|
+
var T = /*#__PURE__*/ o(/* @__PURE__ */ p({
|
|
14
14
|
__name: "Button",
|
|
15
15
|
props: {
|
|
16
16
|
variant: { default: "default" },
|
|
@@ -45,59 +45,72 @@ var S = /*#__PURE__*/ o(/* @__PURE__ */ p({
|
|
|
45
45
|
class: { default: void 0 }
|
|
46
46
|
},
|
|
47
47
|
setup(i, { expose: o }) {
|
|
48
|
-
let p = i, { t:
|
|
48
|
+
let p = i, { t: T } = r(), E = c(() => p.disabled || p.loading), { isGlitching: D, onMouseEnter: O, onMouseLeave: k, onClick: A, play: j, stop: M } = a({
|
|
49
49
|
trigger: () => p.glitchTrigger,
|
|
50
50
|
interval: () => p.glitchInterval,
|
|
51
|
-
disabled:
|
|
52
|
-
}),
|
|
51
|
+
disabled: E
|
|
52
|
+
}), N = c(() => e(t({
|
|
53
53
|
variant: p.variant,
|
|
54
54
|
size: p.size,
|
|
55
55
|
effect: p.effect,
|
|
56
56
|
glitchSpeed: p.glitchSpeed,
|
|
57
57
|
glitchDirection: p.glitchDirection
|
|
58
|
-
}), p.effect === "glitch" &&
|
|
58
|
+
}), p.effect === "glitch" && D.value ? "is-glitching" : "", p.asChild && E.value && "pointer-events-none", p.class)), P = {
|
|
59
59
|
sm: "sm",
|
|
60
60
|
default: "default",
|
|
61
61
|
lg: "lg",
|
|
62
62
|
xl: "xl",
|
|
63
63
|
icon: "default"
|
|
64
|
-
},
|
|
65
|
-
function
|
|
66
|
-
p.effect === "glitch" &&
|
|
64
|
+
}, F = c(() => e(n({ size: P[p.size] }), "animate-spin")), I = c(() => p.pendingText ?? T("submitButton.submitting")), L = c(() => p.type === "submit" && p.loading && !!I.value);
|
|
65
|
+
function R() {
|
|
66
|
+
p.effect === "glitch" && O();
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
p.effect === "glitch" &&
|
|
68
|
+
function z() {
|
|
69
|
+
p.effect === "glitch" && k();
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
|
|
71
|
+
function B(e) {
|
|
72
|
+
if (E.value) {
|
|
73
|
+
e.preventDefault(), e.stopPropagation();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
p.effect === "glitch" && A();
|
|
73
77
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
let V = v(null), H = v("");
|
|
79
|
+
function U() {
|
|
80
|
+
let e = V.value?.$el;
|
|
81
|
+
e instanceof HTMLElement && (H.value = e.textContent?.trim() ?? "");
|
|
82
|
+
}
|
|
83
|
+
return h(U), g(U), o({
|
|
84
|
+
play: j,
|
|
85
|
+
stop: M
|
|
86
|
+
}), (e, t) => (_(), l(x(w), {
|
|
87
|
+
ref_key: "rootEl",
|
|
88
|
+
ref: V,
|
|
78
89
|
as: i.asChild ? void 0 : "button",
|
|
79
90
|
"as-child": i.asChild,
|
|
80
|
-
class: m(
|
|
91
|
+
class: m(N.value),
|
|
81
92
|
type: i.type,
|
|
82
|
-
|
|
83
|
-
|
|
93
|
+
"data-text": H.value,
|
|
94
|
+
disabled: !i.asChild && E.value,
|
|
95
|
+
"aria-disabled": i.asChild && E.value ? !0 : void 0,
|
|
84
96
|
"aria-busy": i.loading || void 0,
|
|
85
97
|
"aria-pressed": i.pressed,
|
|
86
98
|
"aria-expanded": i.expanded,
|
|
87
|
-
onMouseenter:
|
|
88
|
-
onMouseleave:
|
|
89
|
-
onClick:
|
|
99
|
+
onMouseenter: R,
|
|
100
|
+
onMouseleave: z,
|
|
101
|
+
onClick: B
|
|
90
102
|
}, {
|
|
91
|
-
default:
|
|
103
|
+
default: S(() => [i.loading ? (_(), l(x(C), {
|
|
92
104
|
key: 0,
|
|
93
|
-
class: m(
|
|
94
|
-
}, null, 8, ["class"])) : u("", !0),
|
|
105
|
+
class: m(F.value)
|
|
106
|
+
}, null, 8, ["class"])) : u("", !0), y(e.$slots, "default", {}, () => [L.value ? (_(), d(s, { key: 0 }, [f(b(I.value), 1)], 64)) : u("", !0)], !0)]),
|
|
95
107
|
_: 3
|
|
96
108
|
}, 8, [
|
|
97
109
|
"as",
|
|
98
110
|
"as-child",
|
|
99
111
|
"class",
|
|
100
112
|
"type",
|
|
113
|
+
"data-text",
|
|
101
114
|
"disabled",
|
|
102
115
|
"aria-disabled",
|
|
103
116
|
"aria-busy",
|
|
@@ -105,6 +118,6 @@ var S = /*#__PURE__*/ o(/* @__PURE__ */ p({
|
|
|
105
118
|
"aria-expanded"
|
|
106
119
|
]));
|
|
107
120
|
}
|
|
108
|
-
}), [["__scopeId", "data-v-
|
|
121
|
+
}), [["__scopeId", "data-v-b6f917c2"]]);
|
|
109
122
|
//#endregion
|
|
110
|
-
export {
|
|
123
|
+
export { T as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as e } from "./utils-CUXX1zll.js";
|
|
2
2
|
import { useLocale as t } from "../composables/useLocale.js";
|
|
3
3
|
import { d as n } from "./defaults-BrqEfXpQ.js";
|
|
4
|
-
import { o as r } from "./env-
|
|
4
|
+
import { o as r } from "./env-CvRqOgSF.js";
|
|
5
5
|
import { useReducedMotion as i } from "../composables/useReducedMotion.js";
|
|
6
6
|
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, normalizeStyle as d, onMounted as f, openBlock as p, ref as m, renderSlot as h, unref as g, watch as _ } from "vue";
|
|
7
7
|
import { cva as v } from "class-variance-authority";
|
|
@@ -64,11 +64,12 @@ var y = 4, b = v([
|
|
|
64
64
|
});
|
|
65
65
|
let M = m(0), N = m(0), P = (e) => {
|
|
66
66
|
if (v.disabled || O.value) return;
|
|
67
|
-
let t = w.value?.getBoundingClientRect();
|
|
68
|
-
if (!t) return;
|
|
67
|
+
let t = w.value, n = t?.getBoundingClientRect();
|
|
68
|
+
if (!t || !n || n.width <= 0 || n.height <= 0) return;
|
|
69
|
+
let r = n.width, i = n.height;
|
|
69
70
|
D.value = !0;
|
|
70
|
-
let
|
|
71
|
-
T.value = -
|
|
71
|
+
let a = (e.clientX - n.left) / r - C, o = (e.clientY - n.top) / i - C;
|
|
72
|
+
!Number.isFinite(a) || !Number.isFinite(o) || (T.value = -o * v.maxRotation, E.value = a * v.maxRotation, M.value = -a * v.shadowOffset + j.value, N.value = -o * v.shadowOffset + j.value);
|
|
72
73
|
}, F = () => {
|
|
73
74
|
D.value = !1, T.value = 0, E.value = 0, M.value = j.value, N.value = j.value;
|
|
74
75
|
};
|
|
@@ -2,8 +2,8 @@ import { n as e } from "./utils-CUXX1zll.js";
|
|
|
2
2
|
import { n as t } from "./brutal-interaction-variants-BAheBvSg.js";
|
|
3
3
|
import { useLocale as n } from "../composables/useLocale.js";
|
|
4
4
|
import { t as r } from "./Checkbox-BJKxAvEj.js";
|
|
5
|
-
import { n as i } from "./floating-animation-classes-
|
|
6
|
-
import { t as a } from "./PopoverContent-
|
|
5
|
+
import { n as i } from "./floating-animation-classes-BpG5LmZa.js";
|
|
6
|
+
import { t as a } from "./PopoverContent-BR4RHXYa.js";
|
|
7
7
|
import { useSelectableTrigger as o } from "../composables/useSelectableTrigger.js";
|
|
8
8
|
import { useSelectionDisplayText as s } from "../composables/useSelectionDisplayText.js";
|
|
9
9
|
import { useClearableSelection as ee } from "../composables/useClearableSelection.js";
|
|
@@ -195,7 +195,7 @@ var w = C([
|
|
|
195
195
|
let t = [], n = [], r = "", i = "", a = null, o = f.groupInterval * I;
|
|
196
196
|
for (let s of e) {
|
|
197
197
|
let e = s.timestamp, c = null;
|
|
198
|
-
e instanceof Date ? c = e : typeof e == "string" && e && (c = new Date(e));
|
|
198
|
+
e instanceof Date ? c = e : typeof e == "string" && e && (c = new Date(e)), c && Number.isNaN(c.getTime()) && (c = null);
|
|
199
199
|
let l = c ? m(c) : "", u = l !== i, d = c !== null && a !== null && !u && c.getTime() - a.getTime() > o;
|
|
200
200
|
u ? (n.length > 0 && t.push({
|
|
201
201
|
label: r,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLocale as e } from "../composables/useLocale.js";
|
|
2
|
-
import { t } from "./Button-
|
|
2
|
+
import { t } from "./Button-CQH3jyWY.js";
|
|
3
3
|
import { useTheme as n } from "../composables/useTheme.js";
|
|
4
|
-
import { a as r, n as i, t as a } from "./SelectItem-
|
|
4
|
+
import { a as r, n as i, t as a } from "./SelectItem-B541Rhqy.js";
|
|
5
5
|
import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, renderList as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
6
6
|
import { Monitor as b, Moon as x, Sun as S } from "@lucide/vue";
|
|
7
7
|
import { SelectRoot as C, SelectValue as w } from "reka-ui";
|