@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,79 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type PageFormViewViewport = 'desktop' | 'tablet' | 'mobile';
|
|
3
|
+
export interface PageFormViewContextValue {
|
|
4
|
+
viewport: PageFormViewViewport;
|
|
5
|
+
setViewport: (viewport: PageFormViewViewport) => void;
|
|
6
|
+
isLeftOpen: boolean;
|
|
7
|
+
setLeftOpen: (open: boolean) => void;
|
|
8
|
+
toggleLeft: () => void;
|
|
9
|
+
isRightOpen: boolean;
|
|
10
|
+
setRightOpen: (open: boolean) => void;
|
|
11
|
+
toggleRight: () => void;
|
|
12
|
+
hasLeftSidebar: boolean;
|
|
13
|
+
setHasLeftSidebar: (has: boolean) => void;
|
|
14
|
+
hasRightSidebar: boolean;
|
|
15
|
+
setHasRightSidebar: (has: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const PageFormViewContext: React.Context<PageFormViewContextValue>;
|
|
18
|
+
export declare function usePageFormView(): PageFormViewContextValue;
|
|
19
|
+
export interface PageFormViewProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
20
|
+
viewport?: PageFormViewViewport;
|
|
21
|
+
onViewportChange?: (viewport: PageFormViewViewport) => void;
|
|
22
|
+
defaultViewport?: PageFormViewViewport;
|
|
23
|
+
defaultLeftOpen?: boolean;
|
|
24
|
+
defaultRightOpen?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface PageFormViewHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
title?: React.ReactNode;
|
|
28
|
+
subtitle?: React.ReactNode;
|
|
29
|
+
backUrl?: string;
|
|
30
|
+
onBack?: () => void;
|
|
31
|
+
badge?: React.ReactNode;
|
|
32
|
+
showViewportSwitcher?: boolean;
|
|
33
|
+
showLeftToggle?: boolean;
|
|
34
|
+
showRightToggle?: boolean;
|
|
35
|
+
viewport?: PageFormViewViewport;
|
|
36
|
+
onViewportChange?: (v: PageFormViewViewport) => void;
|
|
37
|
+
actions?: React.ReactNode;
|
|
38
|
+
leftExtras?: React.ReactNode;
|
|
39
|
+
rightExtras?: React.ReactNode;
|
|
40
|
+
centerExtras?: React.ReactNode;
|
|
41
|
+
viewportExtras?: React.ReactNode;
|
|
42
|
+
}
|
|
43
|
+
export declare const PageFormViewHeader: React.ForwardRefExoticComponent<PageFormViewHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
export interface PageFormViewBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
45
|
+
}
|
|
46
|
+
export declare const PageFormViewBody: React.ForwardRefExoticComponent<PageFormViewBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
export interface PageFormViewSidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
48
|
+
position?: 'left' | 'right';
|
|
49
|
+
width?: number | string;
|
|
50
|
+
title?: React.ReactNode;
|
|
51
|
+
icon?: React.ReactNode;
|
|
52
|
+
collapsible?: boolean;
|
|
53
|
+
actions?: React.ReactNode;
|
|
54
|
+
isOpen?: boolean;
|
|
55
|
+
onToggle?: () => void;
|
|
56
|
+
noPadding?: boolean;
|
|
57
|
+
bodyClassName?: string;
|
|
58
|
+
footer?: React.ReactNode;
|
|
59
|
+
}
|
|
60
|
+
export declare const PageFormViewSidebar: React.ForwardRefExoticComponent<PageFormViewSidebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
export interface PageFormViewMainProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
62
|
+
viewport?: PageFormViewViewport;
|
|
63
|
+
paper?: boolean;
|
|
64
|
+
canvasClassName?: string;
|
|
65
|
+
}
|
|
66
|
+
export declare const PageFormViewMain: React.ForwardRefExoticComponent<PageFormViewMainProps & React.RefAttributes<HTMLDivElement>>;
|
|
67
|
+
export interface PageFormViewActionBarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
68
|
+
sticky?: boolean;
|
|
69
|
+
position?: 'top' | 'bottom';
|
|
70
|
+
}
|
|
71
|
+
export declare const PageFormViewActionBar: React.ForwardRefExoticComponent<PageFormViewActionBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
72
|
+
export declare const PageFormView: React.ForwardRefExoticComponent<PageFormViewProps & React.RefAttributes<HTMLDivElement>> & {
|
|
73
|
+
Header: React.ForwardRefExoticComponent<PageFormViewHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
74
|
+
Head: React.ForwardRefExoticComponent<PageFormViewHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
ActionBar: React.ForwardRefExoticComponent<PageFormViewActionBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
Body: React.ForwardRefExoticComponent<PageFormViewBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
Sidebar: React.ForwardRefExoticComponent<PageFormViewSidebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
Main: React.ForwardRefExoticComponent<PageFormViewMainProps & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface BackgroundColorValue {
|
|
3
|
+
colorMode?: 'none' | 'solid' | 'gradient';
|
|
4
|
+
color?: string;
|
|
5
|
+
gradientType?: 'linear' | 'radial';
|
|
6
|
+
gradientAngle?: number;
|
|
7
|
+
gradientFrom?: string;
|
|
8
|
+
gradientTo?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ColorPresetItem {
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GradientPresetItem {
|
|
15
|
+
name: string;
|
|
16
|
+
from: string;
|
|
17
|
+
to: string;
|
|
18
|
+
angle?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface BackgroundColorControlProps {
|
|
21
|
+
value?: BackgroundColorValue;
|
|
22
|
+
onChange?: (val: BackgroundColorValue) => void;
|
|
23
|
+
colorPresets?: ColorPresetItem[];
|
|
24
|
+
gradientPresets?: GradientPresetItem[];
|
|
25
|
+
showPresets?: boolean;
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const DEFAULT_COLOR_PRESETS: ColorPresetItem[];
|
|
30
|
+
export declare const DEFAULT_GRADIENT_PRESETS: GradientPresetItem[];
|
|
31
|
+
/**
|
|
32
|
+
* Komponen Terpadu Pengaturan Warna Background (Solid, Gradasi, dan Preset Swatch)
|
|
33
|
+
*/
|
|
34
|
+
export declare const BackgroundColorControl: React.FC<BackgroundColorControlProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ColorPresetItem, type GradientPresetItem } from './background-color-control';
|
|
3
|
+
export interface BackgroundValue {
|
|
4
|
+
colorMode?: 'none' | 'solid' | 'gradient';
|
|
5
|
+
color?: string;
|
|
6
|
+
gradientType?: 'linear' | 'radial';
|
|
7
|
+
gradientAngle?: number;
|
|
8
|
+
gradientFrom?: string;
|
|
9
|
+
gradientTo?: string;
|
|
10
|
+
hasImage?: boolean;
|
|
11
|
+
imageUrl?: string;
|
|
12
|
+
imageFit?: 'cover' | 'contain' | 'auto';
|
|
13
|
+
imagePosition?: string;
|
|
14
|
+
imageRepeat?: 'no-repeat' | 'repeat' | 'repeat-x' | 'repeat-y';
|
|
15
|
+
imageAttachment?: 'scroll' | 'fixed';
|
|
16
|
+
overlayOpacity?: number;
|
|
17
|
+
hasPattern?: boolean;
|
|
18
|
+
patternType?: 'none' | 'grid' | 'dots' | 'diagonal' | 'mesh';
|
|
19
|
+
patternColor?: string;
|
|
20
|
+
patternSize?: 'sm' | 'md' | 'lg';
|
|
21
|
+
patternOpacity?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface BackgroundControlProps {
|
|
24
|
+
value?: BackgroundValue;
|
|
25
|
+
onChange?: (val: BackgroundValue, computedStyle: React.CSSProperties) => void;
|
|
26
|
+
label?: React.ReactNode;
|
|
27
|
+
subtitle?: React.ReactNode;
|
|
28
|
+
colorPresets?: ColorPresetItem[];
|
|
29
|
+
gradientPresets?: GradientPresetItem[];
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const GRADIENT_PRESETS: GradientPresetItem[];
|
|
34
|
+
export declare const SAMPLE_IMAGES: {
|
|
35
|
+
name: string;
|
|
36
|
+
url: string;
|
|
37
|
+
}[];
|
|
38
|
+
/**
|
|
39
|
+
* Format BackgroundValue menjadi CSS Properties yang bisa langsung dipasang ke inline style.
|
|
40
|
+
*/
|
|
41
|
+
export declare function formatBackgroundCSS(bg?: BackgroundValue): React.CSSProperties;
|
|
42
|
+
/**
|
|
43
|
+
* Komponen Dashboard Compound untuk Pengaturan Multi-Layer Background (Warna, Gambar, dan Pola Latar).
|
|
44
|
+
*/
|
|
45
|
+
export declare const BackgroundControl: React.FC<BackgroundControlProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyleUnit, type BorderValue } from './types';
|
|
3
|
+
export interface BorderControlProps {
|
|
4
|
+
value?: BorderValue;
|
|
5
|
+
onChange?: (val: BorderValue, cssValue: string) => void;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
allowedUnits?: StyleUnit[];
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Komponen Dashboard Compound untuk pengaturan Gaya, Tebal, dan Warna Border.
|
|
13
|
+
*/
|
|
14
|
+
export declare const BorderControl: React.FC<BorderControlProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type SelectOption } from '../../ui/form-advanced';
|
|
3
|
+
export interface ColorControlProps {
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (color: string) => void;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
allowTransparent?: boolean;
|
|
10
|
+
alpha?: boolean;
|
|
11
|
+
defaultMode?: 'preset' | 'custom';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Daftar token warna resmi UI Kit lengkap dengan variasi shade (Default, Light, Lighter, Dark, Darker).
|
|
15
|
+
* Warna yang tidak terdefinisi (kosong/transparan) otomatis diabaikan.
|
|
16
|
+
*/
|
|
17
|
+
export declare const buildThemeColorOptions: () => SelectOption[];
|
|
18
|
+
export declare const THEME_COLOR_OPTIONS: SelectOption[];
|
|
19
|
+
/**
|
|
20
|
+
* Komponen Pemilih Warna Terpadu UI Kit (Semantic Tokens dengan Variasi Shades + Kustom Hex Alpha).
|
|
21
|
+
*/
|
|
22
|
+
export declare const ColorControl: React.FC<ColorControlProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyleUnit, type CornerRadiusValue } from './types';
|
|
3
|
+
export interface CornerRadiusControlProps {
|
|
4
|
+
value?: number | CornerRadiusValue;
|
|
5
|
+
onChange?: (val: CornerRadiusValue, cssValue: string) => void;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
allowedUnits?: StyleUnit[];
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Komponen Dashboard Compound untuk pengaturan Lengkung Sudut (Radius) seragam dan per-sudut
|
|
13
|
+
* dengan dukungan multi-satuan dinamis (px, %, rem, em).
|
|
14
|
+
*/
|
|
15
|
+
export declare const CornerRadiusControl: React.FC<CornerRadiusControlProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyleUnit, type SpacingValue } from './types';
|
|
3
|
+
export interface SpacingControlProps {
|
|
4
|
+
value?: number | SpacingValue;
|
|
5
|
+
onChange?: (val: SpacingValue, cssValue: string) => void;
|
|
6
|
+
label?: React.ReactNode;
|
|
7
|
+
icon?: string;
|
|
8
|
+
allowedUnits?: StyleUnit[];
|
|
9
|
+
allowPerSide?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Komponen Dashboard Compound untuk pengaturan Jarak (Margin, Padding, Grid Gap) seragam dan per-sisi
|
|
15
|
+
* dengan dukungan multi-satuan dinamis (px, %, rem, em).
|
|
16
|
+
*/
|
|
17
|
+
export declare const SpacingControl: React.FC<SpacingControlProps>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type StyleUnit = 'px' | '%' | 'rem' | 'em';
|
|
2
|
+
export interface StyleUnitSpec {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
step: number;
|
|
6
|
+
presets: number[];
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_STYLE_UNIT_SPECS: Record<StyleUnit, StyleUnitSpec>;
|
|
9
|
+
export declare const DEFAULT_RADIUS_UNIT_SPECS: Record<StyleUnit, StyleUnitSpec>;
|
|
10
|
+
export interface CornerRadiusValue {
|
|
11
|
+
mode?: 'all' | 'custom';
|
|
12
|
+
unit?: StyleUnit;
|
|
13
|
+
all?: number;
|
|
14
|
+
topLeft?: number;
|
|
15
|
+
topRight?: number;
|
|
16
|
+
bottomRight?: number;
|
|
17
|
+
bottomLeft?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface SpacingValue {
|
|
20
|
+
mode?: 'all' | 'custom';
|
|
21
|
+
unit?: StyleUnit;
|
|
22
|
+
all?: number;
|
|
23
|
+
top?: number;
|
|
24
|
+
right?: number;
|
|
25
|
+
bottom?: number;
|
|
26
|
+
left?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface BorderValue {
|
|
29
|
+
mode?: 'all' | 'custom';
|
|
30
|
+
style?: 'none' | 'solid' | 'dashed' | 'dotted';
|
|
31
|
+
width?: number;
|
|
32
|
+
widthTop?: number;
|
|
33
|
+
widthRight?: number;
|
|
34
|
+
widthBottom?: number;
|
|
35
|
+
widthLeft?: number;
|
|
36
|
+
unit?: StyleUnit;
|
|
37
|
+
color?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Format CornerRadiusValue atau angka tunggal menjadi string CSS `border-radius`.
|
|
41
|
+
*/
|
|
42
|
+
export declare function formatCornerRadiusCSS(val?: number | CornerRadiusValue): string;
|
|
43
|
+
/**
|
|
44
|
+
* Format SpacingValue atau angka tunggal menjadi string CSS spacing (margin/padding).
|
|
45
|
+
*/
|
|
46
|
+
export declare function formatSpacingCSS(val?: number | SpacingValue): string;
|
|
47
|
+
/**
|
|
48
|
+
* Format BorderValue menjadi string CSS border.
|
|
49
|
+
*/
|
|
50
|
+
export declare function formatBorderCSS(val?: BorderValue): string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface DocumentPreviewProps {
|
|
3
|
+
children: React.ReactElement;
|
|
4
|
+
fileName?: string;
|
|
5
|
+
type?: 'pdf' | 'docx';
|
|
6
|
+
mode?: 'preview' | 'download';
|
|
7
|
+
className?: string;
|
|
8
|
+
downloadText?: string | React.ReactNode;
|
|
9
|
+
loadingText?: string | React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A wrapper component for rendering documents (PDF/DOCX) in the browser.
|
|
13
|
+
* It supports showing a live preview iframe or a download button.
|
|
14
|
+
*/
|
|
15
|
+
export declare function DocumentPreview({ children, fileName, type, mode, className, downloadText, loadingText, }: DocumentPreviewProps): React.JSX.Element;
|
|
16
|
+
export declare const Document: any;
|
|
17
|
+
export declare const Page: any;
|
|
18
|
+
export declare const View: any;
|
|
19
|
+
export declare const Text: any;
|
|
20
|
+
export declare const Image: any;
|
|
21
|
+
export declare const StyleSheet: any;
|
|
22
|
+
export declare const Font: any;
|
|
23
|
+
export declare const PdfFont: any;
|
|
24
|
+
export declare const DocumentFont: any;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function QuantityPill({ label, value, onIncrease, onDecrease, min, max, variant, }: {
|
|
3
|
+
label?: string;
|
|
4
|
+
value: number;
|
|
5
|
+
onIncrease: () => void;
|
|
6
|
+
onDecrease: () => void;
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
variant?: 'default' | 'light' | 'dark';
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
export declare function SummaryCard({ title, price, totalVisitor, includes, }: {
|
|
12
|
+
title: string;
|
|
13
|
+
price: string;
|
|
14
|
+
totalVisitor: number | string;
|
|
15
|
+
includes?: React.ReactNode;
|
|
16
|
+
}): React.JSX.Element;
|
|
17
|
+
export declare function VoucherCard({ title, subtitle, validDate, icon, badge, selected, disabled, errorMessage, onClick, rightElement, name, value, variant, }: {
|
|
18
|
+
title: React.ReactNode;
|
|
19
|
+
subtitle?: React.ReactNode;
|
|
20
|
+
validDate?: React.ReactNode;
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
badge?: React.ReactNode;
|
|
23
|
+
selected?: boolean;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
errorMessage?: React.ReactNode;
|
|
26
|
+
onClick?: () => void;
|
|
27
|
+
rightElement?: React.ReactNode;
|
|
28
|
+
name?: string;
|
|
29
|
+
value?: string;
|
|
30
|
+
variant?: 'default' | 'minimal' | 'premium';
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
export interface VoucherBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
icon?: React.ReactNode;
|
|
35
|
+
variant?: 'default' | 'outline' | 'secondary' | 'premium';
|
|
36
|
+
}
|
|
37
|
+
export declare function VoucherBadge({ children, icon, variant, className, ...props }: VoucherBadgeProps): React.JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type RippleType = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
size: number;
|
|
6
|
+
key: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function useRipple(): {
|
|
9
|
+
ripples: RippleType[];
|
|
10
|
+
onRippleClick: (e: React.MouseEvent<HTMLElement>) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function RippleEffect({ ripples }: {
|
|
13
|
+
ripples: RippleType[];
|
|
14
|
+
}): React.JSX.Element | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type AnimationType = 'zoom' | 'bounce' | 'dip' | 'spin' | 'drop' | 'shake' | 'sparkle' | 'confetti' | 'split' | 'shrink';
|
|
3
|
+
export interface AnimatedProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Tipe animasi yang akan dimainkan.
|
|
6
|
+
*/
|
|
7
|
+
animation?: AnimationType;
|
|
8
|
+
/**
|
|
9
|
+
* Jika true, maka animasi akan dimainkan berdasarkan perubahan prop ini.
|
|
10
|
+
* Sangat berguna untuk state toggle (misal: isFavorited).
|
|
11
|
+
*/
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* (Deprecated) Animasi sekarang selalu berjalan saat diklik, prop ini tidak lagi diperlukan.
|
|
15
|
+
*/
|
|
16
|
+
triggerOnClick?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Durasi animasi dalam milidetik.
|
|
19
|
+
*/
|
|
20
|
+
duration?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Komponen atau teks yang dibungkus oleh elemen Animated.
|
|
23
|
+
*/
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* (Opsional) Ikon yang akan dirender langsung di dalam.
|
|
27
|
+
* Jika digunakan, Animated akan otomatis mengatur pewarnaan state active/inactive dan ukuran default (w-10 h-10).
|
|
28
|
+
*/
|
|
29
|
+
icon?: React.ElementType;
|
|
30
|
+
/**
|
|
31
|
+
* Warna tema ikon saat aktif (mengikuti standar DewebColor).
|
|
32
|
+
* Default: 'default' (menyesuaikan warna teks/foreground UI Kit).
|
|
33
|
+
*/
|
|
34
|
+
color?: 'danger' | 'primary' | 'success' | 'warning' | 'info' | 'default';
|
|
35
|
+
/**
|
|
36
|
+
* Gaya tampilan (variant) tombol ikon (mengikuti standar DewebVariant).
|
|
37
|
+
* Default: 'solid' (dengan background transparan berwarna saat aktif)
|
|
38
|
+
*/
|
|
39
|
+
variant?: 'solid' | 'ghost' | 'outline';
|
|
40
|
+
}
|
|
41
|
+
export declare const Animated: React.ForwardRefExoticComponent<AnimatedProps & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type PageTransitionType = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'scale' | 'blur';
|
|
3
|
+
export type PageTransitionDuration = 'fast' | 'normal' | 'slow';
|
|
4
|
+
export interface PageTransitionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Jenis animasi transisi yang akan dimainkan. Default: 'fade' */
|
|
6
|
+
animation?: PageTransitionType;
|
|
7
|
+
/** Durasi animasi transisi. Default: 'normal' */
|
|
8
|
+
duration?: PageTransitionDuration;
|
|
9
|
+
}
|
|
10
|
+
export declare const PageTransition: React.ForwardRefExoticComponent<PageTransitionProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { BlockDefinition } from "../../index";
|
|
2
|
+
interface BlockPaletteProps {
|
|
3
|
+
blocks: Record<string, BlockDefinition>;
|
|
4
|
+
onStartPlaceDrag: (blockId: string) => (e: React.PointerEvent) => void;
|
|
5
|
+
placingBlockId?: string | null;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Tray block yang tersedia (default + custom dari Block Manager) -- sumber drag utk
|
|
9
|
+
* MENEMPATKAN block baru ke Zone/Section, menggantikan tombol "+ Add Block" lama yang
|
|
10
|
+
* auto-pick block index 0. User drag card yang SPESIFIK dia mau, bukan pilih dari
|
|
11
|
+
* dropdown setelah block ke-insert secara acak.
|
|
12
|
+
*/
|
|
13
|
+
export declare function BlockPalette({ blocks, onStartPlaceDrag, placingBlockId }: BlockPaletteProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { BlockDefinition, Breakpoint, LayoutSchema, ContainerConfig, LayoutSection } from "../../index";
|
|
2
|
+
export declare const LayoutContext: import("react").Context<{
|
|
3
|
+
openOffCanvasIds: Set<string>;
|
|
4
|
+
toggleOffCanvas: (targetId: string) => void;
|
|
5
|
+
closeOffCanvas: () => void;
|
|
6
|
+
} | null>;
|
|
7
|
+
export declare function useLayoutContext(): {
|
|
8
|
+
openOffCanvasIds: Set<string>;
|
|
9
|
+
toggleOffCanvas: (targetId: string) => void;
|
|
10
|
+
closeOffCanvas: () => void;
|
|
11
|
+
} | null;
|
|
12
|
+
interface DynamicLayoutProps {
|
|
13
|
+
blocks: Record<string, BlockDefinition>;
|
|
14
|
+
schema: LayoutSchema;
|
|
15
|
+
/** Override breakpoint AKTIF -- HANYA dipakai LayoutBuilder Live Preview supaya
|
|
16
|
+
* resolveSectionZone() ikut breakpoint SIMULASI builder (activeBp state), bukan
|
|
17
|
+
* lebar window browser sungguhan (yang tetap dipakai useActiveBreakpoint() saat
|
|
18
|
+
* prop ini undefined -- kasus produksi/consumer app biasa). Builder & production
|
|
19
|
+
* TETAP pakai fungsi resolusi yang sama (resolveSectionZone), cuma sumber
|
|
20
|
+
* breakpoint-nya beda -- supaya keduanya tidak pernah divergen soal LOGIKA
|
|
21
|
+
* pindah Zone, cuma beda soal "breakpoint mana yang lagi aktif". */
|
|
22
|
+
forceBreakpoint?: Breakpoint;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Bungkus konten sesuai Container type -- pakai nilai NYATA dari Global Layout Settings
|
|
26
|
+
* (getLayoutSettings(), bukan Tailwind max-w-7xl hardcode). EMPAT mode (2026-08-03):
|
|
27
|
+
* - wrapper: SATU div, background & konten SAMA-SAMA dibatasi maxSiteWidth + di-center.
|
|
28
|
+
* - full-width-wrapper: OUTER div w-full (background 100vw, bleed penuh) membungkus INNER
|
|
29
|
+
* div yang dibatasi maxSiteWidth -- background lebih lebar dari konten, inilah yang
|
|
30
|
+
* membedakan dari wrapper.
|
|
31
|
+
* - full-width: SATU div w-full, TIDAK ada cap sama sekali -- background DAN konten
|
|
32
|
+
* sama-sama 100vw. Beda dari full-width-wrapper: di sini kontennya juga ikut bleed.
|
|
33
|
+
* - custom: OUTER div w-full (background 100vw) membungkus INNER div yang dibatasi
|
|
34
|
+
* customWidthPx (di-input manual per-instance di builder) -- fallback ke maxSiteWidth
|
|
35
|
+
* kalau user belum isi angka, supaya tidak render uncapped sebelum diisi.
|
|
36
|
+
*
|
|
37
|
+
* backgroundColor (dari LayoutSection/LayoutZone) dipasang di div OUTER (yang lebar-nya
|
|
38
|
+
* 100vw pada mode full-width-wrapper/full-width/custom, atau capped pada mode wrapper) --
|
|
39
|
+
* div INI yang membuktikan perbedaan visual antar mode (background bleed vs capped), bukan
|
|
40
|
+
* cuma angka computed-style yang beda tanpa terlihat mata.
|
|
41
|
+
*
|
|
42
|
+
* Nilai px per-instance (bukan className statis) -- dipasang via inline style, BUKAN
|
|
43
|
+
* Tailwind arbitrary class dinamis (aman dari isu static-scan yang didokumentasikan di
|
|
44
|
+
* DEWEB_UI_KIT.md § @source).
|
|
45
|
+
*/
|
|
46
|
+
export declare function ContainerBox({ container, backgroundColor, id, resolveBp, visibilityClassName, children }: {
|
|
47
|
+
container: ContainerConfig;
|
|
48
|
+
backgroundColor?: string;
|
|
49
|
+
id?: string;
|
|
50
|
+
resolveBp?: Breakpoint;
|
|
51
|
+
visibilityClassName?: string;
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
}): import("react").JSX.Element;
|
|
54
|
+
export declare function renderSection(section: LayoutSection, blocks: Record<string, BlockDefinition>, resolveBp: Breakpoint): import("react").JSX.Element;
|
|
55
|
+
export declare function DynamicLayout({ blocks, schema, forceBreakpoint }: DynamicLayoutProps): import("react").JSX.Element;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Breakpoint, BlockDefinition, LayoutItem } from "../../index";
|
|
2
|
+
interface BlockDragState {
|
|
3
|
+
dragMode: 'move' | 'place' | null;
|
|
4
|
+
draggingId: string | null;
|
|
5
|
+
placingBlockId: string | null;
|
|
6
|
+
dragX: number;
|
|
7
|
+
dragY: number;
|
|
8
|
+
offsetX: number;
|
|
9
|
+
offsetY: number;
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
dropTargetKey: string | null;
|
|
13
|
+
dropBeforeId: string | null;
|
|
14
|
+
}
|
|
15
|
+
interface GridRowProps {
|
|
16
|
+
/** Drop-target key -- "top" (item lepas Zone) atau "top:sec-abc123" (Section). */
|
|
17
|
+
dropTargetKey: string;
|
|
18
|
+
items: LayoutItem[];
|
|
19
|
+
blocks: Record<string, BlockDefinition>;
|
|
20
|
+
activeBp: Breakpoint;
|
|
21
|
+
onChange: (items: LayoutItem[]) => void;
|
|
22
|
+
onRemoveItem: (index: number) => void;
|
|
23
|
+
onReassignBlock: (index: number, blockId: string) => void;
|
|
24
|
+
onToggleVisible: (index: number) => void;
|
|
25
|
+
blockDrag: BlockDragState;
|
|
26
|
+
onStartBlockDrag: (itemId: string) => (e: React.PointerEvent) => void;
|
|
27
|
+
/** true kalau row ini dirender di dalam wrapper yang sudah punya background sendiri
|
|
28
|
+
* (mis. dalam SectionRow, yang sudah di dalam box Zone) -- skip bg/border ganda. */
|
|
29
|
+
bare?: boolean;
|
|
30
|
+
/** true selagi Section drag aktif -- GridRow tidak boleh tampil sebagai drop-target
|
|
31
|
+
* Block (highlight/insertion-line-nya) karena drag yang sedang jalan itu level Section,
|
|
32
|
+
* bukan level Block. Tanpa ini, GridRow tetap match blockDrag.dropTargetKey (leftover
|
|
33
|
+
* dari drag Block sebelumnya) dan ikut ter-highlight walau yang di-drag sekarang Section. */
|
|
34
|
+
suppressHighlight?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare function GridRow({ dropTargetKey, items, blocks, activeBp, onChange, onRemoveItem, onReassignBlock, onToggleVisible, blockDrag, onStartBlockDrag, bare, suppressHighlight }: GridRowProps): import("react").JSX.Element;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Breakpoint, LayoutSchema } from "../../index";
|
|
2
|
+
export interface LayoutBuilderProps {
|
|
3
|
+
/** Kalau diisi: builder edit preset ini LANGSUNG (getLayoutPresets()[presetName]),
|
|
4
|
+
* setiap perubahan auto-registerLayoutPreset(presetName, ...) -- TIDAK PERNAH
|
|
5
|
+
* popup nama, TIDAK menyentuh currentLayout global (yang dipakai halaman
|
|
6
|
+
* /layout biasa). Dipakai LayoutSamplePage.tsx (deweb-ui) supaya panel compact
|
|
7
|
+
* di /sample/pages/layoutN cuma bisa nulis ke preset "layoutN" itu sendiri,
|
|
8
|
+
* tidak bisa "nyasar" simpan ke nama lain. Kalau undefined (default): perilaku
|
|
9
|
+
* SEKARANG -- edit currentLayout via getLayout()/setLayout(), TIDAK BERUBAH
|
|
10
|
+
* sama sekali dari sebelumnya. */
|
|
11
|
+
presetName?: string;
|
|
12
|
+
/** Kalau diisi BARENG onSchemaChange: builder jadi FULLY CONTROLLED -- baca
|
|
13
|
+
* schema dari sini (bukan dari getLayout()/getLayoutPresets() internal), tulis
|
|
14
|
+
* via onSchemaChange, TIDAK simpan state lokal sendiri yang bisa out-of-sync.
|
|
15
|
+
* Dipakai LayoutSamplePage.tsx supaya <DynamicLayout> preview di halaman yang
|
|
16
|
+
* sama bisa re-render REALTIME tiap builder compact ini berubah (React state
|
|
17
|
+
* biasa, BUKAN localStorage-polling -- CSS-variable trick ala ThemeStyler
|
|
18
|
+
* TIDAK BISA dipakai di sini karena grid span/visibility/Container width itu
|
|
19
|
+
* Tailwind class yang di-bake saat render, bukan CSS custom property runtime). */
|
|
20
|
+
schema?: LayoutSchema;
|
|
21
|
+
onSchemaChange?: (schema: LayoutSchema) => void;
|
|
22
|
+
/** Compact mode (2026-08-03) -- collapsed jadi strip tipis di bawah viewport,
|
|
23
|
+
* klik utk expand jadi panel penuh lebar (tinggi terbatas, scroll sendiri).
|
|
24
|
+
* Dipakai bareng presetName di halaman sample -- builder besar (/layout) TIDAK
|
|
25
|
+
* pakai mode ini. Otomatis juga menyembunyikan dropdown pilih-preset/"Simpan
|
|
26
|
+
* sebagai Preset"/"Export JSON"/"Reset" (preset-nya sudah fixed lewat
|
|
27
|
+
* presetName, tidak masuk akal biarkan user ganti/rename dari sini). */
|
|
28
|
+
compact?: boolean;
|
|
29
|
+
/** Kalau diisi BARENG onActiveBpChange: breakpoint switcher jadi controlled --
|
|
30
|
+
* dipakai LayoutSamplePage.tsx supaya <DynamicLayout> preview di ATAS panel
|
|
31
|
+
* bisa ikut menyempit/melebar (via prop forceBreakpoint yang sudah ada di
|
|
32
|
+
* DynamicLayout) tiap user ganti Desktop/Tablet/Mobile di compact panel --
|
|
33
|
+
* sebelumnya activeBp cuma state internal builder, preview di parent tidak
|
|
34
|
+
* pernah tahu breakpoint mana yang sedang disimulasikan (2026-08-03, user:
|
|
35
|
+
* "kalo aku ganti mode, previewnya buat menyesuaikan juga"). Kalau undefined:
|
|
36
|
+
* builder pegang activeBp-nya sendiri spt biasa (perilaku /layout, tidak berubah). */
|
|
37
|
+
activeBp?: Breakpoint;
|
|
38
|
+
onActiveBpChange?: (bp: Breakpoint) => void;
|
|
39
|
+
/** WAJIB diisi kalau `presetName` diisi -- dropdown pilih-preset TIDAK BOLEH cuma ganti
|
|
40
|
+
* tampilan state internal saat presetName dikontrol dari luar, karena applyLayout()
|
|
41
|
+
* SELALU registerLayoutPreset(presetName, ...) ke presetName YANG LAMA -- ganti preset
|
|
42
|
+
* via dropdown tanpa ganti presetName berarti hasil edit preset baru nyasar tersimpan ke
|
|
43
|
+
* preset lama (bug nyata, ditemukan 2026-08-04). Dipanggil dgn key preset baru (mis.
|
|
44
|
+
* "layout1"), consumer (LayoutBuilderPage/LayoutSamplePage) yang update presetName-nya --
|
|
45
|
+
* SENGAJA bukan navigasi URL (2026-08-04, user: "biarin disana aja... mau coba2 bikin
|
|
46
|
+
* layout baru ya tetep di /layout/builder"), cukup pindah state React biasa supaya user
|
|
47
|
+
* tetap di halaman yang sama sambil gonta-ganti preset. Tiap preset tetap auto-save
|
|
48
|
+
* realtime ke slotnya sendiri-sendiri lewat applyLayout(), dropdown cuma pindah presetName
|
|
49
|
+
* mana yang lagi "aktif"/ditampilkan. */
|
|
50
|
+
onNavigateToPreset?: (presetKey: string) => void;
|
|
51
|
+
}
|
|
52
|
+
export declare function LayoutBuilder({ presetName, schema: controlledSchema, onSchemaChange, compact, activeBp: controlledActiveBp, onActiveBpChange, onNavigateToPreset }?: LayoutBuilderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WidgetFieldSchema } from "../../index";
|
|
2
|
+
interface WidgetFieldsFormProps {
|
|
3
|
+
fields: Record<string, WidgetFieldSchema>;
|
|
4
|
+
/** Nilai override PER-INSTANCE saat ini (LayoutItem.settings) -- field yg belum
|
|
5
|
+
* di-override tampil pakai fields[key].default sbg placeholder value form. */
|
|
6
|
+
values: Record<string, unknown>;
|
|
7
|
+
onChange: (key: string, value: unknown) => void;
|
|
8
|
+
}
|
|
9
|
+
/** Auto-generate form edit props dari WidgetFieldSchema -- 1 komponen ini yg dipakai
|
|
10
|
+
* baik oleh GridRow (popover per-instance di Layout Builder) maupun BlocksPage (kalau
|
|
11
|
+
* nanti mau preview form di Block Manager). Pola sama seperti Puck/Builder.io: skema
|
|
12
|
+
* field dideklarasikan SEKALI saat registrasi (setBlockComponents), form-nya auto-generate
|
|
13
|
+
* di semua tempat yang butuh, tidak perlu bikin form manual tiap Widget baru. */
|
|
14
|
+
export declare function WidgetFieldsForm({ fields, values, onChange }: WidgetFieldsFormProps): import("react").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diadaptasi dari D:\Project\SBR\Cyclopedia-New\app\components\ui\Accordion.tsx
|
|
3
|
+
* -- aksen 'brand-neon' (#96FF00) diganti brand sesuai BrandGuide.dc.html
|
|
4
|
+
* (2026-07-26, konfirmasi user).
|
|
5
|
+
*
|
|
6
|
+
* HEADLESS UI DILEPAS (2026-07-28, konsisten dengan Modal/Tabs) -- Disclosure diganti
|
|
7
|
+
* useState<Set<number>> murni.
|
|
8
|
+
*
|
|
9
|
+
* 2 fitur baru (2026-07-28, request eksplisit "mirip Tabs, bedanya animasi cara buka +
|
|
10
|
+
* height, dan mode Collapsible single/multi"):
|
|
11
|
+
* - `animation`: 'default' (snap show/hide langsung, behavior lama) | 'slide' (height
|
|
12
|
+
* animate smooth). Height TIDAK bisa di-animate ke 'auto' langsung di CSS -- satu-
|
|
13
|
+
* satunya cara adalah measure scrollHeight via JS (ResizeObserver, supaya ikut
|
|
14
|
+
* berubah kalau konten di dalamnya resize) lalu animate ke angka px itu, balik ke 0
|
|
15
|
+
* saat tutup. Height akhir SELALU auto/ikut konten -- tidak ada prop height fixed
|
|
16
|
+
* terpisah, cukup 1 mode animasi yang otomatis measure.
|
|
17
|
+
* - `collapsible`: 'multi' (default, behavior lama -- tiap item independen, bisa
|
|
18
|
+
* banyak terbuka bersamaan) | 'single' (accordion klasik -- buka satu item otomatis
|
|
19
|
+
* nutup yang lain, cuma 1 yang bisa terbuka).
|
|
20
|
+
*/
|
|
21
|
+
export interface AccordionItem {
|
|
22
|
+
title: React.ReactNode;
|
|
23
|
+
content: React.ReactNode;
|
|
24
|
+
defaultOpen?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface AccordionProps {
|
|
27
|
+
items: AccordionItem[];
|
|
28
|
+
className?: string;
|
|
29
|
+
itemClassName?: string;
|
|
30
|
+
/** 'default' -- snap langsung (behavior lama). 'slide' -- height animate smooth. */
|
|
31
|
+
animation?: 'default' | 'slide';
|
|
32
|
+
/** 'multi' (default) -- tiap item independen. 'single' -- buka 1 otomatis nutup yang lain. */
|
|
33
|
+
collapsible?: 'single' | 'multi';
|
|
34
|
+
size?: 'sm' | 'default' | 'lg';
|
|
35
|
+
}
|
|
36
|
+
export declare function Accordion({ items, className, itemClassName, animation, collapsible, size }: AccordionProps): import("react").JSX.Element;
|