@omnitron-dev/prism 0.1.2 → 0.2.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 (60) hide show
  1. package/dist/blocks/index.js +49 -9
  2. package/dist/blocks/index.js.map +1 -1
  3. package/dist/chunk-2FYNRDXR.js +192 -0
  4. package/dist/chunk-2FYNRDXR.js.map +1 -0
  5. package/dist/chunk-A2Z7NVGL.js +11496 -0
  6. package/dist/chunk-A2Z7NVGL.js.map +1 -0
  7. package/dist/{chunk-E3XANPTO.js → chunk-IZOIO7PA.js} +5 -191
  8. package/dist/{chunk-E3XANPTO.js.map → chunk-IZOIO7PA.js.map} +1 -1
  9. package/dist/{chunk-LAEY5USO.js → chunk-KTCWPGON.js} +55 -25
  10. package/dist/chunk-KTCWPGON.js.map +1 -0
  11. package/dist/{chunk-DXXZ3ITR.js → chunk-MEFT6XPH.js} +721 -455
  12. package/dist/chunk-MEFT6XPH.js.map +1 -0
  13. package/dist/{chunk-BTIT7WYH.js → chunk-SNKGGHBT.js} +2 -2
  14. package/dist/chunk-SNKGGHBT.js.map +1 -0
  15. package/dist/{chunk-UR6X3W5I.js → chunk-VAAIHNWQ.js} +3 -3
  16. package/dist/{chunk-UR6X3W5I.js.map → chunk-VAAIHNWQ.js.map} +1 -1
  17. package/dist/{chunk-GYDT5EKX.js → chunk-XQXGE2PW.js} +760 -472
  18. package/dist/chunk-XQXGE2PW.js.map +1 -0
  19. package/dist/{chunk-WC2WM2JD.js → chunk-XXP3ZGU6.js} +18 -8
  20. package/dist/chunk-XXP3ZGU6.js.map +1 -0
  21. package/dist/chunk-YJMAQL3S.js +1887 -0
  22. package/dist/chunk-YJMAQL3S.js.map +1 -0
  23. package/dist/cli/index.js +4 -4
  24. package/dist/cli/index.js.map +1 -1
  25. package/dist/components/editor/index.d.ts +107 -0
  26. package/dist/components/editor/index.js +4 -0
  27. package/dist/components/editor/index.js.map +1 -0
  28. package/dist/components/index.css +131 -0
  29. package/dist/components/index.css.map +1 -0
  30. package/dist/components/index.d.ts +7073 -0
  31. package/dist/components/index.js +13 -0
  32. package/dist/components/index.js.map +1 -0
  33. package/dist/components-BCGZ-Rwt.d.ts +142 -0
  34. package/dist/{config-BA6IeTq9.d.ts → config-Pct0n_Kq.d.ts} +2 -2
  35. package/dist/core/index.d.ts +20 -5
  36. package/dist/core/index.js +2 -2
  37. package/dist/hooks/index.d.ts +3 -2
  38. package/dist/hooks/index.js +4 -3
  39. package/dist/{index-odhPSv9I.d.ts → index-nmJ8Muwg.d.ts} +4 -127
  40. package/dist/index.d.ts +265 -6615
  41. package/dist/index.js +119 -11662
  42. package/dist/index.js.map +1 -1
  43. package/dist/layouts/index.js +1 -1
  44. package/dist/popover-Dmw7SJLR.d.ts +127 -0
  45. package/dist/registry/index.d.ts +2 -2
  46. package/dist/{registry-BrDNftd5.d.ts → registry-DQcIzW2s.d.ts} +2 -2
  47. package/dist/{settings-plpR26Xk.d.ts → settings-CAC0qFjS.d.ts} +2 -2
  48. package/dist/state/index.d.ts +2 -2
  49. package/dist/state/index.js +1 -1
  50. package/dist/text-transform-D6MzzF7V.d.ts +165 -0
  51. package/dist/theme/index.d.ts +2 -2
  52. package/dist/theme/index.js +2 -2
  53. package/dist/{theme-CrXLfP1c.d.ts → theme-B4Q3Bg5o.d.ts} +1 -1
  54. package/dist/types/index.d.ts +6 -145
  55. package/package.json +46 -40
  56. package/dist/chunk-BTIT7WYH.js.map +0 -1
  57. package/dist/chunk-DXXZ3ITR.js.map +0 -1
  58. package/dist/chunk-GYDT5EKX.js.map +0 -1
  59. package/dist/chunk-LAEY5USO.js.map +0 -1
  60. package/dist/chunk-WC2WM2JD.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Field, SearchInput } from '../chunk-LAEY5USO.js';
