@tempots/beatui 1.7.1 → 1.7.2

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/index.es.js CHANGED
@@ -5,34 +5,34 @@ import { I as ce, b as ye, B as de, h as Fe, t as Ne, a as vt, L as Ye, d as It,
5
5
  import { c as ip, e as cp, g as up, i as dp, j as pp, k as fp, l as bp, n as mp, o as gp, m as hp, p as vp, r as yp, s as _p } from "./translations-BCMP-h52.js";
6
6
  import { g as Ue } from "./colors-C2sgnzFH.js";
7
7
  import { b as wp, e as Cp, f as Sp, c as $p, h as xp, i as Dp, a as Pp, d as Tp, j as Ip, k as Lp, n as Ap, r as Mp, s as Fp, l as Ep, t as Np, m as Op } from "./colors-C2sgnzFH.js";
8
- import { f as Qo } from "./index-DI8bf9oC.js";
9
- import { h as Bp, i as Rp, j as Vp, k as jp, l as Hp, m as Up, n as Wp, o as Gp, p as qp, q as Yp, r as Kp, s as Zp, t as Xp, u as Qp, v as Jp, w as ef, x as tf, y as nf, z as af, A as of, g as sf, b as rf, B as lf, C as cf, D as uf, E as df, F as pf, G as ff, H as bf, I as mf, J as gf, K as hf, a as vf, L as yf, M as _f, N as kf, O as wf, P as Cf, Q as Sf, d as $f, R as xf, S as Df, T as Pf, U as Tf, V as If, W as Lf, X as Af, Y as Mf, Z as Ff, _ as Ef, $ as Nf, a0 as Of, a1 as zf, a2 as Bf, a3 as Rf, a4 as Vf, a5 as jf, a6 as Hf, a7 as Uf, a8 as Wf, a9 as Gf, aa as qf, ab as Yf, ac as Kf, ad as Zf, ae as Xf, af as Qf, ag as Jf, e as eb, ah as tb, ai as nb, aj as ab, ak as ob, al as sb, am as rb, an as lb, ao as ib, ap as cb, aq as ub, ar as db, as as pb, at as fb, au as bb, av as mb, aw as gb, ax as hb, ay as vb, c as yb, az as _b, aA as kb, aB as wb, aC as Cb, aD as Sb, aE as $b, aF as xb, aG as Db, aH as Pb, aI as Tb, aJ as Ib, aK as Lb, aL as Ab, aM as Mb, aN as Fb, aO as Eb, aP as Nb, aQ as Ob, aR as zb, aS as Bb, aT as Rb, aU as Vb } from "./index-DI8bf9oC.js";
8
+ import { f as Qo } from "./index-CvU9E9wd.js";
9
+ import { h as Bp, i as Rp, j as Vp, k as jp, l as Hp, m as Up, n as Wp, o as Gp, p as qp, q as Yp, r as Kp, s as Zp, t as Xp, u as Qp, v as Jp, w as ef, x as tf, y as nf, z as af, A as of, g as sf, b as rf, B as lf, C as cf, D as uf, E as df, F as pf, G as ff, H as bf, I as mf, J as gf, K as hf, a as vf, L as yf, M as _f, N as kf, O as wf, P as Cf, Q as Sf, d as $f, R as xf, S as Df, T as Pf, U as Tf, V as If, W as Lf, X as Af, Y as Mf, Z as Ff, _ as Ef, $ as Nf, a0 as Of, a1 as zf, a2 as Bf, a3 as Rf, a4 as Vf, a5 as jf, a6 as Hf, a7 as Uf, a8 as Wf, a9 as Gf, aa as qf, ab as Yf, ac as Kf, ad as Zf, ae as Xf, af as Qf, ag as Jf, e as eb, ah as tb, ai as nb, aj as ab, ak as ob, al as sb, am as rb, an as lb, ao as ib, ap as cb, aq as ub, ar as db, as as pb, at as fb, au as bb, av as mb, aw as gb, ax as hb, ay as vb, c as yb, az as _b, aA as kb, aB as wb, aC as Cb, aD as Sb, aE as $b, aF as xb, aG as Db, aH as Pb, aI as Tb, aJ as Ib, aK as Lb, aL as Ab, aM as Mb, aN as Fb, aO as Eb, aP as Nb, aQ as Ob, aR as zb, aS as Bb, aT as Rb, aU as Vb, aV as jb } from "./index-CvU9E9wd.js";
10
10
  import { B as Kn, c as Zn, C as Qt, b as Xn, F as Qn, m as Ka, d as Za, e as Jo, h as es } from "./use-form-8NnZ-KHk.js";
11
- import { A as Hb, i as Ub, a as Wb, j as Gb, M as qb, O as Yb, R as Kb, k as Zb, l as Xb, n as Qb, o as Jb, p as em, f as tm, q as nm, r as am, s as om, t as sm, g as rm, u as lm, w as im } from "./use-form-8NnZ-KHk.js";
11
+ import { A as Ub, i as Wb, a as Gb, j as qb, M as Yb, O as Kb, R as Zb, k as Xb, l as Qb, n as Jb, o as em, p as tm, f as nm, q as am, r as om, s as sm, t as rm, g as lm, u as im, w as cm } from "./use-form-8NnZ-KHk.js";
12
12
  import { delayedAnimationFrame as hn, biMax as Bt, biMin as ts, colorToString as va, withColor as ya, roundTo as tt, sleep as ns, interval as _a } from "@tempots/std";
13
13
  import { u as pn, A as ka, a as as } from "./use-animated-toggle-C3asw_Sg.js";
14
- import { b as um, c as dm } from "./use-animated-toggle-C3asw_Sg.js";
14
+ import { b as dm, c as pm } from "./use-animated-toggle-C3asw_Sg.js";
15
15
  import { T as Xa, a as os } from "./theme-kQZEeusG.js";
16
- import { beatuiPreset as fm, createBeatuiPreset as bm } from "./tailwind/preset.es.js";
16
+ import { beatuiPreset as bm, createBeatuiPreset as mm } from "./tailwind/preset.es.js";
17
17
  import { v as De, p as Qa, r as ss, F as rs, q as ls, I as is, t as cs, H as us, s as ds, u as Jn, T as ps, w as Ja, x as Vt, y as ea, C as fs, M as bs, z as ms } from "./widget-customization-BIBva3f-.js";
18
- import { B as gm, A as hm, E as vm, f as ym, e as _m, h as km, d as wm, j as Cm, i as Sm, a as $m, N as xm, c as Dm, b as Pm, R as Tm, S as Im, k as Lm, D as Am, m as Mm, n as Fm, o as Em } from "./widget-customization-BIBva3f-.js";
18
+ import { B as hm, A as vm, E as ym, f as _m, e as km, h as wm, d as Cm, j as Sm, i as $m, a as xm, N as Dm, c as Pm, b as Tm, R as Im, S as Lm, k as Am, D as Mm, m as Fm, n as Em, o as Nm } from "./widget-customization-BIBva3f-.js";
19
19
  import { s as He } from "./session-id-3KiilioY.js";
20
20
  import { O as ta, F as na, M as aa } from "./custom-validation-7por5nJN.js";
21
- import { B as Om, C as zm, a as Bm, S as Rm, b as Vm, c as jm, o as Hm, s as Um, u as Wm } from "./custom-validation-7por5nJN.js";
21
+ import { B as zm, C as Bm, a as Rm, S as Vm, b as jm, c as Hm, o as Um, s as Wm, u as Gm } from "./custom-validation-7por5nJN.js";
22
22
  import { B as Be, I as Ze, a as yt, g as wa, b as Ca } from "./input-container-8JFB11xN.js";
23
- import { c as qm } from "./input-container-8JFB11xN.js";
23
+ import { c as Ym } from "./input-container-8JFB11xN.js";
24
24
  import { W as ut, b as vn, N as _t, S as eo, g as to, G as no, E as gs, M as oa, r as Rn } from "./deep-merge-DT2H9AGq.js";
25
- import { B as Km, k as Zm, F as Xm, L as Qm, l as Jm, m as eg, h as tg, c as ng, f as ag, T as og, i as sg, n as rg, a as lg, U as ig, j as cg, o as ug, p as dg, q as pg, e as fg, t as bg, s as mg } from "./deep-merge-DT2H9AGq.js";
25
+ import { B as Zm, k as Xm, F as Qm, L as Jm, l as eg, m as tg, h as ng, c as ag, f as og, T as sg, i as rg, n as lg, a as ig, U as cg, j as ug, o as dg, p as pg, q as fg, e as bg, t as mg, s as gg } from "./deep-merge-DT2H9AGq.js";
26
26
  import { M as hs, L as Vn, S as vs } from "./stack-BLMteGTn.js";
27
- import { D as hg, E as vg } from "./stack-BLMteGTn.js";
27
+ import { D as vg, E as yg } from "./stack-BLMteGTn.js";
28
28
  import { F as kt, M as sa, a as xt, b as ra } from "./menu-BkqFGcXg.js";
29
29
  import { C as rt, T as yn, m as ys } from "./text-input-NJypZSnE.js";
30
30
  import { f as _s, g as ks } from "./duration-input-D4V_PHIg.js";
31
- import { B as _g, D as kg, F as wg, N as Cg, d as Sg, b as $g, a as xg, e as Dg, c as Pg, P as Tg } from "./duration-input-D4V_PHIg.js";
32
- import { C as Lg, a as Ag, b as Mg, c as Fg, d as Eg } from "./utils-vUtP6iPG.js";
33
- import { E as Og, N as zg, P as Bg } from "./notice-CQGJyZ8o.js";
34
- import { L as Vg } from "./link-portal-Cr2l9f3k.js";
35
- import { b as Hg, T as Ug, c as Wg, a as Gg, d as qg } from "./toolbar-BF2L6WKC.js";
31
+ import { B as kg, D as wg, F as Cg, N as Sg, d as $g, b as xg, a as Dg, e as Pg, c as Tg, P as Ig } from "./duration-input-D4V_PHIg.js";
32
+ import { C as Ag, a as Mg, b as Fg, c as Eg, d as Ng } from "./utils-vUtP6iPG.js";
33
+ import { E as zg, N as Bg, P as Rg } from "./notice-CQGJyZ8o.js";
34
+ import { L as jg } from "./link-portal-Cr2l9f3k.js";
35
+ import { b as Ug, T as Wg, c as Gg, a as qg, d as Yg } from "./toolbar-BF2L6WKC.js";
36
36
  function kc(e, t = 0, n = () => !0) {
37
37
  let o = null, s;
38
38
  const l = B(e.value);
@@ -15618,37 +15618,37 @@ export {
15618
15618
  gu as AnnouncementBar,
15619
15619
  Wc as AppShell,
15620
15620
  hl as AppearanceSelector,
15621
- Hb as ArrayController,
15621
+ Ub as ArrayController,
15622
15622
  Tc as AutoColorBadge,
15623
15623
  xc as Avatar,
15624
15624
  Dc as AvatarGroup,
15625
15625
  Pc as AvatarGroupOverflow,
15626
15626
  Ht as Badge,
15627
- gm as Base64Input,
15628
- hm as Base64sInput,
15627
+ hm as Base64Input,
15628
+ vm as Base64sInput,
15629
15629
  zl as BaseComboboxControl,
15630
15630
  Fu as BaseComboboxTagsControl,
15631
15631
  Kn as BaseControl,
15632
15632
  Nl as BaseDropdownControl,
15633
- Km as BaseListControl,
15634
- Ub as BaseMappedControl,
15633
+ Zm as BaseListControl,
15634
+ Wb as BaseMappedControl,
15635
15635
  Oc as BaseMultiSelectControl,
15636
- Zm as BaseNativeSelectControl,
15636
+ Xm as BaseNativeSelectControl,
15637
15637
  Au as BaseSelectTagsControl,
15638
15638
  tp as BaseVideoPlayer,
15639
15639
  vd as BeatUI,
15640
15640
  de as BeatUII18n,
15641
- _g as BigintInput,
15641
+ kg as BigintInput,
15642
15642
  hu as BlockCommandPalette,
15643
- Om as BooleanValidator,
15643
+ zm as BooleanValidator,
15644
15644
  Wd as Breadcrumbs,
15645
15645
  Be as Button,
15646
15646
  qd as ButtonLink,
15647
- Lg as Card,
15648
- Ag as CardBody,
15649
- Mg as CardCoverImage,
15650
- Fg as CardFooter,
15651
- Eg as CardHeader,
15647
+ Ag as Card,
15648
+ Mg as CardBody,
15649
+ Fg as CardCoverImage,
15650
+ Eg as CardFooter,
15651
+ Ng as CardHeader,
15652
15652
  np as Carousel,
15653
15653
  qc as Center,
15654
15654
  Gc as CenterH,
@@ -15670,13 +15670,13 @@ export {
15670
15670
  Eu as ComboboxTagsControl,
15671
15671
  Do as ComboboxTagsInput,
15672
15672
  rt as CommonInputAttributes,
15673
- zm as ConfirmModal,
15673
+ Bm as ConfirmModal,
15674
15674
  vu as ConfirmationDialog,
15675
15675
  Zn as Control,
15676
15676
  Jo as Controller,
15677
- Wb as ControllerValidation,
15677
+ Gb as ControllerValidation,
15678
15678
  Hc as CopyButton,
15679
- hg as DangerLabel,
15679
+ vg as DangerLabel,
15680
15680
  sl as DataTable,
15681
15681
  ar as DataToolbar,
15682
15682
  Nu as DateInput,
@@ -15693,19 +15693,19 @@ export {
15693
15693
  wo as DropdownBase,
15694
15694
  Iu as DropdownControl,
15695
15695
  El as DropdownInput,
15696
- kg as DurationInput,
15697
- vm as EditableText,
15698
- Og as EmailInput,
15699
- vg as EmphasisLabel,
15696
+ wg as DurationInput,
15697
+ ym as EditableText,
15698
+ zg as EmailInput,
15699
+ yg as EmphasisLabel,
15700
15700
  Vd as EmptyState,
15701
15701
  pd as EnsureControl,
15702
15702
  gs as Expando,
15703
- Gb as FIELD_LAYOUT_DEFAULTS,
15703
+ qb as FIELD_LAYOUT_DEFAULTS,
15704
15704
  Qn as Field,
15705
15705
  es as FieldLayout,
15706
15706
  gd as Fieldset,
15707
- wg as FileInput,
15708
- Xm as FilesInput,
15707
+ Cg as FileInput,
15708
+ Qm as FilesInput,
15709
15709
  je as Filter,
15710
15710
  kt as Flyout,
15711
15711
  na as FocusTrap,
@@ -15740,14 +15740,14 @@ export {
15740
15740
  Hu as LazyNativeSelect,
15741
15741
  mu as Lightbox,
15742
15742
  Di as Link,
15743
- Vg as LinkPortal,
15744
- Qm as ListControl,
15745
- Jm as ListInput,
15746
- eg as ListItemControls,
15743
+ jg as LinkPortal,
15744
+ Jm as ListControl,
15745
+ eg as ListInput,
15746
+ tg as ListItemControls,
15747
15747
  Qr as LoadingOverlay,
15748
15748
  Ye as Locale,
15749
15749
  hd as LocaleSelector,
15750
- qb as MappedControl,
15750
+ Yb as MappedControl,
15751
15751
  oa as MaskInput,
15752
15752
  sa as Menu,
15753
15753
  xt as MenuItem,
@@ -15758,47 +15758,47 @@ export {
15758
15758
  hs as MutedLabel,
15759
15759
  yd as NativePdfPreview,
15760
15760
  vn as NativeSelect,
15761
- tg as NativeSelectControl,
15761
+ ng as NativeSelectControl,
15762
15762
  Gd as NavigationLink,
15763
15763
  Qd as NavigationProgress,
15764
15764
  Kc as NineSliceScrollView,
15765
15765
  eu as NoWrap,
15766
- zg as Notice,
15766
+ Bg as Notice,
15767
15767
  di as Notification,
15768
15768
  Ud as NotificationPanel,
15769
15769
  To as NotificationProvider,
15770
15770
  bi as NotificationService,
15771
15771
  mi as NotificationViewport,
15772
- Cg as NullableBigintInput,
15772
+ Sg as NullableBigintInput,
15773
15773
  Pu as NullableColorInput,
15774
15774
  Tu as NullableColorSwatchInput,
15775
- ym as NullableDateInput,
15775
+ _m as NullableDateInput,
15776
15776
  Ru as NullableDateSelect,
15777
- _m as NullableDateTimeInput,
15777
+ km as NullableDateTimeInput,
15778
15778
  ad as NullableDateTimeSelect,
15779
- ng as NullableDurationInput,
15780
- km as NullableEmailInput,
15779
+ ag as NullableDurationInput,
15780
+ wm as NullableEmailInput,
15781
15781
  sd as NullableInstantInput,
15782
15782
  Uu as NullableMaskInput,
15783
- ag as NullableNumberInput,
15784
- wm as NullablePasswordInput,
15785
- Sg as NullablePlainDateInput,
15786
- $g as NullablePlainDateTimeInput,
15783
+ og as NullableNumberInput,
15784
+ Cm as NullablePasswordInput,
15785
+ $g as NullablePlainDateInput,
15786
+ xg as NullablePlainDateTimeInput,
15787
15787
  dd as NullablePlainMonthDayInput,
15788
- xg as NullablePlainTimeInput,
15788
+ Dg as NullablePlainTimeInput,
15789
15789
  cd as NullablePlainYearMonthInput,
15790
- Cm as NullableRatingInput,
15791
- Sm as NullableSliderInput,
15792
- $m as NullableTextArea,
15793
- xm as NullableTextInput,
15790
+ Sm as NullableRatingInput,
15791
+ $m as NullableSliderInput,
15792
+ xm as NullableTextArea,
15793
+ Dm as NullableTextInput,
15794
15794
  td as NullableTimeSelect,
15795
- Dm as NullableUrlInput,
15796
- Pm as NullableUuidInput,
15795
+ Pm as NullableUrlInput,
15796
+ Tm as NullableUuidInput,
15797
15797
  ld as NullableZonedDateTimeInput,
15798
15798
  to as NumberInput,
15799
15799
  Wu as NumberStepper,
15800
- Yb as ObjectController,
15801
- Bm as ObjectValidator,
15800
+ Kb as ObjectController,
15801
+ Rm as ObjectValidator,
15802
15802
  Du as OklchColorPicker,
15803
15803
  ku as OnboardingTour,
15804
15804
  zu as OpenDateRangeSelect,
@@ -15809,12 +15809,12 @@ export {
15809
15809
  _d as PDFJSPreview,
15810
15810
  Ac as PageDropZone,
15811
15811
  nr as Pagination,
15812
- Bg as PasswordInput,
15812
+ Rg as PasswordInput,
15813
15813
  ap as PdfPageViewer,
15814
- Dg as PlainDateInput,
15815
- Pg as PlainDateTimeInput,
15814
+ Pg as PlainDateInput,
15815
+ Tg as PlainDateTimeInput,
15816
15816
  ud as PlainMonthDayInput,
15817
- Tg as PlainTimeInput,
15817
+ Ig as PlainTimeInput,
15818
15818
  id as PlainYearMonthInput,
15819
15819
  fu as Popover,
15820
15820
  Rs as PresenceCursor,
@@ -15825,8 +15825,8 @@ export {
15825
15825
  kd as QueryDataTable,
15826
15826
  Xu as RadioGroup,
15827
15827
  Qu as RangeSlider,
15828
- Tm as RatingInput,
15829
- Kb as RequiredSymbol,
15828
+ Im as RatingInput,
15829
+ Zb as RequiredSymbol,
15830
15830
  Su as RgbColorPicker,
15831
15831
  bu as Ribbon,
15832
15832
  Aa as ScrollablePanel,
@@ -15846,7 +15846,7 @@ export {
15846
15846
  Ai as SidebarUrlLink,
15847
15847
  nu as Sink,
15848
15848
  Nc as Skeleton,
15849
- Im as SliderInput,
15849
+ Lm as SliderInput,
15850
15850
  Or as SortableHeader,
15851
15851
  Gu as SortableList,
15852
15852
  wu as Spotlight,
@@ -15859,14 +15859,14 @@ export {
15859
15859
  ru as StatCardTrend,
15860
15860
  ou as StatCardValue,
15861
15861
  ep as Stepper,
15862
- Rm as StringValidator,
15862
+ Vm as StringValidator,
15863
15863
  jd as StylePortal,
15864
- Lm as Switch,
15864
+ Am as Switch,
15865
15865
  Gs as Table,
15866
15866
  Xd as Tabs,
15867
15867
  Ku as TagInput,
15868
15868
  Zu as TagsInput,
15869
- og as TextArea,
15869
+ sg as TextArea,
15870
15870
  yn as TextInput,
15871
15871
  Xa as Theme,
15872
15872
  os as ThemeAppearance,
@@ -15875,20 +15875,20 @@ export {
15875
15875
  mn as TimeSelectShell,
15876
15876
  gr as ToggleButton,
15877
15877
  Uc as ToggleButtonGroup,
15878
- Hg as Toolbar,
15879
- Ug as ToolbarButton,
15880
- Wg as ToolbarDivider,
15881
- Gg as ToolbarGroup,
15882
- qg as ToolbarSpacer,
15878
+ Ug as Toolbar,
15879
+ Wg as ToolbarButton,
15880
+ Gg as ToolbarDivider,
15881
+ qg as ToolbarGroup,
15882
+ Yg as ToolbarSpacer,
15883
15883
  Zt as Tooltip,
15884
15884
  qu as TransferList,
15885
15885
  Jd as TreeView,
15886
15886
  Hr as TriStateCheckboxInput,
15887
- sg as UnionController,
15888
- rg as UnstyledDropZone,
15889
- lg as UrlInput,
15887
+ rg as UnionController,
15888
+ lg as UnstyledDropZone,
15889
+ ig as UrlInput,
15890
15890
  rp as Use,
15891
- ig as UuidInput,
15891
+ cg as UuidInput,
15892
15892
  cu as VirtualList,
15893
15893
  pr as WithBeatUIBreakpoint,
15894
15894
  jc as WithBeatUIElementBreakpoint,
@@ -15900,9 +15900,9 @@ export {
15900
15900
  Bp as baseFontSize,
15901
15901
  Rp as baseMotionDuration,
15902
15902
  Vp as baseSpacing,
15903
- fm as beatuiPreset,
15903
+ bm as beatuiPreset,
15904
15904
  Cp as bgColors,
15905
- Vm as boolean,
15905
+ jm as boolean,
15906
15906
  Sp as borderColors,
15907
15907
  jp as borderWidth,
15908
15908
  Hp as breakpoints,
@@ -15911,25 +15911,25 @@ export {
15911
15911
  $p as colorShades,
15912
15912
  xp as colors,
15913
15913
  ur as compareBreakpoint,
15914
- Zb as connectCommonAttributes,
15915
- Xb as connectNumberInput,
15916
- Qb as connectStringInput,
15914
+ Xb as connectCommonAttributes,
15915
+ Qb as connectNumberInput,
15916
+ Jb as connectStringInput,
15917
15917
  Wp as controlGap,
15918
15918
  Gp as controlHeight,
15919
15919
  qp as controlPaddingBlock,
15920
15920
  Yp as controlPaddingInline,
15921
- Jb as convertStandardSchemaIssues,
15922
- em as convertStandardSchemaPathToPath,
15923
- bm as createBeatuiPreset,
15921
+ em as convertStandardSchemaIssues,
15922
+ tm as convertStandardSchemaPathToPath,
15923
+ mm as createBeatuiPreset,
15924
15924
  Gi as createCarousel,
15925
15925
  bd as createColorController,
15926
15926
  Js as createDataSource,
15927
15927
  ma as createLocationMatcher,
15928
15928
  gi as createQueryDataSource,
15929
15929
  Ll as createSpotlight,
15930
- jm as createStandardSchema,
15930
+ Hm as createStandardSchema,
15931
15931
  ji as createStepper,
15932
- cg as deepMergeDefaults,
15932
+ ug as deepMergeDefaults,
15933
15933
  cp as defaultLocale,
15934
15934
  It as defaultMessages,
15935
15935
  kc as delaySignal,
@@ -15943,20 +15943,20 @@ export {
15943
15943
  Cc as downloadUrlAndMonitor,
15944
15944
  Ut as drawCheckerboard,
15945
15945
  fa as drawHueCanvas,
15946
- ug as emitExpando,
15947
- dg as emitOptionExpando,
15946
+ dg as emitExpando,
15947
+ pg as emitOptionExpando,
15948
15948
  Vt as emptyToNull,
15949
- pg as ensureTemporal,
15949
+ fg as ensureTemporal,
15950
15950
  la as evaluateBuiltinFilter,
15951
15951
  In as evaluateFilterExpr,
15952
- Am as fileToBase64,
15952
+ Mm as fileToBase64,
15953
15953
  Vc as findBreakpoint,
15954
15954
  Kp as fontFamily,
15955
15955
  Zp as fontSize,
15956
15956
  Xp as fontWeight,
15957
- Mm as forFormat,
15958
- Fm as forTypeAndFormat,
15959
- Em as forXUI,
15957
+ Fm as forFormat,
15958
+ Em as forTypeAndFormat,
15959
+ Nm as forXUI,
15960
15960
  Sd as formatBigInt,
15961
15961
  xd as formatDate,
15962
15962
  Id as formatDateTime,
@@ -15987,7 +15987,7 @@ export {
15987
15987
  Pp as generateCoreColorVariables,
15988
15988
  sf as generateCoreTokenVariables,
15989
15989
  rf as generateFontFamilyOverrideVariables,
15990
- qm as generateInputContainerInputClasses,
15990
+ Ym as generateInputContainerInputClasses,
15991
15991
  Va as generateLinkClasses,
15992
15992
  ja as generateLinkStyles,
15993
15993
  lf as generateMotionVariables,
@@ -16089,7 +16089,7 @@ export {
16089
16089
  xb as lineHeight,
16090
16090
  Jt as localeUses12Hour,
16091
16091
  hp as makeI18nProvider,
16092
- tm as makeMapValidation,
16092
+ nm as makeMapValidation,
16093
16093
  vp as makeMessages,
16094
16094
  Ka as makeOnBlurHandler,
16095
16095
  Za as makeOnChangeHandler,
@@ -16098,12 +16098,13 @@ export {
16098
16098
  Pb as motionEasings,
16099
16099
  Ap as normalizeColorName,
16100
16100
  ea as nullToEmpty,
16101
- Hm as object,
16101
+ Um as object,
16102
16102
  Tb as outlineWidth,
16103
- Ib as overlayWidth,
16104
- nm as parsePath,
16105
- am as pathToString,
16106
- Lb as radius,
16103
+ Ib as overlayMinWidth,
16104
+ Lb as overlayWidth,
16105
+ am as parsePath,
16106
+ om as pathToString,
16107
+ Ab as radius,
16107
16108
  yo as renderDetailRow,
16108
16109
  vo as renderToggleCell,
16109
16110
  Br as renderToggleFilterCell,
@@ -16113,31 +16114,31 @@ export {
16113
16114
  Mp as resolveSemanticColorMap,
16114
16115
  Fp as semanticColorNames,
16115
16116
  Ep as semanticColors,
16116
- Ab as semanticFontNames,
16117
- Mb as semanticMotionNames,
16118
- Fb as semanticRadiusNames,
16119
- Eb as semanticShadowNames,
16120
- Nb as semanticSpacingNames,
16121
- Ob as semanticTextShadowNames,
16117
+ Mb as semanticFontNames,
16118
+ Fb as semanticMotionNames,
16119
+ Eb as semanticRadiusNames,
16120
+ Nb as semanticShadowNames,
16121
+ Ob as semanticSpacingNames,
16122
+ zb as semanticTextShadowNames,
16122
16123
  He as sessionId,
16123
- zb as shadows,
16124
- Bb as spacing,
16125
- om as standardSchemaResultToValidation,
16124
+ Bb as shadows,
16125
+ Rb as spacing,
16126
+ sm as standardSchemaResultToValidation,
16126
16127
  _p as storeIconLocally,
16127
- Um as string,
16128
- sm as taskToValidation,
16128
+ Wm as string,
16129
+ rm as taskToValidation,
16129
16130
  Np as textColors,
16130
- Rb as textShadows,
16131
+ Vb as textShadows,
16131
16132
  Op as themeColorNames,
16132
- fg as transformEmptyStringToUndefined,
16133
- bg as transformNullToUndefined,
16134
- mg as transformUndefinedToNull,
16133
+ bg as transformEmptyStringToUndefined,
16134
+ mg as transformNullToUndefined,
16135
+ gg as transformUndefinedToNull,
16135
16136
  pn as useAnimatedElementToggle,
16136
- um as useAnimatedToggle,
16137
- rm as useController,
16138
- Wm as useFocusTrap,
16139
- lm as useForm,
16140
- dm as useTimedToggle,
16141
- im as wrapSegment,
16142
- Vb as zIndex
16137
+ dm as useAnimatedToggle,
16138
+ lm as useController,
16139
+ Gm as useFocusTrap,
16140
+ im as useForm,
16141
+ pm as useTimedToggle,
16142
+ cm as wrapSegment,
16143
+ jb as zIndex
16143
16144
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../index-DeUj-5ph.cjs"),s=require("../colors-DPCHjRMj.cjs");function l(){return Object.fromEntries(s.semanticColorNames.map(e=>[e,Object.fromEntries(s.colorShades.map(t=>[t,`var(--color-${e}-${t})`]))]))}function u(e){const{includeCoreTokens:t=!0,includeSemanticTokens:n=!0}=e,a={};if(t){const r=i.generateCoreTokenVariables();e.baseSpacing&&(r[i.getSpacingVarName("base")]=e.baseSpacing),e.baseFontSize&&(r[i.getBaseFontSizeVarName()]=e.baseFontSize),e.baseMotionDuration&&(r[i.getMotionDurationVarName("base")]=e.baseMotionDuration),a[":root"]=r}return n&&(a[":root"]={...a[":root"]??{},...i.generateSemanticTokenVariables({colors:e.semanticColors,fonts:e.semanticFonts,radii:e.semanticRadii,shadows:e.semanticShadows,motion:e.semanticMotion,spacing:e.semanticSpacing,textShadows:e.semanticTextShadows})}),e.fontFamilies&&(a[":root"]={...a[":root"]??{},...i.generateFontFamilyOverrideVariables(e.fontFamilies)}),a}const o=Object.assign((e,t)=>({handler:e,config:t}),{withOptions(e,t=()=>({})){const n=a=>({handler:e(a),config:t(a)});return n.__isOptionsFunction=!0,n}});function c(e={}){const t=u(e);return{darkMode:"class",theme:{extend:e.extendTheme??!0?{colors:l()}:{}},plugins:[o(({addBase:r})=>{Object.keys(t).length>0&&r(t)}),o(({addVariant:r})=>{r("beatui-light",".light &"),r("beatui-rtl",".b-rtl &"),r("beatui-ltr",".b-ltr &")})]}}const b=c();exports.beatuiPreset=b;exports.createBeatuiPreset=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../index-XogEKwdt.cjs"),s=require("../colors-DPCHjRMj.cjs");function l(){return Object.fromEntries(s.semanticColorNames.map(e=>[e,Object.fromEntries(s.colorShades.map(t=>[t,`var(--color-${e}-${t})`]))]))}function u(e){const{includeCoreTokens:t=!0,includeSemanticTokens:n=!0}=e,a={};if(t){const r=i.generateCoreTokenVariables();e.baseSpacing&&(r[i.getSpacingVarName("base")]=e.baseSpacing),e.baseFontSize&&(r[i.getBaseFontSizeVarName()]=e.baseFontSize),e.baseMotionDuration&&(r[i.getMotionDurationVarName("base")]=e.baseMotionDuration),a[":root"]=r}return n&&(a[":root"]={...a[":root"]??{},...i.generateSemanticTokenVariables({colors:e.semanticColors,fonts:e.semanticFonts,radii:e.semanticRadii,shadows:e.semanticShadows,motion:e.semanticMotion,spacing:e.semanticSpacing,textShadows:e.semanticTextShadows})}),e.fontFamilies&&(a[":root"]={...a[":root"]??{},...i.generateFontFamilyOverrideVariables(e.fontFamilies)}),a}const o=Object.assign((e,t)=>({handler:e,config:t}),{withOptions(e,t=()=>({})){const n=a=>({handler:e(a),config:t(a)});return n.__isOptionsFunction=!0,n}});function c(e={}){const t=u(e);return{darkMode:"class",theme:{extend:e.extendTheme??!0?{colors:l()}:{}},plugins:[o(({addBase:r})=>{Object.keys(t).length>0&&r(t)}),o(({addVariant:r})=>{r("beatui-light",".light &"),r("beatui-rtl",".b-rtl &"),r("beatui-ltr",".b-ltr &")})]}}const b=c();exports.beatuiPreset=b;exports.createBeatuiPreset=c;
@@ -1,4 +1,4 @@
1
- import { g as s, a as o, b as c, c as l, d as m, e as u } from "../index-DI8bf9oC.js";
1
+ import { g as s, a as o, b as c, c as l, d as m, e as u } from "../index-CvU9E9wd.js";
2
2
  import { s as b, c as g } from "../colors-C2sgnzFH.js";
3
3
  function f() {
4
4
  return Object.fromEntries(
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("node:fs"),u=require("node:path"),R=require("../index-DeUj-5ph.cjs"),G=require("node:fs/promises"),J=require("node:crypto");var N=typeof document<"u"?document.currentScript:null;const Q="https://fonts.googleapis.com/css2",M="normal",X=400,B="Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";async function K(e){const{projectRoot:n,requests:t,logger:r}=e;if(!t||t.length===0)return null;const o=e.cacheDir?u.resolve(e.cacheDir):u.join(n,"node_modules",".beatui","google-fonts"),s=[],d=new Map;await G.mkdir(o,{recursive:!0}).catch(g=>{r?.(`Unable to create BeatUI Google Fonts cache directory: ${g}`)});for(const g of t)try{const i=W(g),l=await Y({request:g,cssUrl:i,cacheRoot:o,logger:r});if(!l)continue;const b=await se({cssText:l,cacheRoot:o,assetMap:d,logger:r});s.push(b)}catch(i){r?.(`Unexpected error while downloading Google Font "${g.family}": ${String(i)}`)}return s.length===0||d.size===0?null:{cssText:s.join(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const S=require("node:fs"),u=require("node:path"),R=require("../index-XogEKwdt.cjs"),G=require("node:fs/promises"),J=require("node:crypto");var N=typeof document<"u"?document.currentScript:null;const Q="https://fonts.googleapis.com/css2",M="normal",X=400,B="Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";async function K(e){const{projectRoot:n,requests:t,logger:r}=e;if(!t||t.length===0)return null;const o=e.cacheDir?u.resolve(e.cacheDir):u.join(n,"node_modules",".beatui","google-fonts"),s=[],d=new Map;await G.mkdir(o,{recursive:!0}).catch(g=>{r?.(`Unable to create BeatUI Google Fonts cache directory: ${g}`)});for(const g of t)try{const i=W(g),l=await Y({request:g,cssUrl:i,cacheRoot:o,logger:r});if(!l)continue;const b=await se({cssText:l,cacheRoot:o,assetMap:d,logger:r});s.push(b)}catch(i){r?.(`Unexpected error while downloading Google Font "${g.family}": ${String(i)}`)}return s.length===0||d.size===0?null:{cssText:s.join(`
2
2
  `),assets:Array.from(d.values())}}async function Y({request:e,cssUrl:n,cacheRoot:t,logger:r}){const o=u.join(t,Z(e,n));try{const s=await fetch(n,{headers:{"User-Agent":B}});if(!s.ok)throw new Error(`Failed to download Google Font CSS: ${s.status} ${s.statusText}`);const d=await s.text();return await G.writeFile(o,d),d}catch(s){if(S.existsSync(o))try{const d=await G.readFile(o,"utf8");return r?.(`Using cached Google Font CSS for ${e.family} because download failed.`),d}catch(d){r?.(`Failed to read cached Google Font CSS for ${e.family}: ${d}`)}return r?.(`Unable to download Google Font CSS for ${e.family}: ${s}`),null}}function Z(e,n){const t=J.createHash("sha1").update(n).digest("hex").slice(0,10);return`${e.family.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-")||"font"}-${t}.css`}function W(e){const{family:n}=e,t=n.trim().replace(/\s+/g," "),r=q(e.weights),o=ee(e.styles),s=new URLSearchParams;return s.append("family",te(t,r,o)),e.display&&s.append("display",e.display),e.subsets&&e.subsets.length>0&&s.append("subset",e.subsets.join(",")),e.text&&s.append("text",e.text),`${Q}?${s.toString()}`}function q(e){return!e||e.length===0?[]:Array.from(new Set(e)).sort((n,t)=>n-t)}function ee(e){if(!e||e.length===0)return[M];const n=Array.from(new Set(e)),t=n.includes("italic"),r=n.includes("normal");return!t&&!r&&n.push(M),n.sort((o,s)=>o===s?0:o==="normal"?-1:1)}function te(e,n,t){if(n.length===0&&t.every(i=>i==="normal"))return e;const r=t.includes("italic"),o=t.includes("normal"),s=n.length>0?n:[X];if(!r)return`${e}:wght@${s.join(";")}`;const d=new Set;o&&s.forEach(i=>{d.add(`0,${i}`)}),s.forEach(i=>{d.add(`1,${i}`)});const g=Array.from(d).sort((i,l)=>{const[b,$]=i.split(",").map(Number),[T,v]=l.split(",").map(Number);return b-T||$-v});return`${e}:ital,wght@${g.join(";")}`}const ne=/url\(([^)]+)\)/g;async function se({cssText:e,cacheRoot:n,assetMap:t,logger:r}){let o=e;const s=new Set;let d;for(;(d=ne.exec(e))!==null;){const i=d[1].trim().replace(/^['"]|['"]$/g,"");i.startsWith("http")&&s.add(i)}for(const g of s){const i=await re(g,n,t,r);if(!i)continue;const l=g.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),b=new RegExp(`url\\((['"])${l}\\1\\)`,"g"),$=new RegExp(`url\\(${l}\\)`,"g");o=o.replace(b,`url(${i.placeholder})`),o=o.replace($,`url(${i.placeholder})`)}return o}async function re(e,n,t,r){const o=t.get(e);if(o)return o;let s;try{const l=new URL(e);s=u.basename(l.pathname)}catch(l){return r?.(`Invalid Google Font URL skipped: ${e} (${l})`),null}if(!s)return r?.(`Unable to derive file name for Google Font URL: ${e}`),null;const d=u.join(n,s),g=`__BEATUI_GOOGLE_FONT_${t.size}__`;if(!S.existsSync(d))try{const l=await fetch(e,{headers:{"User-Agent":B}});if(!l.ok)return r?.(`Failed to download Google Font asset ${s}: ${l.status} ${l.statusText}`),null;const b=Buffer.from(await l.arrayBuffer());await G.writeFile(d,b)}catch(l){return r?.(`Unexpected error while downloading Google Font asset ${s}: ${String(l)}`),null}const i={url:e,fileName:s,localPath:d,placeholder:g};return t.set(e,i),i}function z(e){const n=typeof e=="string"?new URL(e):e;if(n.protocol!=="file:")throw new TypeError(`Expected file URL, received: ${n.href}`);const t=n.hostname,r=t===""||t==="localhost",o=decodeURIComponent(n.pathname);if(process.platform==="win32"){let s=o.replace(/\//g,"\\");return!r&&t?`\\\\${t}${s}`:(s.startsWith("\\")&&(s=s.slice(1)),s)}return!r&&t?`//${t}${o}`:o}const D="@tempots/beatui/tailwind.css",y="beatui.tailwind.css",w=u.dirname(z(typeof document>"u"?require("url").pathToFileURL(__filename).href:N&&N.tagName.toUpperCase()==="SCRIPT"&&N.src||new URL("tailwind/vite-plugin.cjs.js",document.baseURI).href)),j=oe(w)??w;function x(e){if(Object.keys(e).length===0)return"";let n=`:root {
3
3
  `;for(const[t,r]of Object.entries(e))n+=` ${t}: ${r};
4
4
  `;return n+=`}
@@ -1,6 +1,6 @@
1
1
  import S from "node:fs";
2
2
  import u from "node:path";
3
- import { a as z, b as V, c as H, d as J, e as Q } from "../index-DI8bf9oC.js";
3
+ import { a as z, b as V, c as H, d as J, e as Q } from "../index-CvU9E9wd.js";
4
4
  import { mkdir as X, writeFile as k, readFile as K } from "node:fs/promises";
5
5
  import { createHash as Y } from "node:crypto";
6
6
  const Z = "https://fonts.googleapis.com/css2", x = "normal", q = 400, D = "Mozilla/5.0 (compatible; BeatUI Tailwind Plugin; +https://tempots.com)";
@@ -113,8 +113,9 @@ export declare const overlayWidth: {
113
113
  readonly md: "min(37.5rem, 90vw)";
114
114
  readonly lg: "min(50rem, 90vw)";
115
115
  readonly xl: "min(62.5rem, 90vw)";
116
- readonly 'min-width': "12rem";
117
116
  };
117
+ /** Minimum width for overlay components (menus, dropdowns, popovers). */
118
+ export declare const overlayMinWidth = "12rem";
118
119
  export type OverlayWidthName = keyof typeof overlayWidth;
119
120
  export declare function getOverlayWidthVarName(size: OverlayWidthName): string;
120
121
  export declare function getOverlayWidthVar(size: OverlayWidthName): string;
@@ -23,6 +23,7 @@ export declare const baseSpacing = "0.25rem";
23
23
  * | none | 0 | 0 |
24
24
  * | px | 1px | 1px |
25
25
  * | base | 0.25rem | 4px |
26
+ * | 2xs | base / 4 | 1px |
26
27
  * | xs | base / 2 | 2px |
27
28
  * | sm | base | 4px |
28
29
  * | smh | base * 1.5 | 6px |
@@ -41,6 +42,7 @@ export declare const spacing: {
41
42
  readonly none: "0";
42
43
  readonly px: "1px";
43
44
  readonly base: "0.25rem";
45
+ readonly '2xs': "calc(var(--spacing-base) / 4)";
44
46
  readonly xs: "calc(var(--spacing-base) / 2)";
45
47
  readonly sm: "var(--spacing-base)";
46
48
  readonly smh: "calc(var(--spacing-base) * 1.5)";
@@ -96,7 +96,7 @@ export declare const fontSize: {
96
96
  * changeFontSize('9xl', 5) // '9xl' (clamped)
97
97
  * ```
98
98
  */
99
- export declare function changeFontSize(size: FontSize, steps: number): "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | "3xl" | "4xl" | "2xs" | "3xs" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
99
+ export declare function changeFontSize(size: FontSize, steps: number): "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | "2xs" | "3xl" | "4xl" | "3xs" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl";
100
100
  /**
101
101
  * Union type of all available font size names.
102
102
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",
@@ -1 +0,0 @@
1
- "use strict";const i=require("@tempots/std"),G=require("./colors-DPCHjRMj.cjs"),A={none:"0",thin:"1px",default:"1.5px",medium:"2px",thick:"3px"};function f(e){return`--border-width-${e}`}function Re(e){return`var(${f(e)})`}function Z(){const e={};return i.objectEntries(A).forEach(([a,t])=>{e[f(a)]=t}),e}const Q={none:"0",default:"1px",focus:"2px"};function x(e){return`--outline-width-${e}`}function Pe(e){return`var(${x(e)})`}function U(){const e={};return i.objectEntries(Q).forEach(([a,t])=>{e[x(a)]=t}),e}const h={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"};function V(e){return`--breakpoint-${e}`}function Le(e){return`var(${V(e)})`}function De(e){return`@media (width >= ${h[e]})`}function q(){const e={};return i.objectEntries(h).forEach(([a,t])=>{e[V(a)]=t}),e}const J={xs:"calc(var(--spacing-base) * 7)",sm:"calc(var(--spacing-base) * 8)",md:"calc(var(--spacing-base) * 10)",lg:"calc(var(--spacing-base) * 12)",xl:"calc(var(--spacing-base) * 14)"};function v(e){return`--control-height-${e}`}function Ge(e){return`var(${v(e)})`}function K(){const e={};return i.objectEntries(J).forEach(([a,t])=>{e[v(a)]=t}),e}const X={xs:"var(--spacing-xs)",sm:"var(--spacing-sm)",md:"var(--spacing-md)",lg:"var(--spacing-mdh)",xl:"var(--spacing-lg)"};function S(e){return`--control-padding-block-${e}`}function Ae(e){return`var(${S(e)})`}const Y={xs:"var(--spacing-md)",sm:"var(--spacing-mdh)",md:"var(--spacing-lg)",lg:"var(--spacing-lgh)",xl:"var(--spacing-xl)"};function N(e){return`--control-padding-inline-${e}`}function Ze(e){return`var(${N(e)})`}function _(){const e={};return i.objectEntries(X).forEach(([a,t])=>{e[S(a)]=t}),i.objectEntries(Y).forEach(([a,t])=>{e[N(a)]=t}),e}const ee={xs:"var(--spacing-xs)",sm:"var(--spacing-sm)",md:"var(--spacing-smh)",lg:"var(--spacing-md)",xl:"var(--spacing-mdh)"};function w(e){return`--control-gap-${e}`}function Qe(e){return`var(${w(e)})`}function ae(){const e={};return i.objectEntries(ee).forEach(([a,t])=>{e[w(a)]=t}),e}const te={xs:"min(20rem, 90vw)",sm:"min(25rem, 90vw)",md:"min(37.5rem, 90vw)",lg:"min(50rem, 90vw)",xl:"min(62.5rem, 90vw)","min-width":"12rem"};function z(e){return`--overlay-width-${e}`}function Ue(e){return`var(${z(e)})`}function ne(){const e={};return i.objectEntries(te).forEach(([a,t])=>{e[z(a)]=t}),e}function re(){return{...K(),..._(),...ae(),...ne()}}const y={none:"0",xs:"var(--spacing-xs)",sm:"var(--spacing-sm)",md:"var(--spacing-smh)",lg:"var(--spacing-md)",xl:"var(--spacing-mdh)",full:"9999px"};function E(e){return`--radius-${e}`}function o(e){return`var(${E(e)})`}function qe(e){return`@media (width >= ${y[e]})`}function ie(){const e={};return i.objectEntries(y).forEach(([a,t])=>{e[E(a)]=t}),e}const Je=["control","control-sm","control-xs","button","surface","overlay","popover","pill","focus"],Ke={control:o("md"),"control-sm":o("sm"),"control-xs":o("xs"),button:o("md"),surface:o("lg"),overlay:o("lg"),popover:o("md"),pill:o("full"),focus:o("sm")};function oe(e){return`--radius-${e}`}function se(e){const a={},t={...Ke,...e};return i.objectEntries(t).forEach(([n,r])=>{a[oe(n)]=r}),a}const $="0.25rem",ce={none:"0",px:"1px",base:$,xs:"calc(var(--spacing-base) / 2)",sm:"var(--spacing-base)",smh:"calc(var(--spacing-base) * 1.5)",md:"calc(var(--spacing-base) * 2)",mdh:"calc(var(--spacing-base) * 3)",lg:"calc(var(--spacing-base) * 4)",lgh:"calc(var(--spacing-base) * 5)",xl:"calc(var(--spacing-base) * 6)","2xl":"calc(var(--spacing-base) * 8)","2xlh":"calc(var(--spacing-base) * 10)","3xl":"calc(var(--spacing-base) * 12)","4xl":"calc(var(--spacing-base) * 16)",full:"2000px"};function d(e){return`--spacing-${e}`}function Xe(e){return`var(${d(e)})`}function ge(){const e={"--spacing-base-raw":$,"--spacing-scale":"1"};return i.objectEntries(ce).forEach(([a,t])=>{a==="base"?e[d(a)]="calc(var(--spacing-base-raw) * var(--spacing-scale))":e[d(a)]=t}),e}const Ye=["stack-2xs","stack-xs","stack-sm","stack-md","stack-lg","stack-xl"],_e={"stack-2xs":"var(--spacing-xs)","stack-xs":"var(--spacing-sm)","stack-sm":"var(--spacing-md)","stack-md":"var(--spacing-mdh)","stack-lg":"var(--spacing-lg)","stack-xl":"var(--spacing-xl)"};function le(e){return`--spacing-${e}`}function me(e){const a={},t={..._e,...e};return i.objectEntries(t).forEach(([n,r])=>{a[le(n)]=r}),a}const ue={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 F(e){return`--shadow-${e}`}function g(e){return`var(${F(e)})`}function pe(){const e={};return i.objectEntries(ue).forEach(([a,t])=>{e[F(a)]=t}),e}const ea=["surface","surface-elevated","popover","overlay","button"],aa={surface:g("sm"),"surface-elevated":g("md"),popover:g("lg"),overlay:g("xl"),button:g("xs")};function de(e){return`--shadow-${e}`}function be(e){const a={},t={...aa,...e};return i.objectEntries(t).forEach(([n,r])=>{a[de(n)]=r}),a}const fe="1rem",k={"3xs":["calc(var(--font-size-base) * 0.5)",{lineHeight:"calc(var(--font-size-base) * 0.75)"}],"2xs":["calc(var(--font-size-base) * 0.625)",{lineHeight:"calc(var(--font-size-base) * 0.75)"}],xs:["calc(var(--font-size-base) * 0.75)",{lineHeight:"var(--font-size-base)"}],sm:["calc(var(--font-size-base) * 0.875)",{lineHeight:"calc(var(--font-size-base) * 1.25)"}],md:["var(--font-size-base)",{lineHeight:"calc(var(--font-size-base) * 1.5)"}],lg:["calc(var(--font-size-base) * 1.125)",{lineHeight:"calc(var(--font-size-base) * 1.75)"}],xl:["calc(var(--font-size-base) * 1.25)",{lineHeight:"calc(var(--font-size-base) * 1.75)"}],"2xl":["calc(var(--font-size-base) * 1.5)",{lineHeight:"calc(var(--font-size-base) * 2)"}],"3xl":["calc(var(--font-size-base) * 1.875)",{lineHeight:"calc(var(--font-size-base) * 2.25)"}],"4xl":["calc(var(--font-size-base) * 2.25)",{lineHeight:"calc(var(--font-size-base) * 2.5)"}],"5xl":["calc(var(--font-size-base) * 3)",{lineHeight:"1"}],"6xl":["calc(var(--font-size-base) * 3.75)",{lineHeight:"1"}],"7xl":["calc(var(--font-size-base) * 4.5)",{lineHeight:"1"}],"8xl":["calc(var(--font-size-base) * 6)",{lineHeight:"1"}],"9xl":["calc(var(--font-size-base) * 8)",{lineHeight:"1"}]};function ta(e,a){const t=Object.keys(k),n=t.indexOf(e);if(n===-1)throw new Error(`Invalid font size: ${e}`);const r=Math.min(Math.max(n+a,0),t.length-1);return t[r]}const xe={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},he={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ve={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},ve={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 Se(e){return Array.isArray(e)?e.join(", "):e}const na=["body","heading","display","mono","ui","prose"],ra={body:s("sans"),heading:s("sans"),display:s("sans"),mono:s("mono"),ui:s("sans"),prose:s("serif")};function H(e){return`--font-size-${e}`}function ia(e){return`var(${H(e)})`}function j(){return"--font-size-base"}function oa(){return`var(${j()})`}function C(e){return`--font-size-${e}-lh`}function sa(e){return`var(${C(e)})`}function M(e){return`--font-weight-${e}`}function ca(e){return`var(${M(e)})`}function O(e){return`--line-height-${e}`}function ga(e){return`var(${O(e)})`}function W(e){return`--letter-spacing-${e}`}function la(e){return`var(${W(e)})`}function b(e){return`--font-family-${e}`}function s(e){return`var(${b(e)})`}function B(e){return`--font-${e}`}function c(e){return`var(${B(e)})`}function Ne(){const e={};return e["--font-size-base-raw"]=fe,e["--font-size-scale"]="1",e[j()]="calc(var(--font-size-base-raw) * var(--font-size-scale))",Object.entries(k).forEach(([a,t])=>{const[n,r]=Array.isArray(t)?t:[t,void 0];e[H(a)]=n,r&&typeof r=="object"&&"lineHeight"in r&&(e[C(a)]=r.lineHeight)}),Object.entries(xe).forEach(([a,t])=>{e[M(a)]=t}),Object.entries(he).forEach(([a,t])=>{e[O(a)]=t}),Object.entries(Ve).forEach(([a,t])=>{e[W(a)]=t}),Object.entries(ve).forEach(([a,t])=>{const n=Se(t);e[b(a)]=n,e[`--font-${a}`]=n}),e}function ma(e){if(!e)return{};const a={};return Object.entries(e).forEach(([t,n])=>{if(n==null)return;const r=Se(n);a[b(t)]=r,a[`--font-${t}`]=r}),a}function we(e){const a={},t={...ra,...e};return Object.entries(t).forEach(([n,r])=>{a[B(n)]=r}),a["--font-family-default"]=c("body"),a["--font-family-default-heading"]=c("heading"),a["--font-family-default-display"]=c("display"),a["--font-family-default-ui"]=c("ui"),a["--font-family-default-prose"]=c("prose"),a["--font-family-default-mono"]=c("mono"),a}const ze={base:0,raised:100,navigation:200,sidebar:200,overlay:500,modal:600,tooltip:700,popover:800,notification:900,maximum:1e3};function T(e){return`--z-index-${e}`}function ua(e){return`var(${T(e)})`}function ye(){const e={};return i.objectEntries(ze).forEach(([a,t])=>{e[T(a)]=t.toString()}),e}const Ee="200ms",$e={instant:"0s",fast:"calc(var(--motion-duration-base) * 0.6)",base:Ee,slow:"calc(var(--motion-duration-base) * 1.6)",relaxed:"calc(var(--motion-duration-base) * 2.4)"},Fe={standard:"cubic-bezier(0.2, 0, 0, 1)",emphasized:"cubic-bezier(0.33, 1, 0.68, 1)",entrance:"cubic-bezier(0, 0, 0.2, 1)",exit:"cubic-bezier(0.8, 0, 0.6, 1)"};function I(e){return`--motion-duration-${e}`}function l(e){return`var(${I(e)})`}function ke(){return"--motion-duration-base"}function pa(){return`var(${ke()})`}function R(e){return`--motion-easing-${e}`}function u(e){return`var(${R(e)})`}function He(){const e={};return i.objectEntries($e).forEach(([a,t])=>{e[I(a)]=t}),i.objectEntries(Fe).forEach(([a,t])=>{e[R(a)]=t}),e}const da=["transition-fast","transition-medium","transition-slow","transition-overlay","transition-emphasis","easing-standard","easing-emphasis","easing-entrance","easing-exit"],ba={"transition-fast":l("fast"),"transition-medium":l("base"),"transition-slow":l("slow"),"transition-overlay":l("relaxed"),"transition-emphasis":l("fast"),"easing-standard":u("standard"),"easing-emphasis":u("emphasized"),"easing-entrance":u("entrance"),"easing-exit":u("exit")};function je(e){return`--motion-${e}`}function Ce(e){const a={},t={...ba,...e};return i.objectEntries(t).forEach(([n,r])=>{const m=je(n);r!==`var(${m})`&&(a[m]=r)}),a}const Me={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)"},fa=["button-filled","button-light","button-default"],xa={"button-filled":p("sm"),"button-light":p("xs"),"button-default":p("2xs")};function P(e){return`--text-shadow-${e}`}function p(e){return`var(${P(e)})`}function Oe(){const e={};return i.objectEntries(Me).forEach(([a,t])=>{e[P(a)]=t}),e}function We(e){return`--text-shadow-${e}`}function Be(e){const a={},t={...xa,...e};return i.objectEntries(t).forEach(([n,r])=>{a[We(n)]=r}),a}function Te(){return{...G.generateCoreColorVariables(),...ge(),...Ne(),...q(),...ie(),...pe(),...He(),...Oe(),...ye(),...Z(),...U(),...re()}}function ha(e){return typeof e=="object"&&e!==null&&("colors"in e||"fonts"in e||"radii"in e||"shadows"in e||"motion"in e||"spacing"in e||"textShadows"in e)}function Ie(e){let a,t,n,r,m,L,D;return ha(e)?(a=e.colors,t=e.fonts,n=e.radii,r=e.shadows,m=e.motion,L=e.spacing,D=e.textShadows):a=e,{...G.generateSemanticColorVariables(a),...we(t),...se(n),...be(r),...Ce(m),...me(L),...Be(D)}}function Va(){return{...Te(),...Ie()}}function va(e,a){return a==null&&typeof window>"u"?"":getComputedStyle(a??document.documentElement).getPropertyValue(e).trim()}exports.baseFontSize=fe;exports.baseMotionDuration=Ee;exports.baseSpacing=$;exports.borderWidth=A;exports.breakpoints=h;exports.changeFontSize=ta;exports.controlGap=ee;exports.controlHeight=J;exports.controlPaddingBlock=X;exports.controlPaddingInline=Y;exports.fontFamily=ve;exports.fontSize=k;exports.fontWeight=xe;exports.generateAllTokenVariables=Va;exports.generateBorderWidthVariables=Z;exports.generateBreakpointVariables=q;exports.generateControlGapVariables=ae;exports.generateControlHeightVariables=K;exports.generateControlPaddingVariables=_;exports.generateControlTokenVariables=re;exports.generateCoreTokenVariables=Te;exports.generateFontFamilyOverrideVariables=ma;exports.generateMotionVariables=He;exports.generateOutlineWidthVariables=U;exports.generateOverlayWidthVariables=ne;exports.generateRadiusVariables=ie;exports.generateSemanticFontVariables=we;exports.generateSemanticMotionVariables=Ce;exports.generateSemanticRadiusVariables=se;exports.generateSemanticShadowVariables=be;exports.generateSemanticSpacingVariables=me;exports.generateSemanticTextShadowVariables=Be;exports.generateSemanticTokenVariables=Ie;exports.generateShadowVariables=pe;exports.generateSpacingVariables=ge;exports.generateTextShadowVariables=Oe;exports.generateTypographyVariables=Ne;exports.generateZIndexVariables=ye;exports.getBaseFontSizeVar=oa;exports.getBaseFontSizeVarName=j;exports.getBaseMotionDurationVar=pa;exports.getBaseMotionDurationVarName=ke;exports.getBorderWidthVar=Re;exports.getBorderWidthVarName=f;exports.getBreakpointMediaQuery=De;exports.getBreakpointVar=Le;exports.getBreakpointVarName=V;exports.getControlGapVar=Qe;exports.getControlGapVarName=w;exports.getControlHeightVar=Ge;exports.getControlHeightVarName=v;exports.getControlPaddingBlockVar=Ae;exports.getControlPaddingBlockVarName=S;exports.getControlPaddingInlineVar=Ze;exports.getControlPaddingInlineVarName=N;exports.getFontFamilyVar=s;exports.getFontFamilyVarName=b;exports.getFontSizeLineHeightVar=sa;exports.getFontSizeLineHeightVarName=C;exports.getFontSizeVar=ia;exports.getFontSizeVarName=H;exports.getFontWeightVar=ca;exports.getFontWeightVarName=M;exports.getLetterSpacingVar=la;exports.getLetterSpacingVarName=W;exports.getLineHeightVar=ga;exports.getLineHeightVarName=O;exports.getMotionDurationVar=l;exports.getMotionDurationVarName=I;exports.getMotionEasingVar=u;exports.getMotionEasingVarName=R;exports.getOutlineWidthVar=Pe;exports.getOutlineWidthVarName=x;exports.getOverlayWidthVar=Ue;exports.getOverlayWidthVarName=z;exports.getRadiusMediaQuery=qe;exports.getRadiusVar=o;exports.getRadiusVarName=E;exports.getSemanticFontVar=c;exports.getSemanticFontVarName=B;exports.getSemanticMotionVarName=je;exports.getSemanticRadiusVarName=oe;exports.getSemanticShadowVarName=de;exports.getSemanticSpacingVarName=le;exports.getSemanticTextShadowVarName=We;exports.getShadowVar=g;exports.getShadowVarName=F;exports.getSpacingVar=Xe;exports.getSpacingVarName=d;exports.getTextShadowVar=p;exports.getTextShadowVarName=P;exports.getTokenValue=va;exports.getZIndexVar=ua;exports.getZIndexVarName=T;exports.letterSpacing=Ve;exports.lineHeight=he;exports.motionDurations=$e;exports.motionEasings=Fe;exports.outlineWidth=Q;exports.overlayWidth=te;exports.radius=y;exports.semanticFontNames=na;exports.semanticMotionNames=da;exports.semanticRadiusNames=Je;exports.semanticShadowNames=ea;exports.semanticSpacingNames=Ye;exports.semanticTextShadowNames=fa;exports.shadows=ue;exports.spacing=ce;exports.textShadows=Me;exports.zIndex=ze;