@talentlytica/prodigy 1.0.0 → 1.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 +21 -12
- package/dist/components/BarChart/BarChart.d.ts +6 -0
- package/dist/components/Carousel/Carousel.d.ts +5 -0
- package/dist/components/CloseButton/CloseButton.d.ts +6 -0
- package/dist/components/ColorSwatch/ColorSwatch.d.ts +6 -0
- package/dist/components/DataTable/DataTable.d.ts +22 -0
- package/dist/components/DatePickerInput/DatePickerInput.d.ts +18 -0
- package/dist/components/DonutChart/DonutChart.d.ts +6 -0
- package/dist/components/Dropzone/Dropzone.d.ts +8 -0
- package/dist/components/EmptyState/EmptyState.d.ts +8 -0
- package/dist/components/FileButton/FileButton.d.ts +6 -0
- package/dist/components/FileInput/FileInput.d.ts +6 -0
- package/dist/components/Loader/Loader.d.ts +6 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +6 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -0
- package/dist/components/NativeSelect/NativeSelect.d.ts +7 -0
- package/dist/components/Notification/Notification.d.ts +7 -0
- package/dist/components/NotificationsSystem/NotificationsSystem.d.ts +9 -0
- package/dist/components/Pill/Pill.d.ts +7 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +16 -0
- package/dist/components/RingProgress/RingProgress.d.ts +6 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +7 -0
- package/dist/components/Skeleton/Skeleton.d.ts +6 -0
- package/dist/components/Stepper/Stepper.d.ts +7 -0
- package/dist/components/Table/Table.d.ts +2 -3
- package/dist/components/TagsInput/TagsInput.d.ts +6 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +7 -0
- package/dist/components/index.d.ts +36 -11
- package/dist/index.js +44269 -20
- package/dist/themes/kelola.d.ts +2 -2
- package/package.json +54 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# talentlytica
|
|
1
|
+
# @talentlytica/prodigy
|
|
2
2
|
|
|
3
3
|
Design system **Talentlytica Prodigy** — berbasis **Mantine v9** dengan **tema Kelola Apps**. Package **pnpm** (library ESM + type declarations); dokumentasi komponen berjalan di **Storybook 10**.
|
|
4
4
|
|
|
@@ -51,16 +51,22 @@ prodigy-ui/
|
|
|
51
51
|
└─ eslint.config.js # lint guard anti-fragmentasi
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
## Komponen (
|
|
54
|
+
## Komponen (55) + primitives (12)
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
- **
|
|
56
|
+
Kategori mengikuti struktur **kontekstual Mantine sendiri** (bukan atoms/molecules) — lihat [Introduction](src/stories/Introduction.mdx). Komponen bertanda **†** butuh paket ekstensi opsional tambahan (peer dependency di luar `@mantine/core` — lihat [Getting Started](src/stories/GettingStarted.mdx)):
|
|
57
|
+
|
|
58
|
+
- **Buttons:** Button, ActionIcon, FileButton, CloseButton
|
|
59
|
+
- **Inputs:** TextInput, NumberInput, PasswordInput, Textarea, Select, NativeSelect, MultiSelect, TagsInput, FileInput, Checkbox, Radio, Switch, SegmentedControl, DatePickerInput†, Dropzone†, RichTextEditor†
|
|
60
|
+
- **Navigation:** Anchor, Breadcrumbs, NavLink, Burger, Menu, Tabs, Pagination, Stepper
|
|
61
|
+
- **Feedback:** Alert, Progress, RingProgress, Loader, LoadingOverlay, Skeleton, EmptyState, Notification, NotificationsSystem†
|
|
62
|
+
- **Overlays:** Modal, Tooltip
|
|
63
|
+
- **Data display:** Card, Badge, Avatar, ThemeIcon, Indicator, Paper, Table, DataTable, ColorSwatch, Pill
|
|
64
|
+
- **Miscellaneous:** Divider, VisuallyHidden, Carousel†
|
|
65
|
+
- **Charts:** BarChart†, DonutChart†
|
|
59
66
|
- **Layout:** AppShell + **Primitives** (`primitives.ts`: Group, Stack, Flex, Grid, SimpleGrid, Container, Center, Box, Image, ScrollArea, Text, Title)
|
|
60
|
-
- **Overlays:** Modal · **Data display:** Avatar, Divider, Paper, Progress, Table
|
|
61
67
|
- **Foundations:** Colors, Typography, Spacing, Shadows, Radius, **Icons** (Tabler + preview props)
|
|
62
68
|
|
|
63
|
-
Visual di-tuning ke Kelola: tombol/input **pill** + bold, badge pill uppercase, avatar bulat, kartu radius `md`, font Avenir → Open Sans.
|
|
69
|
+
Visual di-tuning ke Kelola: tombol/input **pill** + bold, badge pill uppercase, avatar bulat, kartu radius `md`, font Avenir → Open Sans. Pola komposit *list-page* (filter + cari + urut + halaman) tersedia lewat `DataTable` (logika `@tanstack/react-table`, tampilan tetap `Table` Prodigy).
|
|
64
70
|
|
|
65
71
|
Cara pakai:
|
|
66
72
|
|
|
@@ -85,17 +91,20 @@ export function App() {
|
|
|
85
91
|
|
|
86
92
|
Di-publish **publik** ke **npm** (npmjs.org) sebagai `@talentlytica/prodigy` — **tanpa token, tanpa setup registry**.
|
|
87
93
|
|
|
88
|
-
**1. Install** (peer
|
|
94
|
+
**1. Install** — satu package; pnpm (v8+) & npm (v7+) menarik peer-nya (Mantine + React) otomatis:
|
|
89
95
|
|
|
90
96
|
```bash
|
|
91
|
-
pnpm add @talentlytica/prodigy
|
|
92
|
-
# atau: npm install @talentlytica/prodigy @mantine/core @mantine/hooks react react-dom
|
|
97
|
+
pnpm add @talentlytica/prodigy
|
|
93
98
|
```
|
|
94
99
|
|
|
100
|
+
Pakai yarn / auto-install peers off? sebutkan peer-nya: `pnpm add @talentlytica/prodigy @mantine/core @mantine/hooks react react-dom`.
|
|
101
|
+
|
|
95
102
|
**2. Pakai** — import CSS Mantine + bungkus `MantineProvider` dengan tema Kelola (lihat contoh di atas).
|
|
96
103
|
|
|
97
104
|
> **Font:** tema memakai Avenir → fallback Open Sans. Muat font pilihanmu di app konsumen (mis. `@fontsource/open-sans`, atau `<link>` Google Fonts); tanpa itu browser jatuh ke sans-serif sistem.
|
|
98
105
|
|
|
106
|
+
> **Komponen bertanda †** (chart, date picker, dropzone, carousel, notifikasi, rich text) butuh paket ekstensi + CSS-nya sendiri, mis. `pnpm add @mantine/charts recharts` lalu `import '@mantine/charts/styles.css'`. Lihat halaman docs komponennya untuk paket persis yang diperlukan.
|
|
107
|
+
|
|
99
108
|
Rilis versi baru (maintainer): lihat [`RELEASING.md`](RELEASING.md).
|
|
100
109
|
|
|
101
110
|
## Menambah komponen baru (tanpa fragmentasi)
|
|
@@ -103,7 +112,7 @@ Rilis versi baru (maintainer): lihat [`RELEASING.md`](RELEASING.md).
|
|
|
103
112
|
1. Buat `src/components/<Nama>/<Nama>.tsx` → `export { X, type XProps } from '@mantine/core';` + JSDoc konvensi pakainya.
|
|
104
113
|
2. Tambahkan default visual (jika perlu) di `src/themes/kelola.ts` via `X.extend({ defaultProps })`.
|
|
105
114
|
3. Daftarkan di `src/components/index.ts`.
|
|
106
|
-
4. Buat `<Nama>.stories.tsx` (title `
|
|
115
|
+
4. Buat `<Nama>.stories.tsx` (title sesuai kategori kontekstual Mantine, mis. `Buttons/…` / `Inputs/…` / `Navigation/…` — lihat daftar di atas —, `argTypes` mengikuti props Mantine — **tanpa** `tags: ['autodocs']`).
|
|
107
116
|
5. Buat halaman docs `<Nama>.mdx` gaya Gamut (attach via `<Meta of={…Stories} />`; embed story lewat `<Canvas of>` + `<Controls of>`), seperti komponen lain.
|
|
108
117
|
|
|
109
118
|
## Catatan versi
|
|
@@ -112,4 +121,4 @@ Package manager **pnpm** (`packageManager: pnpm@9.15.9`). Library dibundel **Vit
|
|
|
112
121
|
|
|
113
122
|
## Belum termasuk
|
|
114
123
|
|
|
115
|
-
|
|
124
|
+
Komponen Mantine tanpa padanan nyata di audit Integro/Kelola (color picker, rating, slider, tree, dll.) — daftar lengkap + alasannya di `design-system.md` §4. Bisa ditinjau ulang kalau muncul kebutuhan baru.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BarChart — grafik batang untuk membandingkan nilai antar kategori (mis. jumlah talent per departemen).
|
|
3
|
+
* Bagian dari paket ekstensi `@mantine/charts` (peer dependency opsional, di luar core).
|
|
4
|
+
* Untuk proporsi terhadap satu keseluruhan (mis. tingkat penyelesaian) pakai `DonutChart`.
|
|
5
|
+
*/
|
|
6
|
+
export { BarChart, type BarChartProps } from '@mantine/charts';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Carousel — slider konten yang bisa digeser, disusun dari `Carousel.Slide` (mis. banner promo atau baris kartu kuota).
|
|
3
|
+
* Bagian dari paket ekstensi `@mantine/carousel` (peer dependency opsional, di luar core).
|
|
4
|
+
*/
|
|
5
|
+
export { Carousel, type CarouselProps } from '@mantine/carousel';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CloseButton — tombol ikon "X" kecil untuk menutup/menghapus (header Modal,
|
|
3
|
+
* Alert yang bisa ditutup, tag yang bisa dihapus). Tanpa teks, jadi WAJIB beri
|
|
4
|
+
* `aria-label`. Untuk aksi ikonik lain pakai `ActionIcon`.
|
|
5
|
+
*/
|
|
6
|
+
export { CloseButton, type CloseButtonProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ColorSwatch — kotak/lingkaran kecil penampil satu warna (pemilih warna brand
|
|
3
|
+
* di Base Management Kelola). Beda dari `Badge`: ColorSwatch murni menampilkan
|
|
4
|
+
* warna, bukan label teks atau status.
|
|
5
|
+
*/
|
|
6
|
+
export { ColorSwatch, type ColorSwatchProps } from '@mantine/core';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ColumnDef } from '@tanstack/react-table';
|
|
2
|
+
export interface DataTableProps<T> {
|
|
3
|
+
/** Data mentah, satu objek per baris. */
|
|
4
|
+
data: T[];
|
|
5
|
+
/** Definisi kolom TanStack Table — lihat https://tanstack.com/table/latest/docs/guide/column-defs. */
|
|
6
|
+
columns: ColumnDef<T, any>[];
|
|
7
|
+
/** Placeholder kotak cari (pencarian global lintas kolom). `undefined` = sembunyikan kotak cari. */
|
|
8
|
+
searchPlaceholder?: string;
|
|
9
|
+
/** Jumlah baris per halaman. Default 10. */
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
/** Teks saat `data` kosong. Default "Belum ada data". */
|
|
12
|
+
emptyLabel?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* DataTable — pola *list page* (Table + cari + urut + halaman) yang berulang di
|
|
16
|
+
* Assignment/Proactive/Peserta/Kelompok Laporan (Integro) dan lewat `mantine-react-table`
|
|
17
|
+
* di Kelola. Logikanya dari `@tanstack/react-table` — **headless**, tidak terikat versi
|
|
18
|
+
* Mantine (`mantine-react-table` tidak dipakai: rilis terbarunya cuma dukung Mantine v7,
|
|
19
|
+
* proyek ini di v9 — lihat design-system.md §5). Tampilan tetap `Table` Prodigy, jadi
|
|
20
|
+
* styling ikut tema Kelola secara otomatis.
|
|
21
|
+
*/
|
|
22
|
+
export declare function DataTable<T>({ data, columns, searchPlaceholder, pageSize, emptyLabel, }: DataTableProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type DatePickerInputProps as MantineDatePickerInputProps, type DateTimePickerProps as MantineDateTimePickerProps, type DatePickerType } from '@mantine/dates';
|
|
2
|
+
export type DatePickerInputProps = ({
|
|
3
|
+
withTime: true;
|
|
4
|
+
} & MantineDateTimePickerProps<'default' | 'range'>) | ({
|
|
5
|
+
withTime?: false;
|
|
6
|
+
} & MantineDatePickerInputProps<DatePickerType>);
|
|
7
|
+
/**
|
|
8
|
+
* DatePickerInput — input tanggal dengan kalender popover, dari `@mantine/dates`
|
|
9
|
+
* (paket opsional, pastikan sudah terpasang). Pakai `type="range"` untuk pilih
|
|
10
|
+
* PERIODE (dari–sampai), mis. filter "Riwayat Pemakaian Kuota". Untuk daftar
|
|
11
|
+
* pilihan tetap (bukan tanggal) pakai `Select`.
|
|
12
|
+
*
|
|
13
|
+
* Set `withTime` untuk sekalian pilih **jam:menit** (mis. jadwal buka batch) — di
|
|
14
|
+
* baliknya jadi `DateTimePicker` Mantine, tanpa komponen terpisah untuk dipilih.
|
|
15
|
+
* Catatan: `type="multiple"` cuma tersedia saat `withTime` TIDAK diset (Mantine
|
|
16
|
+
* `DateTimePicker` tidak mendukung tanggal-lepas-jamak).
|
|
17
|
+
*/
|
|
18
|
+
export declare function DatePickerInput(props: DatePickerInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DonutChart — grafik cincin untuk menampilkan proporsi/komposisi terhadap satu keseluruhan (mis. tingkat penyelesaian asesmen).
|
|
3
|
+
* Bagian dari paket ekstensi `@mantine/charts` (peer dependency opsional, di luar core).
|
|
4
|
+
* Untuk membandingkan nilai antar kategori pakai `BarChart`.
|
|
5
|
+
*/
|
|
6
|
+
export { DonutChart, type DonutChartProps } from '@mantine/charts';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dropzone — area drag-and-drop untuk unggah berkas (mis. "Unggah Logo
|
|
3
|
+
* Perusahaan" di halaman Profil), dari `@mantine/dropzone` (paket opsional,
|
|
4
|
+
* pastikan sudah terpasang). Susun `Dropzone.Accept` / `.Reject` / `.Idle`
|
|
5
|
+
* sebagai children untuk ikon per status drag. Tanpa drag-and-drop, cukup
|
|
6
|
+
* kotak input → pakai `FileInput`; tanpa kotak input yang tampak → `FileButton`.
|
|
7
|
+
*/
|
|
8
|
+
export { Dropzone, type DropzoneProps } from '@mantine/dropzone';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EmptyState — pengganti konten saat daftar/tabel/hasil pencarian kosong (mis.
|
|
3
|
+
* "Belum ada data"). Beda dari `Alert`, yang menampilkan pesan status di atas
|
|
4
|
+
* konten yang tetap ada — EmptyState mengisi ruang yang kontennya belum ada.
|
|
5
|
+
* Susun dari `title` + `description` + `icon`, atau compound
|
|
6
|
+
* `EmptyState.Indicator` / `.Title` / `.Description` / `.Actions` untuk kontrol lebih rinci.
|
|
7
|
+
*/
|
|
8
|
+
export { EmptyState, type EmptyStateProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileButton — pemicu file picker tanpa kotak input yang tampak (mis. "Ganti
|
|
3
|
+
* Logo"). Render-prop: `children` menerima `{ onClick }` untuk dipasang ke
|
|
4
|
+
* tombol apa pun (biasanya `Button`). Untuk kotak input berlabel pakai `FileInput`.
|
|
5
|
+
*/
|
|
6
|
+
export { FileButton, type FileButtonProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileInput — kotak input untuk memilih berkas (logo perusahaan, CSV peserta).
|
|
3
|
+
* `clearable` menampilkan tombol hapus, `multiple` untuk beberapa berkas sekaligus.
|
|
4
|
+
* Tanpa kotak input yang tampak (trigger tombol saja) pakai `FileButton`.
|
|
5
|
+
*/
|
|
6
|
+
export { FileInput, type FileInputProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Loader — spinner untuk proses yang berjalan tanpa progres terukur (durasi tak pasti).
|
|
3
|
+
* Untuk menutupi kontainer yang sedang dimuat ulang, pakai `LoadingOverlay`. Untuk kemajuan
|
|
4
|
+
* yang bisa diukur (0–100%), pakai `Progress` (bar) atau `RingProgress` (ring).
|
|
5
|
+
*/
|
|
6
|
+
export { Loader, type LoaderProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LoadingOverlay — lapisan transparan + `Loader` di atas kontainer yang sedang dimuat ulang
|
|
3
|
+
* (mis. tabel Batch List saat "Memproses..." di Assignment Kelola/Integro).
|
|
4
|
+
* Bungkus kontainernya dengan `pos="relative"` agar overlay tak melebihi area itu.
|
|
5
|
+
*/
|
|
6
|
+
export { LoadingOverlay, type LoadingOverlayProps } from '@mantine/core';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MultiSelect — dropdown pilih-banyak dari daftar tetap; `searchable` &
|
|
3
|
+
* `clearable` sudah bawaan, plus `maxValues` untuk membatasi jumlah. Untuk
|
|
4
|
+
* pilih-satu pakai `Select`; untuk tag bebas (bukan dari daftar) pakai
|
|
5
|
+
* `TagsInput`.
|
|
6
|
+
*/
|
|
7
|
+
export { MultiSelect, type MultiSelectProps } from '@mantine/core';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NativeSelect — pembungkus `<select>` HTML native (bukan popover kustom).
|
|
3
|
+
* Cocok untuk picker sederhana (mis. ukuran halaman) & lebih ringan di mobile.
|
|
4
|
+
* Butuh `searchable`/`clearable` atau daftar panjang? Pakai `Select`. Pilih
|
|
5
|
+
* banyak sekaligus? Pakai `MultiSelect`.
|
|
6
|
+
*/
|
|
7
|
+
export { NativeSelect, type NativeSelectProps } from '@mantine/core';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification — kartu notifikasi statis (toast "berhasil", "mohon tunggu").
|
|
3
|
+
* Ini komponen presentasional saja; untuk memicunya secara terprogram
|
|
4
|
+
* (`notifications.show()`) pakai paket terpisah `@mantine/notifications`.
|
|
5
|
+
* Beda dari `Alert`: Notification untuk pesan sekilas, bukan yang menetap di halaman.
|
|
6
|
+
*/
|
|
7
|
+
export { Notification, type NotificationProps } from '@mantine/core';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotificationsSystem — sistem toast/antrean terprogram, OPSIONAL (butuh peer
|
|
3
|
+
* dependency `@mantine/notifications`, terpisah dari `@mantine/core`).
|
|
4
|
+
* Mount `<Notifications />` SEKALI di root aplikasi (di dalam `MantineProvider`,
|
|
5
|
+
* sejajar dengan konten app — bukan bersarang di komponen halaman), lalu panggil
|
|
6
|
+
* `notifications.show({...})` di mana saja tanpa perlu kelola state sendiri. Beda dari `Notification` (kartu statis inline, tanpa
|
|
7
|
+
* antrean) — lihat `/docs/feedback-notification--docs`.
|
|
8
|
+
*/
|
|
9
|
+
export { notifications, Notifications, type NotificationData } from '@mantine/notifications';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pill — chip kecil yang bisa dilepas (`withRemoveButton`), dipakai untuk tag
|
|
3
|
+
* custom (mis. "Set tag" di Peserta) atau item terpilih di dalam `TagsInput`/
|
|
4
|
+
* `MultiSelect`. Beberapa sekaligus → bungkus dengan `Pill.Group`. Untuk label
|
|
5
|
+
* status yang tidak bisa dihapus pakai `Badge`.
|
|
6
|
+
*/
|
|
7
|
+
export { Pill, type PillProps } from '@mantine/core';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RichTextEditor as RichTextEditorRoot, type RichTextEditorProps as RichTextEditorRootProps } from '@mantine/tiptap';
|
|
2
|
+
export { RichTextEditorRoot, type RichTextEditorRootProps };
|
|
3
|
+
export interface RichTextEditorProps extends Omit<RichTextEditorRootProps, 'editor' | 'children' | 'onChange'> {
|
|
4
|
+
/**
|
|
5
|
+
* Konten HTML awal (tidak terkendali) — untuk mengganti isi editor secara
|
|
6
|
+
* terprogram (mis. pindah template), pakai `RichTextEditorRoot` + `useEditor`
|
|
7
|
+
* langsung. @default ''
|
|
8
|
+
*/
|
|
9
|
+
content?: string;
|
|
10
|
+
/** Dipanggil tiap isi berubah, menerima HTML string (`editor.getHTML()`). */
|
|
11
|
+
onChange?: (html: string) => void;
|
|
12
|
+
/** Bisa diedit atau tidak — mis. mode pratinjau template email. @default true */
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/** Editor kaya siap-pakai: `StarterKit` + toolbar standar (bold, heading, list, link, dll.). */
|
|
16
|
+
export declare function RichTextEditor({ content, onChange, editable, ...props }: RichTextEditorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RingProgress — varian melingkar dari `Progress`, dipakai untuk metrik ringkasan berbentuk
|
|
3
|
+
* donut (mis. "Tingkat Penyelesaian" di dashboard Kelola/Integro).
|
|
4
|
+
* Untuk bar horizontal biasa, pakai `Progress`.
|
|
5
|
+
*/
|
|
6
|
+
export { RingProgress, type RingProgressProps } from '@mantine/core';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SegmentedControl — kapsul bersegmen untuk toggle beberapa opsi yang saling
|
|
3
|
+
* eksklusif di tempat yang sama (mis. filter "Semua/Fit/Not Fit"), tanpa
|
|
4
|
+
* konten panel terpisah. Untuk beberapa panel dengan konten berbeda pakai
|
|
5
|
+
* `Tabs`; untuk daftar panjang pakai `Select`.
|
|
6
|
+
*/
|
|
7
|
+
export { SegmentedControl, type SegmentedControlProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton — placeholder abu-abu berkedip menggantikan konten yang belum termuat (baris
|
|
3
|
+
* tabel, kartu, avatar). Sembunyikan (`visible={false}`) begitu data datang.
|
|
4
|
+
* Untuk overlay spinner di atas konten yang sudah tampil, pakai `LoadingOverlay`.
|
|
5
|
+
*/
|
|
6
|
+
export { Skeleton, type SkeletonProps } from '@mantine/core';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stepper — wizard langkah-berurutan (mis. step-circle di Pengaturan). Susun
|
|
3
|
+
* dari beberapa `Stepper.Step` + opsional `Stepper.Completed` di akhir untuk
|
|
4
|
+
* pesan setelah semua langkah selesai. Untuk berpindah antar-tampilan tanpa
|
|
5
|
+
* urutan tetap pakai `Tabs`.
|
|
6
|
+
*/
|
|
7
|
+
export { Stepper, type StepperProps } from '@mantine/core';
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Table — tabel presentasional (default Prodigy: `highlightOnHover`, spacing sm).
|
|
3
3
|
* Susun dari `Table.Thead/Tbody/Tr/Th/Td`.
|
|
4
4
|
*
|
|
5
|
-
* CATATAN: ini hanya tampilan. Untuk sort + search + pagination,
|
|
6
|
-
*
|
|
7
|
-
* (lihat design-system-kelola.md §4) dan tetap render dengan komponen ini.
|
|
5
|
+
* CATATAN: ini hanya tampilan. Untuk sort + search + pagination sekaligus,
|
|
6
|
+
* pakai `DataTable` (logika dari `@tanstack/react-table`, dirender lewat `Table` ini).
|
|
8
7
|
*/
|
|
9
8
|
export { Table, type TableProps } from '@mantine/core';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TagsInput — user mengetik tag bebas (Enter/koma untuk menambah), bukan
|
|
3
|
+
* memilih dari daftar tetap. `data` bersifat opsional sebagai saran/
|
|
4
|
+
* autocomplete. Untuk pilih banyak dari daftar tetap pakai `MultiSelect`.
|
|
5
|
+
*/
|
|
6
|
+
export { TagsInput, type TagsInputProps } from '@mantine/core';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VisuallyHidden — sembunyikan teks secara visual namun tetap terbaca pembaca
|
|
3
|
+
* layar (screen reader). Pasangkan dengan tombol/ikon tanpa teks tampak, sebagai
|
|
4
|
+
* alternatif dari atribut `aria-label` di `ActionIcon` saat labelnya perlu berupa
|
|
5
|
+
* teks nyata di DOM.
|
|
6
|
+
*/
|
|
7
|
+
export { VisuallyHidden, type VisuallyHiddenProps } from '@mantine/core';
|
|
@@ -1,31 +1,56 @@
|
|
|
1
1
|
export { Button, type ButtonProps } from './Button/Button';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { Tooltip, type TooltipProps } from './Tooltip/Tooltip';
|
|
6
|
-
export { Card, type CardProps } from './Card/Card';
|
|
2
|
+
export { ActionIcon, type ActionIconProps } from './ActionIcon/ActionIcon';
|
|
3
|
+
export { FileButton, type FileButtonProps } from './FileButton/FileButton';
|
|
4
|
+
export { CloseButton, type CloseButtonProps } from './CloseButton/CloseButton';
|
|
7
5
|
export { TextInput, type TextInputProps } from './TextInput/TextInput';
|
|
8
6
|
export { NumberInput, type NumberInputProps } from './NumberInput/NumberInput';
|
|
9
7
|
export { PasswordInput, type PasswordInputProps } from './PasswordInput/PasswordInput';
|
|
10
8
|
export { Textarea, type TextareaProps } from './Textarea/Textarea';
|
|
11
9
|
export { Select, type SelectProps } from './Select/Select';
|
|
10
|
+
export { NativeSelect, type NativeSelectProps } from './NativeSelect/NativeSelect';
|
|
11
|
+
export { MultiSelect, type MultiSelectProps } from './MultiSelect/MultiSelect';
|
|
12
|
+
export { TagsInput, type TagsInputProps } from './TagsInput/TagsInput';
|
|
13
|
+
export { FileInput, type FileInputProps } from './FileInput/FileInput';
|
|
12
14
|
export { Checkbox, type CheckboxProps } from './Checkbox/Checkbox';
|
|
13
15
|
export { Radio, type RadioProps } from './Radio/Radio';
|
|
14
16
|
export { Switch, type SwitchProps } from './Switch/Switch';
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
17
|
+
export { SegmentedControl, type SegmentedControlProps } from './SegmentedControl/SegmentedControl';
|
|
18
|
+
export { DatePickerInput, type DatePickerInputProps } from './DatePickerInput/DatePickerInput';
|
|
19
|
+
export { Dropzone, type DropzoneProps } from './Dropzone/Dropzone';
|
|
20
|
+
export { RichTextEditor, type RichTextEditorProps } from './RichTextEditor/RichTextEditor';
|
|
21
|
+
export { Anchor, type AnchorProps } from './Anchor/Anchor';
|
|
18
22
|
export { Breadcrumbs, type BreadcrumbsProps } from './Breadcrumbs/Breadcrumbs';
|
|
19
23
|
export { NavLink, type NavLinkProps } from './NavLink/NavLink';
|
|
20
24
|
export { Burger, type BurgerProps } from './Burger/Burger';
|
|
21
25
|
export { Menu, type MenuProps } from './Menu/Menu';
|
|
22
26
|
export { Tabs, type TabsProps } from './Tabs/Tabs';
|
|
23
27
|
export { Pagination, type PaginationProps } from './Pagination/Pagination';
|
|
24
|
-
export {
|
|
28
|
+
export { Stepper, type StepperProps } from './Stepper/Stepper';
|
|
29
|
+
export { Alert, type AlertProps } from './Alert/Alert';
|
|
30
|
+
export { Progress, type ProgressProps } from './Progress/Progress';
|
|
31
|
+
export { RingProgress, type RingProgressProps } from './RingProgress/RingProgress';
|
|
32
|
+
export { Loader, type LoaderProps } from './Loader/Loader';
|
|
33
|
+
export { LoadingOverlay, type LoadingOverlayProps } from './LoadingOverlay/LoadingOverlay';
|
|
34
|
+
export { Skeleton, type SkeletonProps } from './Skeleton/Skeleton';
|
|
35
|
+
export { EmptyState, type EmptyStateProps } from './EmptyState/EmptyState';
|
|
36
|
+
export { Notification, type NotificationProps } from './Notification/Notification';
|
|
37
|
+
export { notifications, Notifications, type NotificationData, } from './NotificationsSystem/NotificationsSystem';
|
|
25
38
|
export { Modal, type ModalProps } from './Modal/Modal';
|
|
26
|
-
export {
|
|
39
|
+
export { Tooltip, type TooltipProps } from './Tooltip/Tooltip';
|
|
40
|
+
export { Card, type CardProps } from './Card/Card';
|
|
41
|
+
export { Badge, type BadgeProps } from './Badge/Badge';
|
|
27
42
|
export { Avatar, type AvatarProps } from './Avatar/Avatar';
|
|
43
|
+
export { ThemeIcon, type ThemeIconProps } from './ThemeIcon/ThemeIcon';
|
|
44
|
+
export { Indicator, type IndicatorProps } from './Indicator/Indicator';
|
|
28
45
|
export { Paper, type PaperProps } from './Paper/Paper';
|
|
29
|
-
export {
|
|
46
|
+
export { Table, type TableProps } from './Table/Table';
|
|
47
|
+
export { DataTable, type DataTableProps } from './DataTable/DataTable';
|
|
48
|
+
export { ColorSwatch, type ColorSwatchProps } from './ColorSwatch/ColorSwatch';
|
|
49
|
+
export { Pill, type PillProps } from './Pill/Pill';
|
|
30
50
|
export { Divider, type DividerProps } from './Divider/Divider';
|
|
51
|
+
export { VisuallyHidden, type VisuallyHiddenProps } from './VisuallyHidden/VisuallyHidden';
|
|
52
|
+
export { Carousel, type CarouselProps } from './Carousel/Carousel';
|
|
53
|
+
export { BarChart, type BarChartProps } from './BarChart/BarChart';
|
|
54
|
+
export { DonutChart, type DonutChartProps } from './DonutChart/DonutChart';
|
|
55
|
+
export { AppShell, type AppShellProps } from './AppShell/AppShell';
|
|
31
56
|
export * from './primitives';
|