unipo-ui 1.2.0 → 1.3.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/cli/index.mjs +53 -4
- package/dist/admisi-YCOE3DMH.cjs +20 -0
- package/dist/admisi-YXCTBECZ.js +11 -0
- package/dist/akademik-PJGL6MSP.cjs +20 -0
- package/dist/akademik-TPDFEZGF.js +11 -0
- package/dist/akses-AUPQD6YN.cjs +20 -0
- package/dist/akses-V5XIMBWT.js +11 -0
- package/dist/arsip-2T7IEION.cjs +20 -0
- package/dist/arsip-LDRV7FYX.js +11 -0
- package/dist/cbt-4N6COVIN.js +11 -0
- package/dist/cbt-GMQSR7TP.cjs +20 -0
- package/dist/chunk-34OKV63Q.js +122 -0
- package/dist/chunk-34OKV63Q.js.map +1 -0
- package/dist/chunk-3O5ELKBH.cjs +18 -0
- package/dist/chunk-3O5ELKBH.cjs.map +1 -0
- package/dist/chunk-4BQOABRV.js +462 -0
- package/dist/chunk-4BQOABRV.js.map +1 -0
- package/dist/{chunk-DEF5CA7C.cjs → chunk-5VNCBW4R.cjs} +282 -1165
- package/dist/chunk-5VNCBW4R.cjs.map +1 -0
- package/dist/{chunk-SJ4DJOMZ.js → chunk-7AJ4LW5H.js} +163 -1019
- package/dist/chunk-7AJ4LW5H.js.map +1 -0
- package/dist/chunk-JASW45YF.cjs +510 -0
- package/dist/chunk-JASW45YF.cjs.map +1 -0
- package/dist/chunk-JSUHAYQ4.js +15 -0
- package/dist/chunk-JSUHAYQ4.js.map +1 -0
- package/dist/chunk-LN6HZMPI.js +1006 -0
- package/dist/chunk-LN6HZMPI.js.map +1 -0
- package/dist/chunk-LNJTDEQR.cjs +1937 -0
- package/dist/chunk-LNJTDEQR.cjs.map +1 -0
- package/dist/chunk-MKQEH7QS.cjs +1058 -0
- package/dist/chunk-MKQEH7QS.cjs.map +1 -0
- package/dist/chunk-TAKLMRU7.cjs +150 -0
- package/dist/chunk-TAKLMRU7.cjs.map +1 -0
- package/dist/chunk-TYCRRYCQ.js +1843 -0
- package/dist/chunk-TYCRRYCQ.js.map +1 -0
- package/dist/crm-C4XGSG6O.js +11 -0
- package/dist/crm-LTVCDNMK.cjs +20 -0
- package/dist/dasbor-OJLMSFTF.cjs +20 -0
- package/dist/dasbor-Y3UPFYFE.js +11 -0
- package/dist/edom-3GZUUB7H.cjs +20 -0
- package/dist/edom-K4Y2NV4K.js +11 -0
- package/dist/fakultas-DJRUVJBV.js +11 -0
- package/dist/fakultas-VVAQOPUX.cjs +20 -0
- package/dist/filter-D54KALbB.d.cts +436 -0
- package/dist/filter-D54KALbB.d.ts +436 -0
- package/dist/helpdesk-AWVC7BPE.cjs +20 -0
- package/dist/helpdesk-BAOXAU6G.js +11 -0
- package/dist/humas-7BMMJ3WF.js +11 -0
- package/dist/humas-H56JFUW6.cjs +20 -0
- package/dist/ikon.cjs +125 -0
- package/dist/ikon.cjs.map +1 -0
- package/dist/ikon.d.cts +140 -0
- package/dist/ikon.d.ts +140 -0
- package/dist/ikon.js +6 -0
- package/dist/ikon.js.map +1 -0
- package/dist/iku-7JLF2NIH.js +11 -0
- package/dist/iku-F47ZLMYJ.cjs +20 -0
- package/dist/index.cjs +544 -257
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +192 -2
- package/dist/index.d.ts +192 -2
- package/dist/index.js +126 -4
- package/dist/index.js.map +1 -1
- package/dist/induk-BGTGKRLL.js +11 -0
- package/dist/induk-DLYDMZAM.cjs +20 -0
- package/dist/integrasi-4VXNGA3V.cjs +20 -0
- package/dist/integrasi-IP3WWDO7.js +11 -0
- package/dist/kalender-DGQDGJCL.cjs +20 -0
- package/dist/kalender-FGGUBYKZ.js +11 -0
- package/dist/karier-H3HBFCQQ.js +11 -0
- package/dist/karier-QTU2P5YD.cjs +20 -0
- package/dist/katalog.cjs +1709 -0
- package/dist/katalog.cjs.map +1 -0
- package/dist/katalog.d.cts +645 -0
- package/dist/katalog.d.ts +645 -0
- package/dist/katalog.js +1626 -0
- package/dist/katalog.js.map +1 -0
- package/dist/kelulusan-BHFQM5N4.cjs +20 -0
- package/dist/kelulusan-ZR7CM6I5.js +11 -0
- package/dist/kemahasiswaan-EINWXAY7.cjs +20 -0
- package/dist/kemahasiswaan-NH2LEDH7.js +11 -0
- package/dist/kerjasama-FAOHZCML.js +11 -0
- package/dist/kerjasama-TXWJOU4Y.cjs +20 -0
- package/dist/keu-4TXF4FEP.cjs +20 -0
- package/dist/keu-SD7UOCDB.js +11 -0
- package/dist/kurikulum-SRO7TJYI.cjs +20 -0
- package/dist/kurikulum-XT7PZJOK.js +11 -0
- package/dist/layanan-RQ2AWCQ5.cjs +20 -0
- package/dist/layanan-Y6WUCSD2.js +11 -0
- package/dist/lms-5JYOSLBI.cjs +20 -0
- package/dist/lms-NTXMSHG2.js +11 -0
- package/dist/lppm-7DH7PRF3.cjs +20 -0
- package/dist/lppm-UXYGIOIF.js +11 -0
- package/dist/master-GKTTAKLF.cjs +20 -0
- package/dist/master-ZG4SPPDU.js +11 -0
- package/dist/mbkm-OGR72BTB.js +11 -0
- package/dist/mbkm-URKJHUIQ.cjs +20 -0
- package/dist/notifikasi-FMA26M4I.js +11 -0
- package/dist/notifikasi-QDCYIX7G.cjs +20 -0
- package/dist/pddikti-RJVYY2J4.cjs +20 -0
- package/dist/pddikti-VF2PXDKA.js +11 -0
- package/dist/{content-DaJPx5LX.d.cts → pemeliharaan-D5S-1lqW.d.ts} +38 -434
- package/dist/{content-DaJPx5LX.d.ts → pemeliharaan-Dr0HSxvZ.d.cts} +38 -434
- package/dist/perpustakaan-5RL33XG2.js +11 -0
- package/dist/perpustakaan-JXZW43MJ.cjs +20 -0
- package/dist/pilih-BEes_D3n.d.cts +205 -0
- package/dist/pilih-CEKqXMUS.d.ts +205 -0
- package/dist/pmb-EGTWW2ZH.cjs +20 -0
- package/dist/pmb-G7EAFJ3R.js +11 -0
- package/dist/portal-EI7TXN7H.cjs +20 -0
- package/dist/portal-MMUYX3RA.js +11 -0
- package/dist/portal-api-BJLO6AGI.js +11 -0
- package/dist/portal-api-Q6B3X6ZV.cjs +20 -0
- package/dist/profil-46FV46VH.cjs +20 -0
- package/dist/profil-4BIXIM6D.js +11 -0
- package/dist/referensi-HNYOJGNX.js +11 -0
- package/dist/referensi-VOT5BRCL.cjs +20 -0
- package/dist/registry.json +606 -4
- package/dist/repositori-2MJ43NXM.js +11 -0
- package/dist/repositori-KFXVJB7B.cjs +20 -0
- package/dist/rpl-2ZXHNSPF.js +11 -0
- package/dist/rpl-YF5MV2YA.cjs +20 -0
- package/dist/sarpras-CQ7QKVUN.js +11 -0
- package/dist/sarpras-XGPHHFCG.cjs +20 -0
- package/dist/scss/components/_animasi.scss +280 -0
- package/dist/scss/components/_ikon.scss +249 -0
- package/dist/scss/components/_katalog.scss +662 -0
- package/dist/scss/components/_platform.scss +364 -0
- package/dist/scss/index.scss +4 -0
- package/dist/sdm-N6LE66PP.cjs +20 -0
- package/dist/sdm-QKBXH3JF.js +11 -0
- package/dist/siakad.cjs +1389 -2915
- package/dist/siakad.cjs.map +1 -1
- package/dist/siakad.d.cts +31 -196
- package/dist/siakad.d.ts +31 -196
- package/dist/siakad.js +446 -2194
- package/dist/siakad.js.map +1 -1
- package/dist/spmi-J37NEYIU.js +11 -0
- package/dist/spmi-N6EU7KNC.cjs +20 -0
- package/dist/tracer-G6DDXVXC.cjs +20 -0
- package/dist/tracer-M3FTNWBG.js +11 -0
- package/dist/ui-unipo.css +1650 -0
- package/dist/ui-unipo.min.css +1 -1
- package/package.json +25 -3
- package/src/components/animasi.tsx +186 -0
- package/src/components/modal.tsx +113 -0
- package/src/components/overlays.tsx +6 -1
- package/src/components/pemeliharaan.tsx +152 -0
- package/src/components/platform.tsx +94 -0
- package/src/ikon/ilustrasi.tsx +283 -0
- package/src/ikon/index.ts +7 -0
- package/src/ikon/kotak.tsx +30 -0
- package/src/ikon/unipo.tsx +326 -0
- package/src/index.ts +8 -0
- package/src/katalog/aturan.ts +488 -0
- package/src/katalog/data/id.ts +749 -0
- package/src/katalog/data/indeks.json +1 -0
- package/src/katalog/data/muat.ts +47 -0
- package/src/katalog/ikon.tsx +11 -0
- package/src/katalog/index.ts +13 -0
- package/src/katalog/isian.tsx +372 -0
- package/src/katalog/katalog.tsx +138 -0
- package/src/katalog/kelola.tsx +620 -0
- package/src/katalog/modul.tsx +336 -0
- package/src/katalog/tampil.tsx +147 -0
- package/src/katalog/tipe.ts +141 -0
- package/src/katalog/wizard.tsx +155 -0
- package/src/lib/platform.ts +91 -0
- package/src/siakad/index.ts +1 -0
- package/src/siakad/pemeliharaan.tsx +118 -0
- package/src/siakad/provider.tsx +2 -0
- package/dist/chunk-DEF5CA7C.cjs.map +0 -1
- package/dist/chunk-SJ4DJOMZ.js.map +0 -1
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useRender } from '@base-ui/react/use-render';
|
|
3
3
|
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
4
|
-
import
|
|
5
|
-
import { Field as Field$1 } from '@base-ui/react/field';
|
|
6
|
-
import { Fieldset as Fieldset$1 } from '@base-ui/react/fieldset';
|
|
7
|
-
import { Input as Input$1 } from '@base-ui/react/input';
|
|
8
|
-
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
9
|
-
import { CheckboxGroup as CheckboxGroup$1 } from '@base-ui/react/checkbox-group';
|
|
10
|
-
import { Radio as Radio$1 } from '@base-ui/react/radio';
|
|
11
|
-
import { RadioGroup as RadioGroup$1 } from '@base-ui/react/radio-group';
|
|
12
|
-
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
13
|
-
import { NumberField as NumberField$1 } from '@base-ui/react/number-field';
|
|
14
|
-
import { OTPField } from '@base-ui/react/otp-field';
|
|
15
|
-
import { Slider as Slider$1 } from '@base-ui/react/slider';
|
|
16
|
-
import { Toggle as Toggle$1 } from '@base-ui/react/toggle';
|
|
17
|
-
import { ToggleGroup as ToggleGroup$1 } from '@base-ui/react/toggle-group';
|
|
18
|
-
import { Toast } from '@base-ui/react/toast';
|
|
4
|
+
import { C as ControlSize, S as SidebarUser, M as MenuEntry } from './filter-D54KALbB.js';
|
|
19
5
|
|
|
20
6
|
type ButtonVariant = 'primary' | 'secondary' | 'outline' | 'soft' | 'ghost' | 'destructive' | 'destructive-soft' | 'link';
|
|
21
7
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -68,126 +54,6 @@ declare function Separator({ className, orientation, label, ...props }: {
|
|
|
68
54
|
} & Omit<React.ComponentProps<typeof Separator$1>, 'orientation'>): React.JSX.Element;
|
|
69
55
|
declare function VisuallyHidden(props: React.ComponentProps<'span'>): React.JSX.Element;
|
|
70
56
|
|
|
71
|
-
interface LabelProps extends React.ComponentProps<'label'> {
|
|
72
|
-
required?: boolean;
|
|
73
|
-
optional?: boolean;
|
|
74
|
-
}
|
|
75
|
-
declare function Label({ className, required, optional, children, ...props }: LabelProps): React.JSX.Element;
|
|
76
|
-
interface FieldProps extends Omit<React.ComponentProps<typeof Field$1.Root>, 'children'> {
|
|
77
|
-
label?: React.ReactNode;
|
|
78
|
-
description?: React.ReactNode;
|
|
79
|
-
/** Pesan galat. Bila diisi, field ditandai tidak valid. */
|
|
80
|
-
error?: React.ReactNode;
|
|
81
|
-
required?: boolean;
|
|
82
|
-
optional?: boolean;
|
|
83
|
-
orientation?: 'vertical' | 'horizontal';
|
|
84
|
-
children: React.ReactNode;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Pembungkus satu isian: label, kontrol, deskripsi, dan galat saling terhubung (aria) secara otomatis.
|
|
88
|
-
* Kontrol di dalamnya harus komponen UNIPO (Input, Select, Checkbox, ...) atau dibungkus `FieldControl`.
|
|
89
|
-
*/
|
|
90
|
-
declare function Field({ label, description, error, required, optional, orientation, className, children, invalid, ...props }: FieldProps): React.JSX.Element;
|
|
91
|
-
declare const FieldControl: React.ForwardRefExoticComponent<Omit<_base_ui_react.FieldControlProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
92
|
-
declare function FieldDescription({ className, ...props }: React.ComponentProps<typeof Field$1.Description>): React.JSX.Element;
|
|
93
|
-
declare function FieldError({ className, children, ...props }: React.ComponentProps<typeof Field$1.Error>): React.JSX.Element;
|
|
94
|
-
declare function Fieldset({ legend, className, children, ...props }: {
|
|
95
|
-
legend?: React.ReactNode;
|
|
96
|
-
} & React.ComponentProps<typeof Fieldset$1.Root>): React.JSX.Element;
|
|
97
|
-
type ControlSize = 'sm' | 'md' | 'lg';
|
|
98
|
-
interface InputProps extends Omit<React.ComponentProps<typeof Input$1>, 'size'> {
|
|
99
|
-
size?: ControlSize;
|
|
100
|
-
}
|
|
101
|
-
declare function Input({ className, size, ...props }: InputProps): React.JSX.Element;
|
|
102
|
-
declare function Textarea({ className, ...props }: React.ComponentProps<'textarea'>): React.JSX.Element;
|
|
103
|
-
interface InputGroupProps extends Omit<React.ComponentProps<'div'>, 'prefix'> {
|
|
104
|
-
size?: ControlSize;
|
|
105
|
-
/** Konten di kiri (ikon, teks "Rp", dsb.). */
|
|
106
|
-
start?: React.ReactNode;
|
|
107
|
-
/** Konten di kanan (ikon, tombol, satuan). */
|
|
108
|
-
end?: React.ReactNode;
|
|
109
|
-
/** Beri latar dan garis pemisah pada addon, mis. untuk "https://" atau "SKS". */
|
|
110
|
-
boxed?: boolean;
|
|
111
|
-
invalid?: boolean;
|
|
112
|
-
}
|
|
113
|
-
/** Input dengan ikon/teks di dalam bingkai yang sama. Taruh <Input /> sebagai anak. */
|
|
114
|
-
declare function InputGroup({ size, start, end, boxed, invalid, className, children, ...props }: InputGroupProps): React.JSX.Element;
|
|
115
|
-
declare function Checkbox({ className, ...props }: React.ComponentProps<typeof Checkbox$1.Root>): React.JSX.Element;
|
|
116
|
-
declare function Radio({ className, ...props }: React.ComponentProps<typeof Radio$1.Root>): React.JSX.Element;
|
|
117
|
-
interface ChoiceProps extends Omit<React.ComponentProps<'label'>, 'title'> {
|
|
118
|
-
label: React.ReactNode;
|
|
119
|
-
description?: React.ReactNode;
|
|
120
|
-
control: React.ReactElement;
|
|
121
|
-
disabled?: boolean;
|
|
122
|
-
}
|
|
123
|
-
/** Satu baris pilihan: kontrol (Checkbox/Radio/Switch) + label + deskripsi. */
|
|
124
|
-
declare function Choice({ label, description, control, disabled, className, ...props }: ChoiceProps): React.JSX.Element;
|
|
125
|
-
interface ChoiceOption<V extends string = string> {
|
|
126
|
-
value: V;
|
|
127
|
-
label: React.ReactNode;
|
|
128
|
-
description?: React.ReactNode;
|
|
129
|
-
icon?: React.ReactNode;
|
|
130
|
-
disabled?: boolean;
|
|
131
|
-
}
|
|
132
|
-
interface CheckboxGroupProps<V extends string> extends Omit<React.ComponentProps<typeof CheckboxGroup$1>, 'value' | 'defaultValue' | 'onValueChange'> {
|
|
133
|
-
options: ChoiceOption<V>[];
|
|
134
|
-
value?: V[];
|
|
135
|
-
defaultValue?: V[];
|
|
136
|
-
onValueChange?: (value: V[]) => void;
|
|
137
|
-
orientation?: 'vertical' | 'horizontal';
|
|
138
|
-
/** Tampilan kartu (cocok untuk memilih paket, jalur, minat). */
|
|
139
|
-
variant?: 'list' | 'card';
|
|
140
|
-
columns?: number;
|
|
141
|
-
}
|
|
142
|
-
declare function CheckboxGroup<V extends string>({ options, orientation, variant, columns, className, onValueChange, ...props }: CheckboxGroupProps<V>): React.JSX.Element;
|
|
143
|
-
interface RadioGroupProps<V extends string> extends Omit<React.ComponentProps<typeof RadioGroup$1>, 'value' | 'defaultValue' | 'onValueChange'> {
|
|
144
|
-
options: ChoiceOption<V>[];
|
|
145
|
-
value?: V | null;
|
|
146
|
-
defaultValue?: V;
|
|
147
|
-
onValueChange?: (value: V) => void;
|
|
148
|
-
orientation?: 'vertical' | 'horizontal';
|
|
149
|
-
variant?: 'list' | 'card';
|
|
150
|
-
columns?: number;
|
|
151
|
-
}
|
|
152
|
-
declare function RadioGroup<V extends string>({ options, orientation, variant, columns, className, onValueChange, ...props }: RadioGroupProps<V>): React.JSX.Element;
|
|
153
|
-
/** Kartu pilihan (checkbox/radio). Umumnya dipakai lewat CheckboxGroup/RadioGroup variant="card". */
|
|
154
|
-
declare function ChoiceCard({ label, description, icon, control, disabled }: ChoiceOption & {
|
|
155
|
-
control: React.ReactElement;
|
|
156
|
-
}): React.JSX.Element;
|
|
157
|
-
declare function Switch({ className, size, ...props }: {
|
|
158
|
-
size?: 'sm' | 'md';
|
|
159
|
-
} & React.ComponentProps<typeof Switch$1.Root>): React.JSX.Element;
|
|
160
|
-
declare function NumberField({ className, ...props }: React.ComponentProps<typeof NumberField$1.Root>): React.JSX.Element;
|
|
161
|
-
interface OtpFieldProps extends Omit<React.ComponentProps<typeof OTPField.Root>, 'length'> {
|
|
162
|
-
length?: number;
|
|
163
|
-
/** Sisipkan pemisah setelah indeks ini, mis. 3 untuk 123-456. */
|
|
164
|
-
separatorAfter?: number;
|
|
165
|
-
}
|
|
166
|
-
/** Isian kode OTP (verifikasi email/WA pendaftar PMB, login alumni). */
|
|
167
|
-
declare function OtpField({ length, separatorAfter, className, ...props }: OtpFieldProps): React.JSX.Element;
|
|
168
|
-
declare function Slider({ className, ...props }: React.ComponentProps<typeof Slider$1.Root>): React.JSX.Element;
|
|
169
|
-
declare function Toggle({ className, variant, size, ...props }: {
|
|
170
|
-
variant?: 'ghost' | 'outline';
|
|
171
|
-
size?: 'sm' | 'md';
|
|
172
|
-
} & React.ComponentProps<typeof Toggle$1>): React.JSX.Element;
|
|
173
|
-
declare function ToggleGroup({ className, ...props }: React.ComponentProps<typeof ToggleGroup$1>): React.JSX.Element;
|
|
174
|
-
interface SegmentedControlProps<V extends string> {
|
|
175
|
-
options: Array<{
|
|
176
|
-
value: V;
|
|
177
|
-
label: React.ReactNode;
|
|
178
|
-
icon?: React.ReactNode;
|
|
179
|
-
'aria-label'?: string;
|
|
180
|
-
}>;
|
|
181
|
-
value?: V;
|
|
182
|
-
defaultValue?: V;
|
|
183
|
-
onValueChange?: (value: V) => void;
|
|
184
|
-
fullWidth?: boolean;
|
|
185
|
-
className?: string;
|
|
186
|
-
'aria-label'?: string;
|
|
187
|
-
}
|
|
188
|
-
/** Pilihan tunggal berbentuk tombol bersambung, mis. "Hari | Minggu | Bulan" atau "Tabel | Kartu". */
|
|
189
|
-
declare function SegmentedControl<V extends string>({ options, value, defaultValue, onValueChange, fullWidth, className, ...rest }: SegmentedControlProps<V>): React.JSX.Element;
|
|
190
|
-
|
|
191
57
|
interface SelectOption<V = string> {
|
|
192
58
|
value: V;
|
|
193
59
|
label: React.ReactNode;
|
|
@@ -255,218 +121,6 @@ declare function OptionContent({ media, mediaShape, title, meta }: {
|
|
|
255
121
|
meta?: React.ReactNode;
|
|
256
122
|
}): React.JSX.Element;
|
|
257
123
|
|
|
258
|
-
interface DialogProps {
|
|
259
|
-
open?: boolean;
|
|
260
|
-
defaultOpen?: boolean;
|
|
261
|
-
onOpenChange?: (open: boolean) => void;
|
|
262
|
-
/** Elemen pemicu (biasanya <Button>). */
|
|
263
|
-
trigger?: React.ReactElement;
|
|
264
|
-
title: React.ReactNode;
|
|
265
|
-
description?: React.ReactNode;
|
|
266
|
-
/** Tombol di kaki dialog. */
|
|
267
|
-
footer?: React.ReactNode;
|
|
268
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
269
|
-
children?: React.ReactNode;
|
|
270
|
-
className?: string;
|
|
271
|
-
/** Tampilkan sebagai panel geser dari sisi layar. */
|
|
272
|
-
side?: 'right' | 'left' | 'bottom';
|
|
273
|
-
}
|
|
274
|
-
/** Dialog modal. Dengan `side`, menjadi Sheet (panel samping/bawah) untuk filter, detail, atau formulir panjang. */
|
|
275
|
-
declare function Dialog({ open, defaultOpen, onOpenChange, trigger, title, description, footer, size, side, children, className }: DialogProps): React.JSX.Element;
|
|
276
|
-
declare const DialogClose: React.ForwardRefExoticComponent<Omit<_base_ui_react.AlertDialogCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
277
|
-
declare function Sheet(props: Omit<DialogProps, 'side'> & {
|
|
278
|
-
side?: 'right' | 'left' | 'bottom';
|
|
279
|
-
}): React.JSX.Element;
|
|
280
|
-
interface ConfirmDialogProps {
|
|
281
|
-
open?: boolean;
|
|
282
|
-
onOpenChange?: (open: boolean) => void;
|
|
283
|
-
trigger?: React.ReactElement;
|
|
284
|
-
title: React.ReactNode;
|
|
285
|
-
description?: React.ReactNode;
|
|
286
|
-
/** Label tombol aksi; tulis kata kerja, mis. "Hapus mahasiswa". */
|
|
287
|
-
confirmLabel: string;
|
|
288
|
-
cancelLabel?: string;
|
|
289
|
-
tone?: 'danger' | 'primary' | 'warning';
|
|
290
|
-
icon?: React.ReactNode;
|
|
291
|
-
/** Boleh async; dialog menunggu dan menampilkan spinner. */
|
|
292
|
-
onConfirm: () => void | Promise<void>;
|
|
293
|
-
children?: React.ReactNode;
|
|
294
|
-
}
|
|
295
|
-
/** Konfirmasi tindakan yang tidak bisa dibatalkan. */
|
|
296
|
-
declare function ConfirmDialog({ open, onOpenChange, trigger, title, description, confirmLabel, cancelLabel, tone, icon, onConfirm, children }: ConfirmDialogProps): React.JSX.Element;
|
|
297
|
-
interface PopoverProps {
|
|
298
|
-
trigger: React.ReactElement;
|
|
299
|
-
title?: React.ReactNode;
|
|
300
|
-
description?: React.ReactNode;
|
|
301
|
-
children?: React.ReactNode;
|
|
302
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
303
|
-
align?: 'start' | 'center' | 'end';
|
|
304
|
-
width?: number | string;
|
|
305
|
-
open?: boolean;
|
|
306
|
-
onOpenChange?: (open: boolean) => void;
|
|
307
|
-
className?: string;
|
|
308
|
-
/** Buka saat kursor di atas pemicu (kartu pratinjau). */
|
|
309
|
-
openOnHover?: boolean;
|
|
310
|
-
}
|
|
311
|
-
declare function Popover({ trigger, title, description, children, side, align, width, open, onOpenChange, className, openOnHover }: PopoverProps): React.JSX.Element;
|
|
312
|
-
declare const TooltipProvider: React.FC<_base_ui_react.TooltipProviderProps>;
|
|
313
|
-
interface TooltipProps {
|
|
314
|
-
content: React.ReactNode;
|
|
315
|
-
children: React.ReactElement;
|
|
316
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
317
|
-
shortcut?: string;
|
|
318
|
-
delay?: number;
|
|
319
|
-
}
|
|
320
|
-
/** Keterangan singkat saat kursor/fokus. Wajib untuk tombol ikon. */
|
|
321
|
-
declare function Tooltip({ content, children, side, shortcut, delay }: TooltipProps): React.JSX.Element;
|
|
322
|
-
type MenuEntry = {
|
|
323
|
-
type?: 'item';
|
|
324
|
-
label: React.ReactNode;
|
|
325
|
-
icon?: React.ReactNode;
|
|
326
|
-
shortcut?: string;
|
|
327
|
-
onSelect?: () => void;
|
|
328
|
-
href?: string;
|
|
329
|
-
disabled?: boolean;
|
|
330
|
-
destructive?: boolean;
|
|
331
|
-
} | {
|
|
332
|
-
type: 'separator';
|
|
333
|
-
} | {
|
|
334
|
-
type: 'label';
|
|
335
|
-
label: React.ReactNode;
|
|
336
|
-
};
|
|
337
|
-
interface MenuProps {
|
|
338
|
-
trigger: React.ReactElement;
|
|
339
|
-
items: MenuEntry[];
|
|
340
|
-
align?: 'start' | 'center' | 'end';
|
|
341
|
-
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
342
|
-
}
|
|
343
|
-
/** Menu tarik-turun untuk aksi baris tabel, profil pengguna, dsb. */
|
|
344
|
-
declare function Menu({ trigger, items, align, side }: MenuProps): React.JSX.Element;
|
|
345
|
-
/** Pasang sekali di akar aplikasi (sudah termasuk di <UnipoProvider>). */
|
|
346
|
-
declare function Toaster({ children, limit, timeout }: {
|
|
347
|
-
children?: React.ReactNode;
|
|
348
|
-
limit?: number;
|
|
349
|
-
timeout?: number;
|
|
350
|
-
}): React.JSX.Element;
|
|
351
|
-
/**
|
|
352
|
-
* const toast = useToast();
|
|
353
|
-
* toast.add({ title: 'Data tersimpan', type: 'success' });
|
|
354
|
-
* toast.promise(simpan(), { loading: 'Menyimpan…', success: 'Tersimpan', error: 'Gagal menyimpan' });
|
|
355
|
-
*/
|
|
356
|
-
declare const useToast: typeof Toast.useToastManager;
|
|
357
|
-
|
|
358
|
-
interface NavItem {
|
|
359
|
-
/** Kunci unik; dicocokkan dengan `activeKey`. */
|
|
360
|
-
key: string;
|
|
361
|
-
label: React.ReactNode;
|
|
362
|
-
icon?: React.ReactNode;
|
|
363
|
-
href?: string;
|
|
364
|
-
onClick?: () => void;
|
|
365
|
-
/** Angka/teks kecil di kanan (mis. jumlah KRS menunggu). */
|
|
366
|
-
badge?: React.ReactNode;
|
|
367
|
-
/** Sub-menu (satu tingkat). */
|
|
368
|
-
children?: NavItem[];
|
|
369
|
-
disabled?: boolean;
|
|
370
|
-
}
|
|
371
|
-
interface NavGroup {
|
|
372
|
-
label?: React.ReactNode;
|
|
373
|
-
items: NavItem[];
|
|
374
|
-
}
|
|
375
|
-
interface SidebarUser {
|
|
376
|
-
name: string;
|
|
377
|
-
/** Baris kedua: NIM/NIDN/peran. */
|
|
378
|
-
subtitle?: string;
|
|
379
|
-
avatar?: string | null;
|
|
380
|
-
menu?: MenuEntry[];
|
|
381
|
-
}
|
|
382
|
-
interface SidebarProps {
|
|
383
|
-
/** Logo + nama aplikasi (gunakan <AppLogo />). */
|
|
384
|
-
brand: React.ReactNode;
|
|
385
|
-
groups: NavGroup[];
|
|
386
|
-
activeKey?: string;
|
|
387
|
-
/** Konten tepat di bawah brand, mis. pemilih prodi/periode atau pencarian. */
|
|
388
|
-
header?: React.ReactNode;
|
|
389
|
-
/** Konten di atas profil, mis. kartu "Periode KRS dibuka". */
|
|
390
|
-
footer?: React.ReactNode;
|
|
391
|
-
user?: SidebarUser;
|
|
392
|
-
/** Mode ikon saja (rail). */
|
|
393
|
-
collapsed?: boolean;
|
|
394
|
-
onCollapsedChange?: (collapsed: boolean) => void;
|
|
395
|
-
/** Renderer tautan kustom, mis. <Link> Next.js/React Router. */
|
|
396
|
-
renderLink?: (item: NavItem, props: React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
397
|
-
children: React.ReactNode;
|
|
398
|
-
}) => React.ReactElement;
|
|
399
|
-
/**
|
|
400
|
-
* Hanya satu sub-menu terbuka dalam satu waktu: membuka satu menutup yang lain. Bawaan `true`.
|
|
401
|
-
* Isi `false` agar setiap sub-menu bisa dibuka bersamaan.
|
|
402
|
-
*/
|
|
403
|
-
accordion?: boolean;
|
|
404
|
-
className?: string;
|
|
405
|
-
}
|
|
406
|
-
/** Sidebar aplikasi dasbor (SIAKAD, Pustikom, LMS, fakultas): grup menu, sub-menu, lencana, profil, mode rail. */
|
|
407
|
-
declare function Sidebar({ brand, groups, activeKey, header, footer, user, collapsed, onCollapsedChange, renderLink, accordion, className }: SidebarProps): React.JSX.Element;
|
|
408
|
-
interface AppShellProps {
|
|
409
|
-
sidebar: React.ReactElement<SidebarProps>;
|
|
410
|
-
/** Isi bilah atas (breadcrumb, pencarian, notifikasi). */
|
|
411
|
-
topbar?: React.ReactNode;
|
|
412
|
-
children: React.ReactNode;
|
|
413
|
-
className?: string;
|
|
414
|
-
}
|
|
415
|
-
/** Kerangka halaman dasbor: sidebar tetap di desktop, laci (sheet) di ponsel. */
|
|
416
|
-
declare function AppShell({ sidebar, topbar, children, className }: AppShellProps): React.JSX.Element;
|
|
417
|
-
/** Tombol pencarian ala command palette di bilah atas. */
|
|
418
|
-
declare function SearchTrigger({ placeholder, shortcut, onClick, className }: {
|
|
419
|
-
placeholder?: string;
|
|
420
|
-
shortcut?: string;
|
|
421
|
-
onClick?: () => void;
|
|
422
|
-
className?: string;
|
|
423
|
-
}): React.JSX.Element;
|
|
424
|
-
interface DocsNavSection {
|
|
425
|
-
title: React.ReactNode;
|
|
426
|
-
items: Array<{
|
|
427
|
-
key: string;
|
|
428
|
-
label: React.ReactNode;
|
|
429
|
-
href?: string;
|
|
430
|
-
onClick?: () => void;
|
|
431
|
-
badge?: React.ReactNode;
|
|
432
|
-
}>;
|
|
433
|
-
}
|
|
434
|
-
interface DocsSidebarProps {
|
|
435
|
-
sections: DocsNavSection[];
|
|
436
|
-
activeKey?: string;
|
|
437
|
-
/** Pencarian di dalam daftar (penyaringan klien). */
|
|
438
|
-
searchable?: boolean;
|
|
439
|
-
header?: React.ReactNode;
|
|
440
|
-
className?: string;
|
|
441
|
-
renderLink?: SidebarProps['renderLink'];
|
|
442
|
-
}
|
|
443
|
-
/** Sidebar halaman dokumentasi (API, panduan, pustaka komponen): seksi bertajuk, penanda aktif, saringan. */
|
|
444
|
-
declare function DocsSidebar({ sections, activeKey, searchable, header, className, renderLink }: DocsSidebarProps): React.JSX.Element;
|
|
445
|
-
/** Daftar isi "Di halaman ini" dengan penanda bagian yang sedang dibaca (scroll-spy). */
|
|
446
|
-
declare function TableOfContents({ items, title, className }: {
|
|
447
|
-
items: Array<{
|
|
448
|
-
id: string;
|
|
449
|
-
label: React.ReactNode;
|
|
450
|
-
level?: 2 | 3;
|
|
451
|
-
}>;
|
|
452
|
-
title?: string;
|
|
453
|
-
className?: string;
|
|
454
|
-
}): React.JSX.Element;
|
|
455
|
-
interface SidebarWidgetProps extends Omit<React.ComponentProps<'section'>, 'title'> {
|
|
456
|
-
title: React.ReactNode;
|
|
457
|
-
/** Tautan "Lihat semua" di kanan judul. */
|
|
458
|
-
action?: React.ReactNode;
|
|
459
|
-
variant?: 'plain' | 'card';
|
|
460
|
-
}
|
|
461
|
-
/** Satu blok di kolom samping portal (Terpopuler, Agenda, Pengumuman, Kategori, ...). */
|
|
462
|
-
declare function SidebarWidget({ title, action, variant, className, children, ...props }: SidebarWidgetProps): React.JSX.Element;
|
|
463
|
-
/** Kolom samping portal berita/media: tumpukan SidebarWidget, lengket saat digulir. */
|
|
464
|
-
declare function PortalSidebar({ sticky, className, children }: {
|
|
465
|
-
sticky?: boolean;
|
|
466
|
-
className?: string;
|
|
467
|
-
children: React.ReactNode;
|
|
468
|
-
}): React.JSX.Element;
|
|
469
|
-
|
|
470
124
|
interface NavbarLink {
|
|
471
125
|
key?: string;
|
|
472
126
|
label: React.ReactNode;
|
|
@@ -652,92 +306,6 @@ declare function UnipoAppLogo({ app, tagline, ...props }: {
|
|
|
652
306
|
app: UnipoApp;
|
|
653
307
|
} & Omit<AppLogoProps, 'glyph'>): React.JSX.Element;
|
|
654
308
|
|
|
655
|
-
interface FilterOption {
|
|
656
|
-
value: string;
|
|
657
|
-
label: React.ReactNode;
|
|
658
|
-
/** Teks untuk pencarian di dalam daftar (bila label bukan string). */
|
|
659
|
-
text?: string;
|
|
660
|
-
icon?: React.ReactNode;
|
|
661
|
-
/** Jumlah data dengan nilai ini (ditampilkan di kanan). */
|
|
662
|
-
count?: number;
|
|
663
|
-
}
|
|
664
|
-
type FilterField = {
|
|
665
|
-
key: string;
|
|
666
|
-
label: string;
|
|
667
|
-
type: 'select';
|
|
668
|
-
options: FilterOption[];
|
|
669
|
-
icon?: React.ReactNode;
|
|
670
|
-
searchable?: boolean;
|
|
671
|
-
} | {
|
|
672
|
-
key: string;
|
|
673
|
-
label: string;
|
|
674
|
-
type: 'multi';
|
|
675
|
-
options: FilterOption[];
|
|
676
|
-
icon?: React.ReactNode;
|
|
677
|
-
searchable?: boolean;
|
|
678
|
-
} | {
|
|
679
|
-
key: string;
|
|
680
|
-
label: string;
|
|
681
|
-
type: 'date-range';
|
|
682
|
-
icon?: React.ReactNode; /** Nama parameter query [awal, akhir]; bawaan `<key>_dari`, `<key>_sampai`. */
|
|
683
|
-
params?: [string, string];
|
|
684
|
-
} | {
|
|
685
|
-
key: string;
|
|
686
|
-
label: string;
|
|
687
|
-
type: 'boolean';
|
|
688
|
-
icon?: React.ReactNode;
|
|
689
|
-
} | {
|
|
690
|
-
key: string;
|
|
691
|
-
label: string;
|
|
692
|
-
type: 'custom';
|
|
693
|
-
icon?: React.ReactNode;
|
|
694
|
-
render: (value: unknown, set: (v: unknown) => void) => React.ReactNode;
|
|
695
|
-
format?: (value: unknown) => string;
|
|
696
|
-
};
|
|
697
|
-
type FilterValues = Record<string, unknown>;
|
|
698
|
-
interface DateRangeValue {
|
|
699
|
-
from?: string;
|
|
700
|
-
to?: string;
|
|
701
|
-
}
|
|
702
|
-
interface FacetFilterProps {
|
|
703
|
-
field: FilterField;
|
|
704
|
-
value: unknown;
|
|
705
|
-
onChange: (value: unknown) => void;
|
|
706
|
-
}
|
|
707
|
-
/** Tombol saringan pil ("+ Status", "Status: Aktif, Cuti") dengan daftar pilihan + jumlah, seperti tabel data modern. */
|
|
708
|
-
declare function FacetFilter({ field, value, onChange }: FacetFilterProps): React.JSX.Element;
|
|
709
|
-
interface FilterBarProps {
|
|
710
|
-
fields: FilterField[];
|
|
711
|
-
value: FilterValues;
|
|
712
|
-
onValueChange: (value: FilterValues) => void;
|
|
713
|
-
/** Kata kunci pencarian (disimpan di value[searchKey]). */
|
|
714
|
-
search?: {
|
|
715
|
-
placeholder?: string;
|
|
716
|
-
key?: string;
|
|
717
|
-
} | false;
|
|
718
|
-
/** Jumlah hasil, ditampilkan di kanan ("245 mahasiswa"). */
|
|
719
|
-
resultCount?: number;
|
|
720
|
-
resultLabel?: string;
|
|
721
|
-
/** Konten tambahan di kanan (tombol ekspor, ganti tampilan). */
|
|
722
|
-
actions?: React.ReactNode;
|
|
723
|
-
/** Tampilkan chip saringan aktif di baris bawah (bawaan: true). */
|
|
724
|
-
showChips?: boolean;
|
|
725
|
-
className?: string;
|
|
726
|
-
}
|
|
727
|
-
/**
|
|
728
|
-
* Bilah saringan responsif: kotak cari + tombol saringan pil di desktop, satu tombol "Saring" yang membuka panel di ponsel,
|
|
729
|
-
* dan chip saringan aktif yang bisa dihapus satu per satu.
|
|
730
|
-
*/
|
|
731
|
-
declare function FilterBar({ fields, value, onValueChange, search, resultCount, resultLabel, actions, showChips, className }: FilterBarProps): React.JSX.Element;
|
|
732
|
-
/** Simpan nilai saringan di URL (?status=A&prodi=55201) supaya bisa dibagikan dan bertahan saat dimuat ulang. */
|
|
733
|
-
declare function useFilterParams(initial?: FilterValues): [FilterValues, (v: FilterValues) => void];
|
|
734
|
-
/**
|
|
735
|
-
* Ubah nilai saringan menjadi parameter query SDK/REST:
|
|
736
|
-
* multi → "a,b", rentang tanggal → `<key>_dari` & `<key>_sampai` (atau `params` field), boolean → 1. Nilai kosong dibuang.
|
|
737
|
-
* siakad.arsip.getSuratMasuk({ ...filterToQuery(values, fields), page })
|
|
738
|
-
*/
|
|
739
|
-
declare function filterToQuery(values: FilterValues, fields?: FilterField[]): Record<string, string | number>;
|
|
740
|
-
|
|
741
309
|
interface DataColumn<T> {
|
|
742
310
|
/** Kunci unik; juga nama field bila `cell`/`value` tidak diisi, dan nilai `sort` yang dikirim ke server. */
|
|
743
311
|
key: string;
|
|
@@ -1042,4 +610,40 @@ interface HeroProps {
|
|
|
1042
610
|
/** Hero landing page kampus: tiga varian, angka singkat, dan pengumuman kecil. */
|
|
1043
611
|
declare function Hero({ eyebrow, title, description, actions, stats, media, image, variant, announcement, className }: HeroProps): React.JSX.Element;
|
|
1044
612
|
|
|
1045
|
-
|
|
613
|
+
interface ModePemeliharaanProps {
|
|
614
|
+
title?: React.ReactNode;
|
|
615
|
+
/** Penjelasan singkat apa yang sedang dikerjakan. */
|
|
616
|
+
message?: React.ReactNode;
|
|
617
|
+
/** Perkiraan selesai (ISO, Date). Ditampilkan sebagai jam dan hitung mundur. */
|
|
618
|
+
until?: Date | string | null;
|
|
619
|
+
/** Tombol coba lagi; dipanggil juga otomatis saat `until` lewat bila `autoRetry`. */
|
|
620
|
+
onRetry?: () => void | Promise<void>;
|
|
621
|
+
autoRetry?: boolean;
|
|
622
|
+
/** Logo aplikasi di atas. */
|
|
623
|
+
logo?: React.ReactNode;
|
|
624
|
+
/** Kontak/tautan status, mis. <a href="https://status.unipo.ac.id">Status layanan</a>. */
|
|
625
|
+
footer?: React.ReactNode;
|
|
626
|
+
/** Isi layar penuh (bawaan) atau kartu di dalam halaman. */
|
|
627
|
+
variant?: 'page' | 'inline';
|
|
628
|
+
className?: string;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Halaman pemeliharaan: aplikasi sedang diperbarui. Menampilkan perkiraan selesai, hitung mundur, dan tombol coba
|
|
632
|
+
* lagi. Pasang di depan aplikasi saat API membalas 503 (lihat GerbangPemeliharaan di unipo-ui/siakad).
|
|
633
|
+
*/
|
|
634
|
+
declare function ModePemeliharaan({ title, message, until, onRetry, autoRetry, logo, footer, variant, className }: ModePemeliharaanProps): React.JSX.Element;
|
|
635
|
+
interface BannerPemeliharaanProps {
|
|
636
|
+
/** Mulai pemeliharaan terjadwal. */
|
|
637
|
+
start: Date | string;
|
|
638
|
+
end?: Date | string | null;
|
|
639
|
+
message?: React.ReactNode;
|
|
640
|
+
/** Tampilkan mulai berapa jam sebelum `start` (bawaan 48). */
|
|
641
|
+
showHoursBefore?: number;
|
|
642
|
+
/** Bisa ditutup; ingat penutupan per jadwal di localStorage. */
|
|
643
|
+
dismissible?: boolean;
|
|
644
|
+
className?: string;
|
|
645
|
+
}
|
|
646
|
+
/** Spanduk pengumuman pemeliharaan terjadwal di atas aplikasi, hilang sendiri setelah jadwal selesai. */
|
|
647
|
+
declare function BannerPemeliharaan({ start, end, message, showHoursBefore, dismissible, className }: BannerPemeliharaanProps): React.JSX.Element | null;
|
|
648
|
+
|
|
649
|
+
export { OptionContent as $, APP_COLORS as A, Badge as B, type CalendarEvent as C, type DataColumn as D, EVENT_COLORS as E, Faq as F, type FaqItem as G, type FaqProps as H, Hero as I, type HeroProps as J, Kbd as K, type LogoTone as L, type MarkShape as M, ModePemeliharaan as N, type ModePemeliharaanProps as O, Navbar as P, type NavbarColumn as Q, type NavbarFeatured as R, type NavbarLink as S, type NavbarMenu as T, type NavbarProps as U, NewsCard as V, type NewsCardProps as W, NewsCardSkeleton as X, NewsGrid as Y, type NewsGridProps as Z, type NewsItem as _, APP_GLYPHS as a, RankedList as a0, Section as a1, type SectionProps as a2, Select as a3, type SelectOption as a4, type SelectProps as a5, Separator as a6, Skeleton as a7, type SortState as a8, Spinner as a9, Tag as aa, type TagProps as ab, type UnipoApp as ac, UnipoAppLogo as ad, UnipoMark as ae, type UnipoMarkProps as af, VisuallyHidden as ag, eventColor as ah, eventsByDay as ai, formatEventRange as aj, AgendaList as b, type AgendaListProps as c, type AnnouncementItem as d, AnnouncementList as e, AppLogo as f, type AppLogoProps as g, type BadgeProps as h, type BadgeVariant as i, BannerPemeliharaan as j, type BannerPemeliharaanProps as k, Button as l, ButtonGroup as m, type ButtonProps as n, type ButtonSize as o, type ButtonVariant as p, Combobox as q, type ComboboxProps as r, DataTable as s, type DataTableProps as t, DateTile as u, EventCalendar as v, type EventCalendarProps as w, EventCard as x, type EventCardItem as y, EventLegend as z };
|