gymatra-ui 0.0.0-stage → 0.1.0
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/README.md +62 -2
- package/dist/gymatra-mark-cropped.png +0 -0
- package/dist/index.cjs +108 -0
- package/dist/index.js +35661 -0
- package/dist/styles.css +1 -0
- package/dist/types/components/avatar.d.ts +47 -0
- package/dist/types/components/badge.d.ts +20 -0
- package/dist/types/components/breadcrumb.d.ts +50 -0
- package/dist/types/components/button.d.ts +26 -0
- package/dist/types/components/cn.d.ts +1 -0
- package/dist/types/components/combobox.d.ts +76 -0
- package/dist/types/components/dialog.d.ts +86 -0
- package/dist/types/components/drawer-panel.d.ts +11 -0
- package/dist/types/components/drawer.d.ts +42 -0
- package/dist/types/components/filter-bar.d.ts +74 -0
- package/dist/types/components/filter-select.d.ts +38 -0
- package/dist/types/components/forms/boolean-fields.d.ts +52 -0
- package/dist/types/components/forms/content-fields.d.ts +18 -0
- package/dist/types/components/forms/date-fields.d.ts +32 -0
- package/dist/types/components/forms/field-container.d.ts +19 -0
- package/dist/types/components/forms/file-fields.d.ts +28 -0
- package/dist/types/components/forms/floating-field.d.ts +56 -0
- package/dist/types/components/forms/index.d.ts +85 -0
- package/dist/types/components/forms/numeric-fields.d.ts +23 -0
- package/dist/types/components/forms/other-fields.d.ts +55 -0
- package/dist/types/components/forms/selection-fields.d.ts +58 -0
- package/dist/types/components/forms/text-fields.d.ts +49 -0
- package/dist/types/components/menu.d.ts +86 -0
- package/dist/types/components/menubar.d.ts +47 -0
- package/dist/types/components/pagination.d.ts +21 -0
- package/dist/types/components/popover.d.ts +61 -0
- package/dist/types/components/progress.d.ts +55 -0
- package/dist/types/components/separator.d.ts +22 -0
- package/dist/types/components/stepper.d.ts +89 -0
- package/dist/types/components/switch.d.ts +25 -0
- package/dist/types/components/table.d.ts +146 -0
- package/dist/types/components/tabs.d.ts +55 -0
- package/dist/types/components/toggle-group.d.ts +1 -0
- package/dist/types/components/toggle.d.ts +50 -0
- package/dist/types/components/tooltip.d.ts +33 -0
- package/dist/types/index.d.ts +26 -0
- package/package.json +66 -4
package/README.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Gymatra UI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Bibliothèque de composants d'interface React moderne et accessible pour applications de gestion sportive et plateformes SaaS, conçue avec Tailwind CSS et les primitives Base UI.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Dans votre projet React, installez le package et ses dépendances homologues :
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install gymatra-ui @base-ui/react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Configuration & Utilisation
|
|
14
|
+
|
|
15
|
+
### 1. Importer les styles CSS
|
|
16
|
+
|
|
17
|
+
Dans le point d'entrée de votre application (ex: `main.tsx`, `App.tsx`, ou `layout.tsx` dans Next.js) :
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import "gymatra-ui/styles.css";
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 2. Exemple d'utilisation
|
|
24
|
+
|
|
25
|
+
```tsx
|
|
26
|
+
import React, { useState } from "react";
|
|
27
|
+
import {
|
|
28
|
+
GymatraButton,
|
|
29
|
+
GymatraBadge,
|
|
30
|
+
GymatraSwitch,
|
|
31
|
+
GymatraCombobox,
|
|
32
|
+
} from "gymatra-ui";
|
|
33
|
+
|
|
34
|
+
export function DashboardHeader() {
|
|
35
|
+
const [autoRenew, setAutoRenew] = useState(true);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<div className="flex items-center gap-4 p-4 bg-white border border-border rounded-lg">
|
|
39
|
+
<GymatraBadge variant="success">Actif</GymatraBadge>
|
|
40
|
+
|
|
41
|
+
<GymatraSwitch
|
|
42
|
+
checked={autoRenew}
|
|
43
|
+
onChange={setAutoRenew}
|
|
44
|
+
label="Renouvellement automatique"
|
|
45
|
+
/>
|
|
46
|
+
|
|
47
|
+
<GymatraButton variant="primary">
|
|
48
|
+
Enregistrer
|
|
49
|
+
</GymatraButton>
|
|
50
|
+
</div>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Composants disponibles
|
|
56
|
+
|
|
57
|
+
- **Boutons & Actions :** `GymatraButton`, `GymatraToggle`, `GymatraToggleGroup`
|
|
58
|
+
- **Navigation & Menus :** `GymatraBreadcrumb`, `GymatraTabs`, `GymatraMenu`, `GymatraMenubar`, `GymatraPagination`, `GymatraStepper`
|
|
59
|
+
- **Surfaces & Affichage :** `GymatraAvatar`, `GymatraBadge`, `GymatraSeparator`, `GymatraProgress`, `GymatraTooltip`
|
|
60
|
+
- **Sélection & Recherche :** `GymatraCombobox`, `GymatraFilterSelect`, `GymatraFilterBar`
|
|
61
|
+
- **Formulaires & Bascules :** `GymatraSwitch`, `GymatraFieldContainer`, suite complète d'entrées de formulaires
|
|
62
|
+
- **Overlays :** `GymatraDialog`, `GymatraDrawer`, `GymatraDrawerPanel`, `GymatraPopover`
|
|
63
|
+
- **Données :** `GymatraDataTable`
|
|
Binary file
|