@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,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DrawerProps {
|
|
3
|
+
/** Status buka / tutup drawer */
|
|
4
|
+
isOpen?: boolean;
|
|
5
|
+
/** Alias untuk isOpen */
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
onOpen?: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Gaya render drawer:
|
|
11
|
+
* - 'overlay': Melayang di atas viewport dengan backdrop (default)
|
|
12
|
+
* - 'inline': Tertanam di dalam layout flex lokal dengan physical margin push
|
|
13
|
+
* - 'push': Mendorong target selector (seperti body atau main container)
|
|
14
|
+
* - 'hide': Mode swipe/hide tersembunyi
|
|
15
|
+
* - 'responsive' | 'auto': Otomatis 'inline' di layar desktop (>=1024px) dan 'overlay' di layar mobile/tablet (<1024px)
|
|
16
|
+
*/
|
|
17
|
+
variant?: 'overlay' | 'push' | 'inline' | 'hide' | 'responsive' | 'auto';
|
|
18
|
+
position?: 'left' | 'right' | 'top' | 'bottom';
|
|
19
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'auto' | (string & {});
|
|
20
|
+
/** Override lebar eksplisit untuk panel vertikal (left/right), misal 340, "320px", "24rem" */
|
|
21
|
+
width?: string | number;
|
|
22
|
+
/** Override tinggi eksplisit untuk panel horizontal (top/bottom) */
|
|
23
|
+
height?: string | number;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
/** Judul di header bar bawaan */
|
|
26
|
+
title?: React.ReactNode;
|
|
27
|
+
/** Deskripsi / subjudul di bawah title */
|
|
28
|
+
description?: React.ReactNode;
|
|
29
|
+
/** Aksi tambahan di sebelah tombol close header */
|
|
30
|
+
actions?: React.ReactNode;
|
|
31
|
+
/** Konten footer di bagian bawah drawer */
|
|
32
|
+
footer?: React.ReactNode;
|
|
33
|
+
/** Kelas CSS tambahan untuk kontainer footer drawer */
|
|
34
|
+
footerClassName?: string;
|
|
35
|
+
/** Tampilkan tombol silang (✕) di pojok kanan atas */
|
|
36
|
+
showCloseButton?: boolean;
|
|
37
|
+
/** Sembunyikan backdrop overlay (otomatis true pada variant="inline") */
|
|
38
|
+
hideBackdrop?: boolean;
|
|
39
|
+
backdropClassName?: string;
|
|
40
|
+
closeOnBackdropClick?: boolean;
|
|
41
|
+
/** Tutup drawer saat tombol ESC ditekan. Default true */
|
|
42
|
+
closeOnEsc?: boolean;
|
|
43
|
+
/** Kunci scroll body saat drawer overlay terbuka. Default true untuk overlay, false untuk inline */
|
|
44
|
+
lockScroll?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Jika true, overlay dirender absolute di dalam parent container (relative)
|
|
47
|
+
* alih-alih fixed di seluruh viewport window. Sangat cocok untuk canvas/preview box.
|
|
48
|
+
*/
|
|
49
|
+
contained?: boolean;
|
|
50
|
+
className?: string;
|
|
51
|
+
pushTarget?: string;
|
|
52
|
+
trigger?: React.ReactNode;
|
|
53
|
+
draggable?: boolean;
|
|
54
|
+
}
|
|
55
|
+
export declare const Drawer: React.ForwardRefExoticComponent<DrawerProps & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
export declare function DrawerHeader({ children, className }: {
|
|
57
|
+
children: React.ReactNode;
|
|
58
|
+
className?: string;
|
|
59
|
+
}): React.JSX.Element;
|
|
60
|
+
export declare function DrawerBody({ children, className }: {
|
|
61
|
+
children: React.ReactNode;
|
|
62
|
+
className?: string;
|
|
63
|
+
}): React.JSX.Element;
|
|
64
|
+
export declare function DrawerFooter({ children, className }: {
|
|
65
|
+
children: React.ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
}): React.JSX.Element;
|
|
68
|
+
export declare function DrawerCloseButton({ onClick, className }: {
|
|
69
|
+
onClick?: () => void;
|
|
70
|
+
className?: string;
|
|
71
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DropdownAnimationType = 'default' | 'fade' | 'slide' | 'bounce' | 'zoom' | 'none';
|
|
2
|
+
export declare function getDropdownAnimationClass(animation?: DropdownAnimationType, isUp?: boolean): "" | "deweb-anim-fade" | "deweb-anim-zoom" | "deweb-anim-bounce-up" | "deweb-anim-bounce-down" | "deweb-anim-slide-up" | "deweb-anim-slide-down";
|
|
3
|
+
export declare const DROPDOWN_ANIMATION_OPTIONS: {
|
|
4
|
+
value: DropdownAnimationType;
|
|
5
|
+
label: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ButtonVariantsProps } from './button';
|
|
3
|
+
import { type DropdownAnimationType } from './dropdown-animation';
|
|
4
|
+
import type { DewebRadius } from '../../lib/theme/types';
|
|
5
|
+
export interface DropdownProps {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Posisi panel relatif trigger. Default 'start' (rata kiri). */
|
|
9
|
+
align?: 'start' | 'end';
|
|
10
|
+
/** Offset dalam pixel untuk menggeser panel secara horizontal (x-axis) */
|
|
11
|
+
alignOffset?: number;
|
|
12
|
+
/** Jarak vertikal dalam pixel antara trigger dengan panel mengambang. Default 8px (atau 0 jika connected). */
|
|
13
|
+
sideOffset?: number;
|
|
14
|
+
size?: 'default' | 'sm';
|
|
15
|
+
open?: boolean;
|
|
16
|
+
onOpenChange?: (open: boolean) => void;
|
|
17
|
+
connected?: boolean;
|
|
18
|
+
noGradient?: boolean;
|
|
19
|
+
/** Posisi menu relatif terhadap trigger. Default 'bottom'. */
|
|
20
|
+
side?: 'bottom' | 'top' | 'left' | 'right';
|
|
21
|
+
triggerAction?: 'click' | 'hover';
|
|
22
|
+
animation?: DropdownAnimationType;
|
|
23
|
+
animationDuration?: number;
|
|
24
|
+
/** Lengkung sudut panel dropdown. Default 'md' mengikuti preset Form & Theme Styler */
|
|
25
|
+
radius?: DewebRadius;
|
|
26
|
+
}
|
|
27
|
+
export declare function getDynamicDropdownOffset(): number;
|
|
28
|
+
export declare function Dropdown({ children, className, align, alignOffset, sideOffset, size, open, onOpenChange, connected, noGradient, side, triggerAction, animation, animationDuration, radius }: DropdownProps): React.JSX.Element;
|
|
29
|
+
interface DropdownTriggerProps extends React.HTMLAttributes<HTMLDivElement>, ButtonVariantsProps {
|
|
30
|
+
asChild?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
showChevron?: boolean;
|
|
33
|
+
icon?: React.ReactNode;
|
|
34
|
+
iconOpen?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare const DropdownTrigger: React.ForwardRefExoticComponent<DropdownTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export declare function DropdownContent({ children, className }: {
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
className?: string;
|
|
40
|
+
}): React.ReactPortal | null;
|
|
41
|
+
export interface DropdownItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
42
|
+
icon?: React.ReactNode | string;
|
|
43
|
+
danger?: boolean;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
asChild?: boolean;
|
|
46
|
+
/** Tandai item ini sebagai pilihan yang sedang aktif/terpilih (mis. locale saat ini di
|
|
47
|
+
* dropdown Localize) -- sebelumnya caller sudah pass prop ini tapi didrop diam-diam
|
|
48
|
+
* karena tidak pernah didefinisikan di interface (gap 2026-08-13). */
|
|
49
|
+
active?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export declare const DropdownItem: React.ForwardRefExoticComponent<DropdownItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
export declare function DropdownLabel({ children, className }: {
|
|
53
|
+
children: React.ReactNode;
|
|
54
|
+
className?: string;
|
|
55
|
+
}): React.JSX.Element;
|
|
56
|
+
export declare function DropdownSeparator({ className }: {
|
|
57
|
+
className?: string;
|
|
58
|
+
}): React.JSX.Element;
|
|
59
|
+
export declare function DropdownHeader({ children, className }: {
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
}): React.JSX.Element;
|
|
63
|
+
export declare function DropdownScrollArea({ children, className }: {
|
|
64
|
+
children: React.ReactNode;
|
|
65
|
+
className?: string;
|
|
66
|
+
}): React.JSX.Element;
|
|
67
|
+
export declare function DropdownFooter({ children, className }: {
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
className?: string;
|
|
70
|
+
}): React.JSX.Element;
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ErrorStateProps {
|
|
3
|
+
status?: number | null;
|
|
4
|
+
title?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
onRetry?: () => void;
|
|
8
|
+
detail?: string;
|
|
9
|
+
illustration?: React.ReactNode;
|
|
10
|
+
variant?: 'default' | 'fullscreen';
|
|
11
|
+
className?: string;
|
|
12
|
+
detailLabel?: string;
|
|
13
|
+
retryLabel?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function ErrorState({ status, title, message, description, onRetry, detail, illustration, variant, className, detailLabel, retryLabel }: ErrorStateProps): React.JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FilterBarTab {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
count?: number | string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface FilterBarSearchConfig {
|
|
10
|
+
value?: string;
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
onSearch?: (value: string) => void;
|
|
15
|
+
onClear?: () => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
borderless?: boolean;
|
|
18
|
+
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
19
|
+
}
|
|
20
|
+
export interface FilterBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
21
|
+
/** Daftar tab/pills filter di sebelah kiri */
|
|
22
|
+
tabs?: FilterBarTab[];
|
|
23
|
+
/** Key dari tab yang sedang aktif */
|
|
24
|
+
activeTab?: string;
|
|
25
|
+
/** Callback saat tab dipilih */
|
|
26
|
+
onTabChange?: (key: string) => void;
|
|
27
|
+
/** Konfigurasi search input di sebelah kanan (atau boolean true untuk default search) */
|
|
28
|
+
search?: FilterBarSearchConfig | boolean;
|
|
29
|
+
/** Konten kustom tambahan di sisi kiri */
|
|
30
|
+
leftContent?: React.ReactNode;
|
|
31
|
+
/** Konten aksi di sisi kanan (seperti tombol sortir, toggle grid/list, refresh) */
|
|
32
|
+
actions?: React.ReactNode;
|
|
33
|
+
/** Varian visual tampilan: 'default' | 'card' | 'subtle' | 'transparent' */
|
|
34
|
+
variant?: 'default' | 'card' | 'subtle' | 'transparent';
|
|
35
|
+
/** Varian pill tab aktif: 'solid' (modern tegas, default) | 'soft' | 'outline' */
|
|
36
|
+
pillVariant?: 'solid' | 'soft' | 'outline';
|
|
37
|
+
/** Ukuran elemen di dalam FilterBar */
|
|
38
|
+
size?: 'sm' | 'md';
|
|
39
|
+
/** Radius sudut (default mengikuti Card: 'lg') */
|
|
40
|
+
radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
41
|
+
/** Hilangkan border pada SelectPill (default: true) */
|
|
42
|
+
pillBorderless?: boolean;
|
|
43
|
+
/** Hilangkan border pada Search bar (default: false untuk tampilan modern tegas) */
|
|
44
|
+
searchBorderless?: boolean;
|
|
45
|
+
/** Radius sudut khusus Search bar (default: mewarisi radius FilterBar atau 'lg') */
|
|
46
|
+
searchRadius?: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
47
|
+
/** Children jika ingin melakukan komposisi bebas di dalam bar */
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
}
|
|
50
|
+
export declare function FilterBar({ tabs, activeTab, onTabChange, search, leftContent, actions, variant, pillVariant, size, radius, pillBorderless, searchBorderless, searchRadius, className, children, ...props }: FilterBarProps): React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FilterBar2
|
|
3
|
+
} from "../../chunk-26ban96z.js";
|
|
4
|
+
import"../../chunk-qmbwp4k7.js";
|
|
5
|
+
import"../../chunk-vpvnvegz.js";
|
|
6
|
+
import"../../chunk-m3t14v77.js";
|
|
7
|
+
import"../../chunk-nhhgsdt3.js";
|
|
8
|
+
import"../../chunk-4jrq15v9.js";
|
|
9
|
+
import"../../chunk-je0j5sn4.js";
|
|
10
|
+
import"../../chunk-19jsevr8.js";
|
|
11
|
+
import"../../chunk-kv58555q.js";
|
|
12
|
+
import"../../chunk-k2b698v5.js";
|
|
13
|
+
import"../../chunk-dsddmmdk.js";
|
|
14
|
+
import"../../chunk-x4pk7vxm.js";
|
|
15
|
+
export {
|
|
16
|
+
FilterBar2 as FilterBar
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//# debugId=C2F2471AA969401F64756E2164756E21
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ColorKey, ColorTone } from '../../lib/color';
|
|
3
|
+
import type { FontElementKey, FontScaleKey, FontWeightKey } from '../../lib/font/types';
|
|
4
|
+
export interface FontProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
name?: FontElementKey;
|
|
6
|
+
as?: React.ElementType;
|
|
7
|
+
size?: FontScaleKey | (string & {});
|
|
8
|
+
weight?: FontWeightKey | number | (string & {});
|
|
9
|
+
family?: string;
|
|
10
|
+
color?: ColorKey | (string & {});
|
|
11
|
+
tone?: ColorTone;
|
|
12
|
+
type?: 'latin' | 'arabic' | 'rtl' | 'ltr';
|
|
13
|
+
script?: 'latin' | 'arabic' | 'rtl' | 'ltr';
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Komponen `<Font>`
|
|
17
|
+
*
|
|
18
|
+
* Satu pintu tipografi UI Kit untuk:
|
|
19
|
+
* - Role/kamus skala (`name`, `size`, `weight`)
|
|
20
|
+
* - Multi-sumber font (`family` dari brand slot, Google Fonts, atau asset lokal)
|
|
21
|
+
* - Multi-script & RTL/LTR otomatis (`type="arabic"` / `script="arabic"`)
|
|
22
|
+
* - Integrasi warna dari Color Engine (`color`, `tone`)
|
|
23
|
+
*/
|
|
24
|
+
export declare const Font: React.ForwardRefExoticComponent<FontProps & React.RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DewebRadius } from '../../lib/theme/types';
|
|
3
|
+
import { type DropdownAnimationType } from './dropdown-animation';
|
|
4
|
+
/**
|
|
5
|
+
* Diadaptasi dari D:\Project\SBR\Cyclopedia-New\app\components\ui\FormAdvanced.tsx
|
|
6
|
+
* -- aksen 'brand-neon' diganti brand (BrandGuide.dc.html, 2026-07-26).
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* CardSelection -- base component untuk semua "card yang bisa dipilih" (2026-07-28).
|
|
10
|
+
* RadioCard (radio-style, single-select) dan VoucherCard (checkbox-style/klik-toggle)
|
|
11
|
+
* SAMA-SAMA turunan dari ini -- request eksplisit: "bordernya bisa mengikuti parent, walau
|
|
12
|
+
* nanti dalemnya itu beda, biar seragam". Sebelumnya RadioCard dan VoucherCard masing-
|
|
13
|
+
* masing punya border/shadow logic sendiri (border-2 vs border-2, warna beda-beda) yang
|
|
14
|
+
* gampang divergen kalau salah satu diubah tanpa yang lain ikut -- sekarang SATU sumber
|
|
15
|
+
* kebenaran untuk border+shadow-ring "selected", styling konten (icon/title/dst) tetap
|
|
16
|
+
* sepenuhnya ditentukan oleh children masing-masing turunan.
|
|
17
|
+
*
|
|
18
|
+
* Border SELALU 1px di semua state -- border-2 khusus selected sempat dicoba, tapi
|
|
19
|
+
* ketebalan border yang beda antar state bikin card sedikit "geser"/reflow (box-sizing
|
|
20
|
+
* beda ketebalan), transisinya kurang smooth (dilaporkan 2026-07-28: "agak aneh"). Efek
|
|
21
|
+
* "solid/menonjol" untuk selected sekarang dari box-shadow ring (shadow-[0_0_0_1px_...] --
|
|
22
|
+
* inset tambahan 1px yang menumpuk di ATAS border asli, TIDAK mempengaruhi dimensi/layout
|
|
23
|
+
* elemen sama sekali karena shadow tidak ambil ruang, beda dari border yang mengubah
|
|
24
|
+
* box-sizing).
|
|
25
|
+
*/
|
|
26
|
+
import { SelectCard, type SelectCardProps } from './select-card';
|
|
27
|
+
export { SelectCard, type SelectCardProps };
|
|
28
|
+
export declare function RadioCard({ title, price, description, selected, onChange, icon, disabled, name, value, }: {
|
|
29
|
+
title: React.ReactNode;
|
|
30
|
+
price?: React.ReactNode;
|
|
31
|
+
description?: React.ReactNode;
|
|
32
|
+
selected: boolean;
|
|
33
|
+
onChange: () => void;
|
|
34
|
+
icon?: React.ReactNode;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Native <input type="radio"> tersembunyi (2026-07-28, gap "tidak ada native input di
|
|
37
|
+
* baliknya") -- `name` sama untuk grup RadioCard yang saling eksklusif, `value` identifier
|
|
38
|
+
* unik tiap opsi. Keduanya opsional -- kalau tidak di-set, RadioCard tetap berfungsi penuh
|
|
39
|
+
* sebagai controlled component seperti sebelumnya, cuma tidak native-form-integratable. */
|
|
40
|
+
name?: string;
|
|
41
|
+
value?: string;
|
|
42
|
+
}): React.JSX.Element;
|
|
43
|
+
/**
|
|
44
|
+
* CheckboxCard -- turunan CardSelection sama seperti RadioCard, BEDA cuma di semantik +
|
|
45
|
+
* bentuk indicator: kotak (rounded, bukan rounded-full) dengan ikon centang, untuk
|
|
46
|
+
* multiple-select (bukan single-choice seperti RadioCard). Struktur JSX identik RadioCard
|
|
47
|
+
* di luar indicator-nya -- request eksplisit 2026-07-28: "single choice dan multiple
|
|
48
|
+
* seperti checkbox".
|
|
49
|
+
*/
|
|
50
|
+
export declare function CheckboxCard({ title, price, description, checked, onChange, icon, disabled, name, value, }: {
|
|
51
|
+
title: React.ReactNode;
|
|
52
|
+
price?: React.ReactNode;
|
|
53
|
+
description?: React.ReactNode;
|
|
54
|
+
checked: boolean;
|
|
55
|
+
onChange: () => void;
|
|
56
|
+
icon?: React.ReactNode;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/** Native <input type="checkbox"> tersembunyi (2026-07-28, gap "tidak ada native input
|
|
59
|
+
* di baliknya") -- opsional, sama filosofi RadioCard. */
|
|
60
|
+
name?: string;
|
|
61
|
+
value?: string;
|
|
62
|
+
}): React.JSX.Element;
|
|
63
|
+
export interface SelectOption {
|
|
64
|
+
value: string | number;
|
|
65
|
+
/** Label teks biasa (mode dropdown/typesearch/modal-list default). */
|
|
66
|
+
name?: string;
|
|
67
|
+
/** Alias label untuk fleksibilitas konsumsi API standar */
|
|
68
|
+
label?: string;
|
|
69
|
+
/** Kalau di-set (bersama `subtitle`/`avatarUrl`/`icon`), opsi dirender sebagai
|
|
70
|
+
* "user card" (avatar + title + subtitle) alih-alih baris teks biasa -- dipakai
|
|
71
|
+
* mode `user-picker` MAUPUN bisa dipasang ke opsi mode lain (list konten "rich" ini
|
|
72
|
+
* independen dari mode bukaan dropdown/modal, 2026-07-28: "itu kan tipe list, bukan
|
|
73
|
+
* tipe bukaan"). `name` tetap dipakai untuk pencarian & sebagai fallback title. */
|
|
74
|
+
subtitle?: string;
|
|
75
|
+
avatarUrl?: string;
|
|
76
|
+
icon?: React.ReactNode;
|
|
77
|
+
/** Ikon khusus yang dirender langsung tanpa dibungkus kotak avatar besar (untuk warna dsb) */
|
|
78
|
+
inlineIcon?: React.ReactNode;
|
|
79
|
+
/** Sembunyikan avatar bundar meskipun opsi memiliki subtitle / icon */
|
|
80
|
+
hideAvatar?: boolean;
|
|
81
|
+
/** Opsi ini tidak bisa dipilih (mis. produk out-of-stock) -- pola sama FilterSelection/SelectGroup. */
|
|
82
|
+
disabled?: boolean;
|
|
83
|
+
}
|
|
84
|
+
export declare function getSelectOptionLabel(option?: SelectOption): string;
|
|
85
|
+
/** Satu baris opsi di dalam dropdown/modal-list -- dipakai SEMUA mode (2026-07-28, "hover
|
|
86
|
+
* dan active harus seragam dari border, color, dan stylingnya, bungkusnya beda tapi ada
|
|
87
|
+
* hal yang bikin seragam"). State visual (idle/hover/selected) SAMA di semua mode -- yang
|
|
88
|
+
* beda cuma WADAH-nya (dropdown panel vs modal panel). Rich (avatar+subtitle) dan simple
|
|
89
|
+
* (teks saja) sama-sama pakai fungsi ini, isRich ditentukan otomatis dari data opsi.
|
|
90
|
+
*
|
|
91
|
+
* `option.disabled` (2026-07-28, gap "disabled per-opsi") -- styling sama seperti
|
|
92
|
+
* FilterSelection/SelectGroup (abu-abu, cursor-not-allowed), `isActive` (keyboard
|
|
93
|
+
* highlight) SENGAJA tidak pernah true untuk opsi disabled (di-skip di keyboard nav
|
|
94
|
+
* Select), klik tidak memanggil `onClick`.
|
|
95
|
+
*/
|
|
96
|
+
export declare function SelectOptionRow({ option, isSelected, isActive, size, onClick, }: {
|
|
97
|
+
option: SelectOption;
|
|
98
|
+
isSelected: boolean;
|
|
99
|
+
isActive?: boolean;
|
|
100
|
+
size?: 'default' | 'sm' | 'md' | 'normal' | 'lg' | string;
|
|
101
|
+
onClick: () => void;
|
|
102
|
+
}): React.JSX.Element;
|
|
103
|
+
/**
|
|
104
|
+
* Select -- pengganti terunifikasi DropdownSelect/ModalSelect/
|
|
105
|
+
* RichModalSelect/WheelSelect (2026-07-28, request eksplisit "border, size,
|
|
106
|
+
* radius harus seragam" + "Select ada banyak Mode: Dropdown, TypeSearch, Modal Select,
|
|
107
|
+
* Multiple Select" + "mode pilih User, ada Icon/Avatar, Nama dan @username").
|
|
108
|
+
*
|
|
109
|
+
* DUA SUMBU independen (2026-07-28, "itu kan tipe list, bukan tipe bukaan"):
|
|
110
|
+
* - `openMode`: 'dropdown' (panel muncul di bawah trigger) | 'modal' (Modal terpusat,
|
|
111
|
+
* cocok mobile/opsi banyak).
|
|
112
|
+
* - Tipe render OPSI: otomatis "rich" (avatar+title+@username) begitu opsi punya
|
|
113
|
+
* `avatarUrl`/`icon`/`subtitle`, atau "simple" (teks polos) kalau tidak -- BUKAN prop
|
|
114
|
+
* terpisah, supaya satu set `options` yang sama bisa dipasang ke openMode manapun.
|
|
115
|
+
* - `searchable`: tampilkan search box di dalam panel/modal (typeahead filter by `name`
|
|
116
|
+
* DAN `subtitle`). Menggantikan `searchMode='show'|'hide'|'auto'` yang lama -- boolean
|
|
117
|
+
* lebih predictable daripada heuristik "auto tampil kalau opsi >= 5".
|
|
118
|
+
* - `multiple`: SELALU tampil sebagai chip di dalam trigger (pola sama TagInput/form.tsx)
|
|
119
|
+
* -- dropdown/modal TETAP terbuka setelah pilih satu opsi (beda dari single-select yang
|
|
120
|
+
* langsung tutup), supaya user bisa pilih beberapa berturut-turut.
|
|
121
|
+
*
|
|
122
|
+
* SEMUA mode berbagi SelectTrigger (field seragam) dan SelectOptionRow (baris opsi
|
|
123
|
+
* seragam: idle/hover/selected identik) -- HANYA wadah (dropdown panel vs Modal) yang beda.
|
|
124
|
+
*/
|
|
125
|
+
export declare function Select({ options, value, onChange, placeholder, searchPlaceholder, className, openMode, searchable, multiple, disabled, invalid, clearable, loading, size, radius, animation, menuMaxHeight, name, label, theme, align, }: {
|
|
126
|
+
options: SelectOption[];
|
|
127
|
+
value?: string | number | (string | number)[];
|
|
128
|
+
onChange: (val: any) => void;
|
|
129
|
+
placeholder?: string;
|
|
130
|
+
/** Placeholder search box, dulu hardcode "Cari...". */
|
|
131
|
+
searchPlaceholder?: string;
|
|
132
|
+
className?: string;
|
|
133
|
+
openMode?: 'dropdown' | 'modal';
|
|
134
|
+
searchable?: boolean;
|
|
135
|
+
multiple?: boolean;
|
|
136
|
+
/** Nonaktifkan seluruh field (mis. saat form submit/loading). */
|
|
137
|
+
disabled?: boolean;
|
|
138
|
+
/** Border merah, pola sama `!border-[color:var(--color-danger)]` di Input biasa -- untuk validasi form. */
|
|
139
|
+
invalid?: boolean;
|
|
140
|
+
/** Tombol X untuk reset ke kosong (mode single saja) tanpa perlu buka dropdown. */
|
|
141
|
+
clearable?: boolean;
|
|
142
|
+
/** Spinner di dalam panel + trigger disabled -- untuk `options` yang di-fetch async. */
|
|
143
|
+
loading?: boolean;
|
|
144
|
+
/** Ukuran baris dropdown dan tinggi trigger */
|
|
145
|
+
size?: 'xs' | 'sm' | 'md' | 'default' | 'lg';
|
|
146
|
+
/** Lengkung sudut komponen Select (trigger & menu). Default 'md' mengikuti preset Form & Theme Styler */
|
|
147
|
+
radius?: DewebRadius;
|
|
148
|
+
/** Efek animasi saat dropdown muncul ('default' | 'slide' | 'fade' | 'zoom' | 'bounce' | 'none') */
|
|
149
|
+
animation?: DropdownAnimationType;
|
|
150
|
+
/** Maksimal tinggi dropdown */
|
|
151
|
+
menuMaxHeight?: string;
|
|
152
|
+
/** Hidden native <input> untuk native form submission (FormData/<form onSubmit>). */
|
|
153
|
+
name?: string;
|
|
154
|
+
label?: React.ReactNode;
|
|
155
|
+
/** Tema tampilan Select: 'light' | 'dark' | 'auto' (default: 'auto', otomatis adaptasi dengan .deweb-dark-scope / .dark terdekat) */
|
|
156
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
157
|
+
/** Penjajaran horizontal menu dropdown: 'left' | 'right' | 'auto' (default 'auto', rata kanan otomatis jika dekat tepi kanan layar) */
|
|
158
|
+
align?: 'left' | 'right' | 'auto';
|
|
159
|
+
}): React.JSX.Element;
|
|
160
|
+
/** Alias -- beberapa consumer (deweb-portal-admin) sudah lama pakai nama "SelectInput"
|
|
161
|
+
* sebelum komponen ini resmi dinamai `Select` di kit. Dipertahankan supaya import lama
|
|
162
|
+
* tidak perlu diubah satu-satu -- SATU-SATUNYA sumber implementasi tetap `Select` di atas.
|
|
163
|
+
* Ditemukan hilang & ditambahkan kembali 2026-08-16 (import error "does not provide an
|
|
164
|
+
* export named 'SelectInput'"). */
|
|
165
|
+
export declare const SelectInput: typeof Select;
|
|
166
|
+
export type SelectInputOption = SelectOption;
|
|
167
|
+
export interface SelectPillProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
168
|
+
selected?: boolean;
|
|
169
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
170
|
+
radius?: DewebRadius;
|
|
171
|
+
variant?: 'solid' | 'soft' | 'outline' | 'ghost';
|
|
172
|
+
borderless?: boolean;
|
|
173
|
+
count?: number | string;
|
|
174
|
+
icon?: React.ReactNode;
|
|
175
|
+
}
|
|
176
|
+
export declare const SelectPill: React.ForwardRefExoticComponent<SelectPillProps & React.RefAttributes<HTMLButtonElement>>;
|
|
177
|
+
export interface PillListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
178
|
+
children: React.ReactNode;
|
|
179
|
+
scrollable?: boolean;
|
|
180
|
+
arrows?: boolean;
|
|
181
|
+
className?: string;
|
|
182
|
+
listClassName?: string;
|
|
183
|
+
}
|
|
184
|
+
export declare const PillList: React.ForwardRefExoticComponent<PillListProps & React.RefAttributes<HTMLDivElement>>;
|
|
185
|
+
export declare const SelectPillList: React.ForwardRefExoticComponent<PillListProps & React.RefAttributes<HTMLDivElement>>;
|
|
186
|
+
export type SelectColorState = 'idle' | 'hover' | 'active' | 'focused' | 'disabled';
|
|
187
|
+
export interface SelectColorProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> {
|
|
188
|
+
colorHex: string;
|
|
189
|
+
selected?: boolean;
|
|
190
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
191
|
+
animatedRing?: boolean;
|
|
192
|
+
imageUrl?: string;
|
|
193
|
+
radius?: DewebRadius;
|
|
194
|
+
tooltip?: React.ReactNode;
|
|
195
|
+
/** State override visual untuk dokumentasi / showcase galeri state */
|
|
196
|
+
state?: SelectColorState;
|
|
197
|
+
}
|
|
198
|
+
export declare const SelectColor: React.ForwardRefExoticComponent<SelectColorProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FormRoot as BaseForm } from './form-context';
|
|
2
|
+
import { Textarea, SelectNative, CheckboxIndicator, Radio, RadioIndicator, Switch, MultiSelect, SelectGroup, FilterSelection, NumberRangeInput, PhoneInput, InputErrorText, InputPassword, InputEmail, InputNumber, InputCurrency, InputAlphanumeric, InputColor, InputUrl, RangeSlider, DualRangeSlider, StepSlider, FileInput, FileInputMultiple, TagInput, PrefixInput } from './form';
|
|
3
|
+
import { Select, RadioCard, CheckboxCard } from './form-advanced';
|
|
4
|
+
import { InputDate, InputDateRange, InputTime, InputTimeRange, InputDateTime, InputYear, InputMonth } from './date-time-picker';
|
|
5
|
+
import { InputCode } from './input-code';
|
|
6
|
+
/**
|
|
7
|
+
* Namespace Form dengan compound subkomponen untuk mempermudah auto-suggestion & grouping.
|
|
8
|
+
* Didefinisikan di file terpisah (form-compound) untuk menghindari circular dependency
|
|
9
|
+
* antara form-context dengan Input/Textarea/Select.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Form: typeof BaseForm & {
|
|
12
|
+
Label: import("react").ForwardRefExoticComponent<import("./label").LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
13
|
+
Input: import("react").ForwardRefExoticComponent<import("./input").InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
|
+
Textarea: typeof Textarea;
|
|
15
|
+
Select: typeof Select;
|
|
16
|
+
SelectInput: typeof Select;
|
|
17
|
+
SelectNative: typeof SelectNative;
|
|
18
|
+
SelectGroup: typeof SelectGroup;
|
|
19
|
+
SelectCard: import("react").ForwardRefExoticComponent<import("./select-card").SelectCardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
SelectPill: import("react").ForwardRefExoticComponent<import("./form-advanced").SelectPillProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
PillList: import("react").ForwardRefExoticComponent<import("./form-advanced").PillListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
SelectColor: import("react").ForwardRefExoticComponent<import("./form-advanced").SelectColorProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
MultiSelect: typeof MultiSelect;
|
|
24
|
+
Password: typeof InputPassword;
|
|
25
|
+
Email: typeof InputEmail;
|
|
26
|
+
Number: typeof InputNumber;
|
|
27
|
+
Currency: typeof InputCurrency;
|
|
28
|
+
Alphanumeric: typeof InputAlphanumeric;
|
|
29
|
+
Url: typeof InputUrl;
|
|
30
|
+
Phone: typeof PhoneInput;
|
|
31
|
+
Code: typeof InputCode;
|
|
32
|
+
Date: typeof InputDate;
|
|
33
|
+
DateRange: typeof InputDateRange;
|
|
34
|
+
Time: typeof InputTime;
|
|
35
|
+
TimeRange: typeof InputTimeRange;
|
|
36
|
+
DateTime: typeof InputDateTime;
|
|
37
|
+
Year: typeof InputYear;
|
|
38
|
+
Month: typeof InputMonth;
|
|
39
|
+
Checkbox: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
40
|
+
CheckboxIndicator: typeof CheckboxIndicator;
|
|
41
|
+
CheckboxCard: typeof CheckboxCard;
|
|
42
|
+
Radio: typeof Radio;
|
|
43
|
+
RadioIndicator: typeof RadioIndicator;
|
|
44
|
+
RadioCard: typeof RadioCard;
|
|
45
|
+
Switch: typeof Switch;
|
|
46
|
+
File: typeof FileInput;
|
|
47
|
+
Files: typeof FileInputMultiple;
|
|
48
|
+
Color: typeof InputColor;
|
|
49
|
+
Slider: typeof RangeSlider;
|
|
50
|
+
DualSlider: typeof DualRangeSlider;
|
|
51
|
+
StepSlider: typeof StepSlider;
|
|
52
|
+
NumberRange: typeof NumberRangeInput;
|
|
53
|
+
Grid: import("react").FC<import("./input-grid").InputGridProps>;
|
|
54
|
+
Tag: typeof TagInput;
|
|
55
|
+
Prefix: typeof PrefixInput;
|
|
56
|
+
FilterSelection: typeof FilterSelection;
|
|
57
|
+
ErrorText: typeof InputErrorText;
|
|
58
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type FormLabelPosition = 'top' | 'left';
|
|
3
|
+
export interface FormContextValue {
|
|
4
|
+
labelPosition: FormLabelPosition;
|
|
5
|
+
labelWidth: string;
|
|
6
|
+
isDirty: boolean;
|
|
7
|
+
setIsDirty: (dirty: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useFormContext: () => FormContextValue;
|
|
10
|
+
export interface FormProps extends React.FormHTMLAttributes<HTMLFormElement> {
|
|
11
|
+
labelPosition?: FormLabelPosition;
|
|
12
|
+
labelWidth?: string;
|
|
13
|
+
/** Otomatis aktifkan peringatan browser saat refresh/tutup tab jika form telah diisi (default: true) */
|
|
14
|
+
preventUnload?: boolean;
|
|
15
|
+
/** Status dirty manual (opsional, otomatis terdeteksi jika tidak diisi) */
|
|
16
|
+
isDirty?: boolean;
|
|
17
|
+
}
|
|
18
|
+
declare function FormRoot({ labelPosition, labelWidth, preventUnload, isDirty: isDirtyProp, children, className, onSubmit, ...props }: FormProps): React.JSX.Element;
|
|
19
|
+
export { FormRoot };
|