zuii 1.4.16 → 1.4.18
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/_virtual/fr.js +5 -0
- package/dist/_virtual/fr2.js +4 -0
- package/dist/components/Badge/style/index.css +1 -1
- package/dist/components/Card/js/card.d.ts +4 -0
- package/dist/components/Card/react/index.d.ts +29 -0
- package/dist/components/Card/react/index.js +20 -0
- package/dist/components/Card/style/index.css +1 -0
- package/dist/components/Color/react/index.js +9 -5
- package/dist/components/Errorpage/react/index.js +11 -7
- package/dist/components/Form/js/color.d.ts +11 -0
- package/dist/components/Form/js/color.js +36 -0
- package/dist/components/Form/js/date.d.ts +35 -0
- package/dist/components/Form/js/date.js +40 -0
- package/dist/components/Form/js/tel-input.d.ts +12 -0
- package/dist/components/Form/js/tel-input.js +18 -0
- package/dist/components/Form/react/FormColor.d.ts +37 -0
- package/dist/components/Form/react/FormColor.js +62 -0
- package/dist/components/Form/react/FormDate.d.ts +48 -0
- package/dist/components/Form/react/FormDate.js +57 -0
- package/dist/components/Form/react/NumberInput.js +2 -3
- package/dist/components/Form/react/PasswordConfirm.d.ts +5 -1
- package/dist/components/Form/react/PasswordConfirm.js +43 -40
- package/dist/components/Form/react/PasswordInput.js +21 -21
- package/dist/components/Form/react/RangeInput.js +2 -3
- package/dist/components/Form/react/Select.d.ts +9 -1
- package/dist/components/Form/react/Select.js +91 -67
- package/dist/components/Form/react/TelInput.js +34 -26
- package/dist/components/Form/react/index.d.ts +7 -2
- package/dist/components/Form/react/index.js +28 -24
- package/dist/components/Form/style/index.css +1 -1
- package/dist/components/Grid/react/index.d.ts +13 -2
- package/dist/components/Grid/react/index.js +39 -34
- package/dist/components/Grid/style/index.css +1 -1
- package/dist/components/Loader/js/loader.d.ts +5 -1
- package/dist/components/Loader/react/index.d.ts +5 -1
- package/dist/components/Loader/react/index.js +22 -18
- package/dist/components/Loader/style/index.css +1 -1
- package/dist/components/Menu/js/menu.d.ts +6 -0
- package/dist/components/Menu/js/menu.js +19 -0
- package/dist/components/Menu/react/index.d.ts +34 -0
- package/dist/components/Menu/react/index.js +44 -0
- package/dist/components/Menu/style/index.css +1 -0
- package/dist/components/Nav/react/index.js +5 -1
- package/dist/components/Placeholder/style/index.css +1 -1
- package/dist/components/Slider/js/slider.d.ts +11 -0
- package/dist/components/Slider/js/slider.js +14 -0
- package/dist/components/Slider/react/index.d.ts +40 -0
- package/dist/components/Slider/react/index.js +27 -0
- package/dist/components/Slider/style/index.css +1 -0
- package/dist/components/Tab/react/index.js +48 -42
- package/dist/components/Tab/style/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +25 -18
- package/dist/node_modules/.pnpm/flatpickr@4.6.13/node_modules/flatpickr/dist/l10n/fr.js +71 -0
- package/dist/templates/Cards/Cards.d.ts +4 -0
- package/dist/templates/Cards/Cards.tsx +55 -0
- package/dist/templates/Forms/Forms-elements.tsx +9 -4
- package/dist/templates/Loaders/Loaders.tsx +5 -0
- package/dist/templates/Sliders/Sliders.d.ts +4 -0
- package/dist/templates/Sliders/Sliders.tsx +150 -0
- package/dist/templates/index.d.ts +2 -0
- package/dist/templates/index.ts +2 -0
- package/package.json +5 -1
|
@@ -27,6 +27,10 @@ export const Loaders = () => {
|
|
|
27
27
|
<Loader variant="quad" />
|
|
28
28
|
<span className="text-xs text-muted mt-2">Quad</span>
|
|
29
29
|
</div>
|
|
30
|
+
<div className="flex flex-col items-center gap-3" style={{ minWidth: '100px' }}>
|
|
31
|
+
<Loader variant="svg" style={{ maskImage: "url('https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/react/react-original.svg')"}} />
|
|
32
|
+
<span className="text-xs text-muted mt-2">SVG</span>
|
|
33
|
+
</div>
|
|
30
34
|
</Group>
|
|
31
35
|
</section>
|
|
32
36
|
|
|
@@ -70,6 +74,7 @@ export const Loaders = () => {
|
|
|
70
74
|
<Loader color="danger" variant="spinner" />
|
|
71
75
|
<Loader color="warning" variant="pulse" />
|
|
72
76
|
<Loader color="info" variant="quad" />
|
|
77
|
+
|
|
73
78
|
</Group>
|
|
74
79
|
</section>
|
|
75
80
|
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Slider, SliderItem, Card, Button } from '../../index';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Template de démonstration pour le composant Slider.
|
|
6
|
+
*/
|
|
7
|
+
export const Sliders = () => {
|
|
8
|
+
const generatePlaceholder = (text: string, bgColor: string = "#e2e8f0", color: string = "#64748b") => (
|
|
9
|
+
<div style={{
|
|
10
|
+
height: '200px',
|
|
11
|
+
backgroundColor: bgColor,
|
|
12
|
+
color: color,
|
|
13
|
+
display: 'flex',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
borderRadius: '8px',
|
|
17
|
+
fontSize: '1.25rem',
|
|
18
|
+
fontWeight: 600,
|
|
19
|
+
width: '100%',
|
|
20
|
+
}}>
|
|
21
|
+
{text}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<div className="Sliders-demo">
|
|
27
|
+
<section className="mb-5">
|
|
28
|
+
<h3>Sliders</h3>
|
|
29
|
+
<p className="text-muted mb-4">Le composant <code>Slider</code> utilise SplideJS pour créer des carrousels performants et accessibles.</p>
|
|
30
|
+
|
|
31
|
+
<h5 className='mt-4'>Basique</h5>
|
|
32
|
+
<p className="text-muted mb-4">Un slider simple avec flèches et pagination par défaut.</p>
|
|
33
|
+
<Slider options={{ type: 'loop', perPage: 1 }}>
|
|
34
|
+
<SliderItem>
|
|
35
|
+
{generatePlaceholder('Slide 1', '#fecaca', '#b91c1c')}
|
|
36
|
+
</SliderItem>
|
|
37
|
+
<SliderItem>
|
|
38
|
+
{generatePlaceholder('Slide 2', '#bfdbfe', '#1d4ed8')}
|
|
39
|
+
</SliderItem>
|
|
40
|
+
<SliderItem>
|
|
41
|
+
{generatePlaceholder('Slide 3', '#bbf7d0', '#15803d')}
|
|
42
|
+
</SliderItem>
|
|
43
|
+
</Slider>
|
|
44
|
+
|
|
45
|
+
<h5 className='mt-5'>Plusieurs éléments (Per Page)</h5>
|
|
46
|
+
<p className="text-muted mb-4">Afficher plusieurs éléments sur la même vue avec un espace (gap).</p>
|
|
47
|
+
<Slider options={{ type: 'loop', perPage: 3, gap: '1rem', breakpoints: { 768: { perPage: 2 }, 480: { perPage: 1 } } }}>
|
|
48
|
+
{Array.from({ length: 6 }).map((_, i) => (
|
|
49
|
+
<SliderItem key={i}>
|
|
50
|
+
{generatePlaceholder(`Item ${i + 1}`)}
|
|
51
|
+
</SliderItem>
|
|
52
|
+
))}
|
|
53
|
+
</Slider>
|
|
54
|
+
|
|
55
|
+
<h5 className='mt-5'>Autoplay & Sans Flèches</h5>
|
|
56
|
+
<p className="text-muted mb-4">Défilement automatique continu sans les contrôles de navigation.</p>
|
|
57
|
+
<Slider options={{
|
|
58
|
+
type: 'loop',
|
|
59
|
+
perPage: 2,
|
|
60
|
+
gap: '1rem',
|
|
61
|
+
autoplay: true,
|
|
62
|
+
interval: 2000,
|
|
63
|
+
arrows: false,
|
|
64
|
+
pagination: true
|
|
65
|
+
}}>
|
|
66
|
+
{Array.from({ length: 4 }).map((_, i) => (
|
|
67
|
+
<SliderItem key={i}>
|
|
68
|
+
{generatePlaceholder(`Autoplay ${i + 1}`, '#fde68a', '#b45309')}
|
|
69
|
+
</SliderItem>
|
|
70
|
+
))}
|
|
71
|
+
</Slider>
|
|
72
|
+
|
|
73
|
+
<h5 className='mt-5'>Fondu (Fade)</h5>
|
|
74
|
+
<p className="text-muted mb-4">Transition en fondu au lieu du glissement.</p>
|
|
75
|
+
<Slider options={{ type: 'fade', rewind: true }}>
|
|
76
|
+
<SliderItem>
|
|
77
|
+
{generatePlaceholder('Fade 1', '#e9d5ff', '#7e22ce')}
|
|
78
|
+
</SliderItem>
|
|
79
|
+
<SliderItem>
|
|
80
|
+
{generatePlaceholder('Fade 2', '#fbcfe8', '#be185d')}
|
|
81
|
+
</SliderItem>
|
|
82
|
+
</Slider>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<Slider options={{ type: 'loop', perPage: 3, gap: '1rem', arrows: false, pagination: true, breakpoints: { 768: { perPage: 2 }, 480: { perPage: 1 } } }}>
|
|
86
|
+
<SliderItem>
|
|
87
|
+
<Card>
|
|
88
|
+
<Card.Img variant="top" src="https://placehold.co/286x180" alt="Placeholder d'image" />
|
|
89
|
+
<Card.Body>
|
|
90
|
+
<Card.Title>Titre de la carte</Card.Title>
|
|
91
|
+
<Card.Text>
|
|
92
|
+
Un exemple rapide de texte pour construire le titre de la carte et constituer la majeure partie du contenu.
|
|
93
|
+
</Card.Text>
|
|
94
|
+
<Button variant="primary">Go somewhere</Button>
|
|
95
|
+
</Card.Body>
|
|
96
|
+
</Card>
|
|
97
|
+
</SliderItem>
|
|
98
|
+
<SliderItem>
|
|
99
|
+
<Card>
|
|
100
|
+
<Card.Img variant="top" src="https://placehold.co/286x180" alt="Placeholder d'image" />
|
|
101
|
+
<Card.Body>
|
|
102
|
+
<Card.Title>Titre de la carte</Card.Title>
|
|
103
|
+
<Card.Text>
|
|
104
|
+
Un exemple rapide de texte pour construire le titre de la carte et constituer la majeure partie du contenu.
|
|
105
|
+
</Card.Text>
|
|
106
|
+
<Button variant="primary">Go somewhere</Button>
|
|
107
|
+
</Card.Body>
|
|
108
|
+
</Card>
|
|
109
|
+
</SliderItem>
|
|
110
|
+
<SliderItem>
|
|
111
|
+
<Card>
|
|
112
|
+
<Card.Img variant="top" src="https://placehold.co/286x180" alt="Placeholder d'image" />
|
|
113
|
+
<Card.Body>
|
|
114
|
+
<Card.Title>Titre de la carte</Card.Title>
|
|
115
|
+
<Card.Text>
|
|
116
|
+
Un exemple rapide de texte pour construire le titre de la carte et constituer la majeure partie du contenu.
|
|
117
|
+
</Card.Text>
|
|
118
|
+
<Button variant="primary">Go somewhere</Button>
|
|
119
|
+
</Card.Body>
|
|
120
|
+
</Card>
|
|
121
|
+
</SliderItem>
|
|
122
|
+
<SliderItem>
|
|
123
|
+
<Card>
|
|
124
|
+
<Card.Img variant="top" src="https://placehold.co/286x180" alt="Placeholder d'image" />
|
|
125
|
+
<Card.Body>
|
|
126
|
+
<Card.Title>Titre de la carte</Card.Title>
|
|
127
|
+
<Card.Text>
|
|
128
|
+
Un exemple rapide de texte pour construire le titre de la carte et constituer la majeure partie du contenu.
|
|
129
|
+
</Card.Text>
|
|
130
|
+
<Button variant="primary">Go somewhere</Button>
|
|
131
|
+
</Card.Body>
|
|
132
|
+
</Card>
|
|
133
|
+
</SliderItem>
|
|
134
|
+
<SliderItem>
|
|
135
|
+
<Card>
|
|
136
|
+
<Card.Img variant="top" src="https://placehold.co/286x180" alt="Placeholder d'image" />
|
|
137
|
+
<Card.Body>
|
|
138
|
+
<Card.Title>Titre de la carte</Card.Title>
|
|
139
|
+
<Card.Text>
|
|
140
|
+
Un exemple rapide de texte pour construire le titre de la carte et constituer la majeure partie du contenu.
|
|
141
|
+
</Card.Text>
|
|
142
|
+
<Button variant="primary">Go somewhere</Button>
|
|
143
|
+
</Card.Body>
|
|
144
|
+
</Card>
|
|
145
|
+
</SliderItem>
|
|
146
|
+
</Slider>
|
|
147
|
+
</section>
|
|
148
|
+
</div>
|
|
149
|
+
);
|
|
150
|
+
};
|
package/dist/templates/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zuii",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.18",
|
|
4
4
|
"description": "Bibliothèque de composants UI légère, intuitive et modulaire pour les interfaces web modernes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -56,6 +56,9 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@ag-grid-community/locale": "^35.0.1",
|
|
59
|
+
"@simonwep/pickr": "^1.9.1",
|
|
60
|
+
"@splidejs/react-splide": "^0.7.12",
|
|
61
|
+
"@splidejs/splide": "^4.1.4",
|
|
59
62
|
"@uppy/core": "^5.2.0",
|
|
60
63
|
"@uppy/dashboard": "^5.1.1",
|
|
61
64
|
"@uppy/locales": "^5.1.1",
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
"choices.js": "^11.1.0",
|
|
68
71
|
"colord": "^2.9.3",
|
|
69
72
|
"flag-icons": "^7.5.0",
|
|
73
|
+
"flatpickr": "^4.6.13",
|
|
70
74
|
"intl-tel-input": "^26.1.1",
|
|
71
75
|
"lucide-static": "^0.563.0",
|
|
72
76
|
"react-bootstrap": "^2.10.10",
|