@tempots/beatui 0.38.0 → 0.40.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.
- package/dist/{2019-DxwU2aOm.cjs → 2019-nWH_nAwT.cjs} +1 -1
- package/dist/{2019-CGWicU9n.js → 2019-sCKLAY8c.js} +2 -2
- package/dist/{2020-BRNvbMGL.js → 2020-B4xCW_nu.js} +2 -2
- package/dist/{2020-DHep9dU6.cjs → 2020-D7RWX09D.cjs} +1 -1
- package/dist/{ar-CqAHPRKu.cjs → ar-D_4BfIJO.cjs} +1 -1
- package/dist/{ar-avevuYiW.js → ar-i2uHmy8P.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +463 -59
- package/dist/beatui.tailwind.css +463 -59
- package/dist/{de--4OtRESW.cjs → de-C0PZz9sE.cjs} +1 -1
- package/dist/{de-Cz7ah611.js → de-CeLwmVZz.js} +1 -1
- package/dist/{es-CE1wRgxl.cjs → es-C8qT1ins.cjs} +1 -1
- package/dist/{es-CiNQQzF1.js → es-DxOgARww.js} +1 -1
- package/dist/{fa-Gkt0b9XN.js → fa-B9pEff8A.js} +1 -1
- package/dist/{fa-DjuJZNLK.cjs → fa-BFV9MxMX.cjs} +1 -1
- package/dist/{fr-DotyzMGL.cjs → fr-BBx5IJ7G.cjs} +1 -1
- package/dist/{fr-xM9p9Q6G.js → fr-Caeevx56.js} +1 -1
- package/dist/{he-BQ6ygVEQ.cjs → he-CMOvd4Dr.cjs} +1 -1
- package/dist/{he-CoO6PsiS.js → he-DeN-WW3u.js} +1 -1
- package/dist/{hi-DA3-4Cdo.js → hi-Dey2HxiD.js} +1 -1
- package/dist/{hi-BCfJ0mRh.cjs → hi-IOU_PzvH.cjs} +1 -1
- package/dist/{index-CesoPnvj.cjs → index-B-SyWyCc.cjs} +1 -1
- package/dist/{index-DJJ67-RV.js → index-B-pudlMv.js} +58 -58
- package/dist/{index-Dtqe3URb.cjs → index-B0ff5lT-.cjs} +4 -4
- package/dist/{index-i9pAnFtS.js → index-BTZqW3-b.js} +1245 -1232
- package/dist/{index-C5-BM51Y.cjs → index-C2VAPX2b.cjs} +1 -1
- package/dist/{index-DjShJtXp.js → index-CAeOFdez.js} +1 -1
- package/dist/{index-BI5w0jSz.js → index-CBT2SLat.js} +224 -223
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-CCu0qfNP.cjs → index-D8fg48Fv.cjs} +1 -1
- package/dist/{index-C_nSdynJ.js → index-DJqo6Guq.js} +1 -1
- package/dist/{index-CZQHL_pf.cjs → index-Dtka01mK.cjs} +12 -12
- package/dist/{index-C2rz3G1d.js → index-HqWBd-jW.js} +680 -677
- package/dist/{index-D41aREgo.js → index-IQ3lRaL0.js} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +3349 -3064
- package/dist/{it-EdPuWBJR.js → it-DghnQdZa.js} +1 -1
- package/dist/{it-pv2Gm3jb.cjs → it-uQF0jkDT.cjs} +1 -1
- package/dist/{ja-CuRaPMgh.cjs → ja-BJD6uPbl.cjs} +1 -1
- package/dist/{ja-BSRCR430.js → ja-Kb7rxmFg.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-Dm4oD1fh.js → ko-53o5WJ-v.js} +1 -1
- package/dist/{ko-C7YP1PL4.cjs → ko-B7bLdRnp.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BRUgTJG9.cjs +1 -0
- package/dist/modal-_2B8vIo0.js +658 -0
- package/dist/{nl-ClCD6lP-.cjs → nl-CJE0fC8g.cjs} +1 -1
- package/dist/{nl-B0l1kdfd.js → nl-DvUVT7xd.js} +1 -1
- package/dist/{notice-BuYqG6zM.js → notice-C4n5jXi6.js} +408 -391
- package/dist/notice-CncwkUTy.cjs +2 -0
- package/dist/{pl-DVKneBSY.js → pl-C3oYeTwf.js} +1 -1
- package/dist/{pl-fyCkqVrr.cjs → pl-DUaY5slY.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-BHExG3lf.cjs → pt-BAqNKCuy.cjs} +1 -1
- package/dist/{pt-Bw0sTDOX.js → pt-BJGeScun.js} +1 -1
- package/dist/{ru-B26VQ4f9.js → ru-2irv1YXp.js} +1 -1
- package/dist/{ru-PuEOLDw1.cjs → ru-CAlgJm3K.cjs} +1 -1
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +1 -1
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +1 -1
- package/dist/tailwind/vite-plugin.cjs.js +1 -1
- package/dist/tailwind/vite-plugin.es.js +1 -1
- package/dist/{toolbar-kwkvH3nX.cjs → toolbar-B7HrL0vD.cjs} +1 -1
- package/dist/{toolbar-ClJbaKID.js → toolbar-CVDXVnje.js} +1 -1
- package/dist/{tr-DQMivdvy.js → tr-CkHLE5u7.js} +1 -1
- package/dist/{tr-CI97fTpD.cjs → tr-DMiXAhok.cjs} +1 -1
- package/dist/{translations-iam7PITs.js → translations-DEEflRUY.js} +96 -112
- package/dist/{translations-ZB5oDFId.cjs → translations-DRNj0YIi.cjs} +1 -1
- package/dist/translations-Dw1oO6Dh.cjs +1 -0
- package/dist/{translations-1yD6Rm5l.js → translations-Q5C5LyIi.js} +1 -1
- package/dist/types/components/beatui.d.ts +4 -1
- package/dist/types/components/button/button.d.ts +4 -3
- package/dist/types/components/form/input/input-wrapper.d.ts +2 -1
- package/dist/types/components/misc/index.d.ts +4 -0
- package/dist/types/components/misc/notification-provider.d.ts +47 -0
- package/dist/types/components/misc/notification.d.ts +17 -0
- package/dist/types/components/misc/opengraph.d.ts +111 -0
- package/dist/types/components/navigation/link/button-link.d.ts +2 -0
- package/dist/types/components/overlay/lightbox.d.ts +1 -1
- package/dist/types/components/overlay/modal.d.ts +2 -2
- package/dist/types/components/overlay/ribbon.d.ts +2 -2
- package/dist/types/utils/use-animated-toggle.d.ts +43 -9
- package/dist/{ur-B3CiO8KH.cjs → ur-BjiNs3SL.cjs} +1 -1
- package/dist/{ur-o3rog5MJ.js → ur-bxBR_9Z-.js} +1 -1
- package/dist/{utils-B_QSuN66.js → utils-BCbc19N0.js} +202 -193
- package/dist/utils-BJZipnfW.cjs +1 -0
- package/dist/{vi-FibsLfdk.cjs → vi-CByOZvV2.cjs} +1 -1
- package/dist/{vi-C7cb2K_B.js → vi-CKknZqol.js} +1 -1
- package/dist/{zh-BtSj_Euh.cjs → zh-C0QOebEA.cjs} +1 -1
- package/dist/{zh-NGrfqAHM.js → zh-CmUgcP9o.js} +1 -1
- package/package.json +4 -3
- package/dist/modal--1g8Y5LH.js +0 -601
- package/dist/modal-mA_AFUCI.cjs +0 -1
- package/dist/notice-DCuZEAQO.cjs +0 -2
- package/dist/translations-DQxg-W9w.cjs +0 -1
- package/dist/utils-BD6NGV1v.cjs +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Provider, Signal, TNode } from '@tempots/dom';
|
|
2
|
+
import { NotificationOptions } from './notification';
|
|
3
|
+
import { RadiusName, ThemeColorName } from '@/tokens';
|
|
4
|
+
import { AnimationConfig } from '@/utils';
|
|
5
|
+
type NotificationEntry = {
|
|
6
|
+
animation: AnimationConfig;
|
|
7
|
+
children: TNode[];
|
|
8
|
+
loading: Signal<boolean>;
|
|
9
|
+
withCloseButton: Signal<boolean>;
|
|
10
|
+
withBorder: Signal<boolean>;
|
|
11
|
+
color: Signal<ThemeColorName>;
|
|
12
|
+
radius: Signal<RadiusName>;
|
|
13
|
+
title: TNode;
|
|
14
|
+
icon: Signal<string | undefined>;
|
|
15
|
+
class: Signal<string | undefined>;
|
|
16
|
+
listenRequestClose: (fn: () => void) => void;
|
|
17
|
+
delayedClose?: Promise<void>;
|
|
18
|
+
};
|
|
19
|
+
export type ShowNotificationOptions = NotificationOptions & {
|
|
20
|
+
animation?: AnimationConfig;
|
|
21
|
+
dismissAfter?: number | Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
export type NotificationShowFn = (options: ShowNotificationOptions, ...children: TNode[]) => void;
|
|
24
|
+
export type NotificationViewportPosition = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
25
|
+
export type NotificationProviderOptions = {
|
|
26
|
+
position?: NotificationViewportPosition;
|
|
27
|
+
};
|
|
28
|
+
export type NotificationProviderValue = {
|
|
29
|
+
show: NotificationShowFn;
|
|
30
|
+
clear: () => void;
|
|
31
|
+
position: NotificationViewportPosition;
|
|
32
|
+
listenOnShow: (fn: (entry: NotificationEntry) => void) => () => void;
|
|
33
|
+
activeNotifications: Signal<number>;
|
|
34
|
+
};
|
|
35
|
+
type NotificationServiceHandle = Pick<NotificationProviderValue, 'show' | 'clear'>;
|
|
36
|
+
declare class NotificationServiceImpl {
|
|
37
|
+
private handles;
|
|
38
|
+
attach(handle: NotificationServiceHandle): () => void;
|
|
39
|
+
private detach;
|
|
40
|
+
private get current();
|
|
41
|
+
show(options: ShowNotificationOptions, ...children: TNode[]): void;
|
|
42
|
+
clear(): void;
|
|
43
|
+
}
|
|
44
|
+
export declare const NotificationService: NotificationServiceImpl;
|
|
45
|
+
export declare const NotificationProvider: Provider<NotificationProviderValue, NotificationProviderOptions>;
|
|
46
|
+
export declare function NotificationViewport(): import("@tempots/dom").Renderable;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Renderable, TNode, Value } from '@tempots/dom';
|
|
2
|
+
import { ThemeColorName } from '@/tokens/colors';
|
|
3
|
+
import { RadiusName } from '@/tokens/radius';
|
|
4
|
+
export type NotificationOptions = {
|
|
5
|
+
loading?: Value<boolean>;
|
|
6
|
+
withCloseButton?: Value<boolean>;
|
|
7
|
+
withBorder?: Value<boolean>;
|
|
8
|
+
color?: Value<ThemeColorName>;
|
|
9
|
+
radius?: Value<RadiusName>;
|
|
10
|
+
title?: TNode;
|
|
11
|
+
icon?: Value<string | undefined>;
|
|
12
|
+
onClose?: () => void;
|
|
13
|
+
class?: Value<string | undefined>;
|
|
14
|
+
};
|
|
15
|
+
export declare function generateNotificationClasses(withBorder: boolean, hasIcon: boolean, hasCloseButton: boolean, loading: boolean, extra?: string): string;
|
|
16
|
+
export declare function generateNotificationStyles(color: ThemeColorName, radius: RadiusName): string;
|
|
17
|
+
export declare function Notification({ loading, withCloseButton, withBorder, color, radius, title, icon, onClose, class: cls, }?: NotificationOptions, ...children: TNode[]): Renderable;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Renderable, Value } from '@tempots/dom';
|
|
2
|
+
/**
|
|
3
|
+
* OpenGraph meta tag options for social media sharing and SEO.
|
|
4
|
+
* All properties are optional and support reactive Values.
|
|
5
|
+
*/
|
|
6
|
+
export type OpenGraphOptions = {
|
|
7
|
+
/** The title of your object as it should appear within the graph */
|
|
8
|
+
title?: Value<string>;
|
|
9
|
+
/** The type of your object, e.g., "website", "article", "video.movie" */
|
|
10
|
+
type?: Value<string>;
|
|
11
|
+
/** The canonical URL of your object that will be used as its permanent ID in the graph */
|
|
12
|
+
url?: Value<string>;
|
|
13
|
+
/** An image URL which should represent your object within the graph */
|
|
14
|
+
image?: Value<string>;
|
|
15
|
+
/** A one to two sentence description of your object */
|
|
16
|
+
description?: Value<string>;
|
|
17
|
+
/** The name of the overall site */
|
|
18
|
+
siteName?: Value<string>;
|
|
19
|
+
/** The locale these tags are marked up in. Format: language_TERRITORY (default: en_US) */
|
|
20
|
+
locale?: Value<string>;
|
|
21
|
+
/** An array of other locales this page is available in */
|
|
22
|
+
localeAlternate?: Value<string[]>;
|
|
23
|
+
/** A description of what is in the image (not a caption) */
|
|
24
|
+
imageAlt?: Value<string>;
|
|
25
|
+
/** The width of the image in pixels */
|
|
26
|
+
imageWidth?: Value<number>;
|
|
27
|
+
/** The height of the image in pixels */
|
|
28
|
+
imageHeight?: Value<number>;
|
|
29
|
+
/** The MIME type of the image */
|
|
30
|
+
imageType?: Value<string>;
|
|
31
|
+
/** An array of additional image URLs */
|
|
32
|
+
images?: Value<string[]>;
|
|
33
|
+
/** A URL to a video file that complements this object */
|
|
34
|
+
video?: Value<string>;
|
|
35
|
+
/** The MIME type of the video */
|
|
36
|
+
videoType?: Value<string>;
|
|
37
|
+
/** The width of the video in pixels */
|
|
38
|
+
videoWidth?: Value<number>;
|
|
39
|
+
/** The height of the video in pixels */
|
|
40
|
+
videoHeight?: Value<number>;
|
|
41
|
+
/** A URL to a video file that complements this object (secure URL) */
|
|
42
|
+
videoSecureUrl?: Value<string>;
|
|
43
|
+
/** A URL to an audio file to accompany this object */
|
|
44
|
+
audio?: Value<string>;
|
|
45
|
+
/** The MIME type of the audio */
|
|
46
|
+
audioType?: Value<string>;
|
|
47
|
+
/** A URL to an audio file to accompany this object (secure URL) */
|
|
48
|
+
audioSecureUrl?: Value<string>;
|
|
49
|
+
/** When the article was first published (ISO 8601) */
|
|
50
|
+
publishedTime?: Value<string>;
|
|
51
|
+
/** When the article was last changed (ISO 8601) */
|
|
52
|
+
modifiedTime?: Value<string>;
|
|
53
|
+
/** When the article is out of date after (ISO 8601) */
|
|
54
|
+
expirationTime?: Value<string>;
|
|
55
|
+
/** Writers of the article */
|
|
56
|
+
author?: Value<string | string[]>;
|
|
57
|
+
/** A high-level section name */
|
|
58
|
+
section?: Value<string>;
|
|
59
|
+
/** Tag words associated with this article */
|
|
60
|
+
tags?: Value<string[]>;
|
|
61
|
+
/** A person's first name */
|
|
62
|
+
firstName?: Value<string>;
|
|
63
|
+
/** A person's last name */
|
|
64
|
+
lastName?: Value<string>;
|
|
65
|
+
/** A person's username */
|
|
66
|
+
username?: Value<string>;
|
|
67
|
+
/** A person's gender */
|
|
68
|
+
gender?: Value<string>;
|
|
69
|
+
/** The card type: "summary", "summary_large_image", "app", or "player" */
|
|
70
|
+
twitterCard?: Value<string>;
|
|
71
|
+
/** @username of website */
|
|
72
|
+
twitterSite?: Value<string>;
|
|
73
|
+
/** @username of content creator */
|
|
74
|
+
twitterCreator?: Value<string>;
|
|
75
|
+
/** Title for Twitter (falls back to og:title if not provided) */
|
|
76
|
+
twitterTitle?: Value<string>;
|
|
77
|
+
/** Description for Twitter (falls back to og:description if not provided) */
|
|
78
|
+
twitterDescription?: Value<string>;
|
|
79
|
+
/** Image URL for Twitter (falls back to og:image if not provided) */
|
|
80
|
+
twitterImage?: Value<string>;
|
|
81
|
+
/** Alt text for Twitter image */
|
|
82
|
+
twitterImageAlt?: Value<string>;
|
|
83
|
+
/** Canonical URL for SEO */
|
|
84
|
+
canonical?: Value<string>;
|
|
85
|
+
/** Robots meta tag */
|
|
86
|
+
robots?: Value<string>;
|
|
87
|
+
/** Keywords for SEO */
|
|
88
|
+
keywords?: Value<string>;
|
|
89
|
+
/** Author meta tag */
|
|
90
|
+
metaAuthor?: Value<string>;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* OpenGraph component that injects OpenGraph and Twitter Card meta tags into <head> via Portal.
|
|
94
|
+
* Supports comprehensive social media metadata for optimal sharing on platforms like Facebook,
|
|
95
|
+
* Twitter, LinkedIn, and more.
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* OpenGraph({
|
|
100
|
+
* title: 'My Awesome Page',
|
|
101
|
+
* description: 'This is a description of my page',
|
|
102
|
+
* image: 'https://example.com/image.jpg',
|
|
103
|
+
* url: 'https://example.com/page',
|
|
104
|
+
* type: 'article',
|
|
105
|
+
* siteName: 'My Site',
|
|
106
|
+
* twitterCard: 'summary_large_image',
|
|
107
|
+
* twitterSite: '@mysite',
|
|
108
|
+
* })
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
export declare const OpenGraph: (options: OpenGraphOptions) => Renderable;
|
|
@@ -19,5 +19,7 @@ export interface ButtonLinkOptions {
|
|
|
19
19
|
color?: Value<ThemeColorName | 'black' | 'white'>;
|
|
20
20
|
roundedness?: Value<RadiusName>;
|
|
21
21
|
disabled?: Value<boolean>;
|
|
22
|
+
fullWidth?: Value<boolean>;
|
|
23
|
+
loading?: Value<boolean>;
|
|
22
24
|
}
|
|
23
25
|
export declare function ButtonLink({ href, viewTransition, state, scroll, replace, target, rel, matchMode, disableWhenActive, variant, size, color, roundedness, disabled, }: ButtonLinkOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
|
|
@@ -3,7 +3,7 @@ import { OverlayEffect } from '../theme';
|
|
|
3
3
|
export interface LightboxOptions {
|
|
4
4
|
/** Whether clicking outside/Escape closes the lightbox (default: true) */
|
|
5
5
|
dismissable?: Value<boolean>;
|
|
6
|
-
/** Whether to show the close button in the top-
|
|
6
|
+
/** Whether to show the close button in the top-end corner (default: true) */
|
|
7
7
|
showCloseButton?: Value<boolean>;
|
|
8
8
|
/** Overlay effect (default: 'opaque') */
|
|
9
9
|
overlayEffect?: Value<OverlayEffect>;
|
|
@@ -13,8 +13,8 @@ export interface ModalOptions {
|
|
|
13
13
|
overlayEffect?: Value<OverlayEffect>;
|
|
14
14
|
/** Container for the overlay: 'body' (default) or 'element' (current element) */
|
|
15
15
|
container?: 'body' | 'element';
|
|
16
|
-
/** Position of the modal: 'center' (default), 'top', 'bottom', 'left', 'right', 'top-
|
|
17
|
-
position?: Value<'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-
|
|
16
|
+
/** Position of the modal: 'center' (default), 'top', 'bottom', 'left', 'right', 'top-start', 'top-end', 'bottom-start', 'bottom-end' */
|
|
17
|
+
position?: Value<'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end'>;
|
|
18
18
|
}
|
|
19
19
|
export interface ModalContentOptions {
|
|
20
20
|
/** Optional header content - if provided, overrides title */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
2
|
import type { ThemeColorName } from '@/tokens';
|
|
3
3
|
import { ExtendedColor } from '../theme/style-utils';
|
|
4
|
-
export type RibbonCorner = 'top-
|
|
4
|
+
export type RibbonCorner = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
5
5
|
export type RibbonOptions = {
|
|
6
6
|
/** Background/text color theme (defaults to 'primary') */
|
|
7
7
|
color?: Value<ThemeColorName | ExtendedColor>;
|
|
@@ -15,7 +15,7 @@ export type RibbonOptions = {
|
|
|
15
15
|
width?: Value<number | string>;
|
|
16
16
|
/** Rotation angle in degrees. Default: 45 */
|
|
17
17
|
angle?: Value<number>;
|
|
18
|
-
/** Corner position. Default: 'top-
|
|
18
|
+
/** Corner position. Default: 'top-end' */
|
|
19
19
|
corner?: Value<RibbonCorner>;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Value, type Signal } from '@tempots/dom';
|
|
1
|
+
import { TNode, Value, type Signal } from '@tempots/dom';
|
|
2
2
|
export type ToggleStatus = 'closed' | 'start-opening' | 'opening' | 'opened' | 'closing' | 'start-closing';
|
|
3
3
|
export type AnimatedToggleOptions = {
|
|
4
|
-
initialStatus?:
|
|
4
|
+
initialStatus?: ToggleStatus;
|
|
5
5
|
openedAfter: (cb: () => void) => () => void;
|
|
6
6
|
closedAfter: (cb: () => void) => () => void;
|
|
7
7
|
};
|
|
@@ -19,10 +19,10 @@ export declare function useAnimatedToggle({ initialStatus, openedAfter, closedAf
|
|
|
19
19
|
isClosing: import("@tempots/dom").Computed<boolean>;
|
|
20
20
|
isStartClosing: import("@tempots/dom").Computed<boolean>;
|
|
21
21
|
dispose: () => void;
|
|
22
|
-
|
|
22
|
+
listenOnClosed: (fn: () => void) => void;
|
|
23
23
|
};
|
|
24
24
|
export type TimedToggleOptions = {
|
|
25
|
-
initialStatus?:
|
|
25
|
+
initialStatus?: ToggleStatus;
|
|
26
26
|
openDuration?: number;
|
|
27
27
|
closeDuration?: number;
|
|
28
28
|
duration?: number;
|
|
@@ -41,10 +41,10 @@ export declare function useTimedToggle({ initialStatus, duration, openDuration,
|
|
|
41
41
|
isClosing: import("@tempots/dom").Computed<boolean>;
|
|
42
42
|
isStartClosing: import("@tempots/dom").Computed<boolean>;
|
|
43
43
|
dispose: () => void;
|
|
44
|
-
|
|
44
|
+
listenOnClosed: (fn: () => void) => void;
|
|
45
45
|
};
|
|
46
46
|
export type AnimatedElementToggleOptions = {
|
|
47
|
-
initialStatus?:
|
|
47
|
+
initialStatus?: ToggleStatus;
|
|
48
48
|
element?: HTMLElement;
|
|
49
49
|
};
|
|
50
50
|
export declare function useAnimatedElementToggle({ initialStatus, element, }?: AnimatedElementToggleOptions): {
|
|
@@ -61,8 +61,42 @@ export declare function useAnimatedElementToggle({ initialStatus, element, }?: A
|
|
|
61
61
|
isClosing: import("@tempots/dom").Computed<boolean>;
|
|
62
62
|
isStartClosing: import("@tempots/dom").Computed<boolean>;
|
|
63
63
|
dispose: () => void;
|
|
64
|
-
|
|
64
|
+
listenOnClosed: (fn: () => void) => void;
|
|
65
65
|
setElement: (value: HTMLElement) => void;
|
|
66
66
|
};
|
|
67
|
-
export type
|
|
68
|
-
export
|
|
67
|
+
export type SlideDirection = 'up' | 'down' | 'left' | 'right';
|
|
68
|
+
export type TransformOrigin = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
69
|
+
export type ComposableAnimation = {
|
|
70
|
+
fade?: boolean;
|
|
71
|
+
slide?: SlideDirection;
|
|
72
|
+
scale?: boolean | number;
|
|
73
|
+
transformOrigin?: TransformOrigin;
|
|
74
|
+
duration?: number;
|
|
75
|
+
easing?: string;
|
|
76
|
+
};
|
|
77
|
+
export type AnimationConfig = {
|
|
78
|
+
enter?: ComposableAnimation;
|
|
79
|
+
exit?: ComposableAnimation;
|
|
80
|
+
} | ComposableAnimation;
|
|
81
|
+
export declare function AnimatedToggleClass({ animation, status, }: {
|
|
82
|
+
animation?: Value<AnimationConfig>;
|
|
83
|
+
status: Signal<ToggleStatus>;
|
|
84
|
+
}): import("@tempots/dom").Renderable<import("@tempots/dom").DOMContext>;
|
|
85
|
+
export declare function AnimatedToggle({ initialStatus, animation, }: {
|
|
86
|
+
initialStatus?: ToggleStatus;
|
|
87
|
+
animation?: Value<AnimationConfig>;
|
|
88
|
+
}, render: (options: {
|
|
89
|
+
status: Signal<ToggleStatus>;
|
|
90
|
+
open: () => void;
|
|
91
|
+
close: () => void;
|
|
92
|
+
toggle: () => void;
|
|
93
|
+
setOpen: (v: boolean) => void;
|
|
94
|
+
display: Signal<boolean>;
|
|
95
|
+
isClosed: Signal<boolean>;
|
|
96
|
+
isStartOpening: Signal<boolean>;
|
|
97
|
+
isOpening: Signal<boolean>;
|
|
98
|
+
isOpened: Signal<boolean>;
|
|
99
|
+
isClosing: Signal<boolean>;
|
|
100
|
+
isStartClosing: Signal<boolean>;
|
|
101
|
+
listenOnClosed: (fn: () => void) => void;
|
|
102
|
+
}) => TNode): import("@tempots/dom").Renderable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./translations-Dw1oO6Dh.cjs"),c={loadingExtended:"لوڈ ہو رہا ہے، براہ کرم انتظار کریں",loadingShort:"لوڈ ہو رہا ہے...",locale:"زبان",iconDescription:"آئیکن",loadingIcon:"لوڈنگ آئیکن",failedToLoadIcon:"آئیکن لوڈ کرنے میں ناکام",editLabel:"ترمیم",selectOne:"ایک منتخب کریں",selectMany:"متعدد منتخب کریں",noResults:"کوئی نتیجہ نہیں",passwordPlaceholderText:"خفیہ پاس ورڈ",togglePasswordVisibility:"پاس ورڈ کی مرئیت تبدیل کریں",toggleMenu:"مینو ٹوگل کریں",toggleAside:"سائیڈ پینل ٹوگل کریں",mainNavigation:"بنیادی نیویگیشن",sidebar:"سائیڈ بار",closeDrawer:"دراز بند کریں",closeModal:"ماڈل بند کریں",confirm:"تصدیق",cancel:"منسوخ",addLabel:"شامل کریں",removeItem:"آئٹم ہٹائیں",currentLocale:"اردو",ar:"عربی",de:"جرمن",en:"انگریزی",es:"ہسپانوی",fr:"فرانسیسی",he:"عبرانی",hi:"ہندی",it:"اطالوی",ja:"جاپانی",ko:"کوریائی",nl:"ڈچ",pl:"پولش",pt:"پرتگالی",ru:"روسی",tr:"ترکی",vi:"ویتنامی",zh:"چینی",fa:"فارسی",ur:"اردو",emailPlaceholderText:"اپنا ای میل داخل کریں",incrementValue:"قدر اضافہ کریں",decrementValue:"قدر کم کریں",dropZoneInstructions:e=>e?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں، یا فائل منتخب کرنے کے لیے Enter یا Space دبائیں":"فائلیں یہاں گھسیٹیں",fileSizeUnits:["بائٹس","KB","MB","GB","TB"],removeFile:"فائل حذف کریں",clearAllFiles:"تمام فائلیں صاف کریں",clearValue:"قدر صاف کریں",unknownType:"نامعلوم قسم",filesInputInstructions:(e,t,l)=>{let n=e==null||e>1?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں":"منتخب کرنے کے لیے کلک کریں یا فائل یہاں گھسیٹیں";if(e||t){const o=[];if(e!=null&&e>1&&o.push(`زیادہ سے زیادہ ${e} فائلیں`),t&&l){const i=r.formatFileSize(t,{units:l});o.push(`ہر ایک زیادہ سے زیادہ ${i}`)}o.length>0&&(n+=` (${o.join("، ")})`)}else if(t&&l){const o=r.formatFileSize(t,{units:l});n+=` (زیادہ سے زیادہ ${o})`}return n},prosemirror:{bold:"Bold",italic:"Italic",code:"Code",link:"Link",removeLink:"Remove Link",heading:e=>`Heading ${e}`,bulletList:"Bullet List",orderedList:"Ordered List",blockquote:"Blockquote",codeBlock:"Code Block",horizontalRule:"Horizontal Rule",linkUrlPlaceholder:"https://example.com"}};exports.default=c;
|