zuii 1.4.13 → 1.4.14

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/index.d.ts CHANGED
@@ -23,3 +23,4 @@ export * from './components/Nav/react';
23
23
  export * from './components/Lang-selector/react';
24
24
  export * from './components/Auth/react';
25
25
  export * from './components/Errorpage/react';
26
+ export * from './components/Loader/react';
package/dist/index.js CHANGED
@@ -8,8 +8,8 @@ import { Badge as c } from "./components/Badge/react/index.js";
8
8
  import { Divider as u } from "./components/Divider/react/index.js";
9
9
  import { ContextMenu as g } from "./components/Context-menu/react/index.js";
10
10
  import { Form as B } from "./components/Form/react/index.js";
11
- import { Shadow as v } from "./components/Shadow/react/index.js";
12
- import { Radius as D } from "./components/Radius/react/index.js";
11
+ import { Shadow as b } from "./components/Shadow/react/index.js";
12
+ import { Radius as C } from "./components/Radius/react/index.js";
13
13
  import { Dropdown as T } from "./components/Dropdown/react/index.js";
14
14
  import { Logo as M } from "./components/Logo/react/index.js";
15
15
  import { Modal as k } from "./components/Modal/react/index.js";
@@ -24,11 +24,12 @@ import { Nav as W } from "./components/Nav/react/index.js";
24
24
  import { LangSelector as Y } from "./components/Lang-selector/react/index.js";
25
25
  import { Auth as _ } from "./components/Auth/react/index.js";
26
26
  import { Errorpage as oo } from "./components/Errorpage/react/index.js";
