@deweb.id/ui-kit 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +90 -2
- package/css/ui-kit.css +901 -0
- package/dist/chunk-028rzptn.js +253 -0
- package/dist/chunk-028rzptn.js.map +10 -0
- package/dist/chunk-0x0et52k.js +82 -0
- package/dist/chunk-0x0et52k.js.map +10 -0
- package/dist/chunk-17gmkyd1.js +195 -0
- package/dist/chunk-17gmkyd1.js.map +10 -0
- package/dist/chunk-19jsevr8.js +17 -0
- package/dist/chunk-19jsevr8.js.map +10 -0
- package/dist/chunk-1t1fbbme.js +171 -0
- package/dist/chunk-1t1fbbme.js.map +10 -0
- package/dist/chunk-26ban96z.js +151 -0
- package/dist/chunk-26ban96z.js.map +10 -0
- package/dist/chunk-39hey5ns.js +2034 -0
- package/dist/chunk-39hey5ns.js.map +19 -0
- package/dist/chunk-3f0bjycv.js +481 -0
- package/dist/chunk-3f0bjycv.js.map +10 -0
- package/dist/chunk-3zpf64v4.js +108 -0
- package/dist/chunk-3zpf64v4.js.map +10 -0
- package/dist/chunk-4jrq15v9.js +919 -0
- package/dist/chunk-4jrq15v9.js.map +10 -0
- package/dist/chunk-8dacesjp.js +289 -0
- package/dist/chunk-8dacesjp.js.map +10 -0
- package/dist/chunk-8een770x.js +2546 -0
- package/dist/chunk-8een770x.js.map +29 -0
- package/dist/chunk-8jv2g2ne.js +371 -0
- package/dist/chunk-8jv2g2ne.js.map +10 -0
- package/dist/chunk-abdqb4e5.js +156 -0
- package/dist/chunk-abdqb4e5.js.map +10 -0
- package/dist/chunk-af27xdf2.js +891 -0
- package/dist/chunk-af27xdf2.js.map +11 -0
- package/dist/chunk-amsyqyh9.js +23 -0
- package/dist/chunk-amsyqyh9.js.map +9 -0
- package/dist/chunk-czbcw9e1.js +503 -0
- package/dist/chunk-czbcw9e1.js.map +11 -0
- package/dist/chunk-dar8mz91.js +73 -0
- package/dist/chunk-dar8mz91.js.map +10 -0
- package/dist/chunk-dsddmmdk.js +136 -0
- package/dist/chunk-dsddmmdk.js.map +10 -0
- package/dist/chunk-edx7tas6.js +89 -0
- package/dist/chunk-edx7tas6.js.map +10 -0
- package/dist/chunk-es4tgmvr.js +1686 -0
- package/dist/chunk-es4tgmvr.js.map +12 -0
- package/dist/chunk-f2aqj672.js +240 -0
- package/dist/chunk-f2aqj672.js.map +11 -0
- package/dist/chunk-h6k57hyd.js +146 -0
- package/dist/chunk-h6k57hyd.js.map +10 -0
- package/dist/chunk-hkx78qgj.js +1548 -0
- package/dist/chunk-hkx78qgj.js.map +12 -0
- package/dist/chunk-hq57r97c.js +770 -0
- package/dist/chunk-hq57r97c.js.map +11 -0
- package/dist/chunk-jct2e2h1.js +139 -0
- package/dist/chunk-jct2e2h1.js.map +10 -0
- package/dist/chunk-je0j5sn4.js +246 -0
- package/dist/chunk-je0j5sn4.js.map +10 -0
- package/dist/chunk-k2b698v5.js +754 -0
- package/dist/chunk-k2b698v5.js.map +12 -0
- package/dist/chunk-kv58555q.js +267 -0
- package/dist/chunk-kv58555q.js.map +11 -0
- package/dist/chunk-m0msvrte.js +15 -0
- package/dist/chunk-m0msvrte.js.map +10 -0
- package/dist/chunk-m3t14v77.js +30 -0
- package/dist/chunk-m3t14v77.js.map +10 -0
- package/dist/chunk-mctp30cp.js +1466 -0
- package/dist/chunk-mctp30cp.js.map +10 -0
- package/dist/chunk-n37qb5m5.js +1408 -0
- package/dist/chunk-n37qb5m5.js.map +10 -0
- package/dist/chunk-nhhgsdt3.js +570 -0
- package/dist/chunk-nhhgsdt3.js.map +11 -0
- package/dist/chunk-pxydj130.js +28 -0
- package/dist/chunk-pxydj130.js.map +10 -0
- package/dist/chunk-qmbwp4k7.js +3275 -0
- package/dist/chunk-qmbwp4k7.js.map +13 -0
- package/dist/chunk-qzxf0aa2.js +149 -0
- package/dist/chunk-qzxf0aa2.js.map +10 -0
- package/dist/chunk-rbjyp9ff.js +47 -0
- package/dist/chunk-rbjyp9ff.js.map +10 -0
- package/dist/chunk-rbkc50xg.js +103 -0
- package/dist/chunk-rbkc50xg.js.map +10 -0
- package/dist/chunk-rn6f0s6x.js +66 -0
- package/dist/chunk-rn6f0s6x.js.map +9 -0
- package/dist/chunk-rswzbfa2.js +422 -0
- package/dist/chunk-rswzbfa2.js.map +10 -0
- package/dist/chunk-rzns0reg.js +157 -0
- package/dist/chunk-rzns0reg.js.map +10 -0
- package/dist/chunk-s851vtje.js +90 -0
- package/dist/chunk-s851vtje.js.map +10 -0
- package/dist/chunk-vak164kx.js +15 -0
- package/dist/chunk-vak164kx.js.map +9 -0
- package/dist/chunk-vpvnvegz.js +480 -0
- package/dist/chunk-vpvnvegz.js.map +10 -0
- package/dist/chunk-x4pk7vxm.js +10 -0
- package/dist/chunk-x4pk7vxm.js.map +10 -0
- package/dist/chunk-xd2fwgek.js +53 -0
- package/dist/chunk-xd2fwgek.js.map +10 -0
- package/dist/chunk-y71rd8qf.js +499 -0
- package/dist/chunk-y71rd8qf.js.map +10 -0
- package/dist/chunk-zjmt193s.js +34 -0
- package/dist/chunk-zjmt193s.js.map +9 -0
- package/dist/components/blocks/CustomHtmlBlock.d.ts +14 -0
- package/dist/components/blocks/LoginFormBlock.d.ts +16 -0
- package/dist/components/blocks/SidebarMenuBlock.d.ts +11 -0
- package/dist/components/blocks/SliderBlock.d.ts +13 -0
- package/dist/components/code/code-editor.d.ts +58 -0
- package/dist/components/code/code-preview.d.ts +18 -0
- package/dist/components/code/index.d.ts +4 -0
- package/dist/components/code/validator.d.ts +10 -0
- package/dist/components/code/vsc-themes.d.ts +6 -0
- package/dist/components/dashboard/compound/context.d.ts +14 -0
- package/dist/components/dashboard/compound/dashboard.d.ts +14 -0
- package/dist/components/dashboard/compound/index.d.ts +18 -0
- package/dist/components/dashboard/compound/main.d.ts +25 -0
- package/dist/components/dashboard/compound/sidebar.d.ts +5 -0
- package/dist/components/dashboard/dashboard-head-info.d.ts +38 -0
- package/dist/components/dashboard/dashboard-head.d.ts +19 -0
- package/dist/components/dashboard/dataview.d.ts +19 -0
- package/dist/components/dashboard/detailview.d.ts +1 -0
- package/dist/components/dashboard/formview.d.ts +265 -0
- package/dist/components/dashboard/pageformview.d.ts +79 -0
- package/dist/components/dashboard/styling/background-color-control.d.ts +34 -0
- package/dist/components/dashboard/styling/background-control.d.ts +45 -0
- package/dist/components/dashboard/styling/border-control.d.ts +14 -0
- package/dist/components/dashboard/styling/color-control.d.ts +22 -0
- package/dist/components/dashboard/styling/index.d.ts +7 -0
- package/dist/components/dashboard/styling/radius-control.d.ts +15 -0
- package/dist/components/dashboard/styling/spacing-control.d.ts +17 -0
- package/dist/components/dashboard/styling/types.d.ts +50 -0
- package/dist/components/document/index.d.ts +25 -0
- package/dist/components/ecommerce/commerce-cards.d.ts +37 -0
- package/dist/components/effect/action-animation.d.ts +14 -0
- package/dist/components/effect/element-animation.d.ts +41 -0
- package/dist/components/effect/page-transition.d.ts +10 -0
- package/dist/components/layout/BlockPalette.d.ts +14 -0
- package/dist/components/layout/DynamicLayout.d.ts +56 -0
- package/dist/components/layout/GridRow.d.ts +37 -0
- package/dist/components/layout/LayoutBuilder.d.ts +52 -0
- package/dist/components/layout/WidgetFieldsForm.d.ts +15 -0
- package/dist/components/ui/accordion.d.ts +36 -0
- package/dist/components/ui/action-bar.d.ts +46 -0
- package/dist/components/ui/alert.d.ts +25 -0
- package/dist/components/ui/animated.d.ts +41 -0
- package/dist/components/ui/app-shell.d.ts +53 -0
- package/dist/components/ui/avatar.d.ts +18 -0
- package/dist/components/ui/badge.d.ts +15 -0
- package/dist/components/ui/breadcrumb.d.ts +20 -0
- package/dist/components/ui/button-icon.d.ts +9 -0
- package/dist/components/ui/button.d.ts +37 -0
- package/dist/components/ui/calendar.d.ts +14 -0
- package/dist/components/ui/card-skeleton-aware.d.ts +2 -0
- package/dist/components/ui/card.d.ts +36 -0
- package/dist/components/ui/chart.d.ts +75 -0
- package/dist/components/ui/chat-bubble.d.ts +74 -0
- package/dist/components/ui/code.d.ts +85 -0
- package/dist/components/ui/code.js +21 -0
- package/dist/components/ui/code.js.map +9 -0
- package/dist/components/ui/collapsible.d.ts +25 -0
- package/dist/components/ui/control-group.d.ts +39 -0
- package/dist/components/ui/dashboard-grid/DashboardDropSlot.d.ts +10 -0
- package/dist/components/ui/dashboard-grid/DashboardGrid.d.ts +5 -0
- package/dist/components/ui/dashboard-grid/DashboardWidgetCard.d.ts +43 -0
- package/dist/components/ui/dashboard-grid/useDashboardDnd.d.ts +36 -0
- package/dist/components/ui/data-empty.d.ts +24 -0
- package/dist/components/ui/data-list.d.ts +16 -0
- package/dist/components/ui/data-table.d.ts +48 -0
- package/dist/components/ui/data-view/DataView.d.ts +46 -0
- package/dist/components/ui/data-view/DataViewCalendar.d.ts +18 -0
- package/dist/components/ui/data-view/DataViewContent.d.ts +5 -0
- package/dist/components/ui/data-view/DataViewFilter.d.ts +8 -0
- package/dist/components/ui/data-view/DataViewGrid.d.ts +32 -0
- package/dist/components/ui/data-view/DataViewHeader.d.ts +22 -0
- package/dist/components/ui/data-view/DataViewKanban.d.ts +16 -0
- package/dist/components/ui/data-view/DataViewPivot.d.ts +15 -0
- package/dist/components/ui/data-view/DataViewTable.d.ts +33 -0
- package/dist/components/ui/data-view/index.d.ts +9 -0
- package/dist/components/ui/date-time-picker.d.ts +205 -0
- package/dist/components/ui/drawer.d.ts +71 -0
- package/dist/components/ui/dropdown-animation.d.ts +7 -0
- package/dist/components/ui/dropdown.d.ts +71 -0
- package/dist/components/ui/error-state.d.ts +15 -0
- package/dist/components/ui/filter-bar.d.ts +50 -0
- package/dist/components/ui/filter-bar.js +19 -0
- package/dist/components/ui/filter-bar.js.map +9 -0
- package/dist/components/ui/font.d.ts +24 -0
- package/dist/components/ui/form-advanced.d.ts +198 -0
- package/dist/components/ui/form-compound.d.ts +58 -0
- package/dist/components/ui/form-context.d.ts +19 -0
- package/dist/components/ui/form.d.ts +451 -0
- package/dist/components/ui/format-currency.d.ts +10 -0
- package/dist/components/ui/format-date.d.ts +28 -0
- package/dist/components/ui/format-number.d.ts +22 -0
- package/dist/components/ui/format-time.d.ts +5 -0
- package/dist/components/ui/grid.d.ts +30 -0
- package/dist/components/ui/heading.d.ts +9 -0
- package/dist/components/ui/indicator.d.ts +17 -0
- package/dist/components/ui/initial-icon.d.ts +11 -0
- package/dist/components/ui/input-code.d.ts +27 -0
- package/dist/components/ui/input-grid.d.ts +54 -0
- package/dist/components/ui/input.d.ts +37 -0
- package/dist/components/ui/invoice-blocks.d.ts +124 -0
- package/dist/components/ui/invoice-document.d.ts +63 -0
- package/dist/components/ui/kanban.d.ts +16 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/lazy-load.d.ts +13 -0
- package/dist/components/ui/lightbox.d.ts +15 -0
- package/dist/components/ui/list.d.ts +33 -0
- package/dist/components/ui/loading.d.ts +79 -0
- package/dist/components/ui/media-card.d.ts +50 -0
- package/dist/components/ui/media-player.d.ts +47 -0
- package/dist/components/ui/menu.d.ts +24 -0
- package/dist/components/ui/modal.d.ts +233 -0
- package/dist/components/ui/page.d.ts +51 -0
- package/dist/components/ui/pagination.d.ts +16 -0
- package/dist/components/ui/print.d.ts +173 -0
- package/dist/components/ui/project-card.d.ts +43 -0
- package/dist/components/ui/radius-control.d.ts +36 -0
- package/dist/components/ui/rich-text-editor.d.ts +32 -0
- package/dist/components/ui/select-card.d.ts +56 -0
- package/dist/components/ui/sidebar-logo.d.ts +11 -0
- package/dist/components/ui/sidebar-menu.d.ts +82 -0
- package/dist/components/ui/sidebar-search.d.ts +7 -0
- package/dist/components/ui/skeletons.d.ts +46 -0
- package/dist/components/ui/surface.d.ts +13 -0
- package/dist/components/ui/table-pivot.d.ts +10 -0
- package/dist/components/ui/table.d.ts +258 -0
- package/dist/components/ui/tabs.d.ts +79 -0
- package/dist/components/ui/task-board.d.ts +29 -0
- package/dist/components/ui/terminal.d.ts +51 -0
- package/dist/components/ui/text-sensor.d.ts +9 -0
- package/dist/components/ui/theme-styler.d.ts +3 -0
- package/dist/components/ui/theme-toggle.d.ts +23 -0
- package/dist/components/ui/tooltip.d.ts +11 -0
- package/dist/components/website/account-banner.d.ts +11 -0
- package/dist/components/website/account-layout.d.ts +20 -0
- package/dist/components/website/account.d.ts +46 -0
- package/dist/components/website/ambient.d.ts +19 -0
- package/dist/components/website/auth.d.ts +35 -0
- package/dist/components/website/blog/blog-list-custom.d.ts +3 -0
- package/dist/components/website/blog/blog-list-gallery.d.ts +2 -0
- package/dist/components/website/blog/blog-list-grid.d.ts +2 -0
- package/dist/components/website/blog/blog-list-list.d.ts +2 -0
- package/dist/components/website/blog.d.ts +50 -0
- package/dist/components/website/carousel.d.ts +58 -0
- package/dist/components/website/cart.d.ts +31 -0
- package/dist/components/website/catalogue-view.d.ts +81 -0
- package/dist/components/website/catalogue.d.ts +96 -0
- package/dist/components/website/comment.d.ts +52 -0
- package/dist/components/website/eclipse.d.ts +15 -0
- package/dist/components/website/feature-grid.d.ts +58 -0
- package/dist/components/website/filter.d.ts +109 -0
- package/dist/components/website/hero.d.ts +89 -0
- package/dist/components/website/localize.d.ts +36 -0
- package/dist/components/website/logo.d.ts +24 -0
- package/dist/components/website/megamenu.d.ts +10 -0
- package/dist/components/website/navbar.d.ts +42 -0
- package/dist/components/website/notification.d.ts +58 -0
- package/dist/components/website/price.d.ts +26 -0
- package/dist/components/website/pricing.d.ts +21 -0
- package/dist/components/website/product.d.ts +32 -0
- package/dist/components/website/rating.d.ts +36 -0
- package/dist/components/website/review-form.d.ts +54 -0
- package/dist/components/website/reviews.d.ts +119 -0
- package/dist/components/website/search.d.ts +30 -0
- package/dist/entries/accordion.d.ts +1 -0
- package/dist/entries/accordion.js +9 -0
- package/dist/entries/accordion.js.map +9 -0
- package/dist/entries/alert.d.ts +1 -0
- package/dist/entries/alert.js +10 -0
- package/dist/entries/alert.js.map +9 -0
- package/dist/entries/badge.d.ts +1 -0
- package/dist/entries/badge.js +11 -0
- package/dist/entries/badge.js.map +9 -0
- package/dist/entries/breadcrumb.d.ts +1 -0
- package/dist/entries/breadcrumb.js +10 -0
- package/dist/entries/breadcrumb.js.map +9 -0
- package/dist/entries/button.d.ts +1 -0
- package/dist/entries/button.js +12 -0
- package/dist/entries/button.js.map +9 -0
- package/dist/entries/card.d.ts +1 -0
- package/dist/entries/card.js +25 -0
- package/dist/entries/card.js.map +9 -0
- package/dist/entries/chart.d.ts +1 -0
- package/dist/entries/chart.js +130 -0
- package/dist/entries/chart.js.map +10 -0
- package/dist/entries/components.d.ts +53 -0
- package/dist/entries/components.js +643 -0
- package/dist/entries/components.js.map +9 -0
- package/dist/entries/dashboard/dataview.d.ts +1 -0
- package/dist/entries/dashboard/dataview.js +82 -0
- package/dist/entries/dashboard/dataview.js.map +10 -0
- package/dist/entries/dashboard/pageformview.d.ts +1 -0
- package/dist/entries/dashboard/pageformview.js +34 -0
- package/dist/entries/dashboard/pageformview.js.map +9 -0
- package/dist/entries/data-table.d.ts +1 -0
- package/dist/entries/data-table.js +22 -0
- package/dist/entries/data-table.js.map +9 -0
- package/dist/entries/date-time-picker.d.ts +1 -0
- package/dist/entries/date-time-picker.js +28 -0
- package/dist/entries/date-time-picker.js.map +9 -0
- package/dist/entries/document.d.ts +1 -0
- package/dist/entries/document.js +69 -0
- package/dist/entries/document.js.map +10 -0
- package/dist/entries/drawer.d.ts +1 -0
- package/dist/entries/drawer.js +20 -0
- package/dist/entries/drawer.js.map +9 -0
- package/dist/entries/dropdown.d.ts +1 -0
- package/dist/entries/dropdown.js +29 -0
- package/dist/entries/dropdown.js.map +9 -0
- package/dist/entries/error-state.d.ts +1 -0
- package/dist/entries/error-state.js +14 -0
- package/dist/entries/error-state.js.map +9 -0
- package/dist/entries/favorite-button.d.ts +1 -0
- package/dist/entries/favorite-button.js +7 -0
- package/dist/entries/favorite-button.js.map +10 -0
- package/dist/entries/font.d.ts +1 -0
- package/dist/entries/font.js +10 -0
- package/dist/entries/font.js.map +9 -0
- package/dist/entries/form-advanced.d.ts +1 -0
- package/dist/entries/form-advanced.js +39 -0
- package/dist/entries/form-advanced.js.map +9 -0
- package/dist/entries/form.d.ts +1 -0
- package/dist/entries/form.js +74 -0
- package/dist/entries/form.js.map +9 -0
- package/dist/entries/heading.d.ts +1 -0
- package/dist/entries/heading.js +8 -0
- package/dist/entries/heading.js.map +9 -0
- package/dist/entries/input.d.ts +1 -0
- package/dist/entries/input.js +11 -0
- package/dist/entries/input.js.map +9 -0
- package/dist/entries/layout.d.ts +4 -0
- package/dist/entries/layout.js +101 -0
- package/dist/entries/layout.js.map +9 -0
- package/dist/entries/lazy-load.d.ts +1 -0
- package/dist/entries/lazy-load.js +9 -0
- package/dist/entries/lazy-load.js.map +9 -0
- package/dist/entries/list.d.ts +1 -0
- package/dist/entries/list.js +13 -0
- package/dist/entries/list.js.map +9 -0
- package/dist/entries/loading.d.ts +1 -0
- package/dist/entries/loading.js +18 -0
- package/dist/entries/loading.js.map +9 -0
- package/dist/entries/menu.d.ts +1 -0
- package/dist/entries/menu.js +17 -0
- package/dist/entries/menu.js.map +9 -0
- package/dist/entries/modal.d.ts +1 -0
- package/dist/entries/modal.js +33 -0
- package/dist/entries/modal.js.map +9 -0
- package/dist/entries/product.d.ts +2 -0
- package/dist/entries/product.js +10 -0
- package/dist/entries/product.js.map +9 -0
- package/dist/entries/select-card.d.ts +1 -0
- package/dist/entries/select-card.js +13 -0
- package/dist/entries/select-card.js.map +9 -0
- package/dist/entries/skeletons.d.ts +1 -0
- package/dist/entries/skeletons.js +35 -0
- package/dist/entries/skeletons.js.map +9 -0
- package/dist/entries/surface.d.ts +1 -0
- package/dist/entries/surface.js +10 -0
- package/dist/entries/surface.js.map +9 -0
- package/dist/entries/table.d.ts +1 -0
- package/dist/entries/table.js +65 -0
- package/dist/entries/table.js.map +9 -0
- package/dist/entries/tabs.d.ts +1 -0
- package/dist/entries/tabs.js +20 -0
- package/dist/entries/tabs.js.map +9 -0
- package/dist/entries/theme-styler.d.ts +1 -0
- package/dist/entries/theme-styler.js +26 -0
- package/dist/entries/theme-styler.js.map +9 -0
- package/dist/entries/toast.d.ts +1 -0
- package/dist/entries/toast.js +13 -0
- package/dist/entries/toast.js.map +9 -0
- package/dist/index.d.ts +163 -0
- package/dist/index.js +19864 -0
- package/dist/index.js.map +92 -0
- package/dist/lib/color/className.d.ts +14 -0
- package/dist/lib/color/config.d.ts +82 -0
- package/dist/lib/color/engine.d.ts +221 -0
- package/dist/lib/color/generator.d.ts +45 -0
- package/dist/lib/color/index.d.ts +5 -0
- package/dist/lib/color/safelist.d.ts +1 -0
- package/dist/lib/color/types.d.ts +12 -0
- package/dist/lib/font/config.d.ts +13 -0
- package/dist/lib/font/engine.d.ts +77 -0
- package/dist/lib/font/index.d.ts +3 -0
- package/dist/lib/font/types.d.ts +27 -0
- package/dist/lib/icon/config.d.ts +37 -0
- package/dist/lib/icon/engine.d.ts +84 -0
- package/dist/lib/icon/index.d.ts +3 -0
- package/dist/lib/icon/presets.d.ts +71 -0
- package/dist/lib/layout/config.d.ts +7 -0
- package/dist/lib/layout/engine.d.ts +224 -0
- package/dist/lib/layout/types.d.ts +151 -0
- package/dist/lib/layout/useActiveBreakpoint.d.ts +14 -0
- package/dist/lib/layout/useBlockDrag.d.ts +47 -0
- package/dist/lib/layout/useSectionDrag.d.ts +30 -0
- package/dist/lib/layout/useSpanResize.d.ts +31 -0
- package/dist/lib/localize/data.d.ts +9 -0
- package/dist/lib/product-utils.d.ts +7 -0
- package/dist/lib/sanitize/sanitizeHtml.d.ts +52 -0
- package/dist/lib/theme/motion.d.ts +27 -0
- package/dist/lib/theme/motion.js +12 -0
- package/dist/lib/theme/motion.js.map +9 -0
- package/dist/lib/theme/types.d.ts +133 -0
- package/dist/lib/useUndoRedo.d.ts +21 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/types/product.d.ts +27 -0
- package/package.json +442 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DewebRadius } from '../../lib/theme/types';
|
|
3
|
+
export interface ControlGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Ukuran ketinggian baris (diselaraskan 1:1 dengan Button dan Input UI Kit) */
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'auto';
|
|
6
|
+
/** Kelengkungan sudut (default: 'md') */
|
|
7
|
+
radius?: DewebRadius;
|
|
8
|
+
/** Varian visual tampilan:
|
|
9
|
+
* - 'default': Background warna input (inverse/recessed) dengan border input halus (gaya SelectGroup)
|
|
10
|
+
* - 'card': Background card solid dengan border standar
|
|
11
|
+
* - 'soft': Background muted halus
|
|
12
|
+
* - 'ghost': Transparan tanpa garis tepi
|
|
13
|
+
*/
|
|
14
|
+
variant?: 'default' | 'card' | 'soft' | 'ghost';
|
|
15
|
+
/** Lebar kontainer: 'auto' | 'full' | 'fit' (default: 'fit' atau mengikuti fullWidth) */
|
|
16
|
+
width?: 'auto' | 'full' | 'fit';
|
|
17
|
+
/** Lebar penuh 100% kontainer (shorthand untuk width="full") */
|
|
18
|
+
fullWidth?: boolean;
|
|
19
|
+
/** Mode tata letak:
|
|
20
|
+
* - 'flex': Standar flexbox (inline-flex atau flex)
|
|
21
|
+
* - 'between': Split sisi kanan & kiri secara otomatis (w-full justify-between)
|
|
22
|
+
* - 'grid': Tata letak grid (dapat diatur kolomnya via prop `cols`)
|
|
23
|
+
*/
|
|
24
|
+
layout?: 'flex' | 'between' | 'grid';
|
|
25
|
+
/** Jumlah kolom jika layout="grid" (default: 2) */
|
|
26
|
+
cols?: 1 | 2 | 3 | 4 | 5 | 6 | 12;
|
|
27
|
+
/** Perataan konten di dalam group (pada mode flex) */
|
|
28
|
+
justify?: 'start' | 'center' | 'between' | 'end';
|
|
29
|
+
/** Jarak antar elemen di dalam group */
|
|
30
|
+
gap?: 'none' | 'xs' | 'sm' | 'md' | 'lg';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* ControlGroup — Kontainer wrapper mini serbaguna (Inline Box / Recessed Bar)
|
|
34
|
+
*
|
|
35
|
+
* Didesain khusus dengan latar belakang `var(--color-input)` (inverse dari Card)
|
|
36
|
+
* dengan standar ukuran yang presisi seragam dengan Input, Button, dan SelectGroup.
|
|
37
|
+
* Cocok digunakan sebagai wadah Breadcrumb, Action Button mini, View Switcher, dsb.
|
|
38
|
+
*/
|
|
39
|
+
export declare const ControlGroup: React.ForwardRefExoticComponent<ControlGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColSpan } from './useDashboardDnd';
|
|
2
|
+
/**
|
|
3
|
+
* Placeholder dashed "Lepas di sini" -- persis Design/CMS Dashboard.dc.html
|
|
4
|
+
* baris ~359-363 (data-drop-slot, repeating-linear-gradient background).
|
|
5
|
+
*/
|
|
6
|
+
export declare function DashboardDropSlot({ span, height, label }: {
|
|
7
|
+
span: ColSpan;
|
|
8
|
+
height: number;
|
|
9
|
+
label: string;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DashboardGridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const DashboardGrid: React.ForwardRefExoticComponent<DashboardGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ColSpan } from './useDashboardDnd';
|
|
3
|
+
/**
|
|
4
|
+
* Widget card -- port style computation persis dari Design/CMS Dashboard.dc.html
|
|
5
|
+
* baris ~2593-2634 (posMode/floatLeft/floatTop/dragTransform/dragShadow/
|
|
6
|
+
* wrapperTransition/bounceAnimation). State drag/resize datang dari
|
|
7
|
+
* useDashboardDnd (raw pointer tracking, BUKAN dnd-kit).
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* React.memo -- widget yang TIDAK sedang di-drag/resize props-nya tidak
|
|
11
|
+
* berubah tiap mousemove (isDragging/isResizing/dragPos/resizeInfo semua
|
|
12
|
+
* tetap false/null untuknya), jadi memo mencegah widget lain ikut re-render
|
|
13
|
+
* ratusan kali/detik selama drag berlangsung (perf fix bareng dengan fix
|
|
14
|
+
* listener re-subscription di useDashboardDnd.ts, sama-sama penyebab macet).
|
|
15
|
+
*/
|
|
16
|
+
export declare const DashboardWidgetCard: React.MemoExoticComponent<({ id, label, colSpan, isDragging, isResizing, isDropping, isJustDropped, dragPos, resizeInfo, onDragStart, onResizeStart, onRemove, children, }: {
|
|
17
|
+
id: string;
|
|
18
|
+
label: string;
|
|
19
|
+
colSpan: ColSpan;
|
|
20
|
+
isDragging: boolean;
|
|
21
|
+
isResizing: boolean;
|
|
22
|
+
isDropping: boolean;
|
|
23
|
+
isJustDropped: boolean;
|
|
24
|
+
dragPos: {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
offsetX: number;
|
|
30
|
+
offsetY: number;
|
|
31
|
+
} | null;
|
|
32
|
+
resizeInfo: {
|
|
33
|
+
liveWidth: number;
|
|
34
|
+
height: number;
|
|
35
|
+
left: number;
|
|
36
|
+
top: number;
|
|
37
|
+
estSpan: ColSpan;
|
|
38
|
+
} | null;
|
|
39
|
+
onDragStart: (e: React.PointerEvent) => void;
|
|
40
|
+
onResizeStart: (e: React.PointerEvent) => void;
|
|
41
|
+
onRemove: () => void;
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
}) => React.JSX.Element>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type ColSpan = 1 | 2 | 4 | number;
|
|
3
|
+
export interface DashboardGridItem {
|
|
4
|
+
id: string;
|
|
5
|
+
colSpan: ColSpan;
|
|
6
|
+
}
|
|
7
|
+
interface DragState {
|
|
8
|
+
draggingId: string | null;
|
|
9
|
+
dragOffsetX: number;
|
|
10
|
+
dragOffsetY: number;
|
|
11
|
+
dragX: number;
|
|
12
|
+
dragY: number;
|
|
13
|
+
dragWidth: number;
|
|
14
|
+
dragHeight: number;
|
|
15
|
+
dropping: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface ResizeState {
|
|
18
|
+
resizingId: string | null;
|
|
19
|
+
resizeStartX: number;
|
|
20
|
+
resizeStartSpan: ColSpan;
|
|
21
|
+
resizeStartWidth: number;
|
|
22
|
+
resizeStartLeft: number;
|
|
23
|
+
resizeStartTop: number;
|
|
24
|
+
resizeHeight: number;
|
|
25
|
+
resizeLiveWidth: number;
|
|
26
|
+
resizeEstSpan: ColSpan;
|
|
27
|
+
}
|
|
28
|
+
export declare function useDashboardDnd<T extends DashboardGridItem>(items: T[], setItems: (next: T[]) => void, onPersist?: (next: T[]) => void): {
|
|
29
|
+
gridRef: React.RefObject<HTMLDivElement | null>;
|
|
30
|
+
drag: DragState;
|
|
31
|
+
resize: ResizeState;
|
|
32
|
+
justDroppedId: string | null;
|
|
33
|
+
startDrag: (id: string) => (e: React.PointerEvent) => void;
|
|
34
|
+
startResize: (id: string) => (e: React.PointerEvent) => void;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IconLibraryKey } from '../../lib/icon/config';
|
|
3
|
+
export interface DataEmptyProps {
|
|
4
|
+
/** Nama icon atau ReactNode custom */
|
|
5
|
+
icon?: IconLibraryKey | (string & {}) | React.ReactNode;
|
|
6
|
+
/** Judul pesan status kosong */
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/** Keterangan / subjudul tambahan */
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
/** Tombol aksi (mis. 'Tambah Data', 'Reset Filter') */
|
|
11
|
+
action?: React.ReactNode;
|
|
12
|
+
/** Bungkus dalam komponen Card polos standar (default true) */
|
|
13
|
+
card?: boolean;
|
|
14
|
+
/** Ukuran tampilan: 'sm' untuk widget/tabel kecil, 'md' default, 'lg' untuk halaman utama */
|
|
15
|
+
size?: 'sm' | 'md' | 'lg';
|
|
16
|
+
/** Custom className */
|
|
17
|
+
className?: string;
|
|
18
|
+
children?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function DataEmpty({ icon, title, description, action, card, size, className, children, }: DataEmptyProps): React.JSX.Element;
|
|
21
|
+
export declare namespace DataEmpty {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const EmptyState: typeof DataEmpty;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ListProps } from './list';
|
|
3
|
+
export interface DataListProps<T> extends Omit<ListProps, 'children'> {
|
|
4
|
+
data: T[];
|
|
5
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
6
|
+
page?: number;
|
|
7
|
+
totalPages?: number;
|
|
8
|
+
onPageChange?: (page: number) => void;
|
|
9
|
+
onPrevious?: () => void;
|
|
10
|
+
onNext?: () => void;
|
|
11
|
+
canPrevious?: boolean;
|
|
12
|
+
canNext?: boolean;
|
|
13
|
+
hidePagination?: boolean;
|
|
14
|
+
containerClassName?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function DataList<T>({ data, renderItem, page, totalPages, onPageChange, onPrevious, onNext, canPrevious, canNext, hidePagination, containerClassName, className, ...props }: DataListProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DataTableColumn<T> {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
render?: (row: T) => React.ReactNode;
|
|
6
|
+
/** Menandai ini sebagai kolom aksi (misal Dropdown). Desktop akan membuatnya merapat ke kanan, dan di Mobile AutoGrid akan ditaruh di pojok (absolute) */
|
|
7
|
+
isAction?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface DataGridLayout {
|
|
10
|
+
key: string;
|
|
11
|
+
span?: number;
|
|
12
|
+
hideLabel?: boolean;
|
|
13
|
+
/** Jika true, elemen tidak ditaruh dalam grid flow, melainkan di pojok kanan atas Card (absolute) */
|
|
14
|
+
isAction?: boolean;
|
|
15
|
+
/** Class tambahan untuk custom teks/ukuran Label */
|
|
16
|
+
labelClassName?: string;
|
|
17
|
+
/** Class tambahan untuk custom teks/ukuran Value */
|
|
18
|
+
valueClassName?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DataTableResponsiveConfig {
|
|
21
|
+
autogrid?: boolean;
|
|
22
|
+
/** Konfigurasi urutan dan grid span (1-12) khusus untuk tampilan Auto Grid Mobile */
|
|
23
|
+
layout?: DataGridLayout[];
|
|
24
|
+
}
|
|
25
|
+
export interface DataTableResponsiveConfig {
|
|
26
|
+
autogrid?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface DataTableProps<T> {
|
|
29
|
+
columns: DataTableColumn<T>[];
|
|
30
|
+
data: T[];
|
|
31
|
+
searchable?: boolean;
|
|
32
|
+
pagination?: boolean;
|
|
33
|
+
limitOptions?: number[];
|
|
34
|
+
defaultLimit?: number;
|
|
35
|
+
serverSide?: boolean;
|
|
36
|
+
totalData?: number;
|
|
37
|
+
currentPage?: number;
|
|
38
|
+
onPageChange?: (page: number) => void;
|
|
39
|
+
onSearchChange?: (search: string) => void;
|
|
40
|
+
onLimitChange?: (limit: number) => void;
|
|
41
|
+
isLoading?: boolean;
|
|
42
|
+
responsive?: DataTableResponsiveConfig;
|
|
43
|
+
/** Lepas card visual bawaan (bg/border/rounded/shadow) dari DataTable */
|
|
44
|
+
bare?: boolean;
|
|
45
|
+
/** Mode integrasi saat DataTable dibungkus di dalam Card / CardContent */
|
|
46
|
+
inCard?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export declare function DataTable<T extends Record<string, any>>({ columns, data, searchable, pagination, limitOptions, defaultLimit, serverSide, totalData, currentPage, onPageChange, onSearchChange, onLimitChange, isLoading, responsive, bare, inCard, }: DataTableProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FilterNode } from '@deweb/dev-kit';
|
|
3
|
+
export interface DataViewContextValue {
|
|
4
|
+
viewMode: string;
|
|
5
|
+
setViewMode: (mode: string) => void;
|
|
6
|
+
availableViews: Array<{
|
|
7
|
+
id: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}>;
|
|
11
|
+
registerView: (view: {
|
|
12
|
+
id: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
}) => void;
|
|
16
|
+
page: number;
|
|
17
|
+
setPage: (page: number) => void;
|
|
18
|
+
limit: number;
|
|
19
|
+
setLimit: (limit: number) => void;
|
|
20
|
+
totalData?: number;
|
|
21
|
+
search: string;
|
|
22
|
+
searchInput: string;
|
|
23
|
+
setSearchInput: (val: string) => void;
|
|
24
|
+
filters: Record<string, any>;
|
|
25
|
+
setFilters: (filters: Record<string, any>) => void;
|
|
26
|
+
advancedFilters?: FilterNode;
|
|
27
|
+
setAdvancedFilters: React.Dispatch<React.SetStateAction<FilterNode | undefined>>;
|
|
28
|
+
sorts?: any[];
|
|
29
|
+
setSorts?: (sorts: any[]) => void;
|
|
30
|
+
groupBy?: string;
|
|
31
|
+
setGroupBy?: (groupBy: string) => void;
|
|
32
|
+
data: any[];
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare function useDataViewContext(): DataViewContextValue;
|
|
36
|
+
export interface DataViewProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'data'> {
|
|
37
|
+
state: Omit<DataViewContextValue, 'data' | 'availableViews' | 'registerView'>;
|
|
38
|
+
data: any[];
|
|
39
|
+
totalData?: number;
|
|
40
|
+
isLoading?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare const STANDARD_VIEW_METADATA: Record<string, {
|
|
43
|
+
icon: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}>;
|
|
46
|
+
export declare function DataView({ state, data, totalData, isLoading, children, className, ...props }: DataViewProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface CalendarEventData {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
date: Date | string;
|
|
6
|
+
color?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'mist' | (string & {});
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface DataViewCalendarProps<T> {
|
|
12
|
+
viewId: string;
|
|
13
|
+
data: T[];
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
getEvent: (item: T) => CalendarEventData;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare function DataViewCalendar<T>({ viewId, data, isLoading, getEvent, className }: DataViewCalendarProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FilterNode } from '@deweb/dev-kit';
|
|
3
|
+
export interface DataViewFilterProps {
|
|
4
|
+
schema?: any;
|
|
5
|
+
value?: FilterNode;
|
|
6
|
+
onChange: (newNode: FilterNode | undefined) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DataViewFilter({ schema, value, onChange }: DataViewFilterProps): React.JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DataViewGridProps<T> {
|
|
3
|
+
viewId: string;
|
|
4
|
+
data?: T[];
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
renderCard: (item: T) => React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
gridClassName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Jumlah kolom grid responsif yang diinginkan (1 - 6) atau konfigurasi per breakpoint.
|
|
11
|
+
* Contoh: cols={1} untuk full-width cards (seperti Registrar list), cols={2} untuk 2 kolom, cols={3} untuk 3 kolom.
|
|
12
|
+
*/
|
|
13
|
+
cols?: 1 | 2 | 3 | 4 | 5 | 6 | {
|
|
14
|
+
sm?: number;
|
|
15
|
+
md?: number;
|
|
16
|
+
lg?: number;
|
|
17
|
+
xl?: number;
|
|
18
|
+
};
|
|
19
|
+
emptyState?: React.ReactNode;
|
|
20
|
+
emptyMessage?: string;
|
|
21
|
+
showPagination?: boolean;
|
|
22
|
+
limitOptions?: Array<{
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}>;
|
|
26
|
+
groups?: Array<{
|
|
27
|
+
key: string;
|
|
28
|
+
label: string;
|
|
29
|
+
items: T[];
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
32
|
+
export declare function DataViewGrid<T>({ viewId: _viewId, data: propData, isLoading: propLoading, renderCard, className, gridClassName, cols, emptyState, emptyMessage, showPagination, limitOptions, groups, }: DataViewGridProps<T>): string | number | bigint | true | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ActionBarItem } from '../action-bar';
|
|
3
|
+
import type { DataViewSchema } from '@deweb/dev-kit';
|
|
4
|
+
export interface DataViewHeaderProps {
|
|
5
|
+
isStuck?: boolean;
|
|
6
|
+
actions?: ActionBarItem[];
|
|
7
|
+
filters?: ActionBarItem[];
|
|
8
|
+
searchPlaceholder?: string;
|
|
9
|
+
hideSearch?: boolean;
|
|
10
|
+
hideViewSwitcher?: boolean;
|
|
11
|
+
availableViews?: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}>;
|
|
16
|
+
schema?: DataViewSchema;
|
|
17
|
+
/** Jika diisi, ActionBar akan dirender ke dalam elemen dengan ID ini menggunakan React Portal */
|
|
18
|
+
portalTargetId?: string;
|
|
19
|
+
/** Ukuran seragam untuk komponen Action Bar (default: auto) */
|
|
20
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'auto';
|
|
21
|
+
}
|
|
22
|
+
export declare function DataViewHeader({ isStuck, actions, filters, searchPlaceholder, hideSearch, hideViewSwitcher, availableViews: customViews, schema, portalTargetId, size, }: DataViewHeaderProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface DataViewKanbanColumn {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
badgeColor?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DataViewKanbanProps<T> {
|
|
8
|
+
viewId: string;
|
|
9
|
+
data: T[];
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
statusField: keyof T;
|
|
12
|
+
columns: DataViewKanbanColumn[];
|
|
13
|
+
renderCard: (item: T) => React.ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function DataViewKanban<T>({ viewId: _viewId, data, isLoading: propLoading, statusField, columns, renderCard, className }: DataViewKanbanProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PivotColumn<T> {
|
|
3
|
+
header: string;
|
|
4
|
+
cell: (groupItems: T[], groupKey: string) => React.ReactNode;
|
|
5
|
+
footer?: (allData: T[]) => React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface DataViewPivotProps<T> {
|
|
8
|
+
viewId: string;
|
|
9
|
+
data: T[];
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
groupField: keyof T;
|
|
12
|
+
groupOptions: string[];
|
|
13
|
+
columns: PivotColumn<T>[];
|
|
14
|
+
}
|
|
15
|
+
export declare function DataViewPivot<T>({ viewId: _viewId, data, isLoading: propLoading, groupField, groupOptions, columns }: DataViewPivotProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type TableFilterOption } from '../table';
|
|
3
|
+
export interface DataViewTableColumn<T = any> {
|
|
4
|
+
key: string;
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
sortable?: boolean;
|
|
8
|
+
filterOptions?: (TableFilterOption | string)[];
|
|
9
|
+
filterMode?: 'multiple' | 'single';
|
|
10
|
+
filterIcon?: string;
|
|
11
|
+
renderHeader?: (col: DataViewTableColumn<T>) => React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export interface DataViewTableProps<T = any> {
|
|
14
|
+
viewId: string;
|
|
15
|
+
columns: DataViewTableColumn<T>[];
|
|
16
|
+
groups?: Array<{
|
|
17
|
+
key: string;
|
|
18
|
+
label: string;
|
|
19
|
+
items: T[];
|
|
20
|
+
}>;
|
|
21
|
+
renderDesktopRow: (item: T) => React.ReactNode;
|
|
22
|
+
renderMobileCard?: (item: T) => React.ReactNode;
|
|
23
|
+
renderSkeletonRow?: () => React.ReactNode;
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
emptyMessage?: string;
|
|
26
|
+
hidePaginationWhenGrouped?: boolean;
|
|
27
|
+
hideColumnFilters?: boolean;
|
|
28
|
+
/** Jarak offset sticky dari atas viewport/scroll container saat floating clone header aktif. Default 80px */
|
|
29
|
+
stickyTop?: number | string;
|
|
30
|
+
/** Opsi untuk menonaktifkan fitur floating clone header jika tidak diperlukan */
|
|
31
|
+
disableFloatingHeader?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare function DataViewTable<T = any>({ columns, groups, renderDesktopRow, renderMobileCard, renderSkeletonRow, isLoading: propLoading, emptyMessage, hidePaginationWhenGrouped, hideColumnFilters, stickyTop, disableFloatingHeader, }: DataViewTableProps<T>): React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './DataView';
|
|
2
|
+
export * from './DataViewHeader';
|
|
3
|
+
export * from './DataViewContent';
|
|
4
|
+
export * from './DataViewTable';
|
|
5
|
+
export * from './DataViewGrid';
|
|
6
|
+
export * from './DataViewKanban';
|
|
7
|
+
export * from './DataViewCalendar';
|
|
8
|
+
export * from './DataViewPivot';
|
|
9
|
+
export * from './DataViewFilter';
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function ScrollWheel({ items, selectedValue, onChange, highlightClass, activeTextClass, visibleHalfCount, }: {
|
|
3
|
+
items: string[];
|
|
4
|
+
selectedValue: string;
|
|
5
|
+
onChange: (val: string) => void;
|
|
6
|
+
highlightClass?: string;
|
|
7
|
+
activeTextClass?: string;
|
|
8
|
+
visibleHalfCount?: number;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
export declare function InputTimeRange({ value, onChange, className, placeholder, modalTitle, cancelLabel, confirmLabel, name, disabled, }: {
|
|
11
|
+
value?: {
|
|
12
|
+
hours: string;
|
|
13
|
+
minutes: string;
|
|
14
|
+
};
|
|
15
|
+
onChange?: (value: {
|
|
16
|
+
hours: string;
|
|
17
|
+
minutes: string;
|
|
18
|
+
}) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Placeholder trigger field sebelum ada value. */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
/** Title Modal, custom-able per konteks pemakaian (mis. "Durasi Sewa"). */
|
|
23
|
+
modalTitle?: string;
|
|
24
|
+
/** Label tombol Batal (kiri, footer). */
|
|
25
|
+
cancelLabel?: string;
|
|
26
|
+
/** Label tombol OK/Submit (kanan, footer). */
|
|
27
|
+
confirmLabel?: string;
|
|
28
|
+
/** Hidden native <input type="hidden"> (format "HH:MM") untuk FormData/native form
|
|
29
|
+
* submission -- seluruh keluarga date/time sebelumnya TIDAK ADA satupun yang expose
|
|
30
|
+
* `name` (gap 2026-07-28). Pola sama Select. */
|
|
31
|
+
name?: string;
|
|
32
|
+
/** Nonaktifkan trigger (tidak bisa dibuka). */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
}): React.JSX.Element;
|
|
35
|
+
export declare function InputTime({ value, onChange, className, placeholder, trigger, modalTitle, cancelLabel, confirmLabel, keyboardHelperText, name, disabled, }: {
|
|
36
|
+
value?: string | null;
|
|
37
|
+
onChange?: (time: string | null) => void;
|
|
38
|
+
className?: string;
|
|
39
|
+
/** Placeholder trigger field sebelum ada value. */
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
/** Sama seperti `trigger` di InputDate -- ganti trigger visual bawaan, dipakai InputDateTime. */
|
|
42
|
+
trigger?: (open: () => void) => React.ReactNode;
|
|
43
|
+
/** Title Modal, custom-able per konteks pemakaian. */
|
|
44
|
+
modalTitle?: string;
|
|
45
|
+
/** Label tombol Batal (kiri, footer). */
|
|
46
|
+
cancelLabel?: string;
|
|
47
|
+
/** Label tombol OK/Submit (kanan, footer). */
|
|
48
|
+
confirmLabel?: string;
|
|
49
|
+
/** Teks bantuan yang tampil di mode keyboard (ketik manual, bukan dial analog). */
|
|
50
|
+
keyboardHelperText?: string;
|
|
51
|
+
/** Hidden native <input type="hidden"> (format "HH:MM") untuk FormData/native form
|
|
52
|
+
* submission (2026-07-28, gap seluruh keluarga date/time). */
|
|
53
|
+
name?: string;
|
|
54
|
+
/** Nonaktifkan trigger (tidak bisa dibuka) -- TIDAK berlaku kalau `trigger` custom
|
|
55
|
+
* di-set (InputDateTime pegang kontrolnya sendiri). */
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
}): React.JSX.Element;
|
|
58
|
+
export interface CalendarDayState {
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
/** Selected TUNGGAL (InputDate) ATAU start/end range (InputDateRange). */
|
|
61
|
+
selected: boolean;
|
|
62
|
+
/** Highlight background pill di antara start-end (InputDateRange saja). null di InputDate. */
|
|
63
|
+
inRangeSide: 'start' | 'end' | 'middle' | null;
|
|
64
|
+
}
|
|
65
|
+
export declare function InputDate({ value, onChange, placeholder, className, minDate, maxDate, trigger, modalTitle, cancelLabel, confirmLabel, locale, monthLabels, dayLabels, name, disabled, size, }: {
|
|
66
|
+
value?: Date | null;
|
|
67
|
+
onChange?: (date: Date | null) => void;
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
className?: string;
|
|
70
|
+
minDate?: Date;
|
|
71
|
+
maxDate?: Date;
|
|
72
|
+
/** Ganti trigger visual bawaan (Input+icon) dengan elemen custom -- dipakai
|
|
73
|
+
* InputDateTime (2026-07-28, "biar jadi 1 field gabungan") supaya bisa render
|
|
74
|
+
* zona klik custom TANPA merombak logic modal kalender yang sudah kompleks di sini.
|
|
75
|
+
* Kalau di-set, trigger HARUS punya onClick sendiri yang memanggil setIsOpen -- karena
|
|
76
|
+
* itu prop ini juga expose lewat children function (lihat pemakaian di bawah). */
|
|
77
|
+
trigger?: (open: () => void) => React.ReactNode;
|
|
78
|
+
/** Title Modal, custom-able per konteks pemakaian (mis. "Tanggal Lahir"). */
|
|
79
|
+
modalTitle?: string;
|
|
80
|
+
/** Label tombol Batal (kiri, footer). */
|
|
81
|
+
cancelLabel?: string;
|
|
82
|
+
/** Label tombol OK/Submit (kanan, footer). */
|
|
83
|
+
confirmLabel?: string;
|
|
84
|
+
/** BCP-47 locale untuk format heading tanggal besar & display value (2026-07-28, "bisa
|
|
85
|
+
* format global pake Sunday Monday dst"). Default 'id-ID', pakai 'en-US' untuk format
|
|
86
|
+
* Inggris (Sun/Mon otomatis via Intl). Tidak mempengaruhi `monthLabels`/`dayLabels`
|
|
87
|
+
* grid kalender -- itu array terpisah, harus di-override manual sendiri kalau mau ganti
|
|
88
|
+
* bahasa (Intl.DateTimeFormat tidak expose array nama bulan/hari siap pakai). */
|
|
89
|
+
locale?: string;
|
|
90
|
+
/** Override manual nama bulan penuh (index 0 = Januari/January), dipakai header "Mei
|
|
91
|
+
* 2007" & grid pemilihan bulan. Default Bahasa Indonesia. */
|
|
92
|
+
monthLabels?: string[];
|
|
93
|
+
/** Override manual singkatan hari (index 0 = Senin/Monday sesuai konvensi lama, urutan
|
|
94
|
+
* BEBAS ditentukan sendiri -- array ini murni label kolom grid, tidak terikat urutan
|
|
95
|
+
* hari standar). Default `['M','S','S','R','K','J','S']` (Bahasa Indonesia). */
|
|
96
|
+
dayLabels?: string[];
|
|
97
|
+
/** Hidden native <input type="hidden"> (format ISO date "YYYY-MM-DD") untuk
|
|
98
|
+
* FormData/native form submission (2026-07-28, gap seluruh keluarga date/time). */
|
|
99
|
+
name?: string;
|
|
100
|
+
/** Nonaktifkan trigger default (tidak berlaku kalau `trigger` custom di-set). */
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
size?: 'default' | 'sm' | 'lg';
|
|
103
|
+
}): React.JSX.Element;
|
|
104
|
+
/**
|
|
105
|
+
* InputDateRange -- varian InputDate untuk pilih RANGE tanggal (2026-07-28,
|
|
106
|
+
* request eksplisit "biasanya buat nentuin trip... kalau range itu 2 bulan sekaligus
|
|
107
|
+
* tampil, bisa pilih range waktu dari tanggal ke tanggal"). Komponen TERPISAH dari
|
|
108
|
+
* InputDate (bukan mode/prop tambahan) -- interaksi & tampilannya beda fundamental
|
|
109
|
+
* (2 kalender berdampingan vs 1, klik start/end vs klik tunggal), disatukan jadi 1
|
|
110
|
+
* komponen dengan banyak percabangan kondisional akan lebih membingungkan daripada 2
|
|
111
|
+
* komponen jelas terpisah.
|
|
112
|
+
*
|
|
113
|
+
* SENGAJA TIDAK replikasi fitur InputDate biasa (toggle mode keyboard ketik manual,
|
|
114
|
+
* grid picker bulan/tahun) -- dikonfirmasi user: range biasanya dioperasikan via klik
|
|
115
|
+
* langsung di grid, kompleksitas keyboard-mode + years-picker dikali 2 kalender akan
|
|
116
|
+
* berlebihan untuk use-case ini.
|
|
117
|
+
*
|
|
118
|
+
* Interaksi (dikonfirmasi user): klik pertama = set `start` (end ikut sama dengan start
|
|
119
|
+
* sementara, highlight cuma 1 hari). Hover setelah itu menampilkan PREVIEW range (dari
|
|
120
|
+
* start ke tanggal yang di-hover) tanpa commit apapun. Klik kedua = set `end` -- kalau
|
|
121
|
+
* tanggal yang diklik lebih awal dari `start` yang sudah ada, otomatis SWAP (start/end
|
|
122
|
+
* ditukar) bukan reset, supaya user tidak perlu klik ulang dari awal kalau salah urutan
|
|
123
|
+
* klik. Klik SETELAH range sudah lengkap (start+end berbeda) mereset ke start baru.
|
|
124
|
+
*/
|
|
125
|
+
export interface InputDateRangeValue {
|
|
126
|
+
start: Date | null;
|
|
127
|
+
end: Date | null;
|
|
128
|
+
}
|
|
129
|
+
export declare function InputDateRange({ value, onChange, placeholder, className, minDate, maxDate, modalTitle, cancelLabel, confirmLabel, locale, monthLabels, dayLabels, name, disabled, size, }: {
|
|
130
|
+
value?: InputDateRangeValue | null;
|
|
131
|
+
onChange?: (range: InputDateRangeValue) => void;
|
|
132
|
+
placeholder?: string;
|
|
133
|
+
className?: string;
|
|
134
|
+
/** Tanggal paling awal yang boleh dipilih. TIDAK ADA default -- bebas pilih tanggal
|
|
135
|
+
* kapan saja (2026-07-28, "minDate maxDate itu parameter, defaultnya itu bebas" --
|
|
136
|
+
* revisi dari percobaan pertama yang default-nya hari ini). Set eksplisit
|
|
137
|
+
* `minDate={new Date()}` kalau butuh behavior "tidak bisa pilih tanggal lampau". */
|
|
138
|
+
minDate?: Date;
|
|
139
|
+
/** Tanggal paling akhir yang boleh dipilih. Tidak ada default (unbounded). */
|
|
140
|
+
maxDate?: Date;
|
|
141
|
+
modalTitle?: string;
|
|
142
|
+
cancelLabel?: string;
|
|
143
|
+
confirmLabel?: string;
|
|
144
|
+
locale?: string;
|
|
145
|
+
monthLabels?: string[];
|
|
146
|
+
dayLabels?: string[];
|
|
147
|
+
/** Diteruskan sebagai `${name}Start`/`${name}End` (format ISO date) ke 2 hidden input
|
|
148
|
+
* untuk FormData/native form submission (2026-07-28, gap seluruh keluarga date/time). */
|
|
149
|
+
name?: string;
|
|
150
|
+
/** Nonaktifkan trigger (tidak bisa dibuka). */
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
}): React.JSX.Element;
|
|
153
|
+
export declare function InputDateTime({ value, onChange, className, locale, monthLabels, dayLabels, cancelLabel, confirmLabel, datePlaceholder, timePlaceholder, name, disabled, }: {
|
|
154
|
+
value?: string;
|
|
155
|
+
onChange?: (val: string) => void;
|
|
156
|
+
className?: string;
|
|
157
|
+
/** Diteruskan ke InputDate internal -- lihat dokumentasi prop `locale` di sana. */
|
|
158
|
+
locale?: string;
|
|
159
|
+
/** Diteruskan ke InputDate internal -- lihat dokumentasi prop `monthLabels` di sana. */
|
|
160
|
+
monthLabels?: string[];
|
|
161
|
+
/** Diteruskan ke InputDate internal -- lihat dokumentasi prop `dayLabels` di sana. */
|
|
162
|
+
dayLabels?: string[];
|
|
163
|
+
/** Diteruskan ke InputDate & InputTime internal (Batal, footer modal masing-masing). */
|
|
164
|
+
cancelLabel?: string;
|
|
165
|
+
/** Diteruskan ke InputDate & InputTime internal (OK, footer modal masing-masing). */
|
|
166
|
+
confirmLabel?: string;
|
|
167
|
+
/** Placeholder zona kiri (tanggal) sebelum ada value. */
|
|
168
|
+
datePlaceholder?: string;
|
|
169
|
+
/** Placeholder zona kanan (jam) sebelum ada value. */
|
|
170
|
+
timePlaceholder?: string;
|
|
171
|
+
/** Hidden native <input type="hidden"> (format ISO datetime, sama seperti `value`) untuk
|
|
172
|
+
* FormData/native form submission (2026-07-28, gap seluruh keluarga date/time). */
|
|
173
|
+
name?: string;
|
|
174
|
+
/** Nonaktifkan kedua zona klik (tanggal & jam). */
|
|
175
|
+
disabled?: boolean;
|
|
176
|
+
}): React.JSX.Element;
|
|
177
|
+
export declare function InputYear({ value, onChange, placeholder, className, minDate, maxDate, trigger, modalTitle, cancelLabel, confirmLabel, name, disabled, }: {
|
|
178
|
+
value?: Date | null;
|
|
179
|
+
onChange?: (date: Date | null) => void;
|
|
180
|
+
placeholder?: string;
|
|
181
|
+
className?: string;
|
|
182
|
+
minDate?: Date;
|
|
183
|
+
maxDate?: Date;
|
|
184
|
+
trigger?: (open: () => void) => React.ReactNode;
|
|
185
|
+
modalTitle?: string;
|
|
186
|
+
cancelLabel?: string;
|
|
187
|
+
confirmLabel?: string;
|
|
188
|
+
name?: string;
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
}): React.JSX.Element;
|
|
191
|
+
export declare function InputMonth({ value, onChange, placeholder, className, minDate, maxDate, trigger, modalTitle, cancelLabel, confirmLabel, monthLabels, name, disabled, }: {
|
|
192
|
+
value?: Date | null;
|
|
193
|
+
onChange?: (date: Date | null) => void;
|
|
194
|
+
placeholder?: string;
|
|
195
|
+
className?: string;
|
|
196
|
+
minDate?: Date;
|
|
197
|
+
maxDate?: Date;
|
|
198
|
+
trigger?: (open: () => void) => React.ReactNode;
|
|
199
|
+
modalTitle?: string;
|
|
200
|
+
cancelLabel?: string;
|
|
201
|
+
confirmLabel?: string;
|
|
202
|
+
monthLabels?: string[];
|
|
203
|
+
name?: string;
|
|
204
|
+
disabled?: boolean;
|
|
205
|
+
}): React.JSX.Element;
|