unipo-ui 1.0.2 → 1.2.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/dist/{chunk-SVRTAYZW.cjs → chunk-DEF5CA7C.cjs} +22 -2
- package/dist/chunk-DEF5CA7C.cjs.map +1 -0
- package/dist/{chunk-2FW3QITF.js → chunk-SJ4DJOMZ.js} +21 -3
- package/dist/chunk-SJ4DJOMZ.js.map +1 -0
- package/dist/{content-f6eK74xx.d.cts → content-DaJPx5LX.d.cts} +6 -1
- package/dist/{content-f6eK74xx.d.ts → content-DaJPx5LX.d.ts} +6 -1
- package/dist/index.cjs +208 -175
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -2
- package/dist/index.d.ts +17 -2
- package/dist/index.js +31 -6
- package/dist/index.js.map +1 -1
- package/dist/registry.json +103 -9
- package/dist/scss/components/_display.scss +46 -0
- package/dist/scss/components/_layout.scss +20 -0
- package/dist/scss/components/_overlays.scss +14 -1
- package/dist/siakad.cjs +1195 -783
- package/dist/siakad.cjs.map +1 -1
- package/dist/siakad.d.cts +306 -4
- package/dist/siakad.d.ts +306 -4
- package/dist/siakad.js +426 -23
- package/dist/siakad.js.map +1 -1
- package/dist/ui-unipo.css +77 -1
- package/dist/ui-unipo.min.css +1 -1
- package/package.json +2 -2
- package/src/components/galat.tsx +33 -0
- package/src/components/layout.tsx +42 -4
- package/src/index.ts +1 -0
- package/src/siakad/akademik.tsx +2 -1
- package/src/siakad/aplikasi.tsx +4 -2
- package/src/siakad/berkas.tsx +203 -0
- package/src/siakad/dasbor.tsx +4 -2
- package/src/siakad/galat.tsx +48 -0
- package/src/siakad/index.ts +3 -0
- package/src/siakad/kalender.tsx +3 -1
- package/src/siakad/kelengkapan.tsx +3 -1
- package/src/siakad/kurikulum.tsx +2 -1
- package/src/siakad/lms.tsx +2 -1
- package/src/siakad/log.tsx +7 -3
- package/src/siakad/pilih.tsx +321 -0
- package/src/siakad/provider.tsx +12 -3
- package/dist/chunk-2FW3QITF.js.map +0 -1
- package/dist/chunk-SVRTAYZW.cjs.map +0 -1
|
@@ -1207,6 +1207,24 @@ function InlineCode({ children, copyable, className }) {
|
|
|
1207
1207
|
/* @__PURE__ */ jsx(CopyButton, { text: children })
|
|
1208
1208
|
] });
|
|
1209
1209
|
}
|
|
1210
|
+
function requestIdDari(e) {
|
|
1211
|
+
if (!e || typeof e !== "object") return null;
|
|
1212
|
+
const g = e;
|
|
1213
|
+
const id = g.requestId ?? g.request_id ?? g.details?.request_id ?? g.body?.request_id;
|
|
1214
|
+
if (typeof id === "string" && id) return id;
|
|
1215
|
+
return g.cause && g.cause !== e ? requestIdDari(g.cause) : null;
|
|
1216
|
+
}
|
|
1217
|
+
function KodeLaporan({ error, id, className }) {
|
|
1218
|
+
const kode = id ?? requestIdDari(error);
|
|
1219
|
+
if (!kode) return null;
|
|
1220
|
+
return /* @__PURE__ */ jsxs("span", { className: cn("u-kode-laporan", className), children: [
|
|
1221
|
+
/* @__PURE__ */ jsx("span", { children: "Kode laporan" }),
|
|
1222
|
+
/* @__PURE__ */ jsxs("span", { className: "u-kode-laporan-nilai", children: [
|
|
1223
|
+
/* @__PURE__ */ jsx("code", { children: kode }),
|
|
1224
|
+
/* @__PURE__ */ jsx(CopyButton, { text: kode, label: "Salin kode laporan" })
|
|
1225
|
+
] })
|
|
1226
|
+
] });
|
|
1227
|
+
}
|
|
1210
1228
|
function useScrolled(on, threshold = 8) {
|
|
1211
1229
|
const [s, setS] = React2.useState(false);
|
|
1212
1230
|
React2.useEffect(() => {
|
|
@@ -3452,6 +3470,6 @@ function ActivityFeed({ items, loading, empty = "Belum ada aktivitas.", classNam
|
|
|
3452
3470
|
] }, it.id)) });
|
|
3453
3471
|
}
|
|
3454
3472
|
|
|
3455
|
-
export { APP_COLORS, APP_GLYPHS, Accordion, ActionList, ActivityFeed, AgendaList, Alert, AnnouncementList, AppLogo, Avatar, AvatarGroup, Badge, BarChart, BarList, Breadcrumb, BudgetMeter, Button, ButtonGroup, CHART_COLORS, Calendar, Card, CardContent, CardFooter, CardHeader, CellPrimary, Checkbox, CheckboxGroup, Choice, ChoiceCard, CodeBlock, Collapsible, CollapsiblePanel, CollapsibleTrigger, Combobox, ConfirmDialog, CopyButton, CycleSteps, DashboardGrid, DataTable, DatePicker, DateTile, DescriptionList, Dialog, DialogClose, DonutChart, Dropzone, EVENT_COLORS, Empty, EventCalendar, EventCard, EventLegend, FacetFilter, Faq, Field, FieldControl, FieldDescription, FieldError, Fieldset, FileList, FilterBar, FormGrid, Funnel, GroupedBarChart, Hero, InlineCode, Input, InputGroup, Kbd, Label, LatencyIndicator, LineChart, Menu, Navbar, NewsCard, NewsCardSkeleton, NewsGrid, NumberField, OptionContent, OtpField, Pagination, Panel2 as Panel, Popover, Progress, ProgressRing, Radio, RadioGroup, RankedList, ScrollArea, Section, SegmentBar, SegmentedControl, Select, Separator, ServiceList, ServiceStatusBadge, ServiceStatusPanel, Sheet, Skeleton, Slider, SortButton, Sparkline, Spinner, StatCard, StatGrid, StatusBanner, Stepper, Switch, Table, TableContainer, Tabs, Tag, Textarea, Toaster, Toggle, ToggleGroup, Tooltip, TooltipProvider, UnipoAppLogo, UnipoMark, UptimeBar, VisuallyHidden, Wizard, WizardReview, chartColor, cn, dataFlag, eventColor, eventsByDay, filterToQuery, formatBytes, formatCompact, formatDate, formatEventRange, formatNumber, formatPersen, formatRelative, formatRupiah, formatRupiahRingkas, formatTime, hueFromString, initials, monthMatrix, overallStatus, parseISODate, toISODate, tokenize, useCopy, useFilterParams, useServiceChecks, useToast };
|
|
3456
|
-
//# sourceMappingURL=chunk-
|
|
3457
|
-
//# sourceMappingURL=chunk-
|
|
3473
|
+
export { APP_COLORS, APP_GLYPHS, Accordion, ActionList, ActivityFeed, AgendaList, Alert, AnnouncementList, AppLogo, Avatar, AvatarGroup, Badge, BarChart, BarList, Breadcrumb, BudgetMeter, Button, ButtonGroup, CHART_COLORS, Calendar, Card, CardContent, CardFooter, CardHeader, CellPrimary, Checkbox, CheckboxGroup, Choice, ChoiceCard, CodeBlock, Collapsible, CollapsiblePanel, CollapsibleTrigger, Combobox, ConfirmDialog, CopyButton, CycleSteps, DashboardGrid, DataTable, DatePicker, DateTile, DescriptionList, Dialog, DialogClose, DonutChart, Dropzone, EVENT_COLORS, Empty, EventCalendar, EventCard, EventLegend, FacetFilter, Faq, Field, FieldControl, FieldDescription, FieldError, Fieldset, FileList, FilterBar, FormGrid, Funnel, GroupedBarChart, Hero, InlineCode, Input, InputGroup, Kbd, KodeLaporan, Label, LatencyIndicator, LineChart, Menu, Navbar, NewsCard, NewsCardSkeleton, NewsGrid, NumberField, OptionContent, OtpField, Pagination, Panel2 as Panel, Popover, Progress, ProgressRing, Radio, RadioGroup, RankedList, ScrollArea, Section, SegmentBar, SegmentedControl, Select, Separator, ServiceList, ServiceStatusBadge, ServiceStatusPanel, Sheet, Skeleton, Slider, SortButton, Sparkline, Spinner, StatCard, StatGrid, StatusBanner, Stepper, Switch, Table, TableContainer, Tabs, Tag, Textarea, Toaster, Toggle, ToggleGroup, Tooltip, TooltipProvider, UnipoAppLogo, UnipoMark, UptimeBar, VisuallyHidden, Wizard, WizardReview, chartColor, cn, dataFlag, eventColor, eventsByDay, filterToQuery, formatBytes, formatCompact, formatDate, formatEventRange, formatNumber, formatPersen, formatRelative, formatRupiah, formatRupiahRingkas, formatTime, hueFromString, initials, monthMatrix, overallStatus, parseISODate, requestIdDari, toISODate, tokenize, useCopy, useFilterParams, useServiceChecks, useToast };
|
|
3474
|
+
//# sourceMappingURL=chunk-SJ4DJOMZ.js.map
|
|
3475
|
+
//# sourceMappingURL=chunk-SJ4DJOMZ.js.map
|