@loafacto/ui 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ export interface ConventionsOptions {
3
+ /** title 을 loafacto 말풍선으로(기본 켬). */
4
+ tooltips?: boolean;
5
+ /** 성공 토스트가 뜨면 누른 단추에 ✓(기본 켬). */
6
+ doneFeedback?: boolean;
7
+ }
8
+ export declare function installConventions(app: App, opts?: ConventionsOptions): void;
@@ -0,0 +1,11 @@
1
+ /** 단추 하나에 ✓ 를 직접 띄운다. */
2
+ export declare function markDone(el: HTMLElement | null): void;
3
+ type ActionStore = {
4
+ $onAction: (fn: (ctx: {
5
+ name: string;
6
+ after: (cb: () => void) => void;
7
+ }) => void) => unknown;
8
+ };
9
+ /** 누른 단추를 기억하고, 성공 토스트가 뜨면 그 단추에 ✓. */
10
+ export declare function installDoneFeedback(store: ActionStore): void;
11
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 고른 것 뒤로 미끄러지는 바탕 — 칩 · 나눔 단추(일별|주별)에서 고른 칸이 바뀌면 바탕이 그 자리로 옮겨 간다(사용자 요청 2026-10-26).
3
+ *
4
+ * 그릇(el) 안에서 sel 에 맞는 자식의 자리 · 크기를 재서 style 로 준다. 그릇은 `position: relative` 여야 한다(offsetLeft 기준).
5
+ * 고른 것이 바뀌면(src) 다시 재고, 그릇 크기가 바뀌면(줄바꿈 · 창 폭) 다시 잰다.
6
+ * 처음 한 번은 움직이지 않고 그 자리에 놓는다 — ready 가 참이 된 뒤에만 transition 을 건다(안 그러면 열자마자 왼쪽 끝에서 날아온다).
7
+ */
8
+ import { type Directive, type Ref, type WatchSource } from 'vue';
9
+ export declare function useThumb(el: Ref<HTMLElement | null>, sel: string, src: WatchSource): {
10
+ style: Ref<Record<string, string>, Record<string, string>>;
11
+ ready: Ref<boolean, boolean>;
12
+ };
13
+ export type ThumbOpt = {
14
+ on: string;
15
+ kind?: 'bar' | 'fill';
16
+ };
17
+ export declare const vThumb: Directive<HTMLElement, ThumbOpt>;
18
+ declare module 'vue' {
19
+ interface GlobalDirectives {
20
+ vThumb: typeof vThumb;
21
+ }
22
+ }
@@ -0,0 +1 @@
1
+ export declare function installTooltips(): void;