@tempots/beatui 0.23.0 → 0.24.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 +9 -0
- package/dist/{2019-DsAbc1I5.cjs → 2019-7ojCcWUJ.cjs} +1 -1
- package/dist/{2019-BD_R8GCb.js → 2019-JwkYbae8.js} +2 -2
- package/dist/{2020-j6NLRYni.cjs → 2020-BLYgDBO4.cjs} +1 -1
- package/dist/{2020-DZOE7XZH.js → 2020-kK0rQWn9.js} +2 -2
- package/dist/{ar-CYAprS9_.cjs → ar-BAb4yHZS.cjs} +1 -1
- package/dist/{ar-DuYtkwHz.js → ar-BgrUqaxG.js} +1 -1
- package/dist/auth/index.cjs.js +1 -1
- package/dist/auth/index.es.js +3 -3
- package/dist/beatui.css +610 -391
- package/dist/beatui.tailwind.css +606 -391
- package/dist/{colors-B8HoRLA_.cjs → colors-Qc1mmmfr.cjs} +1 -1
- package/dist/{colors-5Nwx_gSj.js → colors-WfmhQ5e1.js} +63 -67
- package/dist/{de-BSxDfb1B.js → de-D_sdCcAw.js} +1 -1
- package/dist/{de-rQvC-Ydh.cjs → de-Dn2CdXgD.cjs} +1 -1
- package/dist/{es-BvmzhRc0.cjs → es-CEPxKSog.cjs} +1 -1
- package/dist/{es-CAIPTBfa.js → es-DczvLqEV.js} +1 -1
- package/dist/{fa-COTldXuh.js → fa-DhPP5Tgo.js} +1 -1
- package/dist/{fa-B3IJgHCh.cjs → fa-NvkKjIQ6.cjs} +1 -1
- package/dist/{fr-Djxzcm-x.js → fr-D3WwoeQg.js} +1 -1
- package/dist/{fr-C9hsLGOb.cjs → fr-cR59lx1A.cjs} +1 -1
- package/dist/{he-C_CvtpO2.js → he-CFhi-6Rs.js} +1 -1
- package/dist/{he-CHrcixO3.cjs → he-CxSHPJMg.cjs} +1 -1
- package/dist/{hi-C47vc5OG.js → hi-Cqy8JcS7.js} +1 -1
- package/dist/{hi-CpbCblie.cjs → hi-DLnz3lCX.cjs} +1 -1
- package/dist/{index-CeyxEbJL.cjs → index-0nXL1jt0.cjs} +1 -1
- package/dist/{index-C0yFCSoy.cjs → index-4MNPHZD0.cjs} +1 -1
- package/dist/{index-YbpU8b-b.cjs → index-4pbqdHdu.cjs} +1 -1
- package/dist/{index-m-1yJOxv.js → index-5kvan4pZ.js} +3 -3
- package/dist/{index--c2sxg96.js → index-8xL7lFvb.js} +2 -2
- package/dist/{index-KlPMACee.js → index-B8jOeOOB.js} +2 -2
- package/dist/{index-CW3QYddJ.js → index-BCaOVY88.js} +2 -2
- package/dist/{index-CsPpB1Kw.js → index-BICIDfB6.js} +1 -1
- package/dist/{index-BNQL8moK.js → index-BKHqr1z2.js} +2 -2
- package/dist/{index-BiHxJSI9.js → index-BSaEXg56.js} +3 -3
- package/dist/{index-B8EM1O9d.cjs → index-BSfK-Qwf.cjs} +1 -1
- package/dist/{index-SP-G4Erl.cjs → index-Bc-5l3Cz.cjs} +1 -1
- package/dist/{index-CjQ-nqcq.js → index-BeoVum6H.js} +1 -1
- package/dist/{index-BJZGXsLQ.cjs → index-Bk0BtvLD.cjs} +1 -1
- package/dist/{index-BUE3WeDh.cjs → index-BvXl7BJD.cjs} +1 -1
- package/dist/{index-DS0bdfOa.cjs → index-BzaR8uM1.cjs} +1 -1
- package/dist/{index-BIBYSE0O.js → index-C5uZbosj.js} +3 -3
- package/dist/{index-CcB11LV-.cjs → index-C7L2gKXf.cjs} +1 -1
- package/dist/{index-BtAze4TI.js → index-C7NeFFtL.js} +3 -3
- package/dist/{index-DtpMK8Ak.js → index-CEvEqrWz.js} +2 -2
- package/dist/{index-o4bA2Ymm.cjs → index-CGAE3ijj.cjs} +1 -1
- package/dist/{index-2J0cohRF.js → index-CJIznGSs.js} +2 -2
- package/dist/{index-h82qauh2.js → index-CKRtOTlW.js} +4 -4
- package/dist/{index-OUX19p46.js → index-CN4vYjXL.js} +2 -2
- package/dist/{index-CtlfDEiP.cjs → index-CPUSDEhf.cjs} +1 -1
- package/dist/{index-DPHERztz.cjs → index-CTiwmXQv.cjs} +1 -1
- package/dist/{index-c5HMVa4V.cjs → index-CflXJ8xJ.cjs} +1 -1
- package/dist/{index-BK8EFVAw.cjs → index-CgH6d8ie.cjs} +1 -1
- package/dist/{index-C4wKda5M.js → index-CiwYKSUt.js} +2 -2
- package/dist/{index-jLIz3LSI.js → index-Cwsc5H7D.js} +2 -2
- package/dist/{index-BLjWV-YV.cjs → index-D1rYqvi5.cjs} +2 -2
- package/dist/{index-BXHmDsV_.js → index-D6aavhaa.js} +2 -2
- package/dist/{index-C_T9Gzw8.js → index-DAdi5JJz.js} +2 -2
- package/dist/{index-CSK499Fw.cjs → index-DKyf2VGu.cjs} +1 -1
- package/dist/{index-CBlls5Ux.cjs → index-DXB8LND-.cjs} +1 -1
- package/dist/{index-D7a7hidA.js → index-DYmfX0jE.js} +100 -100
- package/dist/{index-_0aF8UPX.js → index-DZRUtuQ1.js} +2 -2
- package/dist/{index-CQcRWw-d.js → index-DqP1O6vK.js} +2 -2
- package/dist/{index-D3y-KMW-.js → index-Dr0vUVGJ.js} +4 -4
- package/dist/{index-CngY8bhO.cjs → index-DrNo6z9a.cjs} +1 -1
- package/dist/{index-C-UADaTN.cjs → index-Dsgj-jNd.cjs} +1 -1
- package/dist/index-Dvc6ZVJ3.cjs +1 -0
- package/dist/index-OrV7N-wE.js +680 -0
- package/dist/{index-Du_-zpYu.js → index-SPJ46EtH.js} +4 -4
- package/dist/{index-zcRhAq4N.cjs → index-ZuS9yWom.cjs} +1 -1
- package/dist/{index-BHOzetMx.cjs → index-ljok1ep6.cjs} +1 -1
- package/dist/{index-BIbSEVsf.cjs → index-uOI0LXHI.cjs} +1 -1
- package/dist/{index-jr-7RW3y.cjs → index-zvVNcjMi.cjs} +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1731 -1731
- package/dist/{it-iA1CUA-2.cjs → it-C7Kv6j-_.cjs} +1 -1
- package/dist/{it-l8u4xqsP.js → it-CtMArqSp.js} +1 -1
- package/dist/{ja-CRKtLvpo.cjs → ja-BPL80aw5.cjs} +1 -1
- package/dist/{ja-Dr2Azv8X.js → ja-UFqZT78C.js} +1 -1
- package/dist/json-schema/index.cjs.js +1 -1
- package/dist/json-schema/index.es.js +1 -1
- package/dist/{ko-C97MbNN9.js → ko-B5LB1_X_.js} +1 -1
- package/dist/{ko-DAqjjbor.cjs → ko-Cmt_34Xp.cjs} +1 -1
- package/dist/markdown/index.cjs.js +1 -1
- package/dist/markdown/index.es.js +1 -1
- package/dist/markdown.css +52 -3
- package/dist/milkdown/index.cjs.js +1 -1
- package/dist/milkdown/index.es.js +1 -1
- package/dist/{milkdown-input-Dp-upGqQ.js → milkdown-input-BI5TwGax.js} +26 -26
- package/dist/{milkdown-input-EMBZNdma.cjs → milkdown-input-CdJ7N_YZ.cjs} +2 -2
- package/dist/{milkdown-url-DgMTahqt.js → milkdown-url-D99P-nA-.js} +1 -1
- package/dist/{milkdown-url-DjKYrEOH.cjs → milkdown-url-DqoUZH3u.cjs} +1 -1
- package/dist/milkdown.css +4 -4
- package/dist/{modal-at2TcO_O.js → modal-C2Aa-aVN.js} +1 -1
- package/dist/{modal-hr4K3edu.cjs → modal-UsqvSvHy.cjs} +1 -1
- package/dist/{nl-CCa2fPh7.cjs → nl-B-WL9SX2.cjs} +1 -1
- package/dist/{nl-BnDPAHZz.js → nl-DCfHVqzQ.js} +1 -1
- package/dist/notice-C7I6EmRh.cjs +1 -0
- package/dist/{notice-DhynzVip.js → notice-c9Vbv45l.js} +836 -821
- package/dist/{pl-BVuQd0i3.cjs → pl-TGqkSi2w.cjs} +1 -1
- package/dist/{pl-DYEVmpx5.js → pl-UcTv39q1.js} +1 -1
- package/dist/{pt-C-cIHGoh.js → pt-CXsgmVtb.js} +1 -1
- package/dist/{pt-BFGThC8F.cjs → pt-Ua_e-1JE.cjs} +1 -1
- package/dist/{ru-M4WO0h1a.cjs → ru-9YWCN6fR.cjs} +1 -1
- package/dist/{ru-n2tT3Gv-.js → ru-C0MvZW2g.js} +1 -1
- package/dist/styles-url-B3p8AqBy.cjs +1 -0
- package/dist/styles-url-COuz9fVH.js +4 -0
- package/dist/tailwind/index.cjs.js +1 -1
- package/dist/tailwind/index.es.js +2 -2
- package/dist/tailwind/preset.cjs.js +1 -1
- package/dist/tailwind/preset.es.js +3 -3
- package/dist/tailwind/vite-plugin.cjs.js +13 -6
- package/dist/tailwind/vite-plugin.es.js +478 -161
- package/dist/{tr-CFUAqbmS.js → tr-CIIkc1uL.js} +1 -1
- package/dist/{tr-KxY4CbD3.cjs → tr-D70Oy8aN.cjs} +1 -1
- package/dist/{translations-DGCYRUSw.js → translations-CB6iJ1Rn.js} +1 -1
- package/dist/translations-DpZ-btu9.cjs +2 -0
- package/dist/{translations-924E7r4Q.js → translations-GO9sIajX.js} +235 -203
- package/dist/{translations-Do79R-x4.cjs → translations-NYxsXjMT.cjs} +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/form/input/checkbox-input.d.ts +8 -1
- package/dist/types/components/form/input/switch.d.ts +3 -1
- package/dist/types/components/misc/notice.d.ts +1 -1
- package/dist/types/components/navigation/link/link.d.ts +1 -1
- package/dist/types/components/theme/types.d.ts +1 -1
- package/dist/types/components/typography/label.d.ts +1 -1
- package/dist/types/tailwind/google-fonts.d.ts +45 -0
- package/dist/types/tailwind/preset.d.ts +34 -0
- package/dist/types/tailwind/vite-plugin.d.ts +4 -0
- package/dist/types/tokens/colors.d.ts +6 -6
- package/dist/types/tokens/index.d.ts +19 -1
- package/dist/types/tokens/motion.d.ts +25 -0
- package/dist/types/tokens/radius.d.ts +5 -0
- package/dist/types/tokens/shadows.d.ts +5 -0
- package/dist/types/tokens/spacing.d.ts +5 -0
- package/dist/types/tokens/text-shadows.d.ts +5 -0
- package/dist/types/tokens/typography.d.ts +9 -1
- package/dist/{ur-B7kT0PwV.js → ur-Cpx9oyTV.js} +1 -1
- package/dist/{ur-GeXcd9eA.cjs → ur-DmxXuJ9O.cjs} +1 -1
- package/dist/{vi-DYvrvqim.cjs → vi-Cboo_ueb.cjs} +1 -1
- package/dist/{vi-CA85io1z.js → vi-D24AUQ01.js} +1 -1
- package/dist/{zh-cLh5uTFh.js → zh-25YFRjoV.js} +1 -1
- package/dist/{zh-EIWIyzbZ.cjs → zh-BXivX7rD.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-Br70wXYb.cjs +0 -1
- package/dist/index-DVdM4Oz7.js +0 -420
- package/dist/notice-CplKL-zm.cjs +0 -1
- package/dist/styles-url-CIhMtnm4.js +0 -4
- package/dist/styles-url-SkuBc_7K.cjs +0 -1
- package/dist/translations-BtAHDMLA.cjs +0 -2
|
@@ -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-DpZ-btu9.cjs"),s={signInTitle:"Sign In",signInButton:"Sign In",emailLabel:"Email",passwordLabel:"Password",rememberMeLabel:"Remember me",forgotPasswordLink:"Forgot password?",noAccountLink:"Don't have an account? Sign up",signUpTitle:"Sign Up",signUpButton:"Sign Up",nameLabel:"Name",confirmPasswordLabel:"Confirm Password",acceptTermsLabel:"I accept the terms and conditions",hasAccountLink:"Already have an account? Sign in",resetPasswordTitle:"Reset Password",resetPasswordButton:"Reset Password",resetPasswordDescription:"Enter your email to reset your password.",backToSignInLink:"Back to sign in",continueWithProvider:e=>`Continue with ${e}`,passwordStrengthWeak:"Weak",passwordStrengthFair:"Fair",passwordStrengthGood:"Good",passwordStrengthStrong:"Strong",orDivider:"or",error:"An error occurred",required:"Required",authenticationTitle:"Authentication"},o=Object.freeze(Object.defineProperty({__proto__:null,default:s},Symbol.toStringTag,{value:"Module"})),t=s,n="en",i=r.makeI18nProvider({defaultLocale:n,defaultMessages:t,localeLoader:async e=>(await r.__variableDynamicImportRuntimeHelper(Object.assign({"./locales/ar.ts":()=>Promise.resolve().then(()=>require("./ar-BsUm-TCn.cjs")),"./locales/de.ts":()=>Promise.resolve().then(()=>require("./de-BUFLEyKr.cjs")),"./locales/en.ts":()=>Promise.resolve().then(()=>o),"./locales/es.ts":()=>Promise.resolve().then(()=>require("./es-BxBeTRCv.cjs")),"./locales/fa.ts":()=>Promise.resolve().then(()=>require("./fa-DxPseW3g.cjs")),"./locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-Cdyopuz3.cjs")),"./locales/he.ts":()=>Promise.resolve().then(()=>require("./he-DarDNPn0.cjs")),"./locales/hi.ts":()=>Promise.resolve().then(()=>require("./hi-tATwsXJ6.cjs")),"./locales/it.ts":()=>Promise.resolve().then(()=>require("./it-BmFag7j0.cjs")),"./locales/ja.ts":()=>Promise.resolve().then(()=>require("./ja-Dj-bAKLf.cjs")),"./locales/ko.ts":()=>Promise.resolve().then(()=>require("./ko-BomUE-yQ.cjs")),"./locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-Dr-l6zUy.cjs")),"./locales/pl.ts":()=>Promise.resolve().then(()=>require("./pl-BK0i_yvq.cjs")),"./locales/pt.ts":()=>Promise.resolve().then(()=>require("./pt-oBMmVYcu.cjs")),"./locales/ru.ts":()=>Promise.resolve().then(()=>require("./ru-CtxMmoa6.cjs")),"./locales/tr.ts":()=>Promise.resolve().then(()=>require("./tr-CgJ8uhZu.cjs")),"./locales/ur.ts":()=>Promise.resolve().then(()=>require("./ur-DvqAg9gW.cjs")),"./locales/vi.ts":()=>Promise.resolve().then(()=>require("./vi-D5R3YcU0.cjs")),"./locales/zh.ts":()=>Promise.resolve().then(()=>require("./zh-CCGXcj5r.cjs"))}),`./locales/${e}.ts`,3)).default,providerName:"AuthI18n"});exports.AuthI18n=i;
|
|
@@ -13,6 +13,6 @@ export interface ButtonOptions {
|
|
|
13
13
|
roundedness?: Value<RadiusName>;
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
}
|
|
16
|
-
export declare function generateButtonClasses(
|
|
16
|
+
export declare function generateButtonClasses(size: ControlSize, roundedness: RadiusName, loading?: boolean): string;
|
|
17
17
|
export declare function generateButtonStyles(variant: ButtonVariant, color: ExtendedColor, disabled?: boolean): string;
|
|
18
18
|
export declare function Button({ type, disabled, loading, variant, size, color, roundedness, onClick, }: ButtonOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { Value } from '@tempots/dom';
|
|
1
2
|
import { InputOptions } from './input-options';
|
|
2
|
-
|
|
3
|
+
import { IconSize } from '../../theme';
|
|
4
|
+
export type CheckboxInputOptions = InputOptions<boolean> & {
|
|
5
|
+
checkedIcon?: Value<string | undefined>;
|
|
6
|
+
uncheckedIcon?: Value<string | undefined>;
|
|
7
|
+
iconSize?: Value<IconSize>;
|
|
8
|
+
};
|
|
9
|
+
export declare const CheckboxInput: (options: CheckboxInputOptions) => import("@tempots/dom").Renderable;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Value, TNode } from '@tempots/dom';
|
|
2
2
|
import { ControlSize } from '../../theme/types';
|
|
3
|
+
import { ThemeColorName } from '@/tokens';
|
|
3
4
|
export type SwitchOptions = {
|
|
4
5
|
value: Value<boolean>;
|
|
5
6
|
onChange: (value: boolean) => void;
|
|
@@ -9,5 +10,6 @@ export type SwitchOptions = {
|
|
|
9
10
|
disabled?: Value<boolean>;
|
|
10
11
|
size?: ControlSize;
|
|
11
12
|
id?: string;
|
|
13
|
+
color?: Value<ThemeColorName>;
|
|
12
14
|
};
|
|
13
|
-
export declare const Switch: ({ value, onChange, offLabel, onLabel, label, disabled, size, id, }: SwitchOptions) => import("@tempots/dom").Renderable;
|
|
15
|
+
export declare const Switch: ({ value, onChange, offLabel, onLabel, label, disabled, size, id, color, }: SwitchOptions) => import("@tempots/dom").Renderable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TNode, Value, Renderable } from '@tempots/dom';
|
|
2
|
-
export type NoticeVariant = 'info' | 'success' | 'warning' | '
|
|
2
|
+
export type NoticeVariant = 'info' | 'success' | 'warning' | 'danger';
|
|
3
3
|
export type NoticeTone = 'subtle' | 'prominent';
|
|
4
4
|
export type NoticeRole = 'status' | 'alert';
|
|
5
5
|
export type NoticeOptions = {
|
|
@@ -15,6 +15,6 @@ export interface LinkOptions {
|
|
|
15
15
|
target?: Value<string>;
|
|
16
16
|
rel?: Value<string>;
|
|
17
17
|
}
|
|
18
|
-
export declare function generateLinkClasses(variant: LinkVariant,
|
|
18
|
+
export declare function generateLinkClasses(variant: LinkVariant, disabled: boolean): string;
|
|
19
19
|
export declare function generateLinkStyles(color: ThemeColorName): string;
|
|
20
20
|
export declare function Link({ href, variant, color, colorDisabled, disabled, viewTransition, state, scroll, replace, target, rel, }: LinkOptions, ...children: TNode[]): import("@tempots/dom").Renderable;
|
|
@@ -11,7 +11,7 @@ export type FadeTransitionState = 'initial' | 'entering' | 'entered' | 'exiting'
|
|
|
11
11
|
export type Side = 'left' | 'right' | 'top' | 'bottom' | 'none' | 'all' | ('left' | 'right' | 'top' | 'bottom')[];
|
|
12
12
|
export type PanelColor = BackgroundColorName | ThemeColorName | 'white' | 'black' | 'transparent';
|
|
13
13
|
export type PanelShadow = 'none' | 'sm' | 'md' | 'lg';
|
|
14
|
-
export type LabelType = 'emphasis' | 'default' | 'muted' | '
|
|
14
|
+
export type LabelType = 'emphasis' | 'default' | 'muted' | 'danger';
|
|
15
15
|
export type JustifyContent = 'flex-start' | 'flex-end' | 'safe flex-end' | 'center' | 'safe center' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'baseline' | 'normal';
|
|
16
16
|
export type JustifyItems = 'start' | 'end' | 'safe end' | 'center' | 'safe center' | 'stretch' | 'normal';
|
|
17
17
|
export type JustifySelf = 'auto' | 'start' | 'center' | 'safe center' | 'end' | 'safe end' | 'stretch';
|
|
@@ -2,4 +2,4 @@ import { TNode } from '@tempots/dom';
|
|
|
2
2
|
export declare const EmphasisLabel: (...children: TNode[]) => import("@tempots/dom").Renderable;
|
|
3
3
|
export declare const Label: (...children: TNode[]) => import("@tempots/dom").Renderable;
|
|
4
4
|
export declare const MutedLabel: (...children: TNode[]) => import("@tempots/dom").Renderable;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const DangerLabel: (...children: TNode[]) => import("@tempots/dom").Renderable;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export type GoogleFontStyle = 'normal' | 'italic';
|
|
2
|
+
export type GoogleFontDisplay = 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
|
|
3
|
+
export interface GoogleFontRequest {
|
|
4
|
+
family: string;
|
|
5
|
+
/**
|
|
6
|
+
* List of numeric font weights to request from Google Fonts (e.g., [400, 500, 700]).
|
|
7
|
+
* When omitted, Google Fonts will serve the default variation (usually 400).
|
|
8
|
+
*/
|
|
9
|
+
weights?: readonly number[];
|
|
10
|
+
/**
|
|
11
|
+
* Font styles to request. Defaults to ['normal'].
|
|
12
|
+
*/
|
|
13
|
+
styles?: readonly GoogleFontStyle[];
|
|
14
|
+
/**
|
|
15
|
+
* Optional font-display strategy to pass to Google Fonts.
|
|
16
|
+
*/
|
|
17
|
+
display?: GoogleFontDisplay;
|
|
18
|
+
/**
|
|
19
|
+
* Target subsets (e.g., ['latin', 'latin-ext']).
|
|
20
|
+
*/
|
|
21
|
+
subsets?: readonly string[];
|
|
22
|
+
/**
|
|
23
|
+
* Optional `text=` filter passed to Google Fonts to trim the character set.
|
|
24
|
+
*/
|
|
25
|
+
text?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface GoogleFontAsset {
|
|
28
|
+
url: string;
|
|
29
|
+
fileName: string;
|
|
30
|
+
localPath: string;
|
|
31
|
+
placeholder: string;
|
|
32
|
+
}
|
|
33
|
+
export interface GoogleFontPreparationResult {
|
|
34
|
+
cssText: string;
|
|
35
|
+
assets: GoogleFontAsset[];
|
|
36
|
+
}
|
|
37
|
+
interface PrepareGoogleFontsOptions {
|
|
38
|
+
projectRoot: string;
|
|
39
|
+
requests: readonly GoogleFontRequest[];
|
|
40
|
+
cacheDir?: string;
|
|
41
|
+
logger?: (message: string) => void;
|
|
42
|
+
}
|
|
43
|
+
export declare function prepareGoogleFonts(options: PrepareGoogleFontsOptions): Promise<GoogleFontPreparationResult | null>;
|
|
44
|
+
export declare function buildGoogleFontCssUrl(request: GoogleFontRequest): string;
|
|
45
|
+
export {};
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { type SemanticColorOverrides } from '../tokens/colors';
|
|
2
|
+
import type { FontFamilyOverrides, SemanticFontOverrides } from '../tokens/typography';
|
|
3
|
+
import type { SemanticRadiusOverrides } from '../tokens/radius';
|
|
4
|
+
import type { SemanticShadowOverrides } from '../tokens/shadows';
|
|
5
|
+
import type { SemanticMotionOverrides } from '../tokens/motion';
|
|
6
|
+
import type { SemanticSpacingOverrides } from '../tokens/spacing';
|
|
7
|
+
import type { SemanticTextShadowOverrides } from '../tokens/text-shadows';
|
|
2
8
|
export interface BeatuiPresetOptions {
|
|
3
9
|
/**
|
|
4
10
|
* Override the semantic color mapping BeatUI uses (e.g. map `primary` to `emerald`).
|
|
5
11
|
*/
|
|
6
12
|
semanticColors?: SemanticColorOverrides;
|
|
13
|
+
/**
|
|
14
|
+
* Override semantic font aliases (e.g. map `heading` to `var(--font-family-serif)`).
|
|
15
|
+
*/
|
|
16
|
+
semanticFonts?: SemanticFontOverrides;
|
|
17
|
+
/**
|
|
18
|
+
* Override semantic radius aliases for controls, surfaces, etc.
|
|
19
|
+
*/
|
|
20
|
+
semanticRadii?: SemanticRadiusOverrides;
|
|
21
|
+
/**
|
|
22
|
+
* Override semantic shadow aliases (elevation levels for surfaces, overlays, etc.).
|
|
23
|
+
*/
|
|
24
|
+
semanticShadows?: SemanticShadowOverrides;
|
|
25
|
+
/**
|
|
26
|
+
* Override semantic motion tokens (transition durations/easing).
|
|
27
|
+
*/
|
|
28
|
+
semanticMotion?: SemanticMotionOverrides;
|
|
29
|
+
/**
|
|
30
|
+
* Override spacing stack aliases for layout stacks.
|
|
31
|
+
*/
|
|
32
|
+
semanticSpacing?: SemanticSpacingOverrides;
|
|
33
|
+
/**
|
|
34
|
+
* Override semantic text shadow aliases (e.g. button emphasis shadows).
|
|
35
|
+
*/
|
|
36
|
+
semanticTextShadows?: SemanticTextShadowOverrides;
|
|
37
|
+
/**
|
|
38
|
+
* Override the default font family tokens (e.g. set `sans` to a custom stack).
|
|
39
|
+
*/
|
|
40
|
+
fontFamilies?: FontFamilyOverrides;
|
|
7
41
|
/**
|
|
8
42
|
* When false, skip registering core token variables (spacing, typography, etc.).
|
|
9
43
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Plugin } from 'vite';
|
|
2
2
|
import type { BeatuiPresetOptions } from './preset';
|
|
3
|
+
import { type GoogleFontRequest } from './google-fonts';
|
|
3
4
|
export interface BeatuiTailwindPluginOptions extends BeatuiPresetOptions {
|
|
4
5
|
/** Automatically import the BeatUI Tailwind CSS bundle into the application entry. */
|
|
5
6
|
injectCss?: boolean;
|
|
@@ -11,6 +12,9 @@ export interface BeatuiTailwindPluginOptions extends BeatuiPresetOptions {
|
|
|
11
12
|
rtlAttribute?: string;
|
|
12
13
|
/** Value of RTL attribute that should trigger `.b-rtl`. Defaults to `rtl`. */
|
|
13
14
|
rtlValue?: string;
|
|
15
|
+
/** Request Google Fonts for local hosting. */
|
|
16
|
+
googleFonts?: GoogleFontRequest | GoogleFontRequest[];
|
|
14
17
|
}
|
|
15
18
|
export declare function beatuiTailwindPlugin(options?: BeatuiTailwindPluginOptions): Plugin;
|
|
16
19
|
export default beatuiTailwindPlugin;
|
|
20
|
+
export type { GoogleFontRequest };
|
|
@@ -2,19 +2,19 @@ import { colors } from './base-colors';
|
|
|
2
2
|
export type ColorName = keyof typeof colors;
|
|
3
3
|
export type ColorShade = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 950;
|
|
4
4
|
export declare const colorShades: ColorShade[];
|
|
5
|
-
export type SemanticColorName = 'primary' | 'secondary' | 'base' | 'success' | 'warning' | '
|
|
5
|
+
export type SemanticColorName = 'primary' | 'secondary' | 'base' | 'success' | 'warning' | 'danger' | 'info';
|
|
6
6
|
export type ThemeColorName = ColorName | SemanticColorName;
|
|
7
|
-
export declare const semanticColorNames: readonly ["primary", "secondary", "base", "success", "warning", "
|
|
8
|
-
export declare const themeColorNames: ("base" | "
|
|
7
|
+
export declare const semanticColorNames: readonly ["primary", "secondary", "base", "success", "warning", "danger", "info"];
|
|
8
|
+
export declare const themeColorNames: ("base" | "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" | "slate" | "gray" | "zinc" | "neutral" | "stone")[];
|
|
9
9
|
export declare const semanticColors: Record<SemanticColorName, ColorName>;
|
|
10
10
|
export type SemanticColorOverrides = Partial<Record<SemanticColorName, ThemeColorName>>;
|
|
11
11
|
export declare function resolveSemanticColorMap(overrides?: SemanticColorOverrides): {
|
|
12
12
|
base: ThemeColorName;
|
|
13
|
-
error: ThemeColorName;
|
|
14
13
|
primary: ThemeColorName;
|
|
15
14
|
secondary: ThemeColorName;
|
|
16
15
|
success: ThemeColorName;
|
|
17
16
|
warning: ThemeColorName;
|
|
17
|
+
danger: ThemeColorName;
|
|
18
18
|
info: ThemeColorName;
|
|
19
19
|
};
|
|
20
20
|
export type BackgroundColorName = 'background' | 'surface' | 'subtle' | 'elevated' | 'raised' | 'overlay';
|
|
@@ -63,11 +63,11 @@ export declare const backgroundConfig: {
|
|
|
63
63
|
readonly variants: {
|
|
64
64
|
readonly solid: {
|
|
65
65
|
readonly light: {
|
|
66
|
-
readonly bgShade:
|
|
66
|
+
readonly bgShade: 600;
|
|
67
67
|
readonly textColor: "var(--color-white)";
|
|
68
68
|
};
|
|
69
69
|
readonly dark: {
|
|
70
|
-
readonly bgShade:
|
|
70
|
+
readonly bgShade: 500;
|
|
71
71
|
readonly textColor: "var(--color-black)";
|
|
72
72
|
};
|
|
73
73
|
};
|
|
@@ -3,10 +3,28 @@ export * from './breakpoints';
|
|
|
3
3
|
export * from './colors';
|
|
4
4
|
export * from './radius';
|
|
5
5
|
export * from './spacing';
|
|
6
|
+
export * from './shadows';
|
|
6
7
|
export * from './typography';
|
|
7
8
|
export * from './z-index';
|
|
9
|
+
export * from './motion';
|
|
10
|
+
export * from './text-shadows';
|
|
8
11
|
import { SemanticColorOverrides } from './colors';
|
|
12
|
+
import { SemanticFontOverrides } from './typography';
|
|
13
|
+
import { SemanticRadiusOverrides } from './radius';
|
|
14
|
+
import { SemanticShadowOverrides } from './shadows';
|
|
15
|
+
import { SemanticTextShadowOverrides } from './text-shadows';
|
|
16
|
+
import { SemanticMotionOverrides } from './motion';
|
|
17
|
+
import { SemanticSpacingOverrides } from './spacing';
|
|
9
18
|
export declare function generateCoreTokenVariables(): Record<string, string>;
|
|
10
|
-
export
|
|
19
|
+
export interface SemanticTokenOverrideOptions {
|
|
20
|
+
colors?: SemanticColorOverrides;
|
|
21
|
+
fonts?: SemanticFontOverrides;
|
|
22
|
+
radii?: SemanticRadiusOverrides;
|
|
23
|
+
shadows?: SemanticShadowOverrides;
|
|
24
|
+
motion?: SemanticMotionOverrides;
|
|
25
|
+
spacing?: SemanticSpacingOverrides;
|
|
26
|
+
textShadows?: SemanticTextShadowOverrides;
|
|
27
|
+
}
|
|
28
|
+
export declare function generateSemanticTokenVariables(overrides?: SemanticColorOverrides | SemanticTokenOverrideOptions): Record<string, string>;
|
|
11
29
|
export declare function generateAllTokenVariables(): Record<string, string>;
|
|
12
30
|
export declare function getTokenValue(tokenName: string, element?: HTMLElement): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const motionDurations: {
|
|
2
|
+
readonly instant: "0s";
|
|
3
|
+
readonly fast: "120ms";
|
|
4
|
+
readonly base: "200ms";
|
|
5
|
+
readonly slow: "320ms";
|
|
6
|
+
readonly relaxed: "480ms";
|
|
7
|
+
};
|
|
8
|
+
export declare const motionEasings: {
|
|
9
|
+
readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
|
|
10
|
+
readonly emphasized: "cubic-bezier(0.33, 1, 0.68, 1)";
|
|
11
|
+
readonly entrance: "cubic-bezier(0, 0, 0.2, 1)";
|
|
12
|
+
readonly exit: "cubic-bezier(0.8, 0, 0.6, 1)";
|
|
13
|
+
};
|
|
14
|
+
export type MotionDurationName = keyof typeof motionDurations;
|
|
15
|
+
export type MotionEasingName = keyof typeof motionEasings;
|
|
16
|
+
export declare function getMotionDurationVarName(name: MotionDurationName): string;
|
|
17
|
+
export declare function getMotionDurationVar(name: MotionDurationName): string;
|
|
18
|
+
export declare function getMotionEasingVarName(name: MotionEasingName): string;
|
|
19
|
+
export declare function getMotionEasingVar(name: MotionEasingName): string;
|
|
20
|
+
export declare function generateMotionVariables(): Record<string, string>;
|
|
21
|
+
export declare const semanticMotionNames: readonly ["transition-fast", "transition-medium", "transition-slow", "transition-overlay", "transition-emphasis", "easing-standard", "easing-emphasis", "easing-entrance", "easing-exit"];
|
|
22
|
+
export type SemanticMotionName = (typeof semanticMotionNames)[number];
|
|
23
|
+
export type SemanticMotionOverrides = Partial<Record<SemanticMotionName, string>>;
|
|
24
|
+
export declare function getSemanticMotionVarName(name: SemanticMotionName): string;
|
|
25
|
+
export declare function generateSemanticMotionVariables(overrides?: SemanticMotionOverrides): Record<string, string>;
|
|
@@ -12,3 +12,8 @@ export declare function getRadiusVarName(size: RadiusName): string;
|
|
|
12
12
|
export declare function getRadiusVar(size: RadiusName): string;
|
|
13
13
|
export declare function getRadiusMediaQuery(size: RadiusName): string;
|
|
14
14
|
export declare function generateRadiusVariables(): Record<string, string>;
|
|
15
|
+
export declare const semanticRadiusNames: readonly ["control", "control-sm", "control-xs", "button", "surface", "overlay", "popover", "pill", "focus"];
|
|
16
|
+
export type SemanticRadiusName = (typeof semanticRadiusNames)[number];
|
|
17
|
+
export type SemanticRadiusOverrides = Partial<Record<SemanticRadiusName, string>>;
|
|
18
|
+
export declare function getSemanticRadiusVarName(name: SemanticRadiusName): string;
|
|
19
|
+
export declare function generateSemanticRadiusVariables(overrides?: SemanticRadiusOverrides): Record<string, string>;
|
|
@@ -19,3 +19,8 @@ export type ShadowSize = keyof typeof shadows;
|
|
|
19
19
|
export declare function getShadowVarName(size: ShadowSize): string;
|
|
20
20
|
export declare function getShadowVar(size: ShadowSize): string;
|
|
21
21
|
export declare function generateShadowVariables(): Record<string, string>;
|
|
22
|
+
export declare const semanticShadowNames: readonly ["surface", "surface-elevated", "popover", "overlay", "button"];
|
|
23
|
+
export type SemanticShadowName = (typeof semanticShadowNames)[number];
|
|
24
|
+
export type SemanticShadowOverrides = Partial<Record<SemanticShadowName, string>>;
|
|
25
|
+
export declare function getSemanticShadowVarName(name: SemanticShadowName): string;
|
|
26
|
+
export declare function generateSemanticShadowVariables(overrides?: SemanticShadowOverrides): Record<string, string>;
|
|
@@ -17,3 +17,8 @@ export type SpacingName = keyof typeof spacing;
|
|
|
17
17
|
export declare function getSpacingVarName(size: SpacingName): string;
|
|
18
18
|
export declare function getSpacingVar(size: SpacingName): string;
|
|
19
19
|
export declare function generateSpacingVariables(): Record<string, string>;
|
|
20
|
+
export declare const semanticSpacingNames: readonly ["stack-2xs", "stack-xs", "stack-sm", "stack-md", "stack-lg", "stack-xl"];
|
|
21
|
+
export type SemanticSpacingName = (typeof semanticSpacingNames)[number];
|
|
22
|
+
export type SemanticSpacingOverrides = Partial<Record<SemanticSpacingName, string>>;
|
|
23
|
+
export declare function getSemanticSpacingVarName(name: SemanticSpacingName): string;
|
|
24
|
+
export declare function generateSemanticSpacingVariables(overrides?: SemanticSpacingOverrides): Record<string, string>;
|
|
@@ -7,6 +7,11 @@ export declare const textShadows: {
|
|
|
7
7
|
readonly lg: "0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)";
|
|
8
8
|
};
|
|
9
9
|
export type TextShadowSize = keyof typeof textShadows;
|
|
10
|
+
export declare const semanticTextShadowNames: readonly ["button-filled", "button-light", "button-default"];
|
|
11
|
+
export type SemanticTextShadowName = (typeof semanticTextShadowNames)[number];
|
|
12
|
+
export type SemanticTextShadowOverrides = Partial<Record<SemanticTextShadowName, string>>;
|
|
10
13
|
export declare function getTextShadowVarName(size: TextShadowSize): string;
|
|
11
14
|
export declare function getTextShadowVar(size: TextShadowSize): string;
|
|
12
15
|
export declare function generateTextShadowVariables(): Record<string, string>;
|
|
16
|
+
export declare function getSemanticTextShadowVarName(name: SemanticTextShadowName): string;
|
|
17
|
+
export declare function generateSemanticTextShadowVariables(overrides?: SemanticTextShadowOverrides): Record<string, string>;
|
|
@@ -45,7 +45,7 @@ export declare const fontSize: {
|
|
|
45
45
|
readonly lineHeight: "1";
|
|
46
46
|
}];
|
|
47
47
|
};
|
|
48
|
-
export declare function changeFontSize(size: FontSize, steps: number): "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | "3xl" | "4xl" | "
|
|
48
|
+
export declare function changeFontSize(size: FontSize, steps: number): "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | "3xl" | "4xl" | "2xs" | "3xs" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
|
|
49
49
|
export type FontSize = keyof typeof fontSize;
|
|
50
50
|
export declare const fontWeight: {
|
|
51
51
|
readonly thin: "100";
|
|
@@ -83,6 +83,10 @@ export declare const fontFamily: {
|
|
|
83
83
|
readonly mono: readonly ["ui-monospace", "SFMono-Regular", "\"SF Mono\"", "Consolas", "\"Liberation Mono\"", "Menlo", "monospace"];
|
|
84
84
|
};
|
|
85
85
|
export type FontFamily = keyof typeof fontFamily;
|
|
86
|
+
export type FontFamilyOverrides = Partial<Record<FontFamily, string | readonly string[]>>;
|
|
87
|
+
export declare const semanticFontNames: readonly ["body", "heading", "display", "mono", "ui", "prose"];
|
|
88
|
+
export type SemanticFontName = (typeof semanticFontNames)[number];
|
|
89
|
+
export type SemanticFontOverrides = Partial<Record<SemanticFontName, string>>;
|
|
86
90
|
export declare function getFontSizeVarName(size: FontSize): string;
|
|
87
91
|
export declare function getFontSizeVar(size: FontSize): string;
|
|
88
92
|
export declare function getFontWeightVarName(weight: FontWeight): string;
|
|
@@ -93,4 +97,8 @@ export declare function getLetterSpacingVarName(spacing: LetterSpacing): string;
|
|
|
93
97
|
export declare function getLetterSpacingVar(spacing: LetterSpacing): string;
|
|
94
98
|
export declare function getFontFamilyVarName(family: FontFamily): string;
|
|
95
99
|
export declare function getFontFamilyVar(family: FontFamily): string;
|
|
100
|
+
export declare function getSemanticFontVarName(name: SemanticFontName): string;
|
|
101
|
+
export declare function getSemanticFontVar(name: SemanticFontName): string;
|
|
96
102
|
export declare function generateTypographyVariables(): Record<string, string>;
|
|
103
|
+
export declare function generateFontFamilyOverrideVariables(overrides?: FontFamilyOverrides): Record<string, string>;
|
|
104
|
+
export declare function generateSemanticFontVariables(overrides?: SemanticFontOverrides): Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-DpZ-btu9.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,n,o)=>{let r=e==null||e>1?"منتخب کرنے کے لیے کلک کریں یا فائلیں یہاں گھسیٹیں":"منتخب کرنے کے لیے کلک کریں یا فائل یہاں گھسیٹیں";if(e||n){const t=[];if(e!=null&&e>1&&t.push(`زیادہ سے زیادہ ${e} فائلیں`),n&&o){const a=l.formatFileSize(n,{units:o});t.push(`ہر ایک زیادہ سے زیادہ ${a}`)}t.length>0&&(r+=` (${t.join("، ")})`)}else if(n&&o){const t=l.formatFileSize(n,{units:o});r+=` (زیادہ سے زیادہ ${t})`}return r}};exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("./translations-DpZ-btu9.cjs"),g={loadingExtended:"Đang tải, vui lòng đợi",loadingShort:"Đang tải...",locale:"Ngôn ngữ",iconDescription:"Biểu tượng",loadingIcon:"Biểu tượng tải",failedToLoadIcon:"Không thể tải biểu tượng",editLabel:"Chỉnh sửa",selectOne:"Chọn một",selectMany:"Chọn nhiều",noResults:"Không có kết quả",passwordPlaceholderText:"Mật khẩu bí mật",togglePasswordVisibility:"Chuyển đổi hiển thị mật khẩu",toggleMenu:"Chuyển đổi menu",toggleAside:"Chuyển đổi bảng bên",mainNavigation:"Điều hướng chính",sidebar:"Thanh bên",closeDrawer:"Đóng ngăn kéo",closeModal:"Đóng modal",confirm:"Xác nhận",cancel:"Hủy",addLabel:"Thêm",removeItem:"Xóa mục",currentLocale:"Tiếng Việt",ar:"Tiếng Ả Rập",de:"Tiếng Đức",en:"Tiếng Anh",es:"Tiếng Tây Ban Nha",fr:"Tiếng Pháp",hi:"Tiếng Hindi",it:"Tiếng Ý",ja:"Tiếng Nhật",ko:"Tiếng Hàn",nl:"Tiếng Hà Lan",pl:"Tiếng Ba Lan",pt:"Tiếng Bồ Đào Nha",ru:"Tiếng Nga",tr:"Tiếng Thổ Nhĩ Kỳ",vi:"Tiếng Việt",zh:"Tiếng Trung",he:"Tiếng Do Thái",fa:"Tiếng Ba Tư",ur:"Tiếng Urdu",emailPlaceholderText:"Nhập email của bạn",incrementValue:"Tăng giá trị",decrementValue:"Giảm giá trị",dropZoneInstructions:n=>n?"Nhấp để chọn hoặc kéo tệp vào đây, hoặc nhấn Enter hoặc Space để mở trình chọn tệp":"Kéo tệp vào đây",fileSizeUnits:["Byte","KB","MB","GB","TB"],removeFile:"Xóa tệp",clearAllFiles:"Xóa tất cả tệp",clearValue:"Xóa giá trị",unknownType:"Loại không xác định",filesInputInstructions:(n,i,e)=>{let o=n==null||n>1?"Nhấp để chọn hoặc kéo tệp vào đây":"Nhấp để chọn hoặc kéo một tệp vào đây";if(n||i){const t=[];if(n!=null&&n>1&&t.push(`tối đa ${n} tệp`),i&&e){const a=h.formatFileSize(i,{units:e});t.push(`mỗi tệp tối đa ${a}`)}t.length>0&&(o+=` (${t.join(", ")})`)}else if(i&&e){const t=h.formatFileSize(i,{units:e});o+=` (tối đa ${t})`}return o}};exports.default=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./translations-DpZ-btu9.cjs"),a={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:"法语",hi:" Hindi",it:"意大利语",ja:"日语",ko:"韩语",nl:"荷兰语",pl:"波兰语",pt:"葡萄牙语",ru:"俄语",tr:"土耳其语",vi:"越南语",zh:"简体中文",he:"希伯来语",fa:"波斯语",ur:"乌尔都语",emailPlaceholderText:"请输入邮箱",incrementValue:"增加值",decrementValue:"减少值",dropZoneInstructions:e=>e?"点击选择或将文件拖拽到此处,或按 Enter 或空格键打开文件选择器":"将文件拖拽到此处",fileSizeUnits:["字节","KB","MB","GB","TB"],removeFile:"删除文件",clearAllFiles:"清除所有文件",clearValue:"清除值",unknownType:"未知类型",filesInputInstructions:(e,n,o)=>{let r=(e==null||e>1,"点击选择或将文件拖拽到此处");if(e||n){const t=[];if(e!=null&&e>1&&t.push(`最多${e}个文件`),n&&o){const i=l.formatFileSize(n,{units:o});t.push(`每个最大${i}`)}t.length>0&&(r+=` (${t.join(",")})`)}else if(n&&o){const t=l.formatFileSize(n,{units:o});r+=` (最大${t})`}return r}};exports.default=a;
|
package/package.json
CHANGED
package/dist/index-Br70wXYb.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./colors-B8HoRLA_.cjs"),o={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"};function s(e){return`--breakpoint-${e}`}function C(e){return`var(${s(e)})`}function I(e){return`@media (width >= ${o[e]})`}function v(){const e={};return i.f(o).forEach(([t,r])=>{e[s(t)]=r}),e}const g={none:"0",xs:"calc(var(--spacing-base) / 2)",sm:"var(--spacing-base)",md:"calc(var(--spacing-base) * 1.5)",lg:"calc(var(--spacing-base) * 2)",xl:"calc(var(--spacing-base) * 3)",full:"9999px"};function c(e){return`--radius-${e}`}function B(e){return`var(${c(e)})`}function M(e){return`@media (width >= ${g[e]})`}function y(){const e={};return i.f(g).forEach(([t,r])=>{e[c(t)]=r}),e}const k="0.25rem",F={none:"0",px:"1px",base:k,xs:"calc(var(--spacing-base) / 2)",sm:"var(--spacing-base)",md:"calc(var(--spacing-base) * 1.5)",lg:"calc(var(--spacing-base) * 2)",xl:"calc(var(--spacing-base) * 3)","2xl":"calc(var(--spacing-base) * 4)","3xl":"calc(var(--spacing-base) * 6)","4xl":"calc(var(--spacing-base) * 8)",full:"2000px"};function p(e){return`--spacing-${e}`}function R(e){return`var(${p(e)})`}function $(){const e={};return i.f(F).forEach(([t,r])=>{e[p(t)]=r}),e}const l={"3xs":["0.5rem",{lineHeight:"0.75rem"}],"2xs":["0.625rem",{lineHeight:"0.75rem"}],xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],md:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]};function L(e,t){const r=Object.keys(l),a=r.indexOf(e);if(a===-1)throw new Error(`Invalid font size: ${e}`);const n=Math.min(Math.max(a+t,0),r.length-1);return r[n]}const N={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},w={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},H={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},T={sans:["system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular",'"SF Mono"',"Consolas",'"Liberation Mono"',"Menlo","monospace"]};function x(e){return`--font-size-${e}`}function W(e){return`var(${x(e)})`}function u(e){return`--font-weight-${e}`}function A(e){return`var(${u(e)})`}function m(e){return`--line-height-${e}`}function P(e){return`var(${m(e)})`}function b(e){return`--letter-spacing-${e}`}function Z(e){return`var(${b(e)})`}function f(e){return`--font-family-${e}`}function Q(e){return`var(${f(e)})`}function E(){const e={};return Object.entries(l).forEach(([t,r])=>{const[a]=Array.isArray(r)?r:[r];e[x(t)]=a}),Object.entries(N).forEach(([t,r])=>{e[u(t)]=r}),Object.entries(w).forEach(([t,r])=>{e[m(t)]=r}),Object.entries(H).forEach(([t,r])=>{e[b(t)]=r}),Object.entries(T).forEach(([t,r])=>{e[f(t)]=r.join(", ")}),e}const O={base:0,raised:10,navigation:20,sidebar:20,overlay:50,modal:60,tooltip:70,popover:80,notification:90,maximum:100};function h(e){return`--z-index-${e}`}function U(e){return`var(${h(e)})`}function j(){const e={};return i.f(O).forEach(([t,r])=>{e[h(t)]=r.toString()}),e}const D={none:"none","2xs":"0 1px rgb(0 0 0 / 0.05)",xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)","top-2xs":"0 -1px rgb(0 0 0 / 0.05)","top-xs":"0 -1px 2px 0 rgb(0 0 0 / 0.05)","top-sm":"0 -1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","top-md":"0 -4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","top-lg":"0 -10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","top-xl":"0 -20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","top-2xl":"0 -25px 50px -12px rgb(0 0 0 / 0.25)"};function _(e){return`--shadow-${e}`}function q(){const e={};return i.f(D).forEach(([t,r])=>{e[_(t)]=r}),e}const G={none:"none","2xs":"0px 1px 0px rgb(0 0 0 / 0.15)",xs:"0px 1px 1px rgb(0 0 0 / 0.2)",sm:"0px 1px 0px rgb(0 0 0 / 0.075), 0px 1px 1px rgb(0 0 0 / 0.075), 0px 2px 2px rgb(0 0 0 / 0.075)",md:"0px 1px 1px rgb(0 0 0 / 0.1), 0px 1px 2px rgb(0 0 0 / 0.1), 0px 2px 4px rgb(0 0 0 / 0.1)",lg:"0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1)"};function J(e){return`--text-shadow-${e}`}function K(){const e={};return i.f(G).forEach(([t,r])=>{e[J(t)]=r}),e}function d(){return{...i.generateCoreColorVariables(),...$(),...E(),...v(),...y(),...q(),...K(),...j()}}function V(e){return{...i.generateSemanticColorVariables(e)}}function X(){return{...d(),...V()}}function Y(e,t){return t==null&&typeof window>"u"?"":getComputedStyle(t??document.documentElement).getPropertyValue(e).trim()}function ee(){return Object.fromEntries(i.semanticColorNames.map(e=>[e,Object.fromEntries(i.colorShades.map(t=>[t,`var(--color-${e}-${t})`]))]))}function te(e){const{includeCoreTokens:t=!0,includeSemanticTokens:r=!0}=e,a=e.semanticColors,n={};return t&&(n[":root"]={...d()}),r&&(n[":root"]={...n[":root"]??{},...V(a)}),n}const S=Object.assign((e,t)=>({handler:e,config:t}),{withOptions(e,t=()=>({})){const r=a=>({handler:e(a),config:t(a)});return r.__isOptionsFunction=!0,r}});function z(e={}){const t=te(e);return{darkMode:"class",theme:{extend:e.extendTheme??!0?{colors:ee()}:{}},plugins:[S(({addBase:n})=>{Object.keys(t).length>0&&n(t)}),S(({addVariant:n})=>{n("beatui-dark",".b-dark &"),n("beatui-light",".b-light &"),n("beatui-rtl",".b-rtl &"),n("beatui-ltr",".b-ltr &")})]}}const re=z();exports.baseSpacing=k;exports.beatuiPreset=re;exports.breakpoints=o;exports.changeFontSize=L;exports.createBeatuiPreset=z;exports.fontFamily=T;exports.fontSize=l;exports.fontWeight=N;exports.generateAllTokenVariables=X;exports.generateBreakpointVariables=v;exports.generateCoreTokenVariables=d;exports.generateRadiusVariables=y;exports.generateSemanticTokenVariables=V;exports.generateSpacingVariables=$;exports.generateTypographyVariables=E;exports.generateZIndexVariables=j;exports.getBreakpointMediaQuery=I;exports.getBreakpointVar=C;exports.getBreakpointVarName=s;exports.getFontFamilyVar=Q;exports.getFontFamilyVarName=f;exports.getFontSizeVar=W;exports.getFontSizeVarName=x;exports.getFontWeightVar=A;exports.getFontWeightVarName=u;exports.getLetterSpacingVar=Z;exports.getLetterSpacingVarName=b;exports.getLineHeightVar=P;exports.getLineHeightVarName=m;exports.getRadiusMediaQuery=M;exports.getRadiusVar=B;exports.getRadiusVarName=c;exports.getSpacingVar=R;exports.getSpacingVarName=p;exports.getTokenValue=Y;exports.getZIndexVar=U;exports.getZIndexVarName=h;exports.letterSpacing=H;exports.lineHeight=w;exports.radius=g;exports.spacing=F;exports.zIndex=O;
|