@tracktor/shared-module 1.0.0-beta.6 → 1.0.0-beta.7

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/shared-module/releases)
2
2
 
3
- ## v1.0.0-beta.6
4
- - **[docs]** : DaysJSConfig fix export
3
+ ## v1.0.0-beta.7
4
+ - **[fix]** : DaysJSConfig improvement
@@ -1,5 +1,5 @@
1
1
  interface I18nConfigProps {
2
- language?: string;
2
+ language?: "fr" | "en";
3
3
  }
4
4
  /**
5
5
  * Initialize dayjs
@@ -0,0 +1,18 @@
1
+ import { c as o } from "./main-n8Gmn2zo.js";
2
+ var a = { exports: {} };
3
+ (function(t, _) {
4
+ (function(r, e) {
5
+ t.exports = e();
6
+ })(o, function() {
7
+ return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
8
+ var e = ["th", "st", "nd", "rd"], n = r % 100;
9
+ return "[" + r + (e[(n - 20) % 10] || e[n] || e[0]) + "]";
10
+ } };
11
+ });
12
+ })(a);
13
+ const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14
+ __proto__: null
15
+ }, Symbol.toStringTag, { value: "Module" }));
16
+ export {
17
+ s as e
18
+ };
@@ -0,0 +1,22 @@
1
+ import { c as m } from "./main-n8Gmn2zo.js";
2
+ import o from "dayjs";
3
+ var i = { exports: {} };
4
+ (function(n, s) {
5
+ (function(t, r) {
6
+ n.exports = r(o);
7
+ })(m, function(t) {
8
+ function r(e) {
9
+ return e && typeof e == "object" && "default" in e ? e : { default: e };
10
+ }
11
+ var a = r(t), _ = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(e) {
12
+ return "" + e + (e === 1 ? "er" : "");
13
+ } };
14
+ return a.default.locale(_, null, !0), _;
15
+ });
16
+ })(i);
17
+ const l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ __proto__: null
19
+ }, Symbol.toStringTag, { value: "Module" }));
20
+ export {
21
+ l as f
22
+ };
@@ -3,7 +3,7 @@
3
3
  * @returns
4
4
  */
5
5
  export declare const useAdapter: () => {
6
- dateAdapter: (date: string | number | Date | import("dayjs").Dayjs | null | undefined, format?: string) => string;
6
+ dateAdapter: (date: string | number | import("dayjs").Dayjs | Date | null | undefined, format?: string) => string;
7
7
  distanceAdapter: (distance?: string | number | null | undefined, metric?: string) => string;
8
8
  filePathAdapter: (href?: string | null | {
9
9
  pathname: string;