@teach-in/react 1.0.0 → 1.1.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 (44) hide show
  1. package/dist/chunk-M5G6RR4Q.mjs +39 -0
  2. package/dist/index.js +98 -62
  3. package/dist/index.mjs +139 -135
  4. package/dist/ui/data/index.mjs +12 -12
  5. package/dist/ui/feedback/index.mjs +5 -5
  6. package/dist/ui/form/index.mjs +11 -11
  7. package/dist/ui/form/rhf/fields/autocomplete-field.mjs +8 -8
  8. package/dist/ui/form/rhf/fields/checkbox-field.mjs +8 -8
  9. package/dist/ui/form/rhf/fields/date-picker-field.mjs +8 -8
  10. package/dist/ui/form/rhf/fields/email-field.mjs +8 -8
  11. package/dist/ui/form/rhf/fields/index.mjs +11 -11
  12. package/dist/ui/form/rhf/fields/input-field.mjs +8 -8
  13. package/dist/ui/form/rhf/fields/radio-field.mjs +8 -8
  14. package/dist/ui/form/rhf/fields/select-field.mjs +8 -8
  15. package/dist/ui/form/rhf/fields/switch-field.mjs +8 -8
  16. package/dist/ui/form/rhf/fields/text-field.mjs +8 -8
  17. package/dist/ui/form/rhf/fields/textarea-field.mjs +8 -8
  18. package/dist/ui/form/rhf/index.mjs +11 -11
  19. package/dist/ui/format/index.d.ts +1 -0
  20. package/dist/ui/format/index.js +41 -5
  21. package/dist/ui/format/index.mjs +11 -7
  22. package/dist/ui/format/uuid.d.ts +12 -0
  23. package/dist/ui/format/uuid.js +62 -0
  24. package/dist/ui/format/uuid.mjs +7 -0
  25. package/dist/ui/index.js +98 -62
  26. package/dist/ui/index.mjs +137 -133
  27. package/dist/ui/inputs/checkbox/index.mjs +3 -3
  28. package/dist/ui/inputs/index.mjs +15 -15
  29. package/dist/ui/layout/container/container.mjs +59 -58
  30. package/dist/ui/layout/container/index.mjs +59 -58
  31. package/dist/ui/layout/index.mjs +65 -64
  32. package/dist/ui/layout/page/index.mjs +4 -4
  33. package/dist/ui/layout/page/page-loading.mjs +3 -3
  34. package/dist/ui/layout/page/section-loading.mjs +3 -3
  35. package/dist/ui/navigation/index.mjs +4 -4
  36. package/dist/ui/provider/index.mjs +3 -3
  37. package/dist/ui/provider/ui-provider.mjs +3 -3
  38. package/dist/ui/surface/index.mjs +3 -3
  39. package/dist/ui/theme/colors/index.mjs +1 -1
  40. package/dist/ui/theme/colors.mjs +1 -1
  41. package/dist/ui/theme/index.mjs +1 -1
  42. package/dist/ui/theme/theme.mjs +1 -1
  43. package/package.json +1 -1
  44. /package/dist/{chunk-5IHVMMCK.mjs → chunk-5N3SIZHF.mjs} +0 -0