1
+ import { Field, SearchInput } from '../chunk-KTCWPGON.js';
2
2
  import { useBoolean } from '../chunk-HO2GKTWJ.js';
3
3
  import '../chunk-77KIJLPP.js';
4
4
  import { createContext, useContext, useCallback, useMemo, useState, useEffect, useRef } from 'react';
@@ -97,7 +97,17 @@ function DashboardBlockHeader({ title, subtitle, icon, actions, sx }) {
97
97
  ),
98
98
  /* @__PURE__ */ jsxs(Box2, { sx: { flex: 1, minWidth: 0 }, children: [
99
99
  /* @__PURE__ */ jsx(Typography2, { variant: config.titleVariant, component: "h3", sx: { fontWeight: 600, lineHeight: 1.4 }, noWrap: true, children: title }),
100
- subtitle && /* @__PURE__ */ jsx(Typography2, { variant: config.subtitleVariant, color: "text.secondary", sx: { mt: 0.25 }, children: subtitle })
100
+ subtitle && /* @__PURE__ */ jsx(
101
+ Typography2,
102
+ {
103
+ variant: config.subtitleVariant,
104
+ sx: {
105
+ color: "text.secondary",
106
+ mt: 0.25
107
+ },
108
+ children: subtitle
109
+ }
110
+ )
101
111
  ] })
102
112
  ] }),
