@tempots/beatui 0.87.3 → 0.88.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.
Files changed (177) hide show
  1. package/dist/{ar-DjMvIww5.js → ar-MUKILk4c.js} +1 -1
  2. package/dist/auth/index.cjs.js +1 -1
  3. package/dist/auth/index.es.js +1 -1
  4. package/dist/{auth-divider-V_Se6Qhe.cjs → auth-divider-Cj-xJxF_.cjs} +1 -1
  5. package/dist/{auth-divider-BIefTDoO.js → auth-divider-DvVmqjnk.js} +101 -103
  6. package/dist/beatui.css +732 -671
  7. package/dist/beatui.tailwind.css +714 -662
  8. package/dist/better-auth/index.cjs.js +1 -1
  9. package/dist/better-auth/index.es.js +12 -12
  10. package/dist/{colors-BmLYKmoH.js → colors-BY0Ja_bf.js} +12 -12
  11. package/dist/{de-wChFYqM4.js → de-CEsW1rVX.js} +1 -1
  12. package/dist/deep-merge-Dgy9xj6w.cjs +1 -0
  13. package/dist/{deep-merge-BRqRzEQs.js → deep-merge-OvVqSLSN.js} +443 -429
  14. package/dist/{duration-input-BDEb1Bb7.js → duration-input-BCXujp0V.js} +5 -5
  15. package/dist/{duration-input-BtFL5Vjx.cjs → duration-input-MJz6UO6E.cjs} +1 -1
  16. package/dist/{editor-toolbar-group-CwCCGzEC.js → editor-toolbar-group-Cnta0SOa.js} +6 -3
  17. package/dist/{es-CmPF3IGl.js → es-ChP-aFwC.js} +1 -1
  18. package/dist/{fa-D696e75R.js → fa-CNsrlIqh.js} +1 -1
  19. package/dist/{fr-B0jeX1Hx.js → fr-DgEFKpML.js} +1 -1
  20. package/dist/{he-SgAsIYJA.js → he-B4TqfISZ.js} +1 -1
  21. package/dist/{hi-s9oiIihq.js → hi-TSoDsngT.js} +1 -1
  22. package/dist/{index-KNk3k6NI.js → index-1JaBwDB-.js} +1 -1
  23. package/dist/index-B8cqD9ny.js +838 -0
  24. package/dist/index-CN10Cyqr.cjs +1 -0
  25. package/dist/{index-yMrXbIdg.cjs → index-CTcbhnPw.cjs} +1 -1
  26. package/dist/{index-CaWDj1Vg.cjs → index-D3QVPAme.cjs} +10 -10
  27. package/dist/{index-qa82MK4Z.cjs → index-D4ZFV8Rs.cjs} +1 -1
  28. package/dist/{index-anrXec7K.cjs → index-DF7RFzD9.cjs} +1 -1
  29. package/dist/{index-B0t-nt7i.js → index-DOc1_-Nm.js} +4 -4
  30. package/dist/{index-DdqGL9Jk.js → index-D_aTUfqS.js} +701 -684
  31. package/dist/{index-BFe-x3-z.js → index-DfPkCwdC.js} +2 -2
  32. package/dist/index.cjs.js +4 -4
  33. package/dist/index.es.js +2285 -2260
  34. package/dist/{index.esm-ChUrm4xR.js → index.esm-By0m3ki1.js} +3 -3
  35. package/dist/{input-container-DhUiLmXE.js → input-container-BBWCDGTv.js} +1 -1
  36. package/dist/{it-Dc4IMciD.js → it-BrbebXg4.js} +1 -1
  37. package/dist/{ja-D2t2g5xj.js → ja-DcfOktrV.js} +1 -1
  38. package/dist/json-schema/index.cjs.js +1 -1
  39. package/dist/json-schema/index.es.js +97 -103
  40. package/dist/json-schema-display/index.cjs.js +1 -1
  41. package/dist/json-schema-display/index.es.js +15 -15
  42. package/dist/json-structure/index.cjs.js +1 -1
  43. package/dist/json-structure/index.es.js +349 -351
  44. package/dist/{ko-BRylA5JZ.js → ko-73e6t369.js} +1 -1
  45. package/dist/lexical/index.cjs.js +5 -12
  46. package/dist/lexical/index.es.js +57 -87
  47. package/dist/lexical.css +24 -23
  48. package/dist/markdown/index.cjs.js +1 -1
  49. package/dist/markdown/index.es.js +1 -1
  50. package/dist/markdown.css +7 -7
  51. package/dist/{menu-Ui4lUPHM.js → menu-CV85y3Xf.js} +1 -1
  52. package/dist/{modal-Dkje8L_l.js → modal-BBJWY7NB.js} +5 -5
  53. package/dist/{modal-Coenk8Fy.cjs → modal-jJMS0ZlW.cjs} +1 -1
  54. package/dist/monaco/index.es.js +1 -1
  55. package/dist/{nl-Dh7LUWAn.js → nl-Bq-1-ulc.js} +1 -1
  56. package/dist/notice-9lpZ-VDn.cjs +1 -0
  57. package/dist/{notice-BmkckDsD.js → notice-AUVH8Lho.js} +26 -28
  58. package/dist/{oneof-branch-detection-BED_n2MT.js → oneof-branch-detection-BQnRjp9P.js} +1740 -1734
  59. package/dist/{oneof-branch-detection-Vov_e3kI.cjs → oneof-branch-detection-BsGhMslW.cjs} +6 -6
  60. package/dist/{pl-XEG-p1Q9.js → pl-Du9-VCfW.js} +1 -1
  61. package/dist/prosemirror/index.cjs.js +1 -1
  62. package/dist/prosemirror/index.es.js +1 -1
  63. package/dist/prosemirror.css +7 -7
  64. package/dist/{pt-DYsDA2sZ.js → pt-B2UqqSAB.js} +1 -1
  65. package/dist/{ru-BTKBykp-.js → ru-DiWa2inw.js} +1 -1
  66. package/dist/stack-4VUGISn6.cjs +1 -0
  67. package/dist/{stack-BJgsPJ9A.js → stack-Bm-UZosx.js} +145 -139
  68. package/dist/styles-url-4g2WnNJ8.js +4 -0
  69. package/dist/{styles-url-DZhZ-9Bf.js → styles-url-CJYy5nML.js} +1 -1
  70. package/dist/{styles-url-YAJ6Q1GS.cjs → styles-url-D8nVwSmZ.cjs} +1 -1
  71. package/dist/{styles-url-BSUFsmMD.cjs → styles-url-evUdl8tK.cjs} +1 -1
  72. package/dist/{styles-url-BvcVGpBJ.js → styles-url-hKxIOumK.js} +1 -1
  73. package/dist/styles-url-mlDYoWbF.cjs +1 -0
  74. package/dist/tailwind/preset.cjs.js +1 -1
  75. package/dist/tailwind/preset.es.js +2 -2
  76. package/dist/tailwind/vite-plugin.cjs.js +1 -1
  77. package/dist/tailwind/vite-plugin.es.js +1 -1
  78. package/dist/{text-input-BZmAB3_o.js → text-input-6FD7p7hN.js} +5 -5
  79. package/dist/{theme-BzpMLdvH.js → theme-kQZEeusG.js} +4 -4
  80. package/dist/{toolbar-Pdj-F80l.js → toolbar-Cr0JGj5h.js} +1 -1
  81. package/dist/{tr-Cp8ZCUic.js → tr-Culcm2Zb.js} +1 -1
  82. package/dist/{translations-jUYta1_1.js → translations-Cttn6w0G.js} +1 -1
  83. package/dist/{translations-BGblCUBj.js → translations-uEUkO6gJ.js} +30 -30
  84. package/dist/types/auth-i18n/translations.d.ts +2 -2
  85. package/dist/types/beatui-i18n/translations.d.ts +2 -2
  86. package/dist/types/better-auth/components/authenticated.d.ts +2 -2
  87. package/dist/types/better-auth/components/better-auth-container.d.ts +1 -1
  88. package/dist/types/better-auth/i18n/translations.d.ts +2 -2
  89. package/dist/types/better-auth/provider.d.ts +2 -2
  90. package/dist/types/components/auth/auth-container.d.ts +1 -1
  91. package/dist/types/components/auth/auth-email-prop.d.ts +1 -1
  92. package/dist/types/components/beatui.d.ts +1 -1
  93. package/dist/types/components/button/button.d.ts +1 -1
  94. package/dist/types/components/content/native-pdf-preview.d.ts +1 -1
  95. package/dist/types/components/content/pdfjs-preview.d.ts +1 -1
  96. package/dist/types/components/data/icon.d.ts +1 -1
  97. package/dist/types/components/data/page-drop-zone.d.ts +1 -1
  98. package/dist/types/components/data/unstyled-drop-zone.d.ts +1 -1
  99. package/dist/types/components/editor-toolbar/editor-toolbar-button.d.ts +1 -1
  100. package/dist/types/components/editor-toolbar/editor-toolbar-group.d.ts +1 -1
  101. package/dist/types/components/form/control/control.d.ts +2 -2
  102. package/dist/types/components/form/control/ensure-control.d.ts +1 -1
  103. package/dist/types/components/form/control/list-control.d.ts +1 -1
  104. package/dist/types/components/form/controller/color-controller.d.ts +4 -4
  105. package/dist/types/components/form/input/appearance-selector.d.ts +2 -2
  106. package/dist/types/components/form/input/base64-input.d.ts +1 -1
  107. package/dist/types/components/form/input/base64s-input.d.ts +1 -1
  108. package/dist/types/components/form/input/combobox-tags-input.d.ts +1 -1
  109. package/dist/types/components/form/input/email-input.d.ts +1 -1
  110. package/dist/types/components/form/input/file-input.d.ts +1 -1
  111. package/dist/types/components/form/input/files-input.d.ts +1 -1
  112. package/dist/types/components/form/input/input-options.d.ts +1 -1
  113. package/dist/types/components/form/input/list-input.d.ts +1 -1
  114. package/dist/types/components/form/input/nullable-base64-input.d.ts +1 -1
  115. package/dist/types/components/form/input/nullable-plain-date-input.d.ts +12 -12
  116. package/dist/types/components/form/input/nullable-plain-date-time-input.d.ts +12 -12
  117. package/dist/types/components/form/input/nullable-plain-time-input.d.ts +12 -12
  118. package/dist/types/components/form/input/nullable-plain-year-month-input.d.ts +12 -12
  119. package/dist/types/components/form/input/password-input.d.ts +1 -1
  120. package/dist/types/components/form/input/plain-date-input.d.ts +12 -12
  121. package/dist/types/components/form/input/plain-date-time-input.d.ts +12 -12
  122. package/dist/types/components/form/input/plain-time-input.d.ts +12 -12
  123. package/dist/types/components/form/input/plain-year-month-input.d.ts +12 -12
  124. package/dist/types/components/form/input/select-tags-input.d.ts +3 -3
  125. package/dist/types/components/form/input/step-utils.d.ts +5 -0
  126. package/dist/types/components/form/use-form.d.ts +3 -3
  127. package/dist/types/components/i18n/locale-direction.d.ts +1 -1
  128. package/dist/types/components/i18n/locale-selector.d.ts +1 -1
  129. package/dist/types/components/i18n/locale.d.ts +1 -1
  130. package/dist/types/components/i18n/make-i18nprovider.d.ts +2 -2
  131. package/dist/types/components/layout/app-shell.d.ts +1 -1
  132. package/dist/types/components/lexical/code/language-selector.d.ts +1 -1
  133. package/dist/types/components/lexical/floating/block-handle.d.ts +1 -1
  134. package/dist/types/components/lexical/floating/floating-toolbar.d.ts +1 -1
  135. package/dist/types/components/lexical/floating/slash-command-palette.d.ts +1 -1
  136. package/dist/types/components/lexical/table/table-controls.d.ts +1 -1
  137. package/dist/types/components/lexical/toolbar/lexical-toolbar.d.ts +1 -1
  138. package/dist/types/components/lexical/toolbar/toolbar-helpers.d.ts +2 -2
  139. package/dist/types/components/media/pdf-page-viewer.d.ts +1 -1
  140. package/dist/types/components/misc/notification-provider.d.ts +2 -2
  141. package/dist/types/components/navigation/link/button-link.d.ts +1 -1
  142. package/dist/types/components/navigation/link/link.d.ts +1 -1
  143. package/dist/types/components/navigation/link/navigation-link.d.ts +1 -1
  144. package/dist/types/components/navigation/pagination.d.ts +1 -1
  145. package/dist/types/components/navigation/sidebar/sidebar.d.ts +2 -2
  146. package/dist/types/components/navigation/toolbar/toolbar.d.ts +1 -1
  147. package/dist/types/components/prosemirror/link-control.d.ts +1 -1
  148. package/dist/types/components/prosemirror/prosemirror-toolbar.d.ts +1 -1
  149. package/dist/types/components/prosemirror/utils.d.ts +2 -2
  150. package/dist/types/components/theme/theme.d.ts +2 -2
  151. package/dist/types/i18n/translate.d.ts +1 -1
  152. package/dist/types/tailwind/preset.d.ts +1 -1
  153. package/dist/types/tailwind/vite-plugin.d.ts +1 -1
  154. package/dist/types/tokens/borders.d.ts +104 -0
  155. package/dist/types/tokens/controls.d.ts +127 -0
  156. package/dist/types/tokens/index.d.ts +2 -0
  157. package/dist/types/tokens/radius.d.ts +14 -14
  158. package/dist/types/tokens/typography.d.ts +33 -33
  159. package/dist/types/utils/delay-signal.d.ts +1 -1
  160. package/dist/types/utils/use-animated-toggle.d.ts +22 -22
  161. package/dist/{ur-DkIYJxsF.js → ur-Deb-uH6b.js} +1 -1
  162. package/dist/{use-animated-toggle-89fKlXxy.js → use-animated-toggle-C7PTmnZi.js} +7 -7
  163. package/dist/{use-form-B_mCauP0.cjs → use-form-i97PToWB.cjs} +1 -1
  164. package/dist/{use-form-BSvvERhX.js → use-form-lg6-7Brc.js} +14 -13
  165. package/dist/{vi-DKw6PBja.js → vi-CUsCVh3n.js} +1 -1
  166. package/dist/widget-customization-BLvD4Lqt.cjs +1 -0
  167. package/dist/{widget-customization-DFr3ycD7.js → widget-customization-CDD72zYs.js} +29 -29
  168. package/dist/{zh-CaKHseXJ.js → zh-Dil2Jft8.js} +1 -1
  169. package/package.json +35 -31
  170. package/dist/deep-merge-CvN7Xvd1.cjs +0 -1
  171. package/dist/index-BywbRDsb.cjs +0 -1
  172. package/dist/index-D2_J_-XS.js +0 -671
  173. package/dist/notice-DMK7dx9a.cjs +0 -1
  174. package/dist/stack-DcZ_u50f.cjs +0 -1
  175. package/dist/styles-url-CCopc5pG.js +0 -4
  176. package/dist/styles-url-CEDSZTyZ.cjs +0 -1
  177. package/dist/widget-customization-BASfRpF7.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";const r=require("./colors-BI0YhONJ.cjs"),f={sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"};function x(e){return`--breakpoint-${e}`}function de(e){return`var(${x(e)})`}function he(e){return`@media (width >= ${f[e]})`}function B(){const e={};return r.l(f).forEach(([a,t])=>{e[x(a)]=t}),e}const d={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 h(e){return`--radius-${e}`}function o(e){return`var(${h(e)})`}function Ve(e){return`@media (width >= ${d[e]})`}function j(){const e={};return r.l(d).forEach(([a,t])=>{e[h(a)]=t}),e}const Se=["control","control-sm","control-xs","button","surface","overlay","popover","pill","focus"],ve={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 I(e){return`--radius-${e}`}function L(e){const a={},t={...ve,...e};return r.l(t).forEach(([n,i])=>{a[I(n)]=i}),a}const D="0.25rem",C={none:"0",px:"1px",base:D,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 V(e){return`--spacing-${e}`}function Ne(e){return`var(${V(e)})`}function A(){const e={};return r.l(C).forEach(([a,t])=>{e[V(a)]=t}),e}const ze=["stack-2xs","stack-xs","stack-sm","stack-md","stack-lg","stack-xl"],we={"stack-2xs":"calc(var(--spacing-base) / 2)","stack-xs":"calc(var(--spacing-base) * 1)","stack-sm":"calc(var(--spacing-base) * 2)","stack-md":"calc(var(--spacing-base) * 3)","stack-lg":"calc(var(--spacing-base) * 4)","stack-xl":"calc(var(--spacing-base) * 6)"};function W(e){return`--spacing-${e}`}function Z(e){const a={},t={...we,...e};return r.l(t).forEach(([n,i])=>{a[W(n)]=i}),a}const Q={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 S(e){return`--shadow-${e}`}function g(e){return`var(${S(e)})`}function U(){const e={};return r.l(Q).forEach(([a,t])=>{e[S(a)]=t}),e}const ye=["surface","surface-elevated","popover","overlay","button"],Fe={surface:g("sm"),"surface-elevated":g("md"),popover:g("lg"),overlay:g("xl"),button:g("xs")};function q(e){return`--shadow-${e}`}function G(e){const a={},t={...Fe,...e};return r.l(t).forEach(([n,i])=>{a[q(n)]=i}),a}const P="1rem",v={"3xs":["calc(var(--base-font-size) * 0.5)",{lineHeight:"calc(var(--base-font-size) * 0.75)"}],"2xs":["calc(var(--base-font-size) * 0.625)",{lineHeight:"calc(var(--base-font-size) * 0.75)"}],xs:["calc(var(--base-font-size) * 0.75)",{lineHeight:"var(--base-font-size)"}],sm:["calc(var(--base-font-size) * 0.875)",{lineHeight:"calc(var(--base-font-size) * 1.25)"}],md:["var(--base-font-size)",{lineHeight:"calc(var(--base-font-size) * 1.5)"}],lg:["calc(var(--base-font-size) * 1.125)",{lineHeight:"calc(var(--base-font-size) * 1.75)"}],xl:["calc(var(--base-font-size) * 1.25)",{lineHeight:"calc(var(--base-font-size) * 1.75)"}],"2xl":["calc(var(--base-font-size) * 1.5)",{lineHeight:"calc(var(--base-font-size) * 2)"}],"3xl":["calc(var(--base-font-size) * 1.875)",{lineHeight:"calc(var(--base-font-size) * 2.25)"}],"4xl":["calc(var(--base-font-size) * 2.25)",{lineHeight:"calc(var(--base-font-size) * 2.5)"}],"5xl":["calc(var(--base-font-size) * 3)",{lineHeight:"1"}],"6xl":["calc(var(--base-font-size) * 3.75)",{lineHeight:"1"}],"7xl":["calc(var(--base-font-size) * 4.5)",{lineHeight:"1"}],"8xl":["calc(var(--base-font-size) * 6)",{lineHeight:"1"}],"9xl":["calc(var(--base-font-size) * 8)",{lineHeight:"1"}]};function $e(e,a){const t=Object.keys(v),n=t.indexOf(e);if(n===-1)throw new Error(`Invalid font size: ${e}`);const i=Math.min(Math.max(n+a,0),t.length-1);return t[i]}const J={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},K={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},X={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Y={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 _(e){return Array.isArray(e)?e.join(", "):e}const Me=["body","heading","display","mono","ui","prose"],ke={body:s("sans"),heading:s("sans"),display:s("sans"),mono:s("mono"),ui:s("sans"),prose:s("serif")};function N(e){return`--font-size-${e}`}function Ee(e){return`var(${N(e)})`}function z(){return"--base-font-size"}function He(){return`var(${z()})`}function w(e){return`--font-size-${e}-lh`}function Te(e){return`var(${w(e)})`}function y(e){return`--font-weight-${e}`}function Oe(e){return`var(${y(e)})`}function F(e){return`--line-height-${e}`}function Re(e){return`var(${F(e)})`}function $(e){return`--letter-spacing-${e}`}function Be(e){return`var(${$(e)})`}function b(e){return`--font-family-${e}`}function s(e){return`var(${b(e)})`}function M(e){return`--font-${e}`}function c(e){return`var(${M(e)})`}function ee(){const e={};return e[z()]=P,Object.entries(v).forEach(([a,t])=>{const[n,i]=Array.isArray(t)?t:[t,void 0];e[N(a)]=n,i&&typeof i=="object"&&"lineHeight"in i&&(e[w(a)]=i.lineHeight)}),Object.entries(J).forEach(([a,t])=>{e[y(a)]=t}),Object.entries(K).forEach(([a,t])=>{e[F(a)]=t}),Object.entries(X).forEach(([a,t])=>{e[$(a)]=t}),Object.entries(Y).forEach(([a,t])=>{const n=_(t);e[b(a)]=n,e[`--font-${a}`]=n}),e}function je(e){if(!e)return{};const a={};return Object.entries(e).forEach(([t,n])=>{if(n==null)return;const i=_(n);a[b(t)]=i,a[`--font-${t}`]=i}),a}function ae(e){const a={},t={...ke,...e};return Object.entries(t).forEach(([n,i])=>{a[M(n)]=i}),a["--default-font-family"]=c("body"),a["--default-heading-font-family"]=c("heading"),a["--default-display-font-family"]=c("display"),a["--default-ui-font-family"]=c("ui"),a["--default-prose-font-family"]=c("prose"),a["--default-mono-font-family"]=c("mono"),a}const te={base:0,raised:10,navigation:20,sidebar:20,overlay:50,modal:60,tooltip:70,popover:80,notification:90,maximum:100};function k(e){return`--z-index-${e}`}function Ie(e){return`var(${k(e)})`}function ne(){const e={};return r.l(te).forEach(([a,t])=>{e[k(a)]=t.toString()}),e}const ie="200ms",re={instant:"0s",fast:"calc(var(--motion-duration-base) * 0.6)",base:ie,slow:"calc(var(--motion-duration-base) * 1.6)",relaxed:"calc(var(--motion-duration-base) * 2.4)"},oe={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 E(e){return`--motion-duration-${e}`}function l(e){return`var(${E(e)})`}function se(){return"--motion-duration-base"}function Le(){return`var(${se()})`}function H(e){return`--motion-easing-${e}`}function u(e){return`var(${H(e)})`}function ce(){const e={};return r.l(re).forEach(([a,t])=>{e[E(a)]=t}),r.l(oe).forEach(([a,t])=>{e[H(a)]=t}),e}const De=["transition-fast","transition-medium","transition-slow","transition-overlay","transition-emphasis","easing-standard","easing-emphasis","easing-entrance","easing-exit"],Ce={"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 ge(e){return`--motion-${e}`}function le(e){const a={},t={...Ce,...e};return r.l(t).forEach(([n,i])=>{const m=ge(n);i!==`var(${m})`&&(a[m]=i)}),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)"},Ae=["button-filled","button-light","button-default"],We={"button-filled":p("sm"),"button-light":p("xs"),"button-default":p("2xs")};function T(e){return`--text-shadow-${e}`}function p(e){return`var(${T(e)})`}function ue(){const e={};return r.l(me).forEach(([a,t])=>{e[T(a)]=t}),e}function pe(e){return`--text-shadow-${e}`}function be(e){const a={},t={...We,...e};return r.l(t).forEach(([n,i])=>{a[pe(n)]=i}),a}function fe(){return{...r.generateCoreColorVariables(),...A(),...ee(),...B(),...j(),...U(),...ce(),...ue(),...ne()}}function Ze(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 xe(e){let a,t,n,i,m,O,R;return Ze(e)?(a=e.colors,t=e.fonts,n=e.radii,i=e.shadows,m=e.motion,O=e.spacing,R=e.textShadows):a=e,{...r.generateSemanticColorVariables(a),...ae(t),...L(n),...G(i),...le(m),...Z(O),...be(R)}}function Qe(){return{...fe(),...xe()}}function Ue(e,a){return a==null&&typeof window>"u"?"":getComputedStyle(a??document.documentElement).getPropertyValue(e).trim()}exports.baseFontSize=P;exports.baseMotionDuration=ie;exports.baseSpacing=D;exports.breakpoints=f;exports.changeFontSize=$e;exports.fontFamily=Y;exports.fontSize=v;exports.fontWeight=J;exports.generateAllTokenVariables=Qe;exports.generateBreakpointVariables=B;exports.generateCoreTokenVariables=fe;exports.generateFontFamilyOverrideVariables=je;exports.generateMotionVariables=ce;exports.generateRadiusVariables=j;exports.generateSemanticFontVariables=ae;exports.generateSemanticMotionVariables=le;exports.generateSemanticRadiusVariables=L;exports.generateSemanticShadowVariables=G;exports.generateSemanticSpacingVariables=Z;exports.generateSemanticTextShadowVariables=be;exports.generateSemanticTokenVariables=xe;exports.generateShadowVariables=U;exports.generateSpacingVariables=A;exports.generateTextShadowVariables=ue;exports.generateTypographyVariables=ee;exports.generateZIndexVariables=ne;exports.getBaseFontSizeVar=He;exports.getBaseFontSizeVarName=z;exports.getBaseMotionDurationVar=Le;exports.getBaseMotionDurationVarName=se;exports.getBreakpointMediaQuery=he;exports.getBreakpointVar=de;exports.getBreakpointVarName=x;exports.getFontFamilyVar=s;exports.getFontFamilyVarName=b;exports.getFontSizeLineHeightVar=Te;exports.getFontSizeLineHeightVarName=w;exports.getFontSizeVar=Ee;exports.getFontSizeVarName=N;exports.getFontWeightVar=Oe;exports.getFontWeightVarName=y;exports.getLetterSpacingVar=Be;exports.getLetterSpacingVarName=$;exports.getLineHeightVar=Re;exports.getLineHeightVarName=F;exports.getMotionDurationVar=l;exports.getMotionDurationVarName=E;exports.getMotionEasingVar=u;exports.getMotionEasingVarName=H;exports.getRadiusMediaQuery=Ve;exports.getRadiusVar=o;exports.getRadiusVarName=h;exports.getSemanticFontVar=c;exports.getSemanticFontVarName=M;exports.getSemanticMotionVarName=ge;exports.getSemanticRadiusVarName=I;exports.getSemanticShadowVarName=q;exports.getSemanticSpacingVarName=W;exports.getSemanticTextShadowVarName=pe;exports.getShadowVar=g;exports.getShadowVarName=S;exports.getSpacingVar=Ne;exports.getSpacingVarName=V;exports.getTextShadowVar=p;exports.getTextShadowVarName=T;exports.getTokenValue=Ue;exports.getZIndexVar=Ie;exports.getZIndexVarName=k;exports.letterSpacing=X;exports.lineHeight=K;exports.motionDurations=re;exports.motionEasings=oe;exports.radius=d;exports.semanticFontNames=Me;exports.semanticMotionNames=De;exports.semanticRadiusNames=Se;exports.semanticShadowNames=ye;exports.semanticSpacingNames=ze;exports.semanticTextShadowNames=Ae;exports.shadows=Q;exports.spacing=C;exports.textShadows=me;exports.zIndex=te;
@@ -1,671 +0,0 @@
1
- import { l as i, g as B, a as C } from "./colors-BmLYKmoH.js";
2
- const d = {
3
- sm: "40rem",
4
- // 640px
5
- md: "48rem",
6
- // 768px
7
- lg: "64rem",
8
- // 1024px
9
- xl: "80rem",
10
- // 1280px
11
- "2xl": "96rem"
12
- // 1536px
13
- };
14
- function h(a) {
15
- return `--breakpoint-${a}`;
16
- }
17
- function Ea(a) {
18
- return `var(${h(a)})`;
19
- }
20
- function Fa(a) {
21
- return `@media (width >= ${d[a]})`;
22
- }
23
- function I() {
24
- const a = {};
25
- return i(d).forEach(([e, n]) => {
26
- a[h(e)] = n;
27
- }), a;
28
- }
29
- const v = {
30
- none: "0",
31
- xs: "calc(var(--spacing-base) / 2)",
32
- sm: "var(--spacing-base)",
33
- md: "calc(var(--spacing-base) * 1.5)",
34
- lg: "calc(var(--spacing-base) * 2)",
35
- xl: "calc(var(--spacing-base) * 3)",
36
- full: "9999px"
37
- };
38
- function S(a) {
39
- return `--radius-${a}`;
40
- }
41
- function r(a) {
42
- return `var(${S(a)})`;
43
- }
44
- function ka(a) {
45
- return `@media (width >= ${v[a]})`;
46
- }
47
- function A() {
48
- const a = {};
49
- return i(v).forEach(([e, n]) => {
50
- a[S(e)] = n;
51
- }), a;
52
- }
53
- const Ha = [
54
- "control",
55
- "control-sm",
56
- "control-xs",
57
- "button",
58
- "surface",
59
- "overlay",
60
- "popover",
61
- "pill",
62
- "focus"
63
- ], L = {
64
- control: r("md"),
65
- "control-sm": r("sm"),
66
- "control-xs": r("xs"),
67
- button: r("md"),
68
- surface: r("lg"),
69
- overlay: r("lg"),
70
- popover: r("md"),
71
- pill: r("full"),
72
- focus: r("sm")
73
- };
74
- function D(a) {
75
- return `--radius-${a}`;
76
- }
77
- function U(a) {
78
- const e = {}, n = { ...L, ...a };
79
- return i(n).forEach(([t, s]) => {
80
- e[D(t)] = s;
81
- }), e;
82
- }
83
- const W = "0.25rem", Z = {
84
- none: "0",
85
- px: "1px",
86
- base: W,
87
- xs: "calc(var(--spacing-base) / 2)",
88
- sm: "var(--spacing-base)",
89
- smh: "calc(var(--spacing-base) * 1.5)",
90
- md: "calc(var(--spacing-base) * 2)",
91
- mdh: "calc(var(--spacing-base) * 3)",
92
- lg: "calc(var(--spacing-base) * 4)",
93
- lgh: "calc(var(--spacing-base) * 5)",
94
- xl: "calc(var(--spacing-base) * 6)",
95
- "2xl": "calc(var(--spacing-base) * 8)",
96
- "2xlh": "calc(var(--spacing-base) * 10)",
97
- "3xl": "calc(var(--spacing-base) * 12)",
98
- "4xl": "calc(var(--spacing-base) * 16)",
99
- full: "2000px"
100
- };
101
- function V(a) {
102
- return `--spacing-${a}`;
103
- }
104
- function Ma(a) {
105
- return `var(${V(a)})`;
106
- }
107
- function Q() {
108
- const a = {};
109
- return i(Z).forEach(([e, n]) => {
110
- a[V(e)] = n;
111
- }), a;
112
- }
113
- const Oa = [
114
- "stack-2xs",
115
- "stack-xs",
116
- "stack-sm",
117
- "stack-md",
118
- "stack-lg",
119
- "stack-xl"
120
- ], q = {
121
- "stack-2xs": "calc(var(--spacing-base) / 2)",
122
- "stack-xs": "calc(var(--spacing-base) * 1)",
123
- "stack-sm": "calc(var(--spacing-base) * 2)",
124
- "stack-md": "calc(var(--spacing-base) * 3)",
125
- "stack-lg": "calc(var(--spacing-base) * 4)",
126
- "stack-xl": "calc(var(--spacing-base) * 6)"
127
- };
128
- function G(a) {
129
- return `--spacing-${a}`;
130
- }
131
- function P(a) {
132
- const e = {}, n = { ...q, ...a };
133
- return i(n).forEach(([t, s]) => {
134
- e[G(t)] = s;
135
- }), e;
136
- }
137
- const J = {
138
- none: "none",
139
- "2xs": "0 1px rgb(0 0 0 / 0.05)",
140
- xs: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
141
- sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
142
- md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
143
- lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
144
- xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
145
- "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
146
- "top-2xs": "0 -1px rgb(0 0 0 / 0.05)",
147
- "top-xs": "0 -1px 2px 0 rgb(0 0 0 / 0.05)",
148
- "top-sm": "0 -1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
149
- "top-md": "0 -4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
150
- "top-lg": "0 -10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
151
- "top-xl": "0 -20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
152
- "top-2xl": "0 -25px 50px -12px rgb(0 0 0 / 0.25)"
153
- };
154
- function z(a) {
155
- return `--shadow-${a}`;
156
- }
157
- function g(a) {
158
- return `var(${z(a)})`;
159
- }
160
- function K() {
161
- const a = {};
162
- return i(J).forEach(([e, n]) => {
163
- a[z(e)] = n;
164
- }), a;
165
- }
166
- const ja = [
167
- "surface",
168
- "surface-elevated",
169
- "popover",
170
- "overlay",
171
- "button"
172
- ], X = {
173
- surface: g("sm"),
174
- "surface-elevated": g("md"),
175
- popover: g("lg"),
176
- overlay: g("xl"),
177
- button: g("xs")
178
- };
179
- function Y(a) {
180
- return `--shadow-${a}`;
181
- }
182
- function _(a) {
183
- const e = {}, n = { ...X, ...a };
184
- return i(n).forEach(([t, s]) => {
185
- e[Y(t)] = s;
186
- }), e;
187
- }
188
- const aa = "1rem", y = {
189
- "3xs": [
190
- "calc(var(--base-font-size) * 0.5)",
191
- { lineHeight: "calc(var(--base-font-size) * 0.75)" }
192
- ],
193
- // 8px
194
- "2xs": [
195
- "calc(var(--base-font-size) * 0.625)",
196
- { lineHeight: "calc(var(--base-font-size) * 0.75)" }
197
- ],
198
- // 10px
199
- xs: [
200
- "calc(var(--base-font-size) * 0.75)",
201
- { lineHeight: "var(--base-font-size)" }
202
- ],
203
- // 12px
204
- sm: [
205
- "calc(var(--base-font-size) * 0.875)",
206
- { lineHeight: "calc(var(--base-font-size) * 1.25)" }
207
- ],
208
- // 14px
209
- md: [
210
- "var(--base-font-size)",
211
- { lineHeight: "calc(var(--base-font-size) * 1.5)" }
212
- ],
213
- // 16px
214
- lg: [
215
- "calc(var(--base-font-size) * 1.125)",
216
- { lineHeight: "calc(var(--base-font-size) * 1.75)" }
217
- ],
218
- // 18px
219
- xl: [
220
- "calc(var(--base-font-size) * 1.25)",
221
- { lineHeight: "calc(var(--base-font-size) * 1.75)" }
222
- ],
223
- // 20px
224
- "2xl": [
225
- "calc(var(--base-font-size) * 1.5)",
226
- { lineHeight: "calc(var(--base-font-size) * 2)" }
227
- ],
228
- // 24px
229
- "3xl": [
230
- "calc(var(--base-font-size) * 1.875)",
231
- { lineHeight: "calc(var(--base-font-size) * 2.25)" }
232
- ],
233
- // 30px
234
- "4xl": [
235
- "calc(var(--base-font-size) * 2.25)",
236
- { lineHeight: "calc(var(--base-font-size) * 2.5)" }
237
- ],
238
- // 36px
239
- "5xl": ["calc(var(--base-font-size) * 3)", { lineHeight: "1" }],
240
- // 48px
241
- "6xl": ["calc(var(--base-font-size) * 3.75)", { lineHeight: "1" }],
242
- // 60px
243
- "7xl": ["calc(var(--base-font-size) * 4.5)", { lineHeight: "1" }],
244
- // 72px
245
- "8xl": ["calc(var(--base-font-size) * 6)", { lineHeight: "1" }],
246
- // 96px
247
- "9xl": ["calc(var(--base-font-size) * 8)", { lineHeight: "1" }]
248
- // 128px
249
- };
250
- function Ta(a, e) {
251
- const n = Object.keys(y), t = n.indexOf(a);
252
- if (t === -1)
253
- throw new Error(`Invalid font size: ${a}`);
254
- const s = Math.min(Math.max(t + e, 0), n.length - 1);
255
- return n[s];
256
- }
257
- const ea = {
258
- thin: "100",
259
- extralight: "200",
260
- light: "300",
261
- normal: "400",
262
- medium: "500",
263
- semibold: "600",
264
- bold: "700",
265
- extrabold: "800",
266
- black: "900"
267
- }, na = {
268
- none: "1",
269
- tight: "1.25",
270
- snug: "1.375",
271
- normal: "1.5",
272
- relaxed: "1.625",
273
- loose: "2"
274
- }, ta = {
275
- tighter: "-0.05em",
276
- tight: "-0.025em",
277
- normal: "0em",
278
- wide: "0.025em",
279
- wider: "0.05em",
280
- widest: "0.1em"
281
- }, sa = {
282
- sans: [
283
- "system-ui",
284
- "-apple-system",
285
- "BlinkMacSystemFont",
286
- '"Segoe UI"',
287
- "Roboto",
288
- '"Helvetica Neue"',
289
- "Arial",
290
- '"Noto Sans"',
291
- "sans-serif",
292
- '"Apple Color Emoji"',
293
- '"Segoe UI Emoji"',
294
- '"Segoe UI Symbol"',
295
- '"Noto Color Emoji"'
296
- ],
297
- serif: [
298
- "ui-serif",
299
- "Georgia",
300
- "Cambria",
301
- '"Times New Roman"',
302
- "Times",
303
- "serif"
304
- ],
305
- mono: [
306
- "ui-monospace",
307
- "SFMono-Regular",
308
- '"SF Mono"',
309
- "Consolas",
310
- '"Liberation Mono"',
311
- "Menlo",
312
- "monospace"
313
- ]
314
- };
315
- function $(a) {
316
- return Array.isArray(a) ? a.join(", ") : a;
317
- }
318
- const Ra = [
319
- "body",
320
- "heading",
321
- "display",
322
- "mono",
323
- "ui",
324
- "prose"
325
- ], ia = {
326
- body: o("sans"),
327
- heading: o("sans"),
328
- display: o("sans"),
329
- mono: o("mono"),
330
- ui: o("sans"),
331
- prose: o("serif")
332
- };
333
- function w(a) {
334
- return `--font-size-${a}`;
335
- }
336
- function Ba(a) {
337
- return `var(${w(a)})`;
338
- }
339
- function N() {
340
- return "--base-font-size";
341
- }
342
- function Ca() {
343
- return `var(${N()})`;
344
- }
345
- function E(a) {
346
- return `--font-size-${a}-lh`;
347
- }
348
- function Ia(a) {
349
- return `var(${E(a)})`;
350
- }
351
- function F(a) {
352
- return `--font-weight-${a}`;
353
- }
354
- function Aa(a) {
355
- return `var(${F(a)})`;
356
- }
357
- function k(a) {
358
- return `--line-height-${a}`;
359
- }
360
- function La(a) {
361
- return `var(${k(a)})`;
362
- }
363
- function H(a) {
364
- return `--letter-spacing-${a}`;
365
- }
366
- function Da(a) {
367
- return `var(${H(a)})`;
368
- }
369
- function m(a) {
370
- return `--font-family-${a}`;
371
- }
372
- function o(a) {
373
- return `var(${m(a)})`;
374
- }
375
- function M(a) {
376
- return `--font-${a}`;
377
- }
378
- function c(a) {
379
- return `var(${M(a)})`;
380
- }
381
- function ra() {
382
- const a = {};
383
- return a[N()] = aa, Object.entries(y).forEach(([e, n]) => {
384
- const [t, s] = Array.isArray(n) ? n : [n, void 0];
385
- a[w(e)] = t, s && typeof s == "object" && "lineHeight" in s && (a[E(e)] = s.lineHeight);
386
- }), Object.entries(ea).forEach(([e, n]) => {
387
- a[F(e)] = n;
388
- }), Object.entries(na).forEach(([e, n]) => {
389
- a[k(e)] = n;
390
- }), Object.entries(ta).forEach(([e, n]) => {
391
- a[H(e)] = n;
392
- }), Object.entries(sa).forEach(([e, n]) => {
393
- const t = $(n);
394
- a[m(e)] = t, a[`--font-${e}`] = t;
395
- }), a;
396
- }
397
- function Ua(a) {
398
- if (!a)
399
- return {};
400
- const e = {};
401
- return Object.entries(a).forEach(([n, t]) => {
402
- if (t == null)
403
- return;
404
- const s = $(t);
405
- e[m(n)] = s, e[`--font-${n}`] = s;
406
- }), e;
407
- }
408
- function oa(a) {
409
- const e = {}, n = { ...ia, ...a };
410
- return Object.entries(n).forEach(([t, s]) => {
411
- e[M(t)] = s;
412
- }), e["--default-font-family"] = c("body"), e["--default-heading-font-family"] = c("heading"), e["--default-display-font-family"] = c("display"), e["--default-ui-font-family"] = c("ui"), e["--default-prose-font-family"] = c("prose"), e["--default-mono-font-family"] = c("mono"), e;
413
- }
414
- const ca = {
415
- // Base layers
416
- base: 0,
417
- raised: 10,
418
- // Navigation and layout
419
- navigation: 20,
420
- sidebar: 20,
421
- // Overlays and modals
422
- overlay: 50,
423
- modal: 60,
424
- // Tooltips and popovers
425
- tooltip: 70,
426
- popover: 80,
427
- // Notifications and alerts
428
- notification: 90,
429
- // Maximum priority
430
- maximum: 100
431
- };
432
- function O(a) {
433
- return `--z-index-${a}`;
434
- }
435
- function Wa(a) {
436
- return `var(${O(a)})`;
437
- }
438
- function la() {
439
- const a = {};
440
- return i(ca).forEach(([e, n]) => {
441
- a[O(e)] = n.toString();
442
- }), a;
443
- }
444
- const ga = "200ms", ua = {
445
- instant: "0s",
446
- fast: "calc(var(--motion-duration-base) * 0.6)",
447
- base: ga,
448
- slow: "calc(var(--motion-duration-base) * 1.6)",
449
- relaxed: "calc(var(--motion-duration-base) * 2.4)"
450
- }, pa = {
451
- standard: "cubic-bezier(0.2, 0, 0, 1)",
452
- emphasized: "cubic-bezier(0.33, 1, 0.68, 1)",
453
- entrance: "cubic-bezier(0, 0, 0.2, 1)",
454
- exit: "cubic-bezier(0.8, 0, 0.6, 1)"
455
- };
456
- function j(a) {
457
- return `--motion-duration-${a}`;
458
- }
459
- function u(a) {
460
- return `var(${j(a)})`;
461
- }
462
- function fa() {
463
- return "--motion-duration-base";
464
- }
465
- function Za() {
466
- return `var(${fa()})`;
467
- }
468
- function T(a) {
469
- return `--motion-easing-${a}`;
470
- }
471
- function p(a) {
472
- return `var(${T(a)})`;
473
- }
474
- function ma() {
475
- const a = {};
476
- return i(ua).forEach(([e, n]) => {
477
- a[j(e)] = n;
478
- }), i(pa).forEach(([e, n]) => {
479
- a[T(e)] = n;
480
- }), a;
481
- }
482
- const Qa = [
483
- "transition-fast",
484
- "transition-medium",
485
- "transition-slow",
486
- "transition-overlay",
487
- "transition-emphasis",
488
- "easing-standard",
489
- "easing-emphasis",
490
- "easing-entrance",
491
- "easing-exit"
492
- ], xa = {
493
- "transition-fast": u("fast"),
494
- "transition-medium": u("base"),
495
- "transition-slow": u("slow"),
496
- "transition-overlay": u("relaxed"),
497
- "transition-emphasis": u("fast"),
498
- "easing-standard": p("standard"),
499
- "easing-emphasis": p("emphasized"),
500
- "easing-entrance": p("entrance"),
501
- "easing-exit": p("exit")
502
- };
503
- function ba(a) {
504
- return `--motion-${a}`;
505
- }
506
- function da(a) {
507
- const e = {}, n = { ...xa, ...a };
508
- return i(n).forEach(([t, s]) => {
509
- const l = ba(t);
510
- s !== `var(${l})` && (e[l] = s);
511
- }), e;
512
- }
513
- const ha = {
514
- none: "none",
515
- "2xs": "0px 1px 0px rgb(0 0 0 / 0.15)",
516
- xs: "0px 1px 1px rgb(0 0 0 / 0.2)",
517
- 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)",
518
- 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)",
519
- 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)"
520
- }, qa = [
521
- "button-filled",
522
- "button-light",
523
- "button-default"
524
- ], va = {
525
- "button-filled": f("sm"),
526
- "button-light": f("xs"),
527
- "button-default": f("2xs")
528
- };
529
- function R(a) {
530
- return `--text-shadow-${a}`;
531
- }
532
- function f(a) {
533
- return `var(${R(a)})`;
534
- }
535
- function Sa() {
536
- const a = {};
537
- return i(ha).forEach(([e, n]) => {
538
- a[R(e)] = n;
539
- }), a;
540
- }
541
- function Va(a) {
542
- return `--text-shadow-${a}`;
543
- }
544
- function za(a) {
545
- const e = {}, n = { ...va, ...a };
546
- return i(n).forEach(([t, s]) => {
547
- e[Va(t)] = s;
548
- }), e;
549
- }
550
- function ya() {
551
- return {
552
- ...B(),
553
- ...Q(),
554
- ...ra(),
555
- ...I(),
556
- ...A(),
557
- ...K(),
558
- ...ma(),
559
- ...Sa(),
560
- ...la()
561
- };
562
- }
563
- function $a(a) {
564
- return typeof a == "object" && a !== null && ("colors" in a || "fonts" in a || "radii" in a || "shadows" in a || "motion" in a || "spacing" in a || "textShadows" in a);
565
- }
566
- function wa(a) {
567
- let e, n, t, s, l, x, b;
568
- return $a(a) ? (e = a.colors, n = a.fonts, t = a.radii, s = a.shadows, l = a.motion, x = a.spacing, b = a.textShadows) : e = a, {
569
- ...C(e),
570
- ...oa(n),
571
- ...U(t),
572
- ..._(s),
573
- ...da(l),
574
- ...P(x),
575
- ...za(b)
576
- };
577
- }
578
- function Ga() {
579
- return {
580
- ...ya(),
581
- ...wa()
582
- };
583
- }
584
- function Pa(a, e) {
585
- return e == null && typeof window > "u" ? "" : getComputedStyle(e ?? document.documentElement).getPropertyValue(a).trim();
586
- }
587
- export {
588
- Da as $,
589
- G as A,
590
- P as B,
591
- J as C,
592
- z as D,
593
- g as E,
594
- K as F,
595
- ja as G,
596
- Y as H,
597
- _ as I,
598
- aa as J,
599
- y as K,
600
- Ta as L,
601
- ea as M,
602
- na as N,
603
- ta as O,
604
- sa as P,
605
- Ra as Q,
606
- w as R,
607
- Ba as S,
608
- Ca as T,
609
- E as U,
610
- Ia as V,
611
- F as W,
612
- Aa as X,
613
- k as Y,
614
- La as Z,
615
- H as _,
616
- Ua as a,
617
- m as a0,
618
- o as a1,
619
- M as a2,
620
- c as a3,
621
- ra as a4,
622
- oa as a5,
623
- ca as a6,
624
- O as a7,
625
- Wa as a8,
626
- la as a9,
627
- ga as aa,
628
- ua as ab,
629
- pa as ac,
630
- u as ad,
631
- fa as ae,
632
- Za as af,
633
- T as ag,
634
- p as ah,
635
- ma as ai,
636
- Qa as aj,
637
- ba as ak,
638
- da as al,
639
- ha as am,
640
- qa as an,
641
- R as ao,
642
- f as ap,
643
- Sa as aq,
644
- Va as ar,
645
- za as as,
646
- V as b,
647
- N as c,
648
- j as d,
649
- r as e,
650
- ya as f,
651
- wa as g,
652
- Ga as h,
653
- Pa as i,
654
- d as j,
655
- h as k,
656
- Ea as l,
657
- Fa as m,
658
- I as n,
659
- S as o,
660
- ka as p,
661
- A as q,
662
- v as r,
663
- Ha as s,
664
- D as t,
665
- U as u,
666
- W as v,
667
- Z as w,
668
- Ma as x,
669
- Q as y,
670
- Oa as z
671
- };
@@ -1 +0,0 @@
1
- "use strict";const v=require("./text-input-w0eVcqk5.cjs"),t=require("@tempots/dom"),V=require("./input-container-B31Seozh.cjs"),f=require("./translations-gVgMyNno.cjs"),_=require("./use-form-B_mCauP0.cjs"),O=n=>{const r={name:"email",autocomplete:"email",...n},{value:s,before:l,onBlur:o,onChange:p,onInput:c,placeholder:h}=r,m=l??V.InputIcon({icon:"line-md:email",size:n.size,color:"neutral"});return t.Use(f.BeatUII18n,d=>V.InputContainer({...n,before:m,input:t.input.email(v.CommonInputAttributes(r),t.attr.placeholder(t.coalesce(h,d.$.emailPlaceholderText)),t.attr.value(s),t.attr.class("bc-input"),o!=null?t.on.blur(t.emitValue(o)):t.Empty,p!=null?t.on.change(t.emitValue(p)):t.Empty,c!=null?t.on.input(t.emitValue(c)):t.Empty)}))},B=n=>{const{value:r,onBlur:s,onChange:l,onInput:o,before:p,after:c,hasError:h,disabled:m,autocomplete:d,placeholder:I,...b}=n,y={name:"password",disabled:m,...b},i=t.prop(!0),a=t.computedOf(i,d)((e,u)=>e?u??"current-password":"off");return t.Use(f.BeatUII18n,e=>{const u=t.computedOf(e.$.passwordPlaceholderText,i,I)((g,C,E)=>C?"•••••••••••••••":E??g),w=t.html.button(t.attr.type("button"),t.attr.class("bc-input-container__password-toggle"),t.aria.label(e.$.togglePasswordVisibility),t.on.click(()=>i.update(g=>!g)),t.When(i,()=>f.Icon({icon:"line-md:watch"}),()=>f.Icon({icon:"line-md:watch-off"})));return V.InputContainer({before:p,disabled:m,hasError:h,input:t.html.input(v.CommonInputAttributes({...y,autocomplete:a,placeholder:u}),t.When(i,()=>t.Fragment(t.attr.type("password")),()=>t.Fragment(t.attr.type("text"))),t.attr.class("bc-input"),t.attr.value(r),s!=null?t.on.blur(t.emitValue(s)):t.Empty,l!=null?t.on.change(t.emitValue(l)):t.Empty,o!=null?t.on.input(t.emitValue(o)):t.Empty),after:c!=null?t.Fragment(w,c):w})})};function U(n){switch(n){case"success":return"material-symbols:check-circle-outline";case"warning":return"material-symbols:warning-outline";case"danger":return"material-symbols:error-outline";case"info":default:return"material-symbols:info-outline"}}function P(n){switch(n){case"success":return"success";case"warning":return"warning";case"danger":return"danger";case"info":default:return"info"}}function T(n,r,s,l){const o=["bc-notice",`bc-notice--${n}`,`bc-notice--tone-${r}`];return s&&o.push("bc-notice--dismissible"),l&&l.length>0&&o.push(l),o.join(" ")}function $({variant:n="info",tone:r="subtle",role:s,title:l,icon:o,closable:p=!1,onDismiss:c,class:h},...m){const d=t.prop(!0);return t.When(d,()=>{const I=t.Value.map(p,a=>!!a||c!=null),b=t.Value.map(n,a=>a??"info"),y=t.Value.map(r,a=>a??"subtle"),i=t.computedOf(s,b)((a,e)=>a??(e==="danger"?"alert":"status"));return t.Use(f.BeatUII18n,a=>t.html.div(t.attr.class(t.computedOf(b,y,I,h)((e,u,w,g)=>T(e,u,w,g))),t.attr.role(t.Value.map(i,e=>e)),t.Unless(t.Value.map(o,e=>e===!1),()=>t.html.div(t.attr.class("bc-notice__icon"),f.Icon({icon:t.computedOf(o,b)((e,u)=>e===void 0?U(u):String(e)),size:"md",color:t.Value.map(b,P)}))),t.html.div(t.attr.class("bc-notice__body"),t.Ensure(l,e=>t.html.div(t.attr.class("bc-notice__title"),e)),t.html.div(t.attr.class("bc-notice__content"),...m)),t.When(I,()=>_.CloseButton({size:"xs",label:a.$.closeModal,onClick:()=>{d.set(!1),c?.()}}))))})}exports.EmailInput=O;exports.Notice=$;exports.PasswordInput=B;