package/dist/ui/index.js CHANGED
@@ -68,10 +68,11 @@ __export(ui_exports, {
68
68
  FormatDate: () => DateFormat,
69
69
  FormatDatetime: () => Datetime,
70
70
  FormatDuration: () => Duration,
71
- FormatNumber: () => Number,
71
+ FormatNumber: () => Number2,
72
72
  FormatPercent: () => Percent,
73
73
  FormatPlural: () => Plural,
74
74
  FormatTime: () => Time,
75
+ FormatUUID: () => Uuid,
75
76
  Grid: () => Grid,
76
77
  Header: () => Header2,
77
78
  Image: () => Image,
@@ -792,14 +793,14 @@ Currency.displayName = "TeachInUI.FormatCurrency";
792
793
 
793
794
  // src/ui/format/number.tsx
794
795
  var import_jsx_runtime40 = require("react/jsx-runtime");
795
- function Number({ value, decimals, locale = "ru-RU" }) {
796
+ function Number2({ value, decimals, locale = "ru-RU" }) {
796
797
  const formatter = new Intl.NumberFormat(locale, {
797
798
  minimumFractionDigits: decimals != null ? decimals : 0,
798
799
  maximumFractionDigits: decimals != null ? decimals : 2
799
800
  });
800
801
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_jsx_runtime40.Fragment, { children: formatter.format(value) });
801
802
  }
802
- Number.displayName = "TeachInUI.FormatNumber";
803
+ Number2.displayName = "TeachInUI.FormatNumber";
803
804
 
804
805
  // src/ui/format/percent.tsx
805
806
  var import_jsx_runtime41 = require("react/jsx-runtime");
@@ -885,9 +886,43 @@ function Boolean({
885
886
  }
886
887
  Boolean.displayName = "TeachInUI.FormatBoolean";
887
888
 
889
+ // src/ui/format/uuid.tsx
890
+ var import_jsx_runtime45 = require("react/jsx-runtime");
891
+ var uuidHyphenatedRegex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/;
892
+ function normalizeUuid(value) {
893
+ const trimmed = value.trim();
894
+ if (trimmed.length === 0) return null;
895
+ const withoutPrefix = trimmed.toLowerCase().startsWith("urn:uuid:") ? trimmed.slice("urn:uuid:".length) : trimmed;
896
+ const withoutBraces = withoutPrefix.startsWith("{") && withoutPrefix.endsWith("}") ? withoutPrefix.slice(1, -1) : withoutPrefix;
897
+ if (uuidHyphenatedRegex.test(withoutBraces)) return withoutBraces.toLowerCase();
898
+ return null;
899
+ }
900
+ function detectUuidVersion(normalizedUuid) {
901
+ var _a;
902
+ const versionChar = (_a = normalizedUuid.split("-")[2]) == null ? void 0 : _a[0];
903
+ if (!versionChar) return null;
904
+ const parsed = Number.parseInt(versionChar, 16);
905
+ return Number.isNaN(parsed) ? null : parsed;
906
+ }
907
+ function Uuid({
908
+ value,
909
+ case: letterCase = "lower",
910
+ showVersion = false,
911
+ invalidFallback = "\u2014"
912
+ }) {
913
+ if (!value) return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: invalidFallback });
914
+ const normalized = normalizeUuid(value);
915
+ if (!normalized) return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: invalidFallback });
916
+ const formatted = letterCase === "upper" ? normalized.toUpperCase() : normalized;
917
+ if (!showVersion) return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: formatted });
918
+ const version = detectUuidVersion(normalized);
919
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_jsx_runtime45.Fragment, { children: version !== null ? `${formatted} (v${version})` : formatted });
920
+ }
921
+ Uuid.displayName = "TeachInUI.FormatUUID";
922
+
888
923
  // src/ui/surface/bento/bento.tsx
889
924
  var import_tailwind_variants2 = require("tailwind-variants");
890
- var import_jsx_runtime45 = require("react/jsx-runtime");
925
+ var import_jsx_runtime46 = require("react/jsx-runtime");
891
926
  var bento = (0, import_tailwind_variants2.tv)({
892
927
  base: "rounded-xl p-6 transition-colors",
893
928
  variants: {
@@ -925,28 +960,28 @@ var bento = (0, import_tailwind_variants2.tv)({
925
960
  }
926
961
  });
927
962
  var Bento = ({ className, ...props }) => {
928
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: bento({ ...props, className }), ...props });
963
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: bento({ ...props, className }), ...props });
929
964
  };
930
965
  Bento.displayName = "TeachInUI.Bento";
931
966
 
932
967
  // src/ui/surface/card/card.tsx
