@servicetitan/culture
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -1,1 +0,26 @@ | ||
export * from './culture-context'; | ||
import React from 'react'; | ||
export interface Culture { | ||
Name: string; | ||
DateTimeFormat: { | ||
MomentShortDatePattern: string; | ||
MomentShortYearDatePattern: string; | ||
MomentShortYearDateTimePattern: string; | ||
}; | ||
NumberFormat: { | ||
NumberDecimalSeparator: string; | ||
NumberGroupSeparator: string; | ||
}; | ||
PhoneFormat: { | ||
PhoneFormatInfo: { | ||
Pattern: RegExp; | ||
}; | ||
PhoneMask: string; | ||
SimplePhoneMask: string; | ||
}; | ||
} | ||
export declare const CULTURE_TOKEN: import("@servicetitan/react-ioc").SymbolToken<Culture>; | ||
interface CultureProviderProps { | ||
value: Culture; | ||
} | ||
export declare const CultureProvider: React.FC<CultureProviderProps>; | ||
export {}; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./culture-context")); | ||
var react_1 = __importDefault(require("react")); | ||
var react_ioc_1 = require("@servicetitan/react-ioc"); | ||
exports.CULTURE_TOKEN = react_ioc_1.symbolToken('CULTURE_TOKEN'); | ||
exports.CultureProvider = function (_a) { | ||
var value = _a.value, children = _a.children; | ||
return (react_1.default.createElement(react_ioc_1.Provider, { singletons: [{ provide: exports.CULTURE_TOKEN, useValue: value }] }, children)); | ||
}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@servicetitan/culture", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -17,5 +17,7 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@servicetitan/react-ioc": "^3.0.4", | ||
"react": "^16.12.0" | ||
}, | ||
"peerDependencies": { | ||
"@servicetitan/react-ioc": "^3.0.3", | ||
"react": "^16.12.0" | ||
@@ -26,3 +28,3 @@ }, | ||
}, | ||
"gitHead": "45e7473c61b79ea08998e622b8adacc5a0664fa5" | ||
"gitHead": "94b2912044a7a465f5e908d5e20397ea3235b65b" | ||
} |
Sorry, the diff of this file is not supported yet
3357
66
2
2
5