@dxos/react-ui 0.5.1-main.ff7d242 → 0.5.1-next.01aec52

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.
@@ -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,