@dxos/react-ui 0.5.1-next.260c093 → 0.5.1-next.26de2f3
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/lib/browser/index.mjs +2 -0
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +1 -0
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/index.d.ts +1 -1
- package/dist/types/src/components/ThemeProvider/index.d.ts.map +1 -1
- package/dist/types/src/playground/Surfaces.stories.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/components/ThemeProvider/TranslationsProvider.tsx +10 -0
- package/src/components/ThemeProvider/index.ts +1 -1
- package/src/playground/Surfaces.stories.tsx +6 -2
|
@@ -33,6 +33,7 @@ import { initReactI18next, useTranslation as useI18NextTranslation } from "react
|
|
|
33
33
|
var initialLng = "en-US";
|
|
34
34
|
var initialNs = "dxos-common";
|
|
35
35
|
var initialDtLocale = dtLocaleEnUs;
|
|
36
|
+
var isLabel = (o) => typeof o === "string" || Array.isArray(o) && o.length === 2 && typeof o[0] === "string" && !!o[1] && typeof o[1] === "object" && "ns" in o[1] && typeof o[1].ns === "string";
|
|
36
37
|
var toLocalizedString = (label, t) => Array.isArray(label) ? t(...label) : label;
|
|
37
38
|
var resources = {
|
|
38
39
|
[initialLng]: {
|
|
@@ -2172,6 +2173,7 @@ export {
|
|
|
2172
2173
|
Tree,
|
|
2173
2174
|
TreeItem,
|
|
2174
2175
|
hasIosKeyboard,
|
|
2176
|
+
isLabel,
|
|
2175
2177
|
toLocalizedString,
|
|
2176
2178
|
useAvatarContext,
|
|
2177
2179
|
useButtonGroupContext,
|