@chekinapp/ui 0.0.64 → 0.0.66

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/index.cjs CHANGED
@@ -296,6 +296,7 @@ __export(index_exports, {
296
296
  TooltipRoot: () => TooltipRoot,
297
297
  TooltipRootWrapper: () => TooltipRootWrapper,
298
298
  TooltipTrigger: () => TooltipTrigger,
299
+ UI_KIT_I18N_NAMESPACE: () => UI_KIT_I18N_NAMESPACE,
299
300
  UploadedFilesList: () => UploadedFilesList,
300
301
  VerticalTabs: () => VerticalTabs,
301
302
  VideoModal: () => VideoModal,
@@ -318,6 +319,7 @@ __export(index_exports, {
318
319
  inputVariants: () => inputVariants,
319
320
  isNumeric: () => isNumeric,
320
321
  labelVariants: () => labelVariants,
322
+ registerUiKitI18n: () => registerUiKitI18n,
321
323
  scrollToTop: () => scrollToTop,
322
324
  sectionTagVariants: () => sectionTagVariants,
323
325
  switchThumbVariants: () => switchThumbVariants,
@@ -5738,6 +5740,14 @@ var uiKitI18nResources = {
5738
5740
  it: { translation: translation_default5 },
5739
5741
  pt: { translation: translation_default6 }
5740
5742
  };
5743
+ var UI_KIT_I18N_NAMESPACE = "translation";
5744
+ function registerUiKitI18n(i18n, options = {}) {
5745
+ const namespace = options.namespace ?? UI_KIT_I18N_NAMESPACE;
5746
+ const overwrite = options.overwrite ?? false;
5747
+ for (const [lng, bundle] of Object.entries(uiKitTranslations)) {
5748
+ i18n.addResourceBundle(lng, namespace, bundle, true, overwrite);
5749
+ }
5750
+ }
5741
5751
 
5742
5752
  // src/large-modal/LargeModal.tsx
5743
5753
  var import_lucide_react15 = require("lucide-react");
@@ -14422,6 +14432,7 @@ function toastResponseError(error, options = {}) {
14422
14432
  TooltipRoot,
14423
14433
  TooltipRootWrapper,
14424
14434
  TooltipTrigger,
14435
+ UI_KIT_I18N_NAMESPACE,
14425
14436
  UploadedFilesList,
14426
14437
  VerticalTabs,
14427
14438
  VideoModal,
@@ -14444,6 +14455,7 @@ function toastResponseError(error, options = {}) {
14444
14455
  inputVariants,
14445
14456
  isNumeric,
14446
14457
  labelVariants,
14458
+ registerUiKitI18n,
14447
14459
  scrollToTop,
14448
14460
  sectionTagVariants,
14449
14461
  switchThumbVariants,