@beehexa/vue-components 2611.9.1 → 2611.17.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/README.md +21 -0
- package/dist/components/button/Button.vue.d.ts +26 -0
- package/dist/components/button/index.d.ts +7 -0
- package/dist/components/button/index.js +138 -0
- package/dist/components/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/components/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist/components/tooltip/TooltipProvider.vue.d.ts +14 -0
- package/dist/components/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/components/tooltip/context.d.ts +7 -0
- package/dist/components/tooltip/index.d.ts +5 -0
- package/dist/components/tooltip/index.js +165 -0
- package/dist/components.css +606 -0
- package/dist/styles.css +2 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +8 -0
- package/package.json +20 -3
package/README.md
CHANGED
|
@@ -5,6 +5,27 @@ any other UI framework. `ResizablePanel` is the first component. The private
|
|
|
5
5
|
`0.0.0` source package is for local development; staging does not authorize a
|
|
6
6
|
release or substitution of an invented registry version.
|
|
7
7
|
|
|
8
|
+
## Beehexa components for apps (shadcn-vue API)
|
|
9
|
+
|
|
10
|
+
Approved components from the beehexa.design shadcn-vue registry ship here, compiled. Apps install the
|
|
11
|
+
package instead of copying component code (`shadcn-vue add` copies, which consumer rules forbid).
|
|
12
|
+
|
|
13
|
+
```vue
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import { Button } from '@beehexa/vue-components/button';
|
|
16
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@beehexa/vue-components/tooltip';
|
|
17
|
+
import '@beehexa/vue-components/css';
|
|
18
|
+
</script>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
- One import path per component: `@beehexa/vue-components/<name>`. `@beehexa/vue-components/utils` exports `cn`.
|
|
22
|
+
- `@beehexa/vue-components/css` carries the design tokens and every component's styles, compiled ahead of time
|
|
23
|
+
inside the `beehexa` cascade layer, with no Tailwind preflight. The app needs no Tailwind setup for these
|
|
24
|
+
components and its own unlayered CSS is not reset.
|
|
25
|
+
- `reka-ui`, `@lucide/vue`, `class-variance-authority`, `clsx` and `tailwind-merge` install with the package; `vue` is a peer.
|
|
26
|
+
- Source: `registry/beehexa/ui/<name>` in beehexa.design, the only source. `registry-components.json` lists the
|
|
27
|
+
components that ship; a component is added only after it is approved. Drafts stay on beehexa.design.
|
|
28
|
+
|
|
8
29
|
## Install and use
|
|
9
30
|
|
|
10
31
|
Use the actual local workspace/package reference until an authorized version is
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PrimitiveProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import type { ButtonVariants } from './index.js';
|
|
4
|
+
interface Props extends PrimitiveProps {
|
|
5
|
+
variant?: ButtonVariants['variant'];
|
|
6
|
+
size?: ButtonVariants['size'];
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
/**
|
|
9
|
+
* Beehexa addition. Shows a spinner in place of the icon, sets aria-busy and ignores clicks.
|
|
10
|
+
* Keep the button and its focus; change the label to say what is happening ("Syncing…").
|
|
11
|
+
*/
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare var __VLS_14: {};
|
|
15
|
+
type __VLS_Slots = {} & {
|
|
16
|
+
default?: (props: typeof __VLS_14) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export { default as Button } from './Button.vue.js';
|
|
3
|
+
export declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "ghost-destructive" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "xs" | "lg" | "icon" | "icon-sm" | "icon-xs" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type ButtonVariants = VariantProps<typeof buttonVariants>;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { cn } from "../../utils.js";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { createBlock, createCommentVNode, defineComponent, normalizeClass, onBeforeUnmount, openBlock, ref, renderSlot, unref, watch, withCtx } from "vue";
|
|
4
|
+
import { LoaderCircle } from "@lucide/vue";
|
|
5
|
+
import { Primitive } from "reka-ui";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region registry/beehexa/ui/button/Button.vue
|
|
8
|
+
var Button_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "Button",
|
|
10
|
+
props: {
|
|
11
|
+
variant: {},
|
|
12
|
+
size: {},
|
|
13
|
+
class: { type: [
|
|
14
|
+
Boolean,
|
|
15
|
+
null,
|
|
16
|
+
String,
|
|
17
|
+
Object,
|
|
18
|
+
Array
|
|
19
|
+
] },
|
|
20
|
+
loading: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: false
|
|
23
|
+
},
|
|
24
|
+
asChild: { type: Boolean },
|
|
25
|
+
as: { default: "button" }
|
|
26
|
+
},
|
|
27
|
+
setup(__props) {
|
|
28
|
+
const props = __props;
|
|
29
|
+
function spinnerDelayMs() {
|
|
30
|
+
if (typeof window === "undefined") return 1e3;
|
|
31
|
+
const value = getComputedStyle(document.documentElement).getPropertyValue("--bh-motion-wait-spinner").trim();
|
|
32
|
+
const amount = Number.parseFloat(value);
|
|
33
|
+
if (!Number.isFinite(amount)) return 1e3;
|
|
34
|
+
return value.endsWith("ms") ? amount : amount * 1e3;
|
|
35
|
+
}
|
|
36
|
+
const showSpinner = ref(false);
|
|
37
|
+
let spinnerTimer;
|
|
38
|
+
watch(() => props.loading, (loading) => {
|
|
39
|
+
clearTimeout(spinnerTimer);
|
|
40
|
+
showSpinner.value = false;
|
|
41
|
+
if (loading) spinnerTimer = setTimeout(() => {
|
|
42
|
+
showSpinner.value = true;
|
|
43
|
+
}, spinnerDelayMs());
|
|
44
|
+
}, { immediate: true });
|
|
45
|
+
onBeforeUnmount(() => clearTimeout(spinnerTimer));
|
|
46
|
+
function onClickCapture(event) {
|
|
47
|
+
const target = event.currentTarget;
|
|
48
|
+
if (props.loading || target?.getAttribute("aria-disabled") === "true") {
|
|
49
|
+
event.preventDefault();
|
|
50
|
+
event.stopImmediatePropagation();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
55
|
+
"data-slot": "button",
|
|
56
|
+
"data-variant": __props.variant ?? "default",
|
|
57
|
+
"data-size": __props.size ?? "default",
|
|
58
|
+
as: __props.as,
|
|
59
|
+
"as-child": __props.asChild,
|
|
60
|
+
type: __props.as === "button" && !__props.asChild ? "button" : void 0,
|
|
61
|
+
"aria-busy": __props.loading || void 0,
|
|
62
|
+
class: normalizeClass(unref(cn)(unref(buttonVariants)({
|
|
63
|
+
variant: __props.variant,
|
|
64
|
+
size: __props.size
|
|
65
|
+
}), props.class)),
|
|
66
|
+
onClickCapture
|
|
67
|
+
}, {
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
createCommentVNode(" Lucide loader-circle (DECISIONS D11). It keeps turning at the same speed under reduced motion: it shows work is running (Motion page). "),
|
|
70
|
+
__props.loading && showSpinner.value ? (openBlock(), createBlock(unref(LoaderCircle), {
|
|
71
|
+
key: 0,
|
|
72
|
+
"data-spinner": "",
|
|
73
|
+
"aria-hidden": "true",
|
|
74
|
+
class: "animate-[spin_var(--bh-motion-loop-spinner)_linear_infinite]"
|
|
75
|
+
})) : createCommentVNode("v-if", true),
|
|
76
|
+
renderSlot(_ctx.$slots, "default")
|
|
77
|
+
]),
|
|
78
|
+
_: 3
|
|
79
|
+
}, 8, [
|
|
80
|
+
"data-variant",
|
|
81
|
+
"data-size",
|
|
82
|
+
"as",
|
|
83
|
+
"as-child",
|
|
84
|
+
"type",
|
|
85
|
+
"aria-busy",
|
|
86
|
+
"class"
|
|
87
|
+
]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region registry/beehexa/ui/button/index.ts
|
|
93
|
+
var buttonVariants = cva([
|
|
94
|
+
"relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-(--bh-space-control-gap) whitespace-nowrap",
|
|
95
|
+
"rounded-(--bh-radius-control) border-(length:--bh-border-width-default) border-transparent [font:var(--bh-font-label-default)]",
|
|
96
|
+
"transition-colors duration-(--bh-motion-duration-fast) ease-(--bh-motion-easing-standard)",
|
|
97
|
+
"outline-none focus-visible:outline-solid focus-visible:outline-(length:--bh-border-width-focused) focus-visible:outline-(color:--bh-color-border-focus) focus-visible:outline-offset-(--bh-state-focus-offset)",
|
|
98
|
+
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-(--bh-size-icon-default)",
|
|
99
|
+
"aria-busy:cursor-progress [&:has([data-spinner])_svg:not([data-spinner])]:hidden",
|
|
100
|
+
"disabled:cursor-not-allowed disabled:border-(--bh-color-border-disabled)! disabled:bg-(--bh-color-background-disabled)! disabled:text-(--bh-color-text-disabled)!",
|
|
101
|
+
"aria-disabled:cursor-not-allowed aria-disabled:border-(--bh-color-border-disabled)! aria-disabled:bg-(--bh-color-background-disabled)! aria-disabled:text-(--bh-color-text-disabled)!",
|
|
102
|
+
"pointer-coarse:before:absolute pointer-coarse:before:top-1/2 pointer-coarse:before:left-1/2 pointer-coarse:before:size-[max(100%,var(--bh-size-target-touch))] pointer-coarse:before:-translate-1/2 pointer-coarse:before:content-['']"
|
|
103
|
+
], {
|
|
104
|
+
variants: {
|
|
105
|
+
variant: {
|
|
106
|
+
"default": "border-(--bh-color-background-primary) bg-(--bh-color-background-primary) text-(--bh-color-text-inverse) hover:border-(--bh-color-background-primary-hover) hover:bg-(--bh-color-background-primary-hover) active:border-(--bh-color-background-primary-pressed) active:bg-(--bh-color-background-primary-pressed)",
|
|
107
|
+
"outline": "border-(--bh-color-border) bg-(--bh-color-surface) text-(--bh-color-text) hover:border-(--bh-color-border-hover) hover:bg-(--bh-button-background-subtle-hover) active:border-(--bh-color-border-hover) active:bg-(--bh-button-background-subtle-pressed) aria-expanded:bg-(--bh-button-background-subtle-pressed) aria-pressed:border-(--bh-button-border-selected) aria-pressed:bg-(--bh-button-background-selected)",
|
|
108
|
+
"secondary": "border-(--bh-color-border) bg-(--bh-color-surface) text-(--bh-color-text) hover:border-(--bh-color-border-hover) hover:bg-(--bh-button-background-subtle-hover) active:border-(--bh-color-border-hover) active:bg-(--bh-button-background-subtle-pressed) aria-expanded:bg-(--bh-button-background-subtle-pressed) aria-pressed:border-(--bh-button-border-selected) aria-pressed:bg-(--bh-button-background-selected)",
|
|
109
|
+
"ghost": "bg-transparent text-(--bh-color-text) hover:bg-(--bh-button-background-subtle-hover) active:bg-(--bh-button-background-subtle-pressed) aria-expanded:bg-(--bh-button-background-subtle-pressed) aria-pressed:border-(--bh-button-border-selected) aria-pressed:bg-(--bh-button-background-selected)",
|
|
110
|
+
"destructive": "border-(--bh-color-background-danger-bold) bg-(--bh-color-background-danger-bold) text-(--bh-color-text-on-bold) hover:border-(--bh-color-background-danger-bold-hover) hover:bg-(--bh-color-background-danger-bold-hover) active:border-(--bh-color-background-danger-bold-pressed) active:bg-(--bh-color-background-danger-bold-pressed)",
|
|
111
|
+
"ghost-destructive": "bg-transparent text-(--bh-color-text-danger) hover:bg-(--bh-color-background-danger-subtle-hover) active:bg-(--bh-color-background-danger-subtle-pressed)",
|
|
112
|
+
"link": "bg-transparent text-(--bh-color-link) underline underline-offset-2 hover:text-(--bh-color-link-hover)"
|
|
113
|
+
},
|
|
114
|
+
size: {
|
|
115
|
+
"default": "h-(--bh-size-control-default) px-(--bh-space-control-x)",
|
|
116
|
+
"sm": "h-(--bh-size-control-small) rounded-(--bh-radius-control-small) px-(--bh-space-control-x-small) [font:var(--bh-font-label-small)]",
|
|
117
|
+
"xs": "h-(--bh-size-control-small) rounded-(--bh-radius-control-small) px-(--bh-space-control-x-small) [font:var(--bh-font-label-small)]",
|
|
118
|
+
"lg": "h-(--bh-size-control-large) px-(--bh-space-control-x-large)",
|
|
119
|
+
"icon": "size-(--bh-size-control-default)",
|
|
120
|
+
"icon-sm": "size-(--bh-size-control-small) rounded-(--bh-radius-control-small)",
|
|
121
|
+
"icon-xs": "size-(--bh-size-control-small) rounded-(--bh-radius-control-small)",
|
|
122
|
+
"icon-lg": "size-(--bh-size-control-large)"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
compoundVariants: [{
|
|
126
|
+
variant: ["ghost", "ghost-destructive"],
|
|
127
|
+
class: "disabled:border-transparent! disabled:bg-transparent! aria-disabled:border-transparent! aria-disabled:bg-transparent!"
|
|
128
|
+
}, {
|
|
129
|
+
variant: "link",
|
|
130
|
+
class: "h-auto px-0 disabled:border-transparent! disabled:bg-transparent! aria-disabled:border-transparent! aria-disabled:bg-transparent! disabled:no-underline aria-disabled:no-underline"
|
|
131
|
+
}],
|
|
132
|
+
defaultVariants: {
|
|
133
|
+
variant: "default",
|
|
134
|
+
size: "default"
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
//#endregion
|
|
138
|
+
export { Button_default as Button, buttonVariants };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TooltipRootProps } from 'reka-ui';
|
|
2
|
+
import type { TooltipRelationship } from './context.js';
|
|
3
|
+
type __VLS_Props = TooltipRootProps & {
|
|
4
|
+
/** label: the tooltip names an icon-only trigger. description (default): it adds to a trigger that has a name. */
|
|
5
|
+
relationship?: TooltipRelationship;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_7: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:open": (value: boolean) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TooltipContentProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = TooltipContentProps & {
|
|
4
|
+
class?: HTMLAttributes['class'];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_15: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_15) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
14
|
+
pointerDownOutside: (event: Event) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
16
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
17
|
+
onPointerDownOutside?: ((event: Event) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TooltipProviderProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TooltipTriggerProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_7: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_7) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import("vue").DefineComponent<TooltipTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TooltipTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export type TooltipRelationship = 'label' | 'description';
|
|
3
|
+
export interface TooltipContext {
|
|
4
|
+
relationship: Ref<TooltipRelationship>;
|
|
5
|
+
labelId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const tooltipContextKey: InjectionKey<TooltipContext>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Tooltip } from './Tooltip.vue.js';
|
|
2
|
+
export { default as TooltipContent } from './TooltipContent.vue.js';
|
|
3
|
+
export { default as TooltipProvider } from './TooltipProvider.vue.js';
|
|
4
|
+
export { default as TooltipTrigger } from './TooltipTrigger.vue.js';
|
|
5
|
+
export type { TooltipRelationship } from './context.js';
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { cn } from "../../utils.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, normalizeProps, openBlock, provide, renderSlot, unref, useId, withCtx } from "vue";
|
|
3
|
+
import { TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
//#region registry/beehexa/ui/tooltip/context.ts
|
|
5
|
+
var tooltipContextKey = Symbol("BeehexaTooltip");
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region registry/beehexa/ui/tooltip/Tooltip.vue
|
|
8
|
+
var Tooltip_default = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "Tooltip",
|
|
10
|
+
props: {
|
|
11
|
+
defaultOpen: { type: Boolean },
|
|
12
|
+
open: { type: Boolean },
|
|
13
|
+
delayDuration: {},
|
|
14
|
+
disableHoverableContent: { type: Boolean },
|
|
15
|
+
disableClosingTrigger: { type: Boolean },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
ignoreNonKeyboardFocus: { type: Boolean },
|
|
18
|
+
relationship: { default: "description" }
|
|
19
|
+
},
|
|
20
|
+
emits: ["update:open"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const emits = __emit;
|
|
24
|
+
const rootProps = computed(() => {
|
|
25
|
+
const { relationship: _relationship, ...rest } = props;
|
|
26
|
+
return rest;
|
|
27
|
+
});
|
|
28
|
+
const forwarded = useForwardPropsEmits(rootProps, emits);
|
|
29
|
+
provide(tooltipContextKey, {
|
|
30
|
+
relationship: computed(() => props.relationship),
|
|
31
|
+
labelId: useId() ?? "bh-tooltip-label"
|
|
32
|
+
});
|
|
33
|
+
return (_ctx, _cache) => {
|
|
34
|
+
return openBlock(), createBlock(unref(TooltipRoot), mergeProps({ "data-slot": "tooltip" }, unref(forwarded)), {
|
|
35
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
36
|
+
_: 3
|
|
37
|
+
}, 16);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region registry/beehexa/ui/tooltip/TooltipContent.vue?vue&type=script&setup=true&lang.ts
|
|
43
|
+
var _hoisted_1 = ["id"];
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region registry/beehexa/ui/tooltip/TooltipContent.vue
|
|
46
|
+
var TooltipContent_default = /* @__PURE__ */ defineComponent({
|
|
47
|
+
inheritAttrs: false,
|
|
48
|
+
__name: "TooltipContent",
|
|
49
|
+
props: {
|
|
50
|
+
forceMount: { type: Boolean },
|
|
51
|
+
ariaLabel: {},
|
|
52
|
+
asChild: { type: Boolean },
|
|
53
|
+
as: {},
|
|
54
|
+
side: {},
|
|
55
|
+
sideOffset: { default: 8 },
|
|
56
|
+
align: {},
|
|
57
|
+
alignOffset: {},
|
|
58
|
+
avoidCollisions: { type: Boolean },
|
|
59
|
+
collisionBoundary: {},
|
|
60
|
+
collisionPadding: {},
|
|
61
|
+
arrowPadding: {},
|
|
62
|
+
sticky: {},
|
|
63
|
+
hideWhenDetached: { type: Boolean },
|
|
64
|
+
positionStrategy: {},
|
|
65
|
+
updatePositionStrategy: {},
|
|
66
|
+
class: { type: [
|
|
67
|
+
Boolean,
|
|
68
|
+
null,
|
|
69
|
+
String,
|
|
70
|
+
Object,
|
|
71
|
+
Array
|
|
72
|
+
] }
|
|
73
|
+
},
|
|
74
|
+
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
75
|
+
setup(__props, { emit: __emit }) {
|
|
76
|
+
const props = __props;
|
|
77
|
+
const emits = __emit;
|
|
78
|
+
const delegated = computed(() => {
|
|
79
|
+
const { class: _class, ...rest } = props;
|
|
80
|
+
return rest;
|
|
81
|
+
});
|
|
82
|
+
const forwarded = useForwardPropsEmits(delegated, emits);
|
|
83
|
+
const tooltip = inject(tooltipContextKey, null);
|
|
84
|
+
const isLabel = computed(() => tooltip?.relationship.value === "label");
|
|
85
|
+
return (_ctx, _cache) => {
|
|
86
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
87
|
+
createCommentVNode(" As a label, the text stays in the page (hidden) so the trigger has a name while the tooltip is closed. "),
|
|
88
|
+
isLabel.value ? (openBlock(), createElementBlock("span", {
|
|
89
|
+
key: 0,
|
|
90
|
+
id: unref(tooltip).labelId,
|
|
91
|
+
hidden: ""
|
|
92
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1)) : createCommentVNode("v-if", true),
|
|
93
|
+
createVNode(unref(TooltipPortal), null, {
|
|
94
|
+
default: withCtx(() => [createCommentVNode(" As a label, reka's built-in description would repeat the name; a blank aria-label empties it. "), createVNode(unref(TooltipContent), mergeProps({ "data-slot": "tooltip-content" }, {
|
|
95
|
+
...unref(forwarded),
|
|
96
|
+
...isLabel.value ? { ariaLabel: " " } : {},
|
|
97
|
+
..._ctx.$attrs
|
|
98
|
+
}, { class: unref(cn)("z-(--bh-z-index-tooltip) max-w-(--bh-size-tooltip-max-width) rounded-(--bh-radius-050) bg-(--bh-color-surface-inverse) px-(--bh-space-075) py-(--bh-space-050) text-(--bh-color-text-inverse) [font:var(--bh-font-body-small)]", props.class) }), {
|
|
99
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
100
|
+
_: 3
|
|
101
|
+
}, 16, ["class"])]),
|
|
102
|
+
_: 3
|
|
103
|
+
})
|
|
104
|
+
], 64);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region registry/beehexa/ui/tooltip/TooltipProvider.vue
|
|
110
|
+
var TooltipProvider_default = /* @__PURE__ */ defineComponent({
|
|
111
|
+
__name: "TooltipProvider",
|
|
112
|
+
props: {
|
|
113
|
+
delayDuration: {},
|
|
114
|
+
skipDelayDuration: {},
|
|
115
|
+
disableHoverableContent: { type: Boolean },
|
|
116
|
+
disableClosingTrigger: { type: Boolean },
|
|
117
|
+
disabled: { type: Boolean },
|
|
118
|
+
ignoreNonKeyboardFocus: { type: Boolean },
|
|
119
|
+
content: {}
|
|
120
|
+
},
|
|
121
|
+
setup(__props) {
|
|
122
|
+
const props = __props;
|
|
123
|
+
function waitMs(name, fallback) {
|
|
124
|
+
if (typeof window === "undefined") return fallback;
|
|
125
|
+
const value = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
|
|
126
|
+
const amount = Number.parseFloat(value);
|
|
127
|
+
if (!Number.isFinite(amount)) return fallback;
|
|
128
|
+
return value.endsWith("ms") ? amount : amount * 1e3;
|
|
129
|
+
}
|
|
130
|
+
const show = waitMs("--bh-motion-wait-tooltip-show", 300);
|
|
131
|
+
const merged = computed(() => ({
|
|
132
|
+
...props,
|
|
133
|
+
delayDuration: props.delayDuration ?? show,
|
|
134
|
+
skipDelayDuration: props.skipDelayDuration ?? show
|
|
135
|
+
}));
|
|
136
|
+
return (_ctx, _cache) => {
|
|
137
|
+
return openBlock(), createBlock(unref(TooltipProvider), normalizeProps(guardReactiveProps(merged.value)), {
|
|
138
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
139
|
+
_: 3
|
|
140
|
+
}, 16);
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region registry/beehexa/ui/tooltip/TooltipTrigger.vue
|
|
146
|
+
var TooltipTrigger_default = /* @__PURE__ */ defineComponent({
|
|
147
|
+
__name: "TooltipTrigger",
|
|
148
|
+
props: {
|
|
149
|
+
reference: {},
|
|
150
|
+
asChild: { type: Boolean },
|
|
151
|
+
as: {}
|
|
152
|
+
},
|
|
153
|
+
setup(__props) {
|
|
154
|
+
const props = __props;
|
|
155
|
+
const tooltip = inject(tooltipContextKey, null);
|
|
156
|
+
return (_ctx, _cache) => {
|
|
157
|
+
return openBlock(), createBlock(unref(TooltipTrigger), mergeProps({ "data-slot": "tooltip-trigger" }, props, { "aria-labelledby": unref(tooltip)?.relationship.value === "label" ? unref(tooltip).labelId : void 0 }), {
|
|
158
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
159
|
+
_: 3
|
|
160
|
+
}, 16, ["aria-labelledby"]);
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
//#endregion
|
|
165
|
+
export { Tooltip_default as Tooltip, TooltipContent_default as TooltipContent, TooltipProvider_default as TooltipProvider, TooltipTrigger_default as TooltipTrigger };
|
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
/* Generated from registry/beehexa/ui by scripts/build-vue-registry-components.mjs. Do not edit. */
|
|
2
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
+
@layer properties {
|
|
4
|
+
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
5
|
+
*, :before, :after, ::backdrop {
|
|
6
|
+
--tw-border-style: solid;
|
|
7
|
+
--tw-shadow: 0 0 #0000;
|
|
8
|
+
--tw-shadow-color: initial;
|
|
9
|
+
--tw-shadow-alpha: 100%;
|
|
10
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
11
|
+
--tw-inset-shadow-color: initial;
|
|
12
|
+
--tw-inset-shadow-alpha: 100%;
|
|
13
|
+
--tw-ring-color: initial;
|
|
14
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
15
|
+
--tw-inset-ring-color: initial;
|
|
16
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
17
|
+
--tw-ring-inset: initial;
|
|
18
|
+
--tw-ring-offset-width: 0px;
|
|
19
|
+
--tw-ring-offset-color: #fff;
|
|
20
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
21
|
+
--tw-outline-style: solid;
|
|
22
|
+
--tw-duration: initial;
|
|
23
|
+
--tw-ease: initial;
|
|
24
|
+
--tw-content: "";
|
|
25
|
+
--tw-translate-x: 0;
|
|
26
|
+
--tw-translate-y: 0;
|
|
27
|
+
--tw-translate-z: 0;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@layer beehexa.theme {
|
|
33
|
+
:root, :host {
|
|
34
|
+
--default-transition-duration: .15s;
|
|
35
|
+
--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@layer beehexa.utilities {
|
|
40
|
+
.visible {
|
|
41
|
+
visibility: visible;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.relative {
|
|
45
|
+
position: relative;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.z-\(--bh-z-index-tooltip\) {
|
|
49
|
+
z-index: var(--bh-z-index-tooltip);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.inline-flex {
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.table {
|
|
57
|
+
display: table;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.size-\(--bh-size-control-default\) {
|
|
61
|
+
width: var(--bh-size-control-default);
|
|
62
|
+
height: var(--bh-size-control-default);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.size-\(--bh-size-control-large\) {
|
|
66
|
+
width: var(--bh-size-control-large);
|
|
67
|
+
height: var(--bh-size-control-large);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.size-\(--bh-size-control-small\) {
|
|
71
|
+
width: var(--bh-size-control-small);
|
|
72
|
+
height: var(--bh-size-control-small);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.h-\(--bh-size-control-default\) {
|
|
76
|
+
height: var(--bh-size-control-default);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.h-\(--bh-size-control-large\) {
|
|
80
|
+
height: var(--bh-size-control-large);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.h-\(--bh-size-control-small\) {
|
|
84
|
+
height: var(--bh-size-control-small);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.h-auto {
|
|
88
|
+
height: auto;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.max-w-\(--bh-size-tooltip-max-width\) {
|
|
92
|
+
max-width: var(--bh-size-tooltip-max-width);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.shrink-0 {
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.animate-\[spin_var\(--bh-motion-loop-spinner\)_linear_infinite\] {
|
|
100
|
+
animation: spin var(--bh-motion-loop-spinner) linear infinite;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.cursor-pointer {
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.items-center {
|
|
108
|
+
align-items: center;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.justify-center {
|
|
112
|
+
justify-content: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.gap-\(--bh-space-control-gap\) {
|
|
116
|
+
gap: var(--bh-space-control-gap);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.rounded-\(--bh-radius-050\) {
|
|
120
|
+
border-radius: var(--bh-radius-050);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.rounded-\(--bh-radius-control\) {
|
|
124
|
+
border-radius: var(--bh-radius-control);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.rounded-\(--bh-radius-control-small\) {
|
|
128
|
+
border-radius: var(--bh-radius-control-small);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.border-\(length\:--bh-border-width-default\) {
|
|
132
|
+
border-style: var(--tw-border-style);
|
|
133
|
+
border-width: var(--bh-border-width-default);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.border-\(--bh-color-background-danger-bold\) {
|
|
137
|
+
border-color: var(--bh-color-background-danger-bold);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.border-\(--bh-color-background-primary\) {
|
|
141
|
+
border-color: var(--bh-color-background-primary);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.border-\(--bh-color-border\) {
|
|
145
|
+
border-color: var(--bh-color-border);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.border-transparent {
|
|
149
|
+
border-color: #0000;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.bg-\(--bh-color-background-danger-bold\) {
|
|
153
|
+
background-color: var(--bh-color-background-danger-bold);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.bg-\(--bh-color-background-primary\) {
|
|
157
|
+
background-color: var(--bh-color-background-primary);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.bg-\(--bh-color-surface\) {
|
|
161
|
+
background-color: var(--bh-color-surface);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.bg-\(--bh-color-surface-inverse\) {
|
|
165
|
+
background-color: var(--bh-color-surface-inverse);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.bg-transparent {
|
|
169
|
+
background-color: #0000;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.px-\(--bh-space-075\) {
|
|
173
|
+
padding-inline: var(--bh-space-075);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.px-\(--bh-space-control-x\) {
|
|
177
|
+
padding-inline: var(--bh-space-control-x);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.px-\(--bh-space-control-x-large\) {
|
|
181
|
+
padding-inline: var(--bh-space-control-x-large);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.px-\(--bh-space-control-x-small\) {
|
|
185
|
+
padding-inline: var(--bh-space-control-x-small);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.px-0 {
|
|
189
|
+
padding-inline: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.py-\(--bh-space-050\) {
|
|
193
|
+
padding-block: var(--bh-space-050);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.whitespace-nowrap {
|
|
197
|
+
white-space: nowrap;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.text-\(--bh-color-link\) {
|
|
201
|
+
color: var(--bh-color-link);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.text-\(--bh-color-text\) {
|
|
205
|
+
color: var(--bh-color-text);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.text-\(--bh-color-text-danger\) {
|
|
209
|
+
color: var(--bh-color-text-danger);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.text-\(--bh-color-text-inverse\) {
|
|
213
|
+
color: var(--bh-color-text-inverse);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.text-\(--bh-color-text-on-bold\) {
|
|
217
|
+
color: var(--bh-color-text-on-bold);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.underline {
|
|
221
|
+
text-decoration-line: underline;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.underline-offset-2 {
|
|
225
|
+
text-underline-offset: 2px;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.ring {
|
|
229
|
+
--tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
230
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.outline {
|
|
234
|
+
outline-style: var(--tw-outline-style);
|
|
235
|
+
outline-width: 1px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.transition-colors {
|
|
239
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
240
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
241
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.duration-\(--bh-motion-duration-fast\) {
|
|
245
|
+
--tw-duration: var(--bh-motion-duration-fast);
|
|
246
|
+
transition-duration: var(--bh-motion-duration-fast);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.ease-\(--bh-motion-easing-standard\) {
|
|
250
|
+
--tw-ease: var(--bh-motion-easing-standard);
|
|
251
|
+
transition-timing-function: var(--bh-motion-easing-standard);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.outline-none {
|
|
255
|
+
--tw-outline-style: none;
|
|
256
|
+
outline-style: none;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.\[font\:var\(--bh-font-body-small\)\] {
|
|
260
|
+
font: var(--bh-font-body-small);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.\[font\:var\(--bh-font-label-default\)\] {
|
|
264
|
+
font: var(--bh-font-label-default);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.\[font\:var\(--bh-font-label-small\)\] {
|
|
268
|
+
font: var(--bh-font-label-small);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@media (hover: hover) {
|
|
272
|
+
.hover\:border-\(--bh-color-background-danger-bold-hover\):hover {
|
|
273
|
+
border-color: var(--bh-color-background-danger-bold-hover);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.hover\:border-\(--bh-color-background-primary-hover\):hover {
|
|
277
|
+
border-color: var(--bh-color-background-primary-hover);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.hover\:border-\(--bh-color-border-hover\):hover {
|
|
281
|
+
border-color: var(--bh-color-border-hover);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.hover\:bg-\(--bh-button-background-subtle-hover\):hover {
|
|
285
|
+
background-color: var(--bh-button-background-subtle-hover);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.hover\:bg-\(--bh-color-background-danger-bold-hover\):hover {
|
|
289
|
+
background-color: var(--bh-color-background-danger-bold-hover);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.hover\:bg-\(--bh-color-background-danger-subtle-hover\):hover {
|
|
293
|
+
background-color: var(--bh-color-background-danger-subtle-hover);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.hover\:bg-\(--bh-color-background-primary-hover\):hover {
|
|
297
|
+
background-color: var(--bh-color-background-primary-hover);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.hover\:text-\(--bh-color-link-hover\):hover {
|
|
301
|
+
color: var(--bh-color-link-hover);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.focus-visible\:outline-\(length\:--bh-border-width-focused\):focus-visible {
|
|
306
|
+
outline-style: var(--tw-outline-style);
|
|
307
|
+
outline-width: var(--bh-border-width-focused);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.focus-visible\:outline-offset-\(--bh-state-focus-offset\):focus-visible {
|
|
311
|
+
outline-offset: var(--bh-state-focus-offset);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.focus-visible\:outline-\(color\:--bh-color-border-focus\):focus-visible {
|
|
315
|
+
outline-color: var(--bh-color-border-focus);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.focus-visible\:outline-solid:focus-visible {
|
|
319
|
+
--tw-outline-style: solid;
|
|
320
|
+
outline-style: solid;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.active\:border-\(--bh-color-background-danger-bold-pressed\):active {
|
|
324
|
+
border-color: var(--bh-color-background-danger-bold-pressed);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.active\:border-\(--bh-color-background-primary-pressed\):active {
|
|
328
|
+
border-color: var(--bh-color-background-primary-pressed);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.active\:border-\(--bh-color-border-hover\):active {
|
|
332
|
+
border-color: var(--bh-color-border-hover);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.active\:bg-\(--bh-button-background-subtle-pressed\):active {
|
|
336
|
+
background-color: var(--bh-button-background-subtle-pressed);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.active\:bg-\(--bh-color-background-danger-bold-pressed\):active {
|
|
340
|
+
background-color: var(--bh-color-background-danger-bold-pressed);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.active\:bg-\(--bh-color-background-danger-subtle-pressed\):active {
|
|
344
|
+
background-color: var(--bh-color-background-danger-subtle-pressed);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.active\:bg-\(--bh-color-background-primary-pressed\):active {
|
|
348
|
+
background-color: var(--bh-color-background-primary-pressed);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.disabled\:cursor-not-allowed:disabled {
|
|
352
|
+
cursor: not-allowed;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.disabled\:border-\(--bh-color-border-disabled\)\!:disabled {
|
|
356
|
+
border-color: var(--bh-color-border-disabled) !important;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.disabled\:border-transparent\!:disabled {
|
|
360
|
+
border-color: #0000 !important;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.disabled\:bg-\(--bh-color-background-disabled\)\!:disabled {
|
|
364
|
+
background-color: var(--bh-color-background-disabled) !important;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.disabled\:bg-transparent\!:disabled {
|
|
368
|
+
background-color: #0000 !important;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.disabled\:text-\(--bh-color-text-disabled\)\!:disabled {
|
|
372
|
+
color: var(--bh-color-text-disabled) !important;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.disabled\:no-underline:disabled {
|
|
376
|
+
text-decoration-line: none;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.aria-busy\:cursor-progress[aria-busy="true"] {
|
|
380
|
+
cursor: progress;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.aria-disabled\:cursor-not-allowed[aria-disabled="true"] {
|
|
384
|
+
cursor: not-allowed;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.aria-disabled\:border-\(--bh-color-border-disabled\)\![aria-disabled="true"] {
|
|
388
|
+
border-color: var(--bh-color-border-disabled) !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.aria-disabled\:border-transparent\![aria-disabled="true"] {
|
|
392
|
+
border-color: #0000 !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.aria-disabled\:bg-\(--bh-color-background-disabled\)\![aria-disabled="true"] {
|
|
396
|
+
background-color: var(--bh-color-background-disabled) !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.aria-disabled\:bg-transparent\![aria-disabled="true"] {
|
|
400
|
+
background-color: #0000 !important;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.aria-disabled\:text-\(--bh-color-text-disabled\)\![aria-disabled="true"] {
|
|
404
|
+
color: var(--bh-color-text-disabled) !important;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.aria-disabled\:no-underline[aria-disabled="true"] {
|
|
408
|
+
text-decoration-line: none;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.aria-expanded\:bg-\(--bh-button-background-subtle-pressed\)[aria-expanded="true"] {
|
|
412
|
+
background-color: var(--bh-button-background-subtle-pressed);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.aria-pressed\:border-\(--bh-button-border-selected\)[aria-pressed="true"] {
|
|
416
|
+
border-color: var(--bh-button-border-selected);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.aria-pressed\:bg-\(--bh-button-background-selected\)[aria-pressed="true"] {
|
|
420
|
+
background-color: var(--bh-button-background-selected);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@media (pointer: coarse) {
|
|
424
|
+
.pointer-coarse\:before\:absolute:before {
|
|
425
|
+
content: var(--tw-content);
|
|
426
|
+
position: absolute;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.pointer-coarse\:before\:top-1\/2:before {
|
|
430
|
+
content: var(--tw-content);
|
|
431
|
+
top: 50%;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.pointer-coarse\:before\:left-1\/2:before {
|
|
435
|
+
content: var(--tw-content);
|
|
436
|
+
left: 50%;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.pointer-coarse\:before\:size-\[max\(100\%\,var\(--bh-size-target-touch\)\)\]:before {
|
|
440
|
+
content: var(--tw-content);
|
|
441
|
+
width: max(100%, var(--bh-size-target-touch));
|
|
442
|
+
height: max(100%, var(--bh-size-target-touch));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.pointer-coarse\:before\:-translate-1\/2:before {
|
|
446
|
+
content: var(--tw-content);
|
|
447
|
+
--tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
|
|
448
|
+
--tw-translate-y: calc(calc(1 / 2 * 100%) * -1);
|
|
449
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.pointer-coarse\:before\:content-\[\'\'\]:before {
|
|
453
|
+
--tw-content: "";
|
|
454
|
+
content: var(--tw-content);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.\[\&_svg\]\:pointer-events-none svg {
|
|
459
|
+
pointer-events: none;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.\[\&_svg\]\:shrink-0 svg {
|
|
463
|
+
flex-shrink: 0;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-\(--bh-size-icon-default\) svg:not([class*="size-"]) {
|
|
467
|
+
width: var(--bh-size-icon-default);
|
|
468
|
+
height: var(--bh-size-icon-default);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.\[\&\:has\(\[data-spinner\]\)_svg\:not\(\[data-spinner\]\)\]\:hidden:has([data-spinner]) svg:not([data-spinner]) {
|
|
472
|
+
display: none;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
@property --tw-border-style {
|
|
477
|
+
syntax: "*";
|
|
478
|
+
inherits: false;
|
|
479
|
+
initial-value: solid;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@property --tw-shadow {
|
|
483
|
+
syntax: "*";
|
|
484
|
+
inherits: false;
|
|
485
|
+
initial-value: 0 0 #0000;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
@property --tw-shadow-color {
|
|
489
|
+
syntax: "*";
|
|
490
|
+
inherits: false
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
@property --tw-shadow-alpha {
|
|
494
|
+
syntax: "<percentage>";
|
|
495
|
+
inherits: false;
|
|
496
|
+
initial-value: 100%;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
@property --tw-inset-shadow {
|
|
500
|
+
syntax: "*";
|
|
501
|
+
inherits: false;
|
|
502
|
+
initial-value: 0 0 #0000;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
@property --tw-inset-shadow-color {
|
|
506
|
+
syntax: "*";
|
|
507
|
+
inherits: false
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
@property --tw-inset-shadow-alpha {
|
|
511
|
+
syntax: "<percentage>";
|
|
512
|
+
inherits: false;
|
|
513
|
+
initial-value: 100%;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
@property --tw-ring-color {
|
|
517
|
+
syntax: "*";
|
|
518
|
+
inherits: false
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
@property --tw-ring-shadow {
|
|
522
|
+
syntax: "*";
|
|
523
|
+
inherits: false;
|
|
524
|
+
initial-value: 0 0 #0000;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
@property --tw-inset-ring-color {
|
|
528
|
+
syntax: "*";
|
|
529
|
+
inherits: false
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
@property --tw-inset-ring-shadow {
|
|
533
|
+
syntax: "*";
|
|
534
|
+
inherits: false;
|
|
535
|
+
initial-value: 0 0 #0000;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
@property --tw-ring-inset {
|
|
539
|
+
syntax: "*";
|
|
540
|
+
inherits: false
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
@property --tw-ring-offset-width {
|
|
544
|
+
syntax: "<length>";
|
|
545
|
+
inherits: false;
|
|
546
|
+
initial-value: 0;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
@property --tw-ring-offset-color {
|
|
550
|
+
syntax: "*";
|
|
551
|
+
inherits: false;
|
|
552
|
+
initial-value: #fff;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
@property --tw-ring-offset-shadow {
|
|
556
|
+
syntax: "*";
|
|
557
|
+
inherits: false;
|
|
558
|
+
initial-value: 0 0 #0000;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
@property --tw-outline-style {
|
|
562
|
+
syntax: "*";
|
|
563
|
+
inherits: false;
|
|
564
|
+
initial-value: solid;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
@property --tw-duration {
|
|
568
|
+
syntax: "*";
|
|
569
|
+
inherits: false
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
@property --tw-ease {
|
|
573
|
+
syntax: "*";
|
|
574
|
+
inherits: false
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
@property --tw-content {
|
|
578
|
+
syntax: "*";
|
|
579
|
+
inherits: false;
|
|
580
|
+
initial-value: "";
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
@property --tw-translate-x {
|
|
584
|
+
syntax: "*";
|
|
585
|
+
inherits: false;
|
|
586
|
+
initial-value: 0;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
@property --tw-translate-y {
|
|
590
|
+
syntax: "*";
|
|
591
|
+
inherits: false;
|
|
592
|
+
initial-value: 0;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
@property --tw-translate-z {
|
|
596
|
+
syntax: "*";
|
|
597
|
+
inherits: false;
|
|
598
|
+
initial-value: 0;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
@keyframes spin {
|
|
602
|
+
to {
|
|
603
|
+
transform: rotate(360deg);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
/*$vite$:1*/
|
package/dist/styles.css
CHANGED
package/dist/utils.d.ts
ADDED
package/dist/utils.js
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beehexa/vue-components",
|
|
3
|
-
"version": "2611.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2611.17.1",
|
|
4
|
+
"description": "Beehexa Vue components: framework-independent components and the approved shadcn-vue registry components, compiled with source design tokens",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/beehexacorp/beehexa.design.git",
|
|
@@ -22,6 +22,18 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"import": "./dist/index.js"
|
|
24
24
|
},
|
|
25
|
+
"./button": {
|
|
26
|
+
"types": "./dist/components/button/index.d.ts",
|
|
27
|
+
"import": "./dist/components/button/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./tooltip": {
|
|
30
|
+
"types": "./dist/components/tooltip/index.d.ts",
|
|
31
|
+
"import": "./dist/components/tooltip/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./utils": {
|
|
34
|
+
"types": "./dist/utils.d.ts",
|
|
35
|
+
"import": "./dist/utils.js"
|
|
36
|
+
},
|
|
25
37
|
"./css": {
|
|
26
38
|
"types": "./dist/css.d.ts",
|
|
27
39
|
"default": "./dist/styles.css"
|
|
@@ -29,7 +41,12 @@
|
|
|
29
41
|
"./package.json": "./package.json"
|
|
30
42
|
},
|
|
31
43
|
"dependencies": {
|
|
32
|
-
"@beehexa/design-tokens": "2611.
|
|
44
|
+
"@beehexa/design-tokens": "2611.17.1",
|
|
45
|
+
"@lucide/vue": "^1.62.0",
|
|
46
|
+
"class-variance-authority": "^0.7.1",
|
|
47
|
+
"clsx": "^2.1.1",
|
|
48
|
+
"reka-ui": "^2.11.0",
|
|
49
|
+
"tailwind-merge": "^3.7.0"
|
|
33
50
|
},
|
|
34
51
|
"peerDependencies": {
|
|
35
52
|
"vue": "^3.5.0"
|