@tempots/beatui 0.39.0 → 0.41.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/README.md +11 -11
- package/dist/{2019-1S9vgvv2.cjs → 2019-BFDr925O.cjs} +1 -1
- package/dist/{2019-DPD_eCKE.js → 2019-DnG5Y5sm.js} +2 -2
- package/dist/{2020-aLm9VmDL.js → 2020-D0-tZTo7.js} +2 -2
- package/dist/{2020-CGrbEEmD.cjs → 2020-gUs7l1CJ.cjs} +1 -1
- package/dist/{ar-B0vT_MPe.cjs → ar-BLgxAefV.cjs} +1 -1
- package/dist/{ar-CbM09z5P.js → ar-DpQo8C31.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +54 -49
- package/dist/beatui.css +216 -129
- package/dist/beatui.tailwind.css +216 -129
- package/dist/{de-tK36cL_u.cjs → de-Bv-qs--J.cjs} +1 -1
- package/dist/{de-Dd907tZQ.js → de-D1MQ4wen.js} +1 -1
- package/dist/{es-K35LRZa-.cjs → es-3r8Ko5Dn.cjs} +1 -1
- package/dist/{es-BkJxjMdG.js → es-DwPjonS7.js} +1 -1
- package/dist/{fa-BBikwwku.cjs → fa-Qw6uVZeX.cjs} +1 -1
- package/dist/{fa-DBTUBsw_.js → fa-fxf_lWjh.js} +1 -1
- package/dist/{fr-Fmupo556.js → fr-BDDsMHRZ.js} +1 -1
- package/dist/{fr-DMtXrrnJ.cjs → fr-pVhG9qik.cjs} +1 -1
- package/dist/{he-DkI64oaY.js → he-B4deK_wE.js} +1 -1
- package/dist/{he-on3Ivp8g.cjs → he-D-fvzfe1.cjs} +1 -1
- package/dist/{hi-GdD5MihT.js → hi-CxQT8nRD.js} +1 -1
- package/dist/{hi-CNFV8ITE.cjs → hi-DKgxHzmH.cjs} +1 -1
- package/dist/{index-BK8t6gqu.js → index-Acyxme63.js} +680 -677
- package/dist/{index-e8oQ-k0x.cjs → index-BZ2AX5sk.cjs} +4 -4
- package/dist/{index-BfFlhmAq.js → index-BwEJlbG2.js} +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-BkQ7xHgi.js → index-CWq36UAJ.js} +770 -757
- package/dist/{index-Bv2gn_kV.cjs → index-ClFVnBUS.cjs} +3 -3
- package/dist/{index-LUItEwlw.js → index-Clw0AwwJ.js} +1 -1
- package/dist/{index-wdi93sK4.cjs → index-DRDJFYRb.cjs} +1 -1
- package/dist/{index-CKyH3jwP.cjs → index-KPHFBjQB.cjs} +1 -1
- package/dist/{index-BA93M8Ux.cjs → index-Lj0QS2po.cjs} +1 -1
- package/dist/{index-CPBlySmE.cjs → index-nVVPqgLq.cjs} +12 -12
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +2200 -2181
- package/dist/{it-Bpnfd60V.js → it-6QS5PWzQ.js} +1 -1
- package/dist/{it-BDOzBRkQ.cjs → it-Ck0r9TO3.cjs} +1 -1
- package/dist/{ja-SjlGNgs9.js → ja-D2VvVGEN.js} +1 -1
- package/dist/{ja-N-7c7zD7.cjs → ja-D6b9suYB.cjs} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-CH69ZNts.js → ko-CP_WopWz.js} +1 -1
- package/dist/{ko-BBeTXIlY.cjs → ko-CzvM2Bjv.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/modal-BmSRMdY9.cjs +1 -0
- package/dist/{modal-BD76Rve3.js → modal-DMc-R2VT.js} +234 -209
- package/dist/{nl-DnvMlW8v.js → nl-DZ4dFolZ.js} +1 -1
- package/dist/{nl-C2C9QDH2.cjs → nl-_9vJc8JD.cjs} +1 -1
- package/dist/{notice-CQZseCQs.js → notice-B5Yn_3Ay.js} +205 -195
- package/dist/notice-D3P0lewM.cjs +2 -0
- package/dist/{pl-CBEX2qN1.js → pl-BE81iFSF.js} +1 -1
- package/dist/{pl-sNBCzEUd.cjs → pl-DKcVCojx.cjs} +1 -1
- package/dist/prosemirror/index.cjs.js +1 -1
- package/dist/prosemirror/index.es.js +1 -1
- package/dist/{pt-ByFqFAdQ.js → pt-BcCdXUA2.js} +1 -1
- package/dist/{pt-Bvxg9VEA.cjs → pt-DNVS1_MF.cjs} +1 -1
- package/dist/{ru-6d5JfoDw.js → ru-Bo_jc3s1.js} +1 -1
- package/dist/{ru-CPAdsn4m.cjs → ru-DTn9Rssv.cjs} +1 -1
- package/dist/{toolbar-Cl_TAa3r.js → toolbar-DhD5GmMa.js} +1 -1
- package/dist/{toolbar-Dw2VQD9y.cjs → toolbar-jPGzdJGi.cjs} +1 -1
- package/dist/{tr-IKZtCQQR.cjs → tr-BhTJYHQ3.cjs} +1 -1
- package/dist/{tr-gv4vJfm8.js → tr-CBw3FlOg.js} +1 -1
- package/dist/{translations-DXLmnUiB.js → translations-B0HuWYIz.js} +1 -1
- package/dist/{translations-CK426qyd.cjs → translations-B7_3phoA.cjs} +1 -1
- package/dist/translations-C21osktO.cjs +1 -0
- package/dist/{translations-djDSPqdb.js → translations-D-fMB_IO.js} +212 -183
- package/dist/types/components/form/controller/color-controller.d.ts +1 -1
- package/dist/types/components/form/input/color-input.d.ts +2 -5
- package/dist/types/components/form/input/color-swatch-input.d.ts +9 -0
- package/dist/types/components/form/input/index.d.ts +1 -0
- package/dist/types/components/form/input/input-container.d.ts +7 -0
- package/dist/types/components/misc/notification-provider.d.ts +3 -3
- package/dist/types/utils/{color-validation.d.ts → color.d.ts} +13 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/use-animated-toggle.d.ts +17 -4
- package/dist/{ur-Bgq_2yjr.cjs → ur-BjuXyU8Z.cjs} +1 -1
- package/dist/{ur-Bo6bjEBS.js → ur-BsXnPgxd.js} +1 -1
- package/dist/utils-BOEQMy82.js +2512 -0
- package/dist/utils-DH-SYrQg.cjs +1 -0
- package/dist/{vi-BrUQnj-8.cjs → vi-CvsTHMkK.cjs} +1 -1
- package/dist/{vi-xDLJ3TIx.js → vi-D1rLo6MX.js} +1 -1
- package/dist/{zh-BivWxJJh.js → zh-BoLsjdfz.js} +1 -1
- package/dist/{zh-BqH1Cioq.cjs → zh-zh1FJ4Ud.cjs} +1 -1
- package/package.json +4 -3
- package/dist/modal-DQycMZ8_.cjs +0 -1
- package/dist/notice-CFoc4PJe.cjs +0 -2
- package/dist/translations-DJR65Jii.cjs +0 -1
- package/dist/utils-Bsrfm-0d.cjs +0 -1
- package/dist/utils-Bw911Eo4.js +0 -2418
|
@@ -63,7 +63,7 @@ export declare function createColorController(controller: Controller<string>): C
|
|
|
63
63
|
/**
|
|
64
64
|
* Helper function to create color input options from a ColorController
|
|
65
65
|
* @param controller - The ColorController instance
|
|
66
|
-
* @returns Input options compatible with
|
|
66
|
+
* @returns Input options compatible with ColorSwatchInput component
|
|
67
67
|
*/
|
|
68
68
|
export declare function colorInputOptionsFromController(controller: ColorController): {
|
|
69
69
|
id: string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { Value } from '@tempots/dom';
|
|
1
|
+
import { Renderable, Value } from '@tempots/dom';
|
|
2
2
|
import { InputOptions } from './input-options';
|
|
3
3
|
export type ColorInputOptions = InputOptions<string> & {
|
|
4
|
-
displayValue?: Value<boolean>;
|
|
5
4
|
size?: Value<number>;
|
|
6
|
-
withAlpha?: Value<boolean>;
|
|
7
|
-
colorTextFormat?: Value<'hex' | 'rgb' | 'hsl' | 'hwb' | 'oklch'>;
|
|
8
5
|
};
|
|
9
|
-
export declare
|
|
6
|
+
export declare function ColorInput(options: ColorInputOptions): Renderable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Value } from '@tempots/dom';
|
|
2
|
+
import { InputOptions } from './input-options';
|
|
3
|
+
export type ColorSwatchInputOptions = InputOptions<string> & {
|
|
4
|
+
displayValue?: Value<boolean>;
|
|
5
|
+
size?: Value<number>;
|
|
6
|
+
withAlpha?: Value<boolean>;
|
|
7
|
+
colorTextFormat?: Value<'hex' | 'rgb' | 'hsl' | 'hwb' | 'oklch'>;
|
|
8
|
+
};
|
|
9
|
+
export declare const ColorSwatchInput: (options: ColorSwatchInputOptions) => import("@tempots/dom").Renderable;
|
|
@@ -3,6 +3,7 @@ export * from './base64-input';
|
|
|
3
3
|
export * from './base64s-input';
|
|
4
4
|
export * from './checkbox-input';
|
|
5
5
|
export * from './color-input';
|
|
6
|
+
export * from './color-swatch-input';
|
|
6
7
|
export * from './dropdown-input';
|
|
7
8
|
export * from './dropdown-base';
|
|
8
9
|
export * from './combobox-input';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TNode, Value } from '@tempots/dom';
|
|
2
2
|
import { ControlSize } from '../../theme';
|
|
3
|
+
import { ThemeColorName } from '@/tokens';
|
|
4
|
+
export declare function generateInputContainerInputClasses(baseContainer: boolean, size: ControlSize): string;
|
|
3
5
|
export declare const InputContainer: ({ baseContainer, disabled, input, before, after, hasError, focusableSelector, growInput, size, }: {
|
|
4
6
|
disabled?: Value<boolean>;
|
|
5
7
|
input: TNode;
|
|
@@ -11,3 +13,8 @@ export declare const InputContainer: ({ baseContainer, disabled, input, before,
|
|
|
11
13
|
baseContainer?: Value<boolean>;
|
|
12
14
|
size?: Value<ControlSize>;
|
|
13
15
|
}, ...children: TNode[]) => import("@tempots/dom").Renderable;
|
|
16
|
+
export declare function InputIcon({ icon, size, color, }: {
|
|
17
|
+
icon: Value<string>;
|
|
18
|
+
size?: Value<ControlSize>;
|
|
19
|
+
color?: Value<ThemeColorName>;
|
|
20
|
+
}): import("@tempots/dom").Renderable;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Provider, Signal, TNode } from '@tempots/dom';
|
|
2
2
|
import { NotificationOptions } from './notification';
|
|
3
3
|
import { RadiusName, ThemeColorName } from '@/tokens';
|
|
4
|
-
import {
|
|
4
|
+
import { AnimationConfig } from '@/utils';
|
|
5
5
|
type NotificationEntry = {
|
|
6
|
-
animation:
|
|
6
|
+
animation: AnimationConfig;
|
|
7
7
|
children: TNode[];
|
|
8
8
|
loading: Signal<boolean>;
|
|
9
9
|
withCloseButton: Signal<boolean>;
|
|
@@ -17,7 +17,7 @@ type NotificationEntry = {
|
|
|
17
17
|
delayedClose?: Promise<void>;
|
|
18
18
|
};
|
|
19
19
|
export type ShowNotificationOptions = NotificationOptions & {
|
|
20
|
-
animation?:
|
|
20
|
+
animation?: AnimationConfig;
|
|
21
21
|
dismissAfter?: number | Promise<void>;
|
|
22
22
|
};
|
|
23
23
|
export type NotificationShowFn = (options: ShowNotificationOptions, ...children: TNode[]) => void;
|
|
@@ -62,3 +62,16 @@ export declare function hexToRgb(hex: string): {
|
|
|
62
62
|
* @returns contrast ratio or null if invalid colors
|
|
63
63
|
*/
|
|
64
64
|
export declare function getContrastRatio(color1: string, color2: string): number | null;
|
|
65
|
+
export declare function parseAnyColor(v: string): [number, number, number, number];
|
|
66
|
+
export declare function toRgbaString(r: number, g: number, b: number, a: number): string;
|
|
67
|
+
export declare function mulberry32(seed: number): () => number;
|
|
68
|
+
export declare function hslToRgb(h: number, s: number, l: number): [number, number, number];
|
|
69
|
+
export declare function hwbToRgb(h: number, w: number, bl: number): [number, number, number];
|
|
70
|
+
export declare function rgbToHsl(r: number, g: number, b: number): [number, number, number];
|
|
71
|
+
export declare function rgbToHwb(r: number, g: number, b: number): [number, number, number];
|
|
72
|
+
export declare function srgbToLinear(u: number): number;
|
|
73
|
+
export declare function linearToSrgb(u: number): number;
|
|
74
|
+
export declare function oklchToRgb(L: number, C: number, hDeg: number): [number, number, number];
|
|
75
|
+
export declare function rgbToOklch(r: number, g: number, b: number): [number, number, number];
|
|
76
|
+
export declare function formatColor(r: number, g: number, b: number, a: number, fmt: 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hwb' | 'oklch', alphaEnabled?: boolean): string;
|
|
77
|
+
export declare function resolveEffectiveFormat(fmt: 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hwb' | 'oklch', alphaEnabled: boolean): 'hex' | 'rgb' | 'rgba' | 'hsl' | 'hsla' | 'hwb' | 'oklch';
|
|
@@ -64,14 +64,27 @@ export declare function useAnimatedElementToggle({ initialStatus, element, }?: A
|
|
|
64
64
|
listenOnClosed: (fn: () => void) => void;
|
|
65
65
|
setElement: (value: HTMLElement) => void;
|
|
66
66
|
};
|
|
67
|
-
export type
|
|
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;
|
|
68
81
|
export declare function AnimatedToggleClass({ animation, status, }: {
|
|
69
|
-
animation?: Value<
|
|
82
|
+
animation?: Value<AnimationConfig>;
|
|
70
83
|
status: Signal<ToggleStatus>;
|
|
71
|
-
}): import("@tempots/dom").Renderable
|
|
84
|
+
}): import("@tempots/dom").Renderable<import("@tempots/dom").DOMContext>;
|
|
72
85
|
export declare function AnimatedToggle({ initialStatus, animation, }: {
|
|
73
86
|
initialStatus?: ToggleStatus;
|
|
74
|
-
animation?: Value<
|
|
87
|
+
animation?: Value<AnimationConfig>;
|
|
75
88
|
}, render: (options: {
|
|
76
89
|
status: Signal<ToggleStatus>;
|
|
77
90
|
open: () => void;
|
|
@@ -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-C21osktO.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;
|