933
968
  var import_react25 = __toESM(require("react"));
934
969
  var import_card = require("@heroui/card");
935
- var import_jsx_runtime46 = require("react/jsx-runtime");
970
+ var import_jsx_runtime47 = require("react/jsx-runtime");
936
971
  var Root = import_react25.default.forwardRef(({ children, ...props }, ref) => {
937
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_card.Card, { ref, ...props, children });
972
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_card.Card, { ref, ...props, children });
938
973
  });
939
974
  Root.displayName = "TeachInUI.Card.Root";
940
975
  var Header = import_react25.default.forwardRef(({ children, ...props }, ref) => {
941
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_card.CardHeader, { ref, ...props, children });
976
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_card.CardHeader, { ref, ...props, children });
942
977
  });
943
978
  Header.displayName = "TeachInUI.Card.Header";
944
979
  var Body = import_react25.default.forwardRef(({ children, ...props }, ref) => {
945
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_card.CardBody, { ref, ...props, children });
980
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_card.CardBody, { ref, ...props, children });
946
981
  });
947
982
  Body.displayName = "TeachInUI.Card.Body";
948
983
  var Footer = import_react25.default.forwardRef(({ children, ...props }, ref) => {
949
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_card.CardFooter, { ref, ...props, children });
984
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_card.CardFooter, { ref, ...props, children });
950
985
  });
951
986
  Footer.displayName = "TeachInUI.Card.Footer";
952
987
  var Card = {
@@ -959,7 +994,7 @@ var Card = {
959
994
  // src/ui/layout/container/container.tsx
960
995
  var import_react_slot = require("@radix-ui/react-slot");
961
996
  var import_tailwind_variants3 = require("tailwind-variants");
962
- var import_jsx_runtime47 = require("react/jsx-runtime");
997
+ var import_jsx_runtime48 = require("react/jsx-runtime");
963
998
  var variants = (0, import_tailwind_variants3.tv)({
964
999
  base: "w-full mx-auto px-6",
965
1000
  variants: {
@@ -979,58 +1014,58 @@ var variants = (0, import_tailwind_variants3.tv)({
979
1014
  });
980
1015
  var Container = ({ children, asChild = false, className, size, ...props }) => {
981
1016
  const Comp = asChild ? import_react_slot.Slot : "div";
982
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Comp, { className: cn(variants({ size }), className), ...props, children });
1017
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Comp, { className: cn(variants({ size }), className), ...props, children });
983
1018
  };
984
1019
  Container.displayName = "TeachInUI.Container";
985
1020
 
986
1021
  // src/ui/layout/page/breadcrumbs.tsx
987
1022
  var import_breadcrumbs = require("@heroui/breadcrumbs");
988
- var import_jsx_runtime48 = require("react/jsx-runtime");
989
- var Breadcrumbs = ({ items }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_breadcrumbs.Breadcrumbs, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_breadcrumbs.BreadcrumbItem, { href: item.href, isDisabled: item.href === void 0, children: item.label }, item.label)) });
1023
+ var import_jsx_runtime49 = require("react/jsx-runtime");
1024
+ var Breadcrumbs = ({ items }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_breadcrumbs.Breadcrumbs, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_breadcrumbs.BreadcrumbItem, { href: item.href, isDisabled: item.href === void 0, children: item.label }, item.label)) });
990
1025
 
991
1026
  // src/ui/layout/page/page-content.tsx
992
- var import_jsx_runtime49 = require("react/jsx-runtime");
1027
+ var import_jsx_runtime50 = require("react/jsx-runtime");
993
1028
  var Root2 = ({
994
1029
  children,
995
1030
  breadcrumbs = []
996
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col gap-6", children: [
997
- breadcrumbs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Breadcrumbs, { items: breadcrumbs }),
1031
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col gap-6", children: [
1032
+ breadcrumbs.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Breadcrumbs, { items: breadcrumbs }),
998
1033
  children
999
1034
  ] });
