fina-react-ds 1.0.38 → 1.0.39
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/components/calendar.js +11 -12
- package/dist/components/data-loader.js +1 -1
- package/dist/components/date-picker.js +28 -28
- package/dist/components/file-uploader.js +46 -47
- package/dist/components/form.js +14 -14
- package/dist/components/html-input.d.ts +1 -0
- package/dist/components/image-uploader.js +53 -54
- package/dist/components/index.d.ts +45 -0
- package/dist/components/index.js +200 -0
- package/dist/components/select.js +39 -39
- package/dist/components/sidebar.js +49 -49
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.js +27 -0
- package/package.json +49 -36
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -12
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -21
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -36
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -18
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +0 -72
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js +0 -33
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatRelative.js +0 -13
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +0 -123
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js +0 -112
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr.js +0 -21
- package/dist/themes/base.css +0 -3396
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "https://github.com/F1na/fina-react-ds"
|
|
6
6
|
},
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "1.0.
|
|
8
|
+
"version": "1.0.39",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
@@ -19,54 +19,68 @@
|
|
|
19
19
|
"import": "./dist/index.js",
|
|
20
20
|
"require": "./dist/index.js"
|
|
21
21
|
},
|
|
22
|
+
"./components": {
|
|
23
|
+
"types": "./dist/components/index.d.ts",
|
|
24
|
+
"import": "./dist/components/index.js",
|
|
25
|
+
"require": "./dist/components/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./lib": {
|
|
28
|
+
"types": "./dist/lib/index.d.ts",
|
|
29
|
+
"import": "./dist/lib/index.js",
|
|
30
|
+
"require": "./dist/lib/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./hooks": {
|
|
33
|
+
"types": "./dist/hooks/index.d.ts",
|
|
34
|
+
"import": "./dist/hooks/index.js",
|
|
35
|
+
"require": "./dist/hooks/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./themes/*.css": "./dist/themes/*.css",
|
|
22
38
|
"./*": "./dist/*"
|
|
23
39
|
},
|
|
24
40
|
"dependencies": {
|
|
41
|
+
"@ckeditor/ckeditor5-react": "^11.0.0",
|
|
42
|
+
"ckeditor5": "^47.1.0",
|
|
25
43
|
"class-variance-authority": "^0.7.1",
|
|
26
44
|
"clsx": "^2.1.1",
|
|
27
45
|
"date-fns": "^4.0.0",
|
|
28
|
-
"lucide-react": "^0.
|
|
46
|
+
"lucide-react": "^0.546.0",
|
|
29
47
|
"next-themes": "^0.4.6",
|
|
30
48
|
"qs": "^6.14.0",
|
|
31
|
-
"radix-ui": "^1.4.
|
|
49
|
+
"radix-ui": "^1.4.3",
|
|
32
50
|
"react-colorful": "^5.6.1",
|
|
33
|
-
"react-day-picker": "9.
|
|
51
|
+
"react-day-picker": "9.11.1",
|
|
34
52
|
"react-dropzone": "^14.3.8",
|
|
35
|
-
"react-select": "^5.10.
|
|
53
|
+
"react-select": "^5.10.2",
|
|
36
54
|
"react-spinners": "^0.17.0",
|
|
37
|
-
"sonner": "^2.0.
|
|
55
|
+
"sonner": "^2.0.7",
|
|
38
56
|
"tailwind-merge": "^3.3.1",
|
|
39
|
-
"tw-animate-css": "^1.
|
|
40
|
-
"yup": "^1.
|
|
57
|
+
"tw-animate-css": "^1.4.0",
|
|
58
|
+
"yup": "^1.7.1"
|
|
41
59
|
},
|
|
42
60
|
"devDependencies": {
|
|
43
|
-
"@eslint/js": "^9.
|
|
44
|
-
"@tailwindcss/cli": "^4.1.
|
|
45
|
-
"@tailwindcss/vite": "^4.1.
|
|
46
|
-
"@types/node": "^
|
|
61
|
+
"@eslint/js": "^9.38.0",
|
|
62
|
+
"@tailwindcss/cli": "^4.1.15",
|
|
63
|
+
"@tailwindcss/vite": "^4.1.15",
|
|
64
|
+
"@types/node": "^24.9.0",
|
|
47
65
|
"@types/qs": "^6.14.0",
|
|
48
|
-
"@types/react": "^19.
|
|
49
|
-
"@types/react-dom": "^19.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"react": "^19.1.0",
|
|
59
|
-
"react-dom": "^19.1.0",
|
|
60
|
-
"react-hook-form": "^7.60.0",
|
|
66
|
+
"@types/react": "^19.2.2",
|
|
67
|
+
"@types/react-dom": "^19.2.2",
|
|
68
|
+
"vom": "^4.1.0",
|
|
69
|
+
"eslint": "^9.38.0",
|
|
70
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
71
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
72
|
+
"globals": "^16.4.0",
|
|
73
|
+
"react": "^19.2.0",
|
|
74
|
+
"react-dom": "^19.2.0",
|
|
75
|
+
"react-hook-form": "^7.65.0",
|
|
61
76
|
"rimraf": "^6.0.1",
|
|
62
|
-
"rollup": "^4.
|
|
63
|
-
"tailwindcss": "^4.1.
|
|
77
|
+
"rollup": "^4.52.5",
|
|
78
|
+
"tailwindcss": "^4.1.15",
|
|
64
79
|
"tsc-alias": "^1.8.16",
|
|
65
|
-
"typescript": "~5.
|
|
66
|
-
"typescript-eslint": "^8.
|
|
67
|
-
"vite": "^
|
|
68
|
-
"vite-plugin-static-copy": "^
|
|
69
|
-
"vitest": "^3.2.3"
|
|
80
|
+
"typescript": "~5.9.3",
|
|
81
|
+
"typescript-eslint": "^8.46.2",
|
|
82
|
+
"vite": "^7.1.11",
|
|
83
|
+
"vite-plugin-static-copy": "^3.1.4"
|
|
70
84
|
},
|
|
71
85
|
"peerDependencies": {
|
|
72
86
|
"class-variance-authority": "^0.7.1",
|
|
@@ -90,13 +104,12 @@
|
|
|
90
104
|
},
|
|
91
105
|
"scripts": {
|
|
92
106
|
"dev": "vite",
|
|
93
|
-
"build": "rimraf dist && pnpm build:types && pnpm build:
|
|
107
|
+
"build": "rimraf dist && pnpm build:types && pnpm build:components && pnpm build:clean",
|
|
94
108
|
"build:types": "tsc -p tsconfig.build.json && tsc-alias",
|
|
95
109
|
"build:themes": "pnpm dlx @tailwindcss/cli -i ./src/themes/base.css -o ./dist/themes/base.css",
|
|
96
110
|
"build:components": "vite build",
|
|
97
|
-
"build:clean": "rimraf dist/vite.config.d.ts dist/vite.config.d.ts.map",
|
|
98
|
-
"lint": "eslint .
|
|
99
|
-
"stylelint": "stylelint src/**/*.css",
|
|
111
|
+
"build:clean": "rimraf dist/vite.config.d.ts dist/vite.config.d.ts.map && rimraf dist/node_modules",
|
|
112
|
+
"lint": "eslint .",
|
|
100
113
|
"preview": "vite preview"
|
|
101
114
|
}
|
|
102
115
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var r = Object.defineProperty;
|
|
2
|
-
var n = (t, d) => r(t, "name", { value: d, configurable: !0 });
|
|
3
|
-
function u(t) {
|
|
4
|
-
return (d = {}) => {
|
|
5
|
-
const o = d.width ? String(d.width) : t.defaultWidth;
|
|
6
|
-
return t.formats[o] || t.formats[t.defaultWidth];
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
n(u, "buildFormatLongFn");
|
|
10
|
-
export {
|
|
11
|
-
u as buildFormatLongFn
|
|
12
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var n = Object.defineProperty;
|
|
2
|
-
var c = (t, d) => n(t, "name", { value: d, configurable: !0 });
|
|
3
|
-
function m(t) {
|
|
4
|
-
return (d, e) => {
|
|
5
|
-
const f = e != null && e.context ? String(e.context) : "standalone";
|
|
6
|
-
let u;
|
|
7
|
-
if (f === "formatting" && t.formattingValues) {
|
|
8
|
-
const l = t.defaultFormattingWidth || t.defaultWidth, a = e != null && e.width ? String(e.width) : l;
|
|
9
|
-
u = t.formattingValues[a] || t.formattingValues[l];
|
|
10
|
-
} else {
|
|
11
|
-
const l = t.defaultWidth, a = e != null && e.width ? String(e.width) : t.defaultWidth;
|
|
12
|
-
u = t.values[a] || t.values[l];
|
|
13
|
-
}
|
|
14
|
-
const h = t.argumentCallback ? t.argumentCallback(d) : d;
|
|
15
|
-
return u[h];
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
c(m, "buildLocalizeFn");
|
|
19
|
-
export {
|
|
20
|
-
m as buildLocalizeFn
|
|
21
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var o = Object.defineProperty;
|
|
2
|
-
var r = (t, n) => o(t, "name", { value: n, configurable: !0 });
|
|
3
|
-
function m(t) {
|
|
4
|
-
return (n, e = {}) => {
|
|
5
|
-
const l = e.width, f = l && t.matchPatterns[l] || t.matchPatterns[t.defaultMatchWidth], d = n.match(f);
|
|
6
|
-
if (!d)
|
|
7
|
-
return null;
|
|
8
|
-
const c = d[0], u = l && t.parsePatterns[l] || t.parsePatterns[t.defaultParseWidth], h = Array.isArray(u) ? k(u, (i) => i.test(c)) : (
|
|
9
|
-
// [TODO] -- I challenge you to fix the type
|
|
10
|
-
P(u, (i) => i.test(c))
|
|
11
|
-
);
|
|
12
|
-
let a;
|
|
13
|
-
a = t.valueCallback ? t.valueCallback(h) : h, a = e.valueCallback ? (
|
|
14
|
-
// [TODO] -- I challenge you to fix the type
|
|
15
|
-
e.valueCallback(a)
|
|
16
|
-
) : a;
|
|
17
|
-
const s = n.slice(c.length);
|
|
18
|
-
return { value: a, rest: s };
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
r(m, "buildMatchFn");
|
|
22
|
-
function P(t, n) {
|
|
23
|
-
for (const e in t)
|
|
24
|
-
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
25
|
-
return e;
|
|
26
|
-
}
|
|
27
|
-
r(P, "findKey");
|
|
28
|
-
function k(t, n) {
|
|
29
|
-
for (let e = 0; e < t.length; e++)
|
|
30
|
-
if (n(t[e]))
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
r(k, "findIndex");
|
|
34
|
-
export {
|
|
35
|
-
m as buildMatchFn
|
|
36
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var b = Object.defineProperty;
|
|
2
|
-
var u = (t, l) => b(t, "name", { value: l, configurable: !0 });
|
|
3
|
-
function v(t) {
|
|
4
|
-
return (l, c = {}) => {
|
|
5
|
-
const n = l.match(t.matchPattern);
|
|
6
|
-
if (!n) return null;
|
|
7
|
-
const r = n[0], a = l.match(t.parsePattern);
|
|
8
|
-
if (!a) return null;
|
|
9
|
-
let e = t.valueCallback ? t.valueCallback(a[0]) : a[0];
|
|
10
|
-
e = c.valueCallback ? c.valueCallback(e) : e;
|
|
11
|
-
const h = l.slice(r.length);
|
|
12
|
-
return { value: e, rest: h };
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
u(v, "buildMatchPatternFn");
|
|
16
|
-
export {
|
|
17
|
-
v as buildMatchPatternFn
|
|
18
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var u = Object.defineProperty;
|
|
2
|
-
var t = (r, o) => u(r, "name", { value: o, configurable: !0 });
|
|
3
|
-
const a = {
|
|
4
|
-
lessThanXSeconds: {
|
|
5
|
-
one: "moins d’une seconde",
|
|
6
|
-
other: "moins de {{count}} secondes"
|
|
7
|
-
},
|
|
8
|
-
xSeconds: {
|
|
9
|
-
one: "1 seconde",
|
|
10
|
-
other: "{{count}} secondes"
|
|
11
|
-
},
|
|
12
|
-
halfAMinute: "30 secondes",
|
|
13
|
-
lessThanXMinutes: {
|
|
14
|
-
one: "moins d’une minute",
|
|
15
|
-
other: "moins de {{count}} minutes"
|
|
16
|
-
},
|
|
17
|
-
xMinutes: {
|
|
18
|
-
one: "1 minute",
|
|
19
|
-
other: "{{count}} minutes"
|
|
20
|
-
},
|
|
21
|
-
aboutXHours: {
|
|
22
|
-
one: "environ 1 heure",
|
|
23
|
-
other: "environ {{count}} heures"
|
|
24
|
-
},
|
|
25
|
-
xHours: {
|
|
26
|
-
one: "1 heure",
|
|
27
|
-
other: "{{count}} heures"
|
|
28
|
-
},
|
|
29
|
-
xDays: {
|
|
30
|
-
one: "1 jour",
|
|
31
|
-
other: "{{count}} jours"
|
|
32
|
-
},
|
|
33
|
-
aboutXWeeks: {
|
|
34
|
-
one: "environ 1 semaine",
|
|
35
|
-
other: "environ {{count}} semaines"
|
|
36
|
-
},
|
|
37
|
-
xWeeks: {
|
|
38
|
-
one: "1 semaine",
|
|
39
|
-
other: "{{count}} semaines"
|
|
40
|
-
},
|
|
41
|
-
aboutXMonths: {
|
|
42
|
-
one: "environ 1 mois",
|
|
43
|
-
other: "environ {{count}} mois"
|
|
44
|
-
},
|
|
45
|
-
xMonths: {
|
|
46
|
-
one: "1 mois",
|
|
47
|
-
other: "{{count}} mois"
|
|
48
|
-
},
|
|
49
|
-
aboutXYears: {
|
|
50
|
-
one: "environ 1 an",
|
|
51
|
-
other: "environ {{count}} ans"
|
|
52
|
-
},
|
|
53
|
-
xYears: {
|
|
54
|
-
one: "1 an",
|
|
55
|
-
other: "{{count}} ans"
|
|
56
|
-
},
|
|
57
|
-
overXYears: {
|
|
58
|
-
one: "plus d’un an",
|
|
59
|
-
other: "plus de {{count}} ans"
|
|
60
|
-
},
|
|
61
|
-
almostXYears: {
|
|
62
|
-
one: "presqu’un an",
|
|
63
|
-
other: "presque {{count}} ans"
|
|
64
|
-
}
|
|
65
|
-
}, c = /* @__PURE__ */ t((r, o, n) => {
|
|
66
|
-
let e;
|
|
67
|
-
const s = a[r];
|
|
68
|
-
return typeof s == "string" ? e = s : o === 1 ? e = s.one : e = s.other.replace("{{count}}", String(o)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "dans " + e : "il y a " + e : e;
|
|
69
|
-
}, "formatDistance");
|
|
70
|
-
export {
|
|
71
|
-
c as formatDistance
|
|
72
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatLong.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { buildFormatLongFn as t } from "../../_lib/buildFormatLongFn.js";
|
|
2
|
-
const m = {
|
|
3
|
-
full: "EEEE d MMMM y",
|
|
4
|
-
long: "d MMMM y",
|
|
5
|
-
medium: "d MMM y",
|
|
6
|
-
short: "dd/MM/y"
|
|
7
|
-
}, d = {
|
|
8
|
-
full: "HH:mm:ss zzzz",
|
|
9
|
-
long: "HH:mm:ss z",
|
|
10
|
-
medium: "HH:mm:ss",
|
|
11
|
-
short: "HH:mm"
|
|
12
|
-
}, e = {
|
|
13
|
-
full: "{{date}} 'à' {{time}}",
|
|
14
|
-
long: "{{date}} 'à' {{time}}",
|
|
15
|
-
medium: "{{date}}, {{time}}",
|
|
16
|
-
short: "{{date}}, {{time}}"
|
|
17
|
-
}, a = {
|
|
18
|
-
date: t({
|
|
19
|
-
formats: m,
|
|
20
|
-
defaultWidth: "full"
|
|
21
|
-
}),
|
|
22
|
-
time: t({
|
|
23
|
-
formats: d,
|
|
24
|
-
defaultWidth: "full"
|
|
25
|
-
}),
|
|
26
|
-
dateTime: t({
|
|
27
|
-
formats: e,
|
|
28
|
-
defaultWidth: "full"
|
|
29
|
-
})
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
a as formatLong
|
|
33
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
var a = Object.defineProperty;
|
|
2
|
-
var o = (e, t) => a(e, "name", { value: t, configurable: !0 });
|
|
3
|
-
const r = {
|
|
4
|
-
lastWeek: "eeee 'dernier à' p",
|
|
5
|
-
yesterday: "'hier à' p",
|
|
6
|
-
today: "'aujourd’hui à' p",
|
|
7
|
-
tomorrow: "'demain à' p'",
|
|
8
|
-
nextWeek: "eeee 'prochain à' p",
|
|
9
|
-
other: "P"
|
|
10
|
-
}, d = /* @__PURE__ */ o((e, t, i, p) => r[e], "formatRelative");
|
|
11
|
-
export {
|
|
12
|
-
d as formatRelative
|
|
13
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
var o = Object.defineProperty;
|
|
2
|
-
var t = (n, e) => o(n, "name", { value: e, configurable: !0 });
|
|
3
|
-
import { buildLocalizeFn as r } from "../../_lib/buildLocalizeFn.js";
|
|
4
|
-
const u = {
|
|
5
|
-
narrow: ["av. J.-C", "ap. J.-C"],
|
|
6
|
-
abbreviated: ["av. J.-C", "ap. J.-C"],
|
|
7
|
-
wide: ["avant Jésus-Christ", "après Jésus-Christ"]
|
|
8
|
-
}, s = {
|
|
9
|
-
narrow: ["T1", "T2", "T3", "T4"],
|
|
10
|
-
abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."],
|
|
11
|
-
wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"]
|
|
12
|
-
}, l = {
|
|
13
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
14
|
-
abbreviated: [
|
|
15
|
-
"janv.",
|
|
16
|
-
"févr.",
|
|
17
|
-
"mars",
|
|
18
|
-
"avr.",
|
|
19
|
-
"mai",
|
|
20
|
-
"juin",
|
|
21
|
-
"juil.",
|
|
22
|
-
"août",
|
|
23
|
-
"sept.",
|
|
24
|
-
"oct.",
|
|
25
|
-
"nov.",
|
|
26
|
-
"déc."
|
|
27
|
-
],
|
|
28
|
-
wide: [
|
|
29
|
-
"janvier",
|
|
30
|
-
"février",
|
|
31
|
-
"mars",
|
|
32
|
-
"avril",
|
|
33
|
-
"mai",
|
|
34
|
-
"juin",
|
|
35
|
-
"juillet",
|
|
36
|
-
"août",
|
|
37
|
-
"septembre",
|
|
38
|
-
"octobre",
|
|
39
|
-
"novembre",
|
|
40
|
-
"décembre"
|
|
41
|
-
]
|
|
42
|
-
}, v = {
|
|
43
|
-
narrow: ["D", "L", "M", "M", "J", "V", "S"],
|
|
44
|
-
short: ["di", "lu", "ma", "me", "je", "ve", "sa"],
|
|
45
|
-
abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."],
|
|
46
|
-
wide: [
|
|
47
|
-
"dimanche",
|
|
48
|
-
"lundi",
|
|
49
|
-
"mardi",
|
|
50
|
-
"mercredi",
|
|
51
|
-
"jeudi",
|
|
52
|
-
"vendredi",
|
|
53
|
-
"samedi"
|
|
54
|
-
]
|
|
55
|
-
}, c = {
|
|
56
|
-
narrow: {
|
|
57
|
-
am: "AM",
|
|
58
|
-
pm: "PM",
|
|
59
|
-
midnight: "minuit",
|
|
60
|
-
noon: "midi",
|
|
61
|
-
morning: "mat.",
|
|
62
|
-
afternoon: "ap.m.",
|
|
63
|
-
evening: "soir",
|
|
64
|
-
night: "mat."
|
|
65
|
-
},
|
|
66
|
-
abbreviated: {
|
|
67
|
-
am: "AM",
|
|
68
|
-
pm: "PM",
|
|
69
|
-
midnight: "minuit",
|
|
70
|
-
noon: "midi",
|
|
71
|
-
morning: "matin",
|
|
72
|
-
afternoon: "après-midi",
|
|
73
|
-
evening: "soir",
|
|
74
|
-
night: "matin"
|
|
75
|
-
},
|
|
76
|
-
wide: {
|
|
77
|
-
am: "AM",
|
|
78
|
-
pm: "PM",
|
|
79
|
-
midnight: "minuit",
|
|
80
|
-
noon: "midi",
|
|
81
|
-
morning: "du matin",
|
|
82
|
-
afternoon: "de l’après-midi",
|
|
83
|
-
evening: "du soir",
|
|
84
|
-
night: "du matin"
|
|
85
|
-
}
|
|
86
|
-
}, h = /* @__PURE__ */ t((n, e) => {
|
|
87
|
-
const a = Number(n), i = e == null ? void 0 : e.unit;
|
|
88
|
-
if (a === 0) return "0";
|
|
89
|
-
const d = ["year", "week", "hour", "minute", "second"];
|
|
90
|
-
let m;
|
|
91
|
-
return a === 1 ? m = i && d.includes(i) ? "ère" : "er" : m = "ème", a + m;
|
|
92
|
-
}, "ordinalNumber"), M = ["MMM", "MMMM"], g = {
|
|
93
|
-
preprocessor: /* @__PURE__ */ t((n, e) => n.getDate() === 1 || !e.some(
|
|
94
|
-
(i) => i.isToken && M.includes(i.value)
|
|
95
|
-
) ? e : e.map(
|
|
96
|
-
(i) => i.isToken && i.value === "do" ? { isToken: !0, value: "d" } : i
|
|
97
|
-
), "preprocessor"),
|
|
98
|
-
ordinalNumber: h,
|
|
99
|
-
era: r({
|
|
100
|
-
values: u,
|
|
101
|
-
defaultWidth: "wide"
|
|
102
|
-
}),
|
|
103
|
-
quarter: r({
|
|
104
|
-
values: s,
|
|
105
|
-
defaultWidth: "wide",
|
|
106
|
-
argumentCallback: /* @__PURE__ */ t((n) => n - 1, "argumentCallback")
|
|
107
|
-
}),
|
|
108
|
-
month: r({
|
|
109
|
-
values: l,
|
|
110
|
-
defaultWidth: "wide"
|
|
111
|
-
}),
|
|
112
|
-
day: r({
|
|
113
|
-
values: v,
|
|
114
|
-
defaultWidth: "wide"
|
|
115
|
-
}),
|
|
116
|
-
dayPeriod: r({
|
|
117
|
-
values: c,
|
|
118
|
-
defaultWidth: "wide"
|
|
119
|
-
})
|
|
120
|
-
};
|
|
121
|
-
export {
|
|
122
|
-
g as localize
|
|
123
|
-
};
|
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/match.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
var r = Object.defineProperty;
|
|
2
|
-
var t = (a, e) => r(a, "name", { value: e, configurable: !0 });
|
|
3
|
-
import { buildMatchFn as i } from "../../_lib/buildMatchFn.js";
|
|
4
|
-
import { buildMatchPatternFn as n } from "../../_lib/buildMatchPatternFn.js";
|
|
5
|
-
const s = /^(\d+)(ième|ère|ème|er|e)?/i, d = /\d+/i, m = {
|
|
6
|
-
narrow: /^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,
|
|
7
|
-
abbreviated: /^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,
|
|
8
|
-
wide: /^(avant Jésus-Christ|après Jésus-Christ)/i
|
|
9
|
-
}, o = {
|
|
10
|
-
any: [/^av/i, /^ap/i]
|
|
11
|
-
}, c = {
|
|
12
|
-
narrow: /^T?[1234]/i,
|
|
13
|
-
abbreviated: /^[1234](er|ème|e)? trim\.?/i,
|
|
14
|
-
wide: /^[1234](er|ème|e)? trimestre/i
|
|
15
|
-
}, u = {
|
|
16
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
17
|
-
}, h = {
|
|
18
|
-
narrow: /^[jfmasond]/i,
|
|
19
|
-
abbreviated: /^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,
|
|
20
|
-
wide: /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i
|
|
21
|
-
}, l = {
|
|
22
|
-
narrow: [
|
|
23
|
-
/^j/i,
|
|
24
|
-
/^f/i,
|
|
25
|
-
/^m/i,
|
|
26
|
-
/^a/i,
|
|
27
|
-
/^m/i,
|
|
28
|
-
/^j/i,
|
|
29
|
-
/^j/i,
|
|
30
|
-
/^a/i,
|
|
31
|
-
/^s/i,
|
|
32
|
-
/^o/i,
|
|
33
|
-
/^n/i,
|
|
34
|
-
/^d/i
|
|
35
|
-
],
|
|
36
|
-
any: [
|
|
37
|
-
/^ja/i,
|
|
38
|
-
/^f/i,
|
|
39
|
-
/^mar/i,
|
|
40
|
-
/^av/i,
|
|
41
|
-
/^ma/i,
|
|
42
|
-
/^juin/i,
|
|
43
|
-
/^juil/i,
|
|
44
|
-
/^ao/i,
|
|
45
|
-
/^s/i,
|
|
46
|
-
/^o/i,
|
|
47
|
-
/^n/i,
|
|
48
|
-
/^d/i
|
|
49
|
-
]
|
|
50
|
-
}, P = {
|
|
51
|
-
narrow: /^[lmjvsd]/i,
|
|
52
|
-
short: /^(di|lu|ma|me|je|ve|sa)/i,
|
|
53
|
-
abbreviated: /^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,
|
|
54
|
-
wide: /^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i
|
|
55
|
-
}, p = {
|
|
56
|
-
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
57
|
-
any: [/^di/i, /^lu/i, /^ma/i, /^me/i, /^je/i, /^ve/i, /^sa/i]
|
|
58
|
-
}, v = {
|
|
59
|
-
narrow: /^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,
|
|
60
|
-
any: /^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i
|
|
61
|
-
}, j = {
|
|
62
|
-
any: {
|
|
63
|
-
am: /^a/i,
|
|
64
|
-
pm: /^p/i,
|
|
65
|
-
midnight: /^min/i,
|
|
66
|
-
noon: /^mid/i,
|
|
67
|
-
morning: /mat/i,
|
|
68
|
-
afternoon: /ap/i,
|
|
69
|
-
evening: /soir/i,
|
|
70
|
-
night: /nuit/i
|
|
71
|
-
}
|
|
72
|
-
}, w = {
|
|
73
|
-
ordinalNumber: n({
|
|
74
|
-
matchPattern: s,
|
|
75
|
-
parsePattern: d,
|
|
76
|
-
valueCallback: /* @__PURE__ */ t((a) => parseInt(a), "valueCallback")
|
|
77
|
-
}),
|
|
78
|
-
era: i({
|
|
79
|
-
matchPatterns: m,
|
|
80
|
-
defaultMatchWidth: "wide",
|
|
81
|
-
parsePatterns: o,
|
|
82
|
-
defaultParseWidth: "any"
|
|
83
|
-
}),
|
|
84
|
-
quarter: i({
|
|
85
|
-
matchPatterns: c,
|
|
86
|
-
defaultMatchWidth: "wide",
|
|
87
|
-
parsePatterns: u,
|
|
88
|
-
defaultParseWidth: "any",
|
|
89
|
-
valueCallback: /* @__PURE__ */ t((a) => a + 1, "valueCallback")
|
|
90
|
-
}),
|
|
91
|
-
month: i({
|
|
92
|
-
matchPatterns: h,
|
|
93
|
-
defaultMatchWidth: "wide",
|
|
94
|
-
parsePatterns: l,
|
|
95
|
-
defaultParseWidth: "any"
|
|
96
|
-
}),
|
|
97
|
-
day: i({
|
|
98
|
-
matchPatterns: P,
|
|
99
|
-
defaultMatchWidth: "wide",
|
|
100
|
-
parsePatterns: p,
|
|
101
|
-
defaultParseWidth: "any"
|
|
102
|
-
}),
|
|
103
|
-
dayPeriod: i({
|
|
104
|
-
matchPatterns: v,
|
|
105
|
-
defaultMatchWidth: "any",
|
|
106
|
-
parsePatterns: j,
|
|
107
|
-
defaultParseWidth: "any"
|
|
108
|
-
})
|
|
109
|
-
};
|
|
110
|
-
export {
|
|
111
|
-
w as match
|
|
112
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { formatDistance as o } from "./fr/_lib/formatDistance.js";
|
|
2
|
-
import { formatLong as t } from "./fr/_lib/formatLong.js";
|
|
3
|
-
import { formatRelative as r } from "./fr/_lib/formatRelative.js";
|
|
4
|
-
import { localize as a } from "./fr/_lib/localize.js";
|
|
5
|
-
import { match as m } from "./fr/_lib/match.js";
|
|
6
|
-
const s = {
|
|
7
|
-
code: "fr",
|
|
8
|
-
formatDistance: o,
|
|
9
|
-
formatLong: t,
|
|
10
|
-
formatRelative: r,
|
|
11
|
-
localize: a,
|
|
12
|
-
match: m,
|
|
13
|
-
options: {
|
|
14
|
-
weekStartsOn: 1,
|
|
15
|
-
firstWeekContainsDate: 4
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
s as default,
|
|
20
|
-
s as fr
|
|
21
|
-
};
|