fina-react-ds 1.0.38 → 1.0.40
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/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +15 -15
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/formatDistance.js +5 -5
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js +14 -14
- package/package.json +48 -35
- package/dist/themes/base.css +0 -3396
package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/fr/_lib/localize.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var t = (n,
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var t = (n, i) => d(n, "name", { value: i, configurable: !0 });
|
|
3
3
|
import { buildLocalizeFn as r } from "../../_lib/buildLocalizeFn.js";
|
|
4
|
-
const
|
|
4
|
+
const s = {
|
|
5
5
|
narrow: ["av. J.-C", "ap. J.-C"],
|
|
6
6
|
abbreviated: ["av. J.-C", "ap. J.-C"],
|
|
7
7
|
wide: ["avant Jésus-Christ", "après Jésus-Christ"]
|
|
8
|
-
},
|
|
8
|
+
}, u = {
|
|
9
9
|
narrow: ["T1", "T2", "T3", "T4"],
|
|
10
10
|
abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."],
|
|
11
11
|
wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"]
|
|
@@ -83,25 +83,25 @@ const u = {
|
|
|
83
83
|
evening: "du soir",
|
|
84
84
|
night: "du matin"
|
|
85
85
|
}
|
|
86
|
-
}, h = /* @__PURE__ */ t((n,
|
|
87
|
-
const a = Number(n),
|
|
86
|
+
}, h = /* @__PURE__ */ t((n, i) => {
|
|
87
|
+
const a = Number(n), e = i?.unit;
|
|
88
88
|
if (a === 0) return "0";
|
|
89
|
-
const
|
|
89
|
+
const o = ["year", "week", "hour", "minute", "second"];
|
|
90
90
|
let m;
|
|
91
|
-
return a === 1 ? m =
|
|
91
|
+
return a === 1 ? m = e && o.includes(e) ? "ère" : "er" : m = "ème", a + m;
|
|
92
92
|
}, "ordinalNumber"), M = ["MMM", "MMMM"], g = {
|
|
93
|
-
preprocessor: /* @__PURE__ */ t((n,
|
|
94
|
-
(
|
|
95
|
-
) ?
|
|
96
|
-
(
|
|
93
|
+
preprocessor: /* @__PURE__ */ t((n, i) => n.getDate() === 1 || !i.some(
|
|
94
|
+
(e) => e.isToken && M.includes(e.value)
|
|
95
|
+
) ? i : i.map(
|
|
96
|
+
(e) => e.isToken && e.value === "do" ? { isToken: !0, value: "d" } : e
|
|
97
97
|
), "preprocessor"),
|
|
98
98
|
ordinalNumber: h,
|
|
99
99
|
era: r({
|
|
100
|
-
values:
|
|
100
|
+
values: s,
|
|
101
101
|
defaultWidth: "wide"
|
|
102
102
|
}),
|
|
103
103
|
quarter: r({
|
|
104
|
-
values:
|
|
104
|
+
values: u,
|
|
105
105
|
defaultWidth: "wide",
|
|
106
106
|
argumentCallback: /* @__PURE__ */ t((n) => n - 1, "argumentCallback")
|
|
107
107
|
}),
|
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.40",
|
|
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
111
|
"build:clean": "rimraf dist/vite.config.d.ts dist/vite.config.d.ts.map",
|
|
98
|
-
"lint": "eslint .
|
|
99
|
-
"stylelint": "stylelint src/**/*.css",
|
|
112
|
+
"lint": "eslint .",
|
|
100
113
|
"preview": "vite preview"
|
|
101
114
|
}
|
|
102
115
|
}
|