1000
1035
  Root2.displayName = "TeachInUI.PageContent.Root";
1001
- var Header2 = ({ children, ...others }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("header", { className: "flex items-center justify-between gap-4", role: "banner", ...others, children });
1036
+ var Header2 = ({ children, ...others }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("header", { className: "flex items-center justify-between gap-4", role: "banner", ...others, children });
1002
1037
  Header2.displayName = "TeachInUI.PageContent.Header";
1003
1038
  var Title = ({
1004
1039
  children,
1005
1040
  ...others
1006
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h1", { className: "text-4xl leading-10 font-bold", ...others, children });
1041
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h1", { className: "text-4xl leading-10 font-bold", ...others, children });
1007
1042
  Title.displayName = "TeachInUI.PageContent.Title";
1008
1043
  var Actions = ({
1009
1044
  children,
1010
1045
  ...others
1011
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
1046
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
1012
1047
  Actions.displayName = "TeachInUI.PageContent.Actions";
1013
- var Body2 = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex flex-col gap-6", children });
1048
+ var Body2 = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex flex-col gap-6", children });
1014
1049
  Body2.displayName = "TeachInUI.PageContent.Body";
1015
1050
  var Section = ({
1016
1051
  children,
1017
1052
  ...others
1018
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("section", { className: "flex flex-col gap-4", ...others, children });
1053
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("section", { className: "flex flex-col gap-4", ...others, children });
1019
1054
  Section.displayName = "TeachInUI.PageContent.Section";
1020
1055
  var SectionHeader = ({
1021
1056
  children,
1022
1057
  ...others
1023
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex items-center justify-between", ...others, children });
1058
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center justify-between", ...others, children });
1024
1059
  SectionHeader.displayName = "TeachInUI.PageContent.SectionHeader";
1025
1060
  var SectionTitle = ({
1026
1061
  children,
1027
1062
  ...others
1028
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { className: "text-3xl leading-9 font-bold", ...others, children });
1063
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h2", { className: "text-3xl leading-9 font-bold", ...others, children });
1029
1064
  SectionTitle.displayName = "TeachInUI.PageContent.SectionTitle";
1030
1065
  var SectionActions = ({
1031
1066
  children,
1032
1067
  ...others
1033
- }) => /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
1068
+ }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex gap-2", role: "group", ...others, children });
1034
1069
  SectionActions.displayName = "TeachInUI.PageContent.SectionActions";
1035
1070
  var PageContent = {
1036
1071
  Root: Root2,
@@ -1045,18 +1080,18 @@ var PageContent = {
1045
1080
  };
1046
1081
 
1047
1082
  // src/ui/layout/page/page-loading.tsx
1048
- var import_jsx_runtime50 = require("react/jsx-runtime");
1049
- var PageLoading = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex h-screen items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Spinner, {}) });
1083
+ var import_jsx_runtime51 = require("react/jsx-runtime");
1084
+ var PageLoading = () => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex h-screen items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Spinner, {}) });
1050
1085
  PageLoading.displayName = "TeachInUI.PageLoading";
1051
1086
 
1052
1087
  // src/ui/layout/page/section-loading.tsx
1053
- var import_jsx_runtime51 = require("react/jsx-runtime");
1054
- var SectionLoading = () => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Spinner, {}) });
1088
+ var import_jsx_runtime52 = require("react/jsx-runtime");
1089
+ var SectionLoading = () => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex min-h-[400px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Spinner, {}) });
1055
1090
  SectionLoading.displayName = "TeachInUI.SectionLoading";
1056
1091
 
1057
1092
  // src/ui/layout/flex/flex.tsx
1058
1093
  var import_tailwind_variants4 = require("tailwind-variants");