27
- import { default as eo } from "./node_modules/.pnpm/react-bootstrap@2.10.10_@types_react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-bootstrap/esm/AccordionContext.js";
28
- import { useAccordionButton as po } from "react-bootstrap";
27
+ import { Loader as eo } from "./components/Loader/react/index.js";
28
+ import { default as po } from "./node_modules/.pnpm/react-bootstrap@2.10.10_@types_react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-bootstrap/esm/AccordionContext.js";
29
+ import { useAccordionButton as xo } from "react-bootstrap";
29
30
  export {
30
31
  R as Accordion,
31
- eo as AccordionContext,
32
+ po as AccordionContext,
32
33
  z as Alert,
33
34
  J as AlertBase,
34
35
  K as AlertHeading,
@@ -47,14 +48,15 @@ export {
47
48
  d as Group,
48
49
  f as Icon,
49
50
  Y as LangSelector,
51
+ eo as Loader,
50
52
  M as Logo,
51
53
  k as Modal,
52
54
  W as Nav,
53
55
  F as Placeholder,
54
- D as Radius,
55
- v as Shadow,
56
+ C as Radius,
57
+ b as Shadow,
56
58
  N as Table,
57
59
  q as Tabs,
58
60
  H as Tooltip,
59
- po as useAccordionButton
61
+ xo as useAccordionButton
60
62
  };
@@ -42,7 +42,7 @@ export const LangSelectors = () => {
42
42
  </section>
43
43
 
44
44
  <section className="mt-4">
45
- <h2>Sélecteur de Langue (Sans Label)</h2>
45
+ <h2>Sélecteur (Sans Label)</h2>
46
46
  <p>
47
47
  Variante affichant uniquement les drapeaux.
48
48
  </p>
@@ -54,6 +54,34 @@ export const LangSelectors = () => {
54
54
  />
55
55
  </section>
56
56
 
57
+ <section className="mt-4">
58
+ <h2>Sélecteur avec Recherche</h2>
59
+ <p>
60
+ Option <code>search={"{true}"}</code> activée.
61
+ </p>
62
+
63
+ <LangSelector
64
+ options={languages.map(l => ({ value: l.code, label: l.label, flag: l.flag }))}
65
+ defaultValue={lang}
66
+ onChange={setLang}
67
+ search={true}
68
+ />
69
+ </section>
70
+
71
+ <section className="mt-4">
72
+ <h2>Sélecteur sans valeur par défaut</h2>
73
+ <p>
74
+ Option <code>hasDefault={"{false}"}</code> avec un placeholder.
75
+ </p>
76
+
77
+ <LangSelector
78
+ options={languages.map(l => ({ value: l.code, label: l.label, flag: l.flag }))}
79
+ onChange={(val) => console.log('Nouvelle langue:', val)}
80
+ hasDefault={false}
81
+ placeholder="Choisir une langue"
82
+ />
83
+ </section>
84
+
57
85
 
58
86
  </div>
59
87
  );
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Composant de démonstration pour les Loaders.
3
+ *
4
+ * @returns {JSX.Element} La page de démo des loaders.
5
+ */
6
+ export declare const Loaders: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,78 @@
1
+ import { Loader, Group } from '../../index';
2
+
3
+ /**
4
+ * Composant de démonstration pour les Loaders.
5
+ *
6
+ * @returns {JSX.Element} La page de démo des loaders.
7
+ */
8
+ export const Loaders = () => {
9
+ return (
10
+ <div className="flex flex-col gap-8">
11
+ <section>
12
+ <h2 className="mb-4 text-xl font-bold">Variantes</h2>
13
+ <Group center gap="xl" className="py-4">
14
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '100px' }}>
15
+ <Loader variant="dots" />
16
+ <span className="text-xs text-muted mt-2">Dots</span>
17
+ </div>
18
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '100px' }}>
19
+ <Loader variant="spinner" />
20
+ <span className="text-xs text-muted mt-2">Spinner</span>
21
+ </div>
22
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '100px' }}>
23
+ <Loader variant="pulse" />
24
+ <span className="text-xs text-muted mt-2">Pulse</span>
25
+ </div>
26
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '100px' }}>
27
+ <Loader variant="quad" />
28
+ <span className="text-xs text-muted mt-2">Quad</span>
29
+ </div>
30
+ </Group>
31
+ </section>
32
+
33
+ <section>
34
+ <h2 className="mb-4 text-xl font-bold">Tailles</h2>
35
+ <Group center gap="xl" className="py-4">
36
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '80px' }}>
37
+ <Loader size="sm" />
38
+ <span className="text-xs text-muted">Small</span>
39
+ </div>
40
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '80px' }}>
41
+ <Loader size="md" />
42
+ <span className="text-xs text-muted">Medium</span>
43
+ </div>
44
+ <div className="flex flex-col items-center gap-3" style={{ minWidth: '80px' }}>
45
+ <Loader size="lg" />
46
+ <span className="text-xs text-muted">Large</span>
47
+ </div>
48
+ </Group>
49
+ </section>
50
+
51
+
52
+
53
+ <section>
54
+ <h2 className="mb-4 text-xl font-bold">Avec Message</h2>
55
+ <Group center vertical gap="lg">
56
+ <Loader size="md" message="Chargement des données en cours..." />
57
+ <Loader size="lg">
58
+ <div className="text-center">
59
+ <p className="font-bold text-primary">Veuillez patienter</p>
60
+ <p className="text-sm">Traitement en cours</p>
61
+ </div>
62
+ </Loader>
63
+ </Group>
64
+ </section>
65
+
66
+ <section>
67
+ <h2 className="mb-4 text-xl font-bold">Variantes de couleurs</h2>
68
+ <Group center gap="xl">
69
+ <Loader color="success" variant="dots" />
70
+ <Loader color="danger" variant="spinner" />
71
+ <Loader color="warning" variant="pulse" />
72
+ <Loader color="info" variant="quad" />
73
+ </Group>
74
+ </section>
75
+
76
+ </div>
77
+ );
78
+ };
@@ -154,7 +154,7 @@ export declare const columnsStatus: ({
154
154
  headerName: string;
155
155
  field: string;
156
156
  headerClass: string;
157
- cellClass?: undefined;
157
+ cellClass: string;
158
158
  cellRenderer?: undefined;
159
159
  resizable?: undefined;
160
160
  width?: undefined;
@@ -102,16 +102,16 @@ export const columnsStatus = [
102
102
  { headerName: 'N°', field: 'number', headerClass: 'table-number table-cell--center', cellClass: 'table-cell--center', width: 40, maxWidth: 40, minWidth: 40, flex: 0, suppressSizeToFit: true },
103
103
  { headerName: 'Dossard', field: 'dossard', headerClass: 'table-dossard table-cell--center', cellClass: 'table-cell--center', width: 80, maxWidth: 80, minWidth: 40, flex: 0, suppressSizeToFit: true },
104
104
  { headerName: 'N° Equi', field: 'numberTeam', headerClass: 'table-numberTeam table-cell--center', cellClass: 'table-cell--center', width: 80, maxWidth: 80, minWidth: 40, flex: 0, suppressSizeToFit: true },
105
- { headerName: 'Rider', field: 'rider', headerClass: 'table-rider table-cell--center' },
106
- { headerName: 'Cheval', field: 'horse', headerClass: 'table-horse table-cell--center' },
107
- { headerName: 'Club', field: 'team', headerClass: 'table-team table-cell--center' },
108
- { headerName: 'Phase 1', field: 'step_1', headerClass: 'table-step_1 table-cell--center', cellClass: 'table-cell--right', valueGetter: (params: any) => params.data.step_1 ? `${params.data.step_1.time}s (${params.data.step_1.pts} pts)` : '' },
109
- { headerName: 'Phase 2', field: 'step_2', headerClass: 'table-step_2 table-cell--center', cellClass: 'table-cell--right', valueGetter: (params: any) => params.data.step_2 ? `${params.data.step_2.time}s (${params.data.step_2.pts} pts)` : '' },
105
+ { headerName: 'Rider', field: 'rider', headerClass: 'table-rider table-cell--center', cellClass: 'table-cell--align-center' },
106
+ { headerName: 'Cheval', field: 'horse', headerClass: 'table-horse table-cell--center', cellClass: 'table-cell--align-center' },
107
+ { headerName: 'Club', field: 'team', headerClass: 'table-team table-cell--center', cellClass: 'table-cell--align-center' },
108
+ { headerName: 'Phase 1', field: 'step_1', headerClass: 'table-step_1 table-cell--center', cellClass: 'table-cell--right table-cell--align-center', valueGetter: (params: any) => params.data.step_1 ? `${params.data.step_1.time}s (${params.data.step_1.pts} pts)` : '' },
109
+ { headerName: 'Phase 2', field: 'step_2', headerClass: 'table-step_2 table-cell--center', cellClass: 'table-cell--right table-cell--align-center', valueGetter: (params: any) => params.data.step_2 ? `${params.data.step_2.time}s (${params.data.step_2.pts} pts)` : '' },
110
110
  {
111
111
  headerName: 'Total',
112
112
  field: 'total',
113
113
  headerClass: 'table-total table-cell--center',
114
- cellClass: 'table-cell--right',
114
+ cellClass: 'table-cell--right table-cell--align-center',
115
115
  valueGetter: (params: any) => {
116
116
  const s1 = params.data.step_1;
117
117
  const s2 = params.data.step_2;
@@ -23,3 +23,4 @@ export * from './Auths/Auths';
23
23
  export * from './Dashboards/Dashboards';
24
24
  export * from './Navs/Navs';
25
25
  export * from './Errorpages/Errorpages';
26
+ export * from './Loaders/Loaders';
@@ -23,3 +23,4 @@ export * from './Auths/Auths';
23
23
  export * from './Dashboards/Dashboards';
24
24
  export * from './Navs/Navs';
25
25
  export * from './Errorpages/Errorpages';
26
+ export * from './Loaders/Loaders';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zuii",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
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": {