@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.
- package/dist/blocks/index.js +49 -9
- package/dist/blocks/index.js.map +1 -1
- package/dist/chunk-2FYNRDXR.js +192 -0
- package/dist/chunk-2FYNRDXR.js.map +1 -0
- package/dist/chunk-A2Z7NVGL.js +11496 -0
- package/dist/chunk-A2Z7NVGL.js.map +1 -0
- package/dist/{chunk-E3XANPTO.js → chunk-IZOIO7PA.js} +5 -191
- package/dist/{chunk-E3XANPTO.js.map → chunk-IZOIO7PA.js.map} +1 -1
- package/dist/{chunk-LAEY5USO.js → chunk-KTCWPGON.js} +55 -25
- package/dist/chunk-KTCWPGON.js.map +1 -0
- package/dist/{chunk-DXXZ3ITR.js → chunk-MEFT6XPH.js} +721 -455
- package/dist/chunk-MEFT6XPH.js.map +1 -0
- package/dist/{chunk-BTIT7WYH.js → chunk-SNKGGHBT.js} +2 -2
- package/dist/chunk-SNKGGHBT.js.map +1 -0
- package/dist/{chunk-UR6X3W5I.js → chunk-VAAIHNWQ.js} +3 -3
- package/dist/{chunk-UR6X3W5I.js.map → chunk-VAAIHNWQ.js.map} +1 -1
- package/dist/{chunk-GYDT5EKX.js → chunk-XQXGE2PW.js} +760 -472
- package/dist/chunk-XQXGE2PW.js.map +1 -0
- package/dist/{chunk-WC2WM2JD.js → chunk-XXP3ZGU6.js} +18 -8
- package/dist/chunk-XXP3ZGU6.js.map +1 -0
- package/dist/chunk-YJMAQL3S.js +1887 -0
- package/dist/chunk-YJMAQL3S.js.map +1 -0
- package/dist/cli/index.js +4 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/components/editor/index.d.ts +107 -0
- package/dist/components/editor/index.js +4 -0
- package/dist/components/editor/index.js.map +1 -0
- package/dist/components/index.css +131 -0
- package/dist/components/index.css.map +1 -0
- package/dist/components/index.d.ts +7073 -0
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components-BCGZ-Rwt.d.ts +142 -0
- package/dist/{config-BA6IeTq9.d.ts → config-Pct0n_Kq.d.ts} +2 -2
- package/dist/core/index.d.ts +20 -5
- package/dist/core/index.js +2 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +4 -3
- package/dist/{index-odhPSv9I.d.ts → index-nmJ8Muwg.d.ts} +4 -127
- package/dist/index.d.ts +265 -6615
- package/dist/index.js +119 -11662
- package/dist/index.js.map +1 -1
- package/dist/layouts/index.js +1 -1
- package/dist/popover-Dmw7SJLR.d.ts +127 -0
- package/dist/registry/index.d.ts +2 -2
- package/dist/{registry-BrDNftd5.d.ts → registry-DQcIzW2s.d.ts} +2 -2
- package/dist/{settings-plpR26Xk.d.ts → settings-CAC0qFjS.d.ts} +2 -2
- package/dist/state/index.d.ts +2 -2
- package/dist/state/index.js +1 -1
- package/dist/text-transform-D6MzzF7V.d.ts +165 -0
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/{theme-CrXLfP1c.d.ts → theme-B4Q3Bg5o.d.ts} +1 -1
- package/dist/types/index.d.ts +6 -145
- package/package.json +46 -40
- package/dist/chunk-BTIT7WYH.js.map +0 -1
- package/dist/chunk-DXXZ3ITR.js.map +0 -1
- package/dist/chunk-GYDT5EKX.js.map +0 -1
- package/dist/chunk-LAEY5USO.js.map +0 -1
- package/dist/chunk-WC2WM2JD.js.map +0 -1
package/dist/blocks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field, SearchInput } from '../chunk-
|
|
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(
|
|
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",
|
|
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(
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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(
|
|
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
|
}
|