1059
- var import_jsx_runtime52 = require("react/jsx-runtime");
1094
+ var import_jsx_runtime53 = require("react/jsx-runtime");
1060
1095
  var variants2 = (0, import_tailwind_variants4.tv)({
1061
1096
  base: "flex",
1062
1097
  variants: {
@@ -1104,13 +1139,13 @@ var variants2 = (0, import_tailwind_variants4.tv)({
1104
1139
  }
1105
1140
  });
1106
1141
  var Flex = ({ className, ...props }) => {
1107
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: variants2({ ...props, className }), ...props });
1142
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: variants2({ ...props, className }), ...props });
1108
1143
  };
1109
1144
  Flex.displayName = "TeachInUI.Flex";
1110
1145
 
1111
1146
  // src/ui/layout/grid/grid.tsx
1112
1147
  var import_tailwind_variants5 = require("tailwind-variants");
1113
- var import_jsx_runtime53 = require("react/jsx-runtime");
1148
+ var import_jsx_runtime54 = require("react/jsx-runtime");
1114
1149
  var variants3 = (0, import_tailwind_variants5.tv)({
1115
1150
  base: "grid",
1116
1151
  variants: {
@@ -1160,26 +1195,26 @@ var variants3 = (0, import_tailwind_variants5.tv)({
1160
1195
  }
1161
1196
  });
1162
1197
  var Grid = ({ className, ...props }) => {
1163
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: variants3({ ...props, className }), ...props });
1198
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: variants3({ ...props, className }), ...props });
1164
1199
  };
1165
1200
  Grid.displayName = "TeachInUI.Grid";
1166
1201
 
1167
1202
  // src/ui/layout/divider/divider.tsx
1168
1203
  var import_react26 = __toESM(require("react"));
1169
1204
  var import_divider = require("@heroui/divider");
1170
- var import_jsx_runtime54 = require("react/jsx-runtime");
1205
+ var import_jsx_runtime55 = require("react/jsx-runtime");
1171
1206
  var Divider = import_react26.default.forwardRef((props, ref) => {
1172
1207
  const { ...restProps } = props;
1173
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_divider.Divider, { ref, ...restProps });
1208
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_divider.Divider, { ref, ...restProps });
1174
1209
  });
1175
1210
  Divider.displayName = "TeachInUI.Divider";
1176
1211
 
1177
1212
  // src/ui/layout/scroll-shadow/scroll-shadow.tsx
1178
1213
  var import_react27 = __toESM(require("react"));
1179
1214
  var import_scroll_shadow = require("@heroui/scroll-shadow");
1180
- var import_jsx_runtime55 = require("react/jsx-runtime");
1215
+ var import_jsx_runtime56 = require("react/jsx-runtime");
1181
1216
  var ScrollShadow = import_react27.default.forwardRef((props, ref) => {
1182
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_scroll_shadow.ScrollShadow, { ref, ...props });
1217
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_scroll_shadow.ScrollShadow, { ref, ...props });
1183
1218
  });
1184
1219
  ScrollShadow.displayName = "TeachInUI.ScrollShadow";
1185
1220
 
@@ -1190,18 +1225,18 @@ var AccordionItem = Object.assign(import_accordion.AccordionItem, { displayName:
1190
1225
 
1191
1226
  // src/ui/navigation/link/link.tsx
1192
1227
  var import_link = require("@heroui/link");
1193
- var import_jsx_runtime56 = require("react/jsx-runtime");
1228
+ var import_jsx_runtime57 = require("react/jsx-runtime");
1194
1229
  function Link({ children, ...props }) {
1195
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_link.Link, { ...props, children });
1230
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_link.Link, { ...props, children });
1196
1231
  }
1197
1232
  Link.displayName = "TeachInUI.Link";
1198
1233
 
1199
1234
  // src/ui/navigation/tabs/tabs.tsx
1200
1235
  var import_react28 = __toESM(require("react"));
1201
1236
  var import_tabs = require("@heroui/tabs");
1202
- var import_jsx_runtime57 = require("react/jsx-runtime");
1237
+ var import_jsx_runtime58 = require("react/jsx-runtime");
1203
1238
  var Root3 = import_react28.default.forwardRef(({ children, ...props }, ref) => {
1204
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_tabs.Tabs, { ref, ...props, children });
1239
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_tabs.Tabs, { ref, ...props, children });
1205
1240
  });
1206
1241
  Root3.displayName = "TeachInUI.Tabs.Root";
1207
1242
  var Tab = Object.assign(import_tabs.Tab, {
@@ -1215,33 +1250,33 @@ var Tabs = {
1215
1250
  // src/ui/navigation/navbar/navbar.tsx
1216
1251
  var import_react29 = __toESM(require("react"));
1217
1252
  var import_navbar = require("@heroui/navbar");
1218
- var import_jsx_runtime58 = require("react/jsx-runtime");
1253
+ var import_jsx_runtime59 = require("react/jsx-runtime");
1219
1254
  var Navbar = import_react29.default.forwardRef((props, ref) => {
1220
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.Navbar, { ref, ...props });
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.Navbar, { ref, ...props });
1221
1256
  });
1222
1257
  Navbar.displayName = "TeachInUI.Navbar";
1223
1258
  var NavbarBrand = import_react29.default.forwardRef((props, ref) => {
1224
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.NavbarBrand, { ref, ...props });
1259
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.NavbarBrand, { ref, ...props });
1225
1260
  });
1226
1261
  NavbarBrand.displayName = "TeachInUI.NavbarBrand";
1227
1262
  var NavbarContent = import_react29.default.forwardRef((props, ref) => {
1228
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.NavbarContent, { ref, ...props });
1263
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.NavbarContent, { ref, ...props });
1229
1264
  });
1230
1265
  NavbarContent.displayName = "TeachInUI.NavbarContent";
1231
1266
  var NavbarItem = import_react29.default.forwardRef((props, ref) => {
1232
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.NavbarItem, { ref, ...props });
1267
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.NavbarItem, { ref, ...props });
1233
1268
  });
1234
1269
  NavbarItem.displayName = "TeachInUI.NavbarItem";
1235
1270
  var NavbarMenu = import_react29.default.forwardRef((props, ref) => {
1236
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.NavbarMenu, { ref, ...props });
1271
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.NavbarMenu, { ref, ...props });
1237
1272
  });
1238
1273
  NavbarMenu.displayName = "TeachInUI.NavbarMenu";
1239
1274
  var NavbarMenuItem = import_react29.default.forwardRef((props, ref) => {
1240
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.NavbarMenuItem, { ref, ...props });
1275
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.NavbarMenuItem, { ref, ...props });
1241
1276
  });
1242
1277
  NavbarMenuItem.displayName = "TeachInUI.NavbarMenuItem";
1243
1278
  var NavbarMenuToggle = import_react29.default.forwardRef((props, ref) => {
1244
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_navbar.NavbarMenuToggle, { ref, ...props });
1279
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_navbar.NavbarMenuToggle, { ref, ...props });
1245
1280
  });
1246
1281
  NavbarMenuToggle.displayName = "TeachInUI.NavbarMenuToggle";
1247
1282
 
@@ -1254,30 +1289,30 @@ var BreadcrumbItem2 = Object.assign(import_breadcrumbs3.BreadcrumbItem, {
1254
1289
 
1255
1290
  // src/ui/overlays/modal/modal.tsx
1256
1291
  var import_modal = require("@heroui/modal");
1257
- var import_jsx_runtime59 = require("react/jsx-runtime");
1292
+ var import_jsx_runtime60 = require("react/jsx-runtime");
1258
1293
  function Root4({
1259
1294
  size = "md",
1260
1295
  placement = "center",
1261
1296
  children,
1262
1297
  ...props
1263
1298
  }) {
1264
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_modal.Modal, { placement, size, ...props, children });
1299
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_modal.Modal, { placement, size, ...props, children });
1265
1300
  }
1266
1301
  Root4.displayName = "TeachInUI.Modal.Root";
1267
1302
  function Content({ children, ...props }) {
1268
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_modal.ModalContent, { ...props, children: (onClose) => typeof children === "function" ? children(onClose) : children });
1303
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_modal.ModalContent, { ...props, children: (onClose) => typeof children === "function" ? children(onClose) : children });
1269
1304
  }
1270
1305
  Content.displayName = "TeachInUI.Modal.Content";
1271
1306
  function Header3({ children, ...props }) {
1272
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_modal.ModalHeader, { ...props, children });
1307
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_modal.ModalHeader, { ...props, children });
1273
1308
  }
1274
1309
  Header3.displayName = "TeachInUI.Modal.Header";
1275
1310
  function Body3({ children, ...props }) {
1276
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_modal.ModalBody, { ...props, children });
1311
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_modal.ModalBody, { ...props, children });
1277
1312
  }
1278
1313
  Body3.displayName = "TeachInUI.Modal.Body";
1279
1314
  function Footer2({ children, ...props }) {
1280
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_modal.ModalFooter, { ...props, children });
1315
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_modal.ModalFooter, { ...props, children });
1281
1316
  }
1282
1317
  Footer2.displayName = "TeachInUI.Modal.Footer";
1283
1318
  var Modal = {
@@ -1302,17 +1337,17 @@ var DropdownSection = Object.assign(import_dropdown.DropdownSection, {
1302
1337
 
1303
1338
  // src/ui/overlays/popover/popover.tsx
1304
1339
  var import_popover = require("@heroui/popover");
1305
- var import_jsx_runtime60 = require("react/jsx-runtime");
1340
+ var import_jsx_runtime61 = require("react/jsx-runtime");
1306
1341
  var Root5 = ({ children, ...props }) => {
1307
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_popover.Popover, { ...props, children });
1342
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_popover.Popover, { ...props, children });
1308
1343
  };
1309
1344
  Root5.displayName = "TeachInUI.Popover.Root";
1310
1345
  var Trigger = ({ children, ...props }) => {
1311
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_popover.PopoverTrigger, { ...props, children });
1346
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_popover.PopoverTrigger, { ...props, children });
1312
1347
  };
1313
1348
  Trigger.displayName = "TeachInUI.Popover.Trigger";
1314
1349
  var Content2 = ({ children, ...props }) => {
1315
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_popover.PopoverContent, { ...props, children });
1350
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_popover.PopoverContent, { ...props, children });
1316
1351
  };
1317
1352
  Content2.displayName = "TeachInUI.Popover.Content";
1318
1353
  var Popover = {
@@ -1323,7 +1358,7 @@ var Popover = {
1323
1358
 
1324
1359
  // src/ui/provider/ui-provider.tsx
1325
1360
  var import_system3 = require("@heroui/system");
1326
- var import_jsx_runtime61 = require("react/jsx-runtime");
1361
+ var import_jsx_runtime62 = require("react/jsx-runtime");
1327
1362
  function UIProvider({
1328
1363
  children,
1329
1364
  locale = "ru-RU",
@@ -1331,9 +1366,9 @@ function UIProvider({
1331
1366
  navigate,
1332
1367
  toastProviderProps
1333
1368
  }) {
1334
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_system3.HeroUIProvider, { labelPlacement, locale, navigate, children: [
1369
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_system3.HeroUIProvider, { labelPlacement, locale, navigate, children: [
1335
1370
  children,
1336
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ToastProvider, { ...toastProviderProps })
1371
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(ToastProvider, { ...toastProviderProps })
1337
1372
  ] });
1338
1373
  }
1339
1374
 
@@ -1756,6 +1791,7 @@ var theme = (0, import_theme.heroui)({
1756
1791
  FormatPercent,
1757
1792
  FormatPlural,
1758
1793
  FormatTime,
1794
+ FormatUUID,
1759
1795
  Grid,
1760
1796
  Header,
1761
1797
  Image,