103
113
  /* @__PURE__ */ jsxs(Box2, { sx: { display: "flex", alignItems: "center", gap: 0.5, flexShrink: 0 }, children: [
@@ -535,7 +545,9 @@ function LoginForm({
535
545
  }
536
546
  ),
537
547
  showSocialLogin && socialProviders.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
538
- /* @__PURE__ */ jsx(Divider, { children: /* @__PURE__ */ jsx(Typography2, { variant: "body2", color: "text.secondary", children: labels.socialDivider ?? "or continue with" }) }),
548
+ /* @__PURE__ */ jsx(Divider, { children: /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: {
549
+ color: "text.secondary"
550
+ }, children: labels.socialDivider ?? "or continue with" }) }),
539
551
  /* @__PURE__ */ jsx(Box2, { sx: { display: "flex", gap: 1.5, justifyContent: "center" }, children: socialProviders.map((provider) => /* @__PURE__ */ jsx(
540
552
  IconButton2,
541
553
  {
@@ -745,7 +757,17 @@ function ForgotPasswordForm({
745
757
  if (success) {
746
758
  return /* @__PURE__ */ jsxs(Box2, { sx: { textAlign: "center" }, children: [
747
759
  /* @__PURE__ */ jsx(Typography2, { variant: "h6", gutterBottom: true, children: "Check your email" }),
748
- /* @__PURE__ */ jsx(Typography2, { variant: "body2", color: "text.secondary", sx: { mb: 3 }, children: "We sent a password reset link to your email address." }),
760
+ /* @__PURE__ */ jsx(
761
+ Typography2,
762
+ {
763
+ variant: "body2",
764
+ sx: {
765
+ color: "text.secondary",
766
+ mb: 3
767
+ },
768
+ children: "We sent a password reset link to your email address."
769
+ }
770
+ ),
749
771
  onBackToLogin && /* @__PURE__ */ jsx(Button2, { variant: "text", onClick: onBackToLogin, children: labels.backToLogin ?? "Back to login" })
750
772
  ] });
751
773
  }
@@ -759,7 +781,9 @@ function ForgotPasswordForm({
759
781
  children: [
760
782
  /* @__PURE__ */ jsxs(Box2, { sx: { textAlign: "center", mb: 1 }, children: [
761
783
  /* @__PURE__ */ jsx(Typography2, { variant: "h6", gutterBottom: true, children: labels.title ?? "Forgot password?" }),
762
- /* @__PURE__ */ jsx(Typography2, { variant: "body2", color: "text.secondary", children: labels.description ?? "Enter your email and we'll send you a reset link." })
784
+ /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: {
785
+ color: "text.secondary"
786
+ }, children: labels.description ?? "Enter your email and we'll send you a reset link." })
763
787
  ] }),
764
788
  error && /* @__PURE__ */ jsx(Alert, { severity: "error", onClose: () => setError(null), children: error }),
765
789
  /* @__PURE__ */ jsx(
@@ -830,7 +854,9 @@ function ResetPasswordForm({
830
854
  children: [
831
855
  /* @__PURE__ */ jsxs(Box2, { sx: { textAlign: "center", mb: 1 }, children: [
832
856
  /* @__PURE__ */ jsx(Typography2, { variant: "h6", gutterBottom: true, children: labels.title ?? "Set new password" }),
833
- /* @__PURE__ */ jsx(Typography2, { variant: "body2", color: "text.secondary", children: labels.description ?? "Create a new password for your account." })
857
+ /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: {
858
+ color: "text.secondary"
859
+ }, children: labels.description ?? "Create a new password for your account." })
834
860
  ] }),
835
861
  error && /* @__PURE__ */ jsx(Alert, { severity: "error", onClose: () => setError(null), children: error }),
836
862
  /* @__PURE__ */ jsx(
@@ -955,7 +981,9 @@ function VerifyCodeForm({
955
981
  children: [
956
982
  /* @__PURE__ */ jsxs(Box2, { sx: { textAlign: "center", mb: 1 }, children: [
957
983
  /* @__PURE__ */ jsx(Typography2, { variant: "h6", gutterBottom: true, children: labels.title ?? "Enter verification code" }),
958
- /* @__PURE__ */ jsx(Typography2, { variant: "body2", color: "text.secondary", children: labels.description ?? "We sent a verification code to your email." })
984
+ /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: {
985
+ color: "text.secondary"
986
+ }, children: labels.description ?? "We sent a verification code to your email." })
959
987
  ] }),
960
988
  error && /* @__PURE__ */ jsx(Alert, { severity: "error", onClose: () => setError(null), sx: { width: "100%" }, children: error }),
961
989
  /* @__PURE__ */ jsx(Field.Code, { name: "code", length: codeLength, autoFocus: true, disabled: disabled || loading }),
@@ -971,7 +999,9 @@ function VerifyCodeForm({
971
999
  children: loading ? /* @__PURE__ */ jsx(CircularProgress, { size: 24, color: "inherit" }) : labels.submit ?? "Verify"
972
1000
  }
973
1001
  ),
974
- onResendCode && /* @__PURE__ */ jsx(Box2, { sx: { textAlign: "center" }, children: cooldown > 0 ? /* @__PURE__ */ jsxs(Typography2, { variant: "body2", color: "text.secondary", children: [
1002
+ onResendCode && /* @__PURE__ */ jsx(Box2, { sx: { textAlign: "center" }, children: cooldown > 0 ? /* @__PURE__ */ jsxs(Typography2, { variant: "body2", sx: {
1003
+ color: "text.secondary"
1004
+ }, children: [
975
1005
  labels.resendIn ?? "Resend code in",
976
1006
  " ",
977
1007
  cooldown,
@@ -1346,7 +1376,17 @@ function EmptyState({
1346
1376
  children: [
1347
1377
  /* @__PURE__ */ jsx(Box2, { sx: { mb: 2, color: "text.disabled" }, children: icon ?? /* @__PURE__ */ jsx(EmptyIcon, {}) }),
1348
1378
  /* @__PURE__ */ jsx(Typography2, { variant: "h6", gutterBottom: true, children: title }),
1349
- /* @__PURE__ */ jsx(Typography2, { variant: "body2", color: "text.secondary", sx: { mb: action ? 2 : 0 }, children: description }),
1379
+ /* @__PURE__ */ jsx(
1380
+ Typography2,
1381
+ {
1382
+ variant: "body2",
1383
+ sx: {
1384
+ color: "text.secondary",
1385
+ mb: action ? 2 : 0
1386
+ },
1387
+ children: description
1388
+ }
1389
+ ),
1350
1390
  action && /* @__PURE__ */ jsx(Button2, { variant: "contained", size: "small", onClick: action.onClick, children: action.label })
1351
1391
  ]
1352
1392
  }