@talentlytica/prodigy 1.0.0 → 1.1.1

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.
Files changed (34) hide show
  1. package/README.md +21 -12
  2. package/dist/components/BarChart/BarChart.d.ts +6 -0
  3. package/dist/components/Carousel/Carousel.d.ts +5 -0
  4. package/dist/components/CloseButton/CloseButton.d.ts +6 -0
  5. package/dist/components/ColorSwatch/ColorSwatch.d.ts +6 -0
  6. package/dist/components/DataTable/DataTable.d.ts +22 -0
  7. package/dist/components/DatePickerInput/DatePickerInput.d.ts +18 -0
  8. package/dist/components/DateTimePicker/DateTimePicker.d.ts +9 -0
  9. package/dist/components/DateTimeRangePicker/DateTimeRangePicker.d.ts +10 -0
  10. package/dist/components/DonutChart/DonutChart.d.ts +6 -0
  11. package/dist/components/Dropzone/Dropzone.d.ts +8 -0
  12. package/dist/components/EmptyState/EmptyState.d.ts +8 -0
  13. package/dist/components/FileButton/FileButton.d.ts +6 -0
  14. package/dist/components/FileInput/FileInput.d.ts +6 -0
  15. package/dist/components/Loader/Loader.d.ts +6 -0
  16. package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +6 -0
  17. package/dist/components/MultiSelect/MultiSelect.d.ts +7 -0
  18. package/dist/components/NativeSelect/NativeSelect.d.ts +7 -0
  19. package/dist/components/Notification/Notification.d.ts +7 -0
  20. package/dist/components/NotificationsSystem/NotificationsSystem.d.ts +9 -0
  21. package/dist/components/Pill/Pill.d.ts +7 -0
  22. package/dist/components/Popover/Popover.d.ts +6 -0
  23. package/dist/components/RichTextEditor/RichTextEditor.d.ts +16 -0
  24. package/dist/components/RingProgress/RingProgress.d.ts +6 -0
  25. package/dist/components/SegmentedControl/SegmentedControl.d.ts +7 -0
  26. package/dist/components/Skeleton/Skeleton.d.ts +6 -0
  27. package/dist/components/Stepper/Stepper.d.ts +7 -0
  28. package/dist/components/Table/Table.d.ts +2 -3
  29. package/dist/components/TagsInput/TagsInput.d.ts +6 -0
  30. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +7 -0
  31. package/dist/components/index.d.ts +39 -11
  32. package/dist/index.js +784 -19
  33. package/dist/themes/kelola.d.ts +1 -1
  34. package/package.json +54 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # talentlytica-prodigy
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 (30) + primitives (12)
54
+ ## Komponen (55) + primitives (12)
55
55
 
56
- - **Atoms:** Button, Badge, Anchor, Alert, Tooltip, Card, ActionIcon, ThemeIcon, Indicator
57
- - **Forms:** TextInput, NumberInput, PasswordInput, Textarea, Select, Checkbox, Radio, Switch
58
- - **Navigation:** Breadcrumbs, NavLink, Burger, Menu, Tabs, Pagination
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. Molecule (pola *list-page*) menyusul.
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 deps ikut):
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 @mantine/core @mantine/hooks react react-dom
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 `Atoms/…` / `Forms/…`, `argTypes` mengikuti props Mantine — **tanpa** `tags: ['autodocs']`).
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
- Fitur yang butuh paket ekstensi (lihat `design-system-kelola.md`): tabel sort/search/paginate (`mantine-react-table` — dipakai Kelola), chart (`@mantine/charts`), rich text (`@mantine/tiptap`), notifikasi (`@mantine/notifications`), date picker (`@mantine/dates`), ikon (`@tabler/icons-react`).
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,9 @@
1
+ export interface DateTimePickerProps {
2
+ /** Controlled/initial value */
3
+ value?: Date | null;
4
+ /** Called when the date or time changes (null when cleared) */
5
+ onChange?: (value: Date | null) => void;
6
+ /** Placeholder shown in the trigger when empty */
7
+ placeholder?: string;
8
+ }
9
+ export declare function DateTimePicker({ value, onChange, placeholder }: DateTimePickerProps): import("react").JSX.Element;
@@ -0,0 +1,10 @@
1
+ export type DateTimeRangeValue = [Date | null, Date | null];
2
+ export interface DateTimeRangePickerProps {
3
+ /** Controlled/initial value as [start, end] */
4
+ value?: DateTimeRangeValue;
5
+ /** Called when the range or time changes */
6
+ onChange?: (value: DateTimeRangeValue) => void;
7
+ /** Placeholder shown in the trigger when empty */
8
+ placeholder?: string;
9
+ }
10
+ export declare function DateTimeRangePicker({ value, onChange, placeholder }: DateTimeRangePickerProps): 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,6 @@
1
+ /**
2
+ * Popover — panel mengambang (floating) yang menempel pada elemen target.
3
+ * Dipakai untuk dropdown kaya konten (mis. Set tag). Untuk daftar aksi
4
+ * sederhana pakai `Menu`; untuk dialog terpusat pakai `Modal`.
5
+ */
6
+ export { Popover, type PopoverProps } 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, pasang logika
6
- * via `mantine-react-table` (dipakai Kelola) / TanStack Table
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,59 @@
1
1
  export { Button, type ButtonProps } from './Button/Button';
2
- export { Badge, type BadgeProps } from './Badge/Badge';
3
- export { Anchor, type AnchorProps } from './Anchor/Anchor';
4
- export { Alert, type AlertProps } from './Alert/Alert';
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 { ActionIcon, type ActionIconProps } from './ActionIcon/ActionIcon';
16
- export { ThemeIcon, type ThemeIconProps } from './ThemeIcon/ThemeIcon';
17
- export { Indicator, type IndicatorProps } from './Indicator/Indicator';
17
+ export { SegmentedControl, type SegmentedControlProps } from './SegmentedControl/SegmentedControl';
18
+ export { DatePickerInput, type DatePickerInputProps } from './DatePickerInput/DatePickerInput';
19
+ export { DateTimePicker, type DateTimePickerProps } from './DateTimePicker/DateTimePicker';
20
+ export { DateTimeRangePicker, type DateTimeRangePickerProps } from './DateTimeRangePicker/DateTimeRangePicker';
21
+ export { Dropzone, type DropzoneProps } from './Dropzone/Dropzone';
22
+ export { RichTextEditor, type RichTextEditorProps } from './RichTextEditor/RichTextEditor';
23
+ export { Anchor, type AnchorProps } from './Anchor/Anchor';
18
24
  export { Breadcrumbs, type BreadcrumbsProps } from './Breadcrumbs/Breadcrumbs';
19
25
  export { NavLink, type NavLinkProps } from './NavLink/NavLink';
20
26
  export { Burger, type BurgerProps } from './Burger/Burger';
21
27
  export { Menu, type MenuProps } from './Menu/Menu';
22
28
  export { Tabs, type TabsProps } from './Tabs/Tabs';
23
29
  export { Pagination, type PaginationProps } from './Pagination/Pagination';
24
- export { AppShell, type AppShellProps } from './AppShell/AppShell';
30
+ export { Stepper, type StepperProps } from './Stepper/Stepper';
31
+ export { Alert, type AlertProps } from './Alert/Alert';
32
+ export { Progress, type ProgressProps } from './Progress/Progress';
33
+ export { RingProgress, type RingProgressProps } from './RingProgress/RingProgress';
34
+ export { Loader, type LoaderProps } from './Loader/Loader';
35
+ export { LoadingOverlay, type LoadingOverlayProps } from './LoadingOverlay/LoadingOverlay';
36
+ export { Skeleton, type SkeletonProps } from './Skeleton/Skeleton';
37
+ export { EmptyState, type EmptyStateProps } from './EmptyState/EmptyState';
38
+ export { Notification, type NotificationProps } from './Notification/Notification';
39
+ export { notifications, Notifications, type NotificationData, } from './NotificationsSystem/NotificationsSystem';
25
40
  export { Modal, type ModalProps } from './Modal/Modal';
26
- export { Table, type TableProps } from './Table/Table';
41
+ export { Popover, type PopoverProps } from './Popover/Popover';
42
+ export { Tooltip, type TooltipProps } from './Tooltip/Tooltip';
43
+ export { Card, type CardProps } from './Card/Card';
44
+ export { Badge, type BadgeProps } from './Badge/Badge';
27
45
  export { Avatar, type AvatarProps } from './Avatar/Avatar';
46
+ export { ThemeIcon, type ThemeIconProps } from './ThemeIcon/ThemeIcon';
47
+ export { Indicator, type IndicatorProps } from './Indicator/Indicator';
28
48
  export { Paper, type PaperProps } from './Paper/Paper';
29
- export { Progress, type ProgressProps } from './Progress/Progress';
49
+ export { Table, type TableProps } from './Table/Table';
50
+ export { DataTable, type DataTableProps } from './DataTable/DataTable';
51
+ export { ColorSwatch, type ColorSwatchProps } from './ColorSwatch/ColorSwatch';
52
+ export { Pill, type PillProps } from './Pill/Pill';
30
53
  export { Divider, type DividerProps } from './Divider/Divider';
54
+ export { VisuallyHidden, type VisuallyHiddenProps } from './VisuallyHidden/VisuallyHidden';
55
+ export { Carousel, type CarouselProps } from './Carousel/Carousel';
56
+ export { BarChart, type BarChartProps } from './BarChart/BarChart';
57
+ export { DonutChart, type DonutChartProps } from './DonutChart/DonutChart';
58
+ export { AppShell, type AppShellProps } from './AppShell/AppShell';
31
59
  export * from './primitives';