@solostylist/ui-kit 1.0.205 → 1.0.207
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/{warning-D7iWhOZI.js → LocalizationProvider-DxrK-c0x.js} +48 -48
- package/dist/{Select-B5RvkbDO.js → Select-C5bKKis6.js} +890 -887
- package/dist/entries/carousel.js +1 -0
- package/dist/entries/chat.js +1 -0
- package/dist/entries/code.js +1 -0
- package/dist/entries/dates.js +8 -4
- package/dist/entries/dropzone.js +1 -0
- package/dist/entries/editor.js +1 -0
- package/dist/entries/gallery.js +7 -4
- package/dist/entries/i18n.js +2 -0
- package/dist/entries/motion.js +23 -14
- package/dist/entries/stripe.js +1 -0
- package/dist/main.d.ts +0 -11
- package/dist/main.js +51 -97
- package/dist/s-category-card/s-category-card.js +1 -1
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/{s-date-picker-BYqxsjPU.js → s-date-picker-B0D3WMLP.js} +62 -62
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-BtwGoxL3.js → s-datetime-picker-BTnwnsM2.js} +413 -413
- package/dist/s-i18n-provider/s-i18n-provider.js +9 -9
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/{s-localization-provider-CeOR72Ti.js → s-localization-provider-DJc4e39M.js} +3 -3
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/{s-text-editor-toolbar-BDDttdIt.js → s-text-editor-toolbar-ob6vDHU4.js} +1 -1
- package/dist/{useMobilePicker-DdH0AzNe.js → useMobilePicker-5bdhOdnH.js} +8851 -8848
- package/package.json +58 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { logger as e } from "../utils/logger.js";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { initReactI18next as r, useTranslation as i } from "react-i18next";
|
|
5
|
+
import { use as a } from "i18next";
|
|
6
|
+
import o from "i18next-http-backend";
|
|
7
7
|
//#region lib/s-i18n-provider/s-i18n-provider.tsx
|
|
8
|
-
|
|
8
|
+
a(o).use(r).init({
|
|
9
9
|
lng: "en",
|
|
10
10
|
fallbackLng: "en",
|
|
11
11
|
interpolation: { escapeValue: !1 }
|
|
12
12
|
}).catch((t) => {
|
|
13
13
|
e.error("Failed to initialize i18n", t);
|
|
14
14
|
});
|
|
15
|
-
var s = ({ children: r, language:
|
|
16
|
-
let { i18n:
|
|
15
|
+
var s = ({ children: r, language: a = "en" }) => {
|
|
16
|
+
let { i18n: o } = i();
|
|
17
17
|
return t.useEffect(() => {
|
|
18
|
-
|
|
19
|
-
e.error(`Failed to change language to ${
|
|
18
|
+
o.changeLanguage(a).catch(() => {
|
|
19
|
+
e.error(`Failed to change language to ${a}`);
|
|
20
20
|
});
|
|
21
|
-
}, [
|
|
21
|
+
}, [o, a]), /* @__PURE__ */ n(t.Fragment, { children: r });
|
|
22
22
|
};
|
|
23
23
|
s.displayName = "SI18nProvider";
|
|
24
24
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e, t } from "./chunk-efA98nb6.js";
|
|
2
2
|
import { n } from "./objectWithoutPropertiesLoose-BdL2_POW.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r, t as i } from "./LocalizationProvider-DxrK-c0x.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
import o from "dayjs";
|
|
@@ -412,7 +412,7 @@ var _ = {
|
|
|
412
412
|
};
|
|
413
413
|
getLocaleFormats = () => {
|
|
414
414
|
let e = o.Ls, t = e[this.locale || "en"];
|
|
415
|
-
return t === void 0 && (process.env.NODE_ENV !== "production" &&
|
|
415
|
+
return t === void 0 && (process.env.NODE_ENV !== "production" && r([
|
|
416
416
|
"MUI X: Your locale has not been found.",
|
|
417
417
|
"Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.",
|
|
418
418
|
"Or you forget to import the locale from 'dayjs/locale/{localeUsed}'",
|
|
@@ -528,7 +528,7 @@ var _ = {
|
|
|
528
528
|
for (; this.isBefore(a, r);) i.push(a), a = this.addYears(a, 1);
|
|
529
529
|
return i;
|
|
530
530
|
};
|
|
531
|
-
}, S = ({ children: e }) => /* @__PURE__ */ a(
|
|
531
|
+
}, S = ({ children: e }) => /* @__PURE__ */ a(i, {
|
|
532
532
|
dateAdapter: x,
|
|
533
533
|
children: e
|
|
534
534
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../createTheme-DuS5_nJb.js";
|
|
2
|
-
import { t as e } from "../s-text-editor-toolbar-
|
|
2
|
+
import { t as e } from "../s-text-editor-toolbar-ob6vDHU4.js";
|
|
3
3
|
import { STextEditor as t } from "./s-text-editor.js";
|
|
4
4
|
export { e as STextEditorToolbar, t as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../createTheme-DuS5_nJb.js";
|
|
2
2
|
import { t as e } from "../Box-CCxGQYgC.js";
|
|
3
|
-
import { t } from "../s-text-editor-toolbar-
|
|
3
|
+
import { t } from "../s-text-editor-toolbar-ob6vDHU4.js";
|
|
4
4
|
import * as n from "react";
|
|
5
5
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
6
|
import { Link as a } from "@tiptap/extension-link";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./Menu-Dhh4e9H1.js";
|
|
2
2
|
import { t } from "./Stack-D-aoKnaS.js";
|
|
3
|
-
import { a as n,
|
|
3
|
+
import { a as n, i as r, t as i } from "./Select-C5bKKis6.js";
|
|
4
4
|
import { t as a } from "./createSvgIcon-KjKEsKNV.js";
|
|
5
5
|
import { t as o } from "./s-text-field-ni42E-1x.js";
|
|
6
6
|
import * as s from "react";
|