@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,451 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Input, type InputProps } from './input';
|
|
3
|
+
import { type IconComponent } from '../../lib/icon';
|
|
4
|
+
/**
|
|
5
|
+
* Diadaptasi dari D:\Project\SBR\Cyclopedia-New\app\components\ui\Form.tsx
|
|
6
|
+
* -- aksen 'brand-neon' diganti brand (BrandGuide.dc.html, 2026-07-26).
|
|
7
|
+
* `Input` dasar sudah ada di input.tsx (dipakai luas di project ini) --
|
|
8
|
+
* di sini cuma tambah komponen form lain yang belum ada: Textarea, Select,
|
|
9
|
+
* Checkbox, MultiSelect, FilterSelection, NumberRangeInput, PhoneInput,
|
|
10
|
+
* RangeSlider, DualRangeSlider, Radio, FileInput, PrefixInput, TagInput.
|
|
11
|
+
*
|
|
12
|
+
* `CustomSelect` (searchable combobox dengan value berupa object {value, label})
|
|
13
|
+
* DIHAPUS 2026-07-28 -- API-nya divergen dari keluarga Select (form-advanced.tsx,
|
|
14
|
+
* value primitive string|number) dan jarang dipakai, digantikan sepenuhnya oleh
|
|
15
|
+
* `Select` dengan `searchable={true}`.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Border/radius/padding/font-size DISAMAKAN PERSIS <Input inputSize="default"> (2026-07-28,
|
|
19
|
+
* "Textarea border-nya samakan dengan Input") -- sebelumnya rounded-lg (12px, beda dari
|
|
20
|
+
* Input rounded-md/8px), px-4 (16px, beda dari px-3), text-sm (14px, beda dari text-[13px]).
|
|
21
|
+
* py-2.5 (bukan h-9 fixed) SENGAJA dipertahankan -- Textarea butuh tinggi mengikuti `rows`,
|
|
22
|
+
* beda dari Input yang tinggi fixed 1 baris.
|
|
23
|
+
* `icon` (2026-07-29) -- default false. Posisi kiri-ATAS (bukan center-vertical seperti Input
|
|
24
|
+
* satu-baris) -- Textarea multi-baris, icon center-vertical akan bertabrakan dengan baris teks
|
|
25
|
+
* kedua dst.
|
|
26
|
+
*/
|
|
27
|
+
export declare function Textarea({ className, icon, label, ...props }: React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
28
|
+
icon?: boolean | IconComponent;
|
|
29
|
+
label?: React.ReactNode;
|
|
30
|
+
}): React.JSX.Element;
|
|
31
|
+
export declare function SelectNative({ className, children, ...props }: React.SelectHTMLAttributes<HTMLSelectElement>): React.JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* CheckboxIndicator -- bagian VISUAL murni dari Checkbox (box + ikon centang), diextract
|
|
34
|
+
* (2026-07-28) supaya CardCheckbox (form-advanced.tsx) bisa pakai tampilan yang SAMA PERSIS
|
|
35
|
+
* tanpa duplikasi markup/style manual. Terima `checked: boolean` langsung -- dipakai untuk
|
|
36
|
+
* kasus CONTROLLED-ONLY dari luar (CardCheckbox tidak punya native <input>, state-nya
|
|
37
|
+
* murni prop). Checkbox (native, di bawah) SENGAJA TIDAK diubah untuk pakai komponen ini
|
|
38
|
+
* -- Checkbox mendukung uncontrolled (`defaultChecked`, dipakai di PagesKitPage.tsx) lewat
|
|
39
|
+
* peer-checked CSS sibling selector yang otomatis merespon DOM state native input; kalau
|
|
40
|
+
* dipaksa baca `checked` prop langsung, pemakaian uncontrolled itu akan rusak visualnya
|
|
41
|
+
* (defaultChecked tidak tercermin ke prop checked). Class box (h-4 w-4 rounded border ...)
|
|
42
|
+
* TETAP disamakan manual sebagai satu sumber ukuran/warna, redudansi kecil ini sengaja demi
|
|
43
|
+
* tidak merusak mekanisme peer-checked yang sudah teruji.
|
|
44
|
+
*/
|
|
45
|
+
export declare function CheckboxIndicator({ checked, disabled }: {
|
|
46
|
+
checked: boolean;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
}): React.JSX.Element;
|
|
49
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & React.RefAttributes<HTMLInputElement>>;
|
|
50
|
+
export declare function MultiSelect({ options, selectedValues, onChange, className, name, disabled, }: {
|
|
51
|
+
options: {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
selectedValues: string[];
|
|
56
|
+
onChange: (values: string[]) => void;
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
className?: string;
|
|
59
|
+
/** Native `name` diteruskan ke SEMUA checkbox (pola HTML standar multi-checkbox --
|
|
60
|
+
* browser otomatis kumpulkan semua value yang checked jadi array di FormData saat
|
|
61
|
+
* `name` sama-sama dipakai berulang). Sebelumnya tidak ada sama sekali -- gap
|
|
62
|
+
* "MultiSelect tidak bisa native FormData submit" (2026-07-28). */
|
|
63
|
+
name?: string;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
}): React.JSX.Element;
|
|
66
|
+
/**
|
|
67
|
+
* SelectGroup -- gaya toggle "Low/Normal/High" yang sebelumnya cuma implementasi
|
|
68
|
+
* inline di ComponentKitPage (Border Radius & Box-shadow demo), dijadikan komponen resmi
|
|
69
|
+
* (2026-07-28). Beda dari FilterSelection: SATU container dengan tombol yang berpindah di
|
|
70
|
+
* dalamnya (bukan pill-pill terpisah) -- cocok untuk pilihan singkat yang salah satunya
|
|
71
|
+
* SELALU aktif (mis. mode/level/tab kecil), FilterSelection lebih cocok untuk filter yang
|
|
72
|
+
* general options-nya bisa banyak. Warna/effect disamakan FilterSelection (bg-[var(--color-primary)] +
|
|
73
|
+
* text-white untuk selected).
|
|
74
|
+
*
|
|
75
|
+
* Efek "lava" (2026-07-28, request eksplisit "pake efek lava seperti Tabs, jadi ga kaku
|
|
76
|
+
* transisinya") -- pill background TIDAK lagi toggle className per-tombol (yang bikin
|
|
77
|
+
* warna "meloncat" instan antar tombol), tapi SATU elemen persisten yang posisi/lebarnya
|
|
78
|
+
* di-measure dari tombol selected (getBoundingClientRect) lalu meluncur lewat CSS
|
|
79
|
+
* transition left/width -- pola identik ActiveUnderline di tabs.tsx (lihat komentar
|
|
80
|
+
* panjang di sana soal reference point yang harus konsisten).
|
|
81
|
+
*/
|
|
82
|
+
export interface SelectGroupOption {
|
|
83
|
+
label: React.ReactNode;
|
|
84
|
+
value: string;
|
|
85
|
+
/** Warna pill saat option ini selected. Default 'primary'. Bisa menerima nama warna CSS variables apa saja. */
|
|
86
|
+
color?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'mist' | (string & {});
|
|
87
|
+
/** Request eksplisit 2026-07-28 -- biasa dipakai untuk product variant yang out-of-stock. */
|
|
88
|
+
disabled?: boolean;
|
|
89
|
+
/** Label aksesibilitas untuk screen reader (WCAG compliance, penting untuk icon-only) */
|
|
90
|
+
ariaLabel?: string;
|
|
91
|
+
/** Title tooltip bawaan browser */
|
|
92
|
+
title?: string;
|
|
93
|
+
}
|
|
94
|
+
export declare function SelectGroup({ options, value, onChange, className, iconOnly, size, radius, }: {
|
|
95
|
+
options: SelectGroupOption[];
|
|
96
|
+
value: string;
|
|
97
|
+
onChange: (value: string) => void;
|
|
98
|
+
className?: string;
|
|
99
|
+
iconOnly?: boolean;
|
|
100
|
+
size?: 'sm' | 'normal';
|
|
101
|
+
radius?: DewebRadius | 'squircle';
|
|
102
|
+
}): React.JSX.Element;
|
|
103
|
+
/** Alias -- beberapa consumer (deweb-portal-admin) sudah lama pakai nama "SegmentedControl"
|
|
104
|
+
* (nama generik/umum untuk pola UI ini) sebelum komponen ini resmi dinamai SelectGroup di kit
|
|
105
|
+
* (2026-07-28). Export alias ini dipertahankan supaya import lama tidak perlu diubah satu-satu --
|
|
106
|
+
* SATU-SATUNYA sumber implementasi tetap SelectGroup di atas. Ditemukan hilang & ditambahkan
|
|
107
|
+
* kembali 2026-08-16 (import error "does not provide an export named 'SegmentedControl'"). */
|
|
108
|
+
export declare const SegmentedControl: typeof SelectGroup;
|
|
109
|
+
export type SegmentedControlOption = SelectGroupOption;
|
|
110
|
+
/**
|
|
111
|
+
* Switch -- Komponen toggle boolean (Yes/No) yang dibangun di atas SelectGroup (SegmentedControl).
|
|
112
|
+
* Menampilkan 2 opsi eksplisit berdampingan dengan slider/thumb ala "saklar fisik".
|
|
113
|
+
* Cocok untuk preferensi On/Off.
|
|
114
|
+
*/
|
|
115
|
+
export declare function Switch({ checked, onChange, disabled, labelOn, labelOff, color, size, className }: {
|
|
116
|
+
checked: boolean;
|
|
117
|
+
onChange: (checked: boolean) => void;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
labelOn?: React.ReactNode;
|
|
120
|
+
labelOff?: React.ReactNode;
|
|
121
|
+
color?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'mist' | (string & {});
|
|
122
|
+
size?: 'sm' | 'normal';
|
|
123
|
+
className?: string;
|
|
124
|
+
}): React.JSX.Element;
|
|
125
|
+
export interface FilterSelectionOption {
|
|
126
|
+
label: React.ReactNode;
|
|
127
|
+
value: string;
|
|
128
|
+
/** Request eksplisit 2026-07-28 -- biasa dipakai untuk product variant yang out-of-stock. */
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
}
|
|
131
|
+
export declare function FilterSelection({ options, selectedValue, onChange, className, }: {
|
|
132
|
+
options: FilterSelectionOption[];
|
|
133
|
+
selectedValue?: string;
|
|
134
|
+
onChange: (value: string) => void;
|
|
135
|
+
className?: string;
|
|
136
|
+
}): React.JSX.Element;
|
|
137
|
+
export declare function NumberRangeInput({ minLabel, maxLabel, minValue, maxValue, onMinChange, onMaxChange, className, name, disabled, }: {
|
|
138
|
+
minLabel?: string;
|
|
139
|
+
maxLabel?: string;
|
|
140
|
+
minValue?: number | string;
|
|
141
|
+
maxValue?: number | string;
|
|
142
|
+
onMinChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
143
|
+
onMaxChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
144
|
+
className?: string;
|
|
145
|
+
/** Diteruskan sebagai `${name}Min`/`${name}Max` ke 2 native <input type="number"> --
|
|
146
|
+
* sebelumnya tidak ada prop `name`/`disabled` sama sekali (gap 2026-07-28). */
|
|
147
|
+
name?: string;
|
|
148
|
+
disabled?: boolean;
|
|
149
|
+
}): React.JSX.Element;
|
|
150
|
+
export declare function PhoneInput({ className, onChange, ...props }: InputProps): React.JSX.Element;
|
|
151
|
+
/**
|
|
152
|
+
* Pesan error inline SHARED antara InputEmail/InputUrl (2026-07-28, "Form -- Base Input").
|
|
153
|
+
* Pola SAMA PERSIS dengan "Simulasi Validasi Form" (ComponentKitPage.tsx): border merah
|
|
154
|
+
* pada field + teks kecil merah di bawahnya, TAPI validasi baru muncul setelah blur
|
|
155
|
+
* (dikonfirmasi user) -- supaya tidak langsung merah saat user baru mulai mengetik.
|
|
156
|
+
*/
|
|
157
|
+
export declare function InputErrorText({ message }: {
|
|
158
|
+
message: string;
|
|
159
|
+
}): React.JSX.Element;
|
|
160
|
+
export declare function InputPassword({ className, size, icon, showToggle, renderToggle, showStrength, minLength, requireAlphanumeric, requireSymbol, requireUpperLower, showGenerate, generateLabel, generateIcon, renderGenerate, generateSymbolCount, onGenerate, matchValue, hasError, isSuccess, isLoading, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size'> & {
|
|
161
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
162
|
+
icon?: boolean | IconComponent;
|
|
163
|
+
showToggle?: boolean;
|
|
164
|
+
renderToggle?: (visible: boolean, toggle: () => void) => React.ReactNode;
|
|
165
|
+
showStrength?: boolean;
|
|
166
|
+
minLength?: number;
|
|
167
|
+
requireAlphanumeric?: boolean;
|
|
168
|
+
requireSymbol?: boolean;
|
|
169
|
+
requireUpperLower?: boolean;
|
|
170
|
+
showGenerate?: boolean;
|
|
171
|
+
generateLabel?: React.ReactNode;
|
|
172
|
+
generateIcon?: React.ReactNode;
|
|
173
|
+
renderGenerate?: (onGenerate: () => void) => React.ReactNode;
|
|
174
|
+
generateSymbolCount?: number;
|
|
175
|
+
onGenerate?: (password: string) => void;
|
|
176
|
+
matchValue?: string;
|
|
177
|
+
hasError?: boolean;
|
|
178
|
+
isSuccess?: boolean;
|
|
179
|
+
isLoading?: boolean;
|
|
180
|
+
}): React.JSX.Element;
|
|
181
|
+
export interface PasswordTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
182
|
+
/** Nilai teks password/rahasia sebenarnya. */
|
|
183
|
+
value: string;
|
|
184
|
+
/** Jumlah karakter masker saat tersembunyi (default mengikuti panjang value, maks 12). */
|
|
185
|
+
maskedLength?: number;
|
|
186
|
+
/** Karakter masker (default: '•'). */
|
|
187
|
+
maskChar?: string;
|
|
188
|
+
/** Controlled visibility state. */
|
|
189
|
+
visible?: boolean;
|
|
190
|
+
/** Initial visibility state untuk mode uncontrolled. */
|
|
191
|
+
defaultVisible?: boolean;
|
|
192
|
+
/** Callback saat status visibility berubah. */
|
|
193
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
194
|
+
/** Tampilkan tombol salin di samping tombol mata. */
|
|
195
|
+
copyable?: boolean;
|
|
196
|
+
/** Guard otorisasi: jika false, teks tidak bisa di-reveal dan memanggil onRevealDenied. */
|
|
197
|
+
canReveal?: boolean;
|
|
198
|
+
/** Callback saat reveal ditolak karena canReveal === false atau onBeforeReveal() mengembalikan false. */
|
|
199
|
+
onRevealDenied?: () => void;
|
|
200
|
+
/** Hook opsional (sync/async) sebelum reveal, mis. cek sesi login atau konfirmasi ulang. */
|
|
201
|
+
onBeforeReveal?: () => boolean | Promise<boolean>;
|
|
202
|
+
/** Ukuran teks & tombol ikon. */
|
|
203
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
204
|
+
/** Gunakan font monospace agar karakter mudah dibedakan (default: true). */
|
|
205
|
+
mono?: boolean;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* PasswordText -- tampilan teks password/rahasia inline dengan toggle Show/Hide,
|
|
209
|
+
* tombol salin opsional, dan dukungan auth guard (canReveal / onBeforeReveal / onRevealDenied).
|
|
210
|
+
*/
|
|
211
|
+
export declare function PasswordText({ value, maskedLength, maskChar, visible: controlledVisible, defaultVisible, onVisibleChange, copyable, canReveal, onRevealDenied, onBeforeReveal, size, mono, className, ...props }: PasswordTextProps): React.JSX.Element;
|
|
212
|
+
export declare function InputEmail({ className, onBlur, errorMessage, icon, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
213
|
+
errorMessage?: string;
|
|
214
|
+
icon?: boolean | IconComponent;
|
|
215
|
+
}): React.JSX.Element;
|
|
216
|
+
/**
|
|
217
|
+
* InputNumber -- filter karakter selain digit (+ tanda minus di depan kalau `allowNegative`,
|
|
218
|
+
* + 1 titik desimal kalau `allowDecimal`). SENGAJA tanpa tombol +/- (dikonfirmasi user,
|
|
219
|
+
* "cukup filter angka polos" -- stepper +/- sudah ada perannya di QuantityPill, tidak perlu
|
|
220
|
+
* duplikasi fungsi di sini). `icon` -- default false, `true` pakai iconLibrary.hash.
|
|
221
|
+
*/
|
|
222
|
+
export declare function InputNumber({ className, onChange, allowDecimal, allowNegative, icon, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
223
|
+
allowDecimal?: boolean;
|
|
224
|
+
allowNegative?: boolean;
|
|
225
|
+
icon?: boolean | IconComponent;
|
|
226
|
+
}): React.JSX.Element;
|
|
227
|
+
/**
|
|
228
|
+
* InputCurrency -- filter selain angka, diformat otomatis dengan pemisah ribuan.
|
|
229
|
+
* `icon` -- default false, `true` pakai iconLibrary.banknote. Bisa diset string (mis. "Rp" atau "$").
|
|
230
|
+
*/
|
|
231
|
+
export declare function InputCurrency({ className, onChange, onBlur, icon, min, max, separator, decimals, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'min' | 'max'> & {
|
|
232
|
+
icon?: boolean | IconComponent | string;
|
|
233
|
+
min?: number;
|
|
234
|
+
max?: number;
|
|
235
|
+
separator?: '.' | ',';
|
|
236
|
+
decimals?: number;
|
|
237
|
+
}): React.JSX.Element;
|
|
238
|
+
/**
|
|
239
|
+
* InputAlphanumeric -- filter selain huruf (termasuk unicode letter) dan angka. Spasi
|
|
240
|
+
* TIDAK diizinkan by default -- set `allowSpace` kalau butuh (mis. "kode voucher ABC 123").
|
|
241
|
+
* `icon` -- default false, `true` pakai iconLibrary.text.
|
|
242
|
+
*/
|
|
243
|
+
export declare function InputAlphanumeric({ className, onChange, allowSpace, icon, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
244
|
+
allowSpace?: boolean;
|
|
245
|
+
icon?: boolean | IconComponent;
|
|
246
|
+
}): React.JSX.Element;
|
|
247
|
+
export declare function InputColor({ value, onChange, className, name, disabled, required, icon, allowTransparent, alpha, hideInput, size, }: {
|
|
248
|
+
value: string;
|
|
249
|
+
onChange: (hex: string) => void;
|
|
250
|
+
className?: string;
|
|
251
|
+
/** Hidden native <input type="hidden"> untuk FormData/native form submission */
|
|
252
|
+
name?: string;
|
|
253
|
+
disabled?: boolean;
|
|
254
|
+
required?: boolean;
|
|
255
|
+
/** Icon kiri di text-input hex -- default false, `true` pakai iconLibrary.color. */
|
|
256
|
+
icon?: boolean | IconComponent;
|
|
257
|
+
/** Mendukung alpha channel (opacity) e.g. #RRGGBBAA */
|
|
258
|
+
alpha?: boolean;
|
|
259
|
+
allowTransparent?: boolean;
|
|
260
|
+
/** Sembunyikan input text hex (hanya tampilkan swatch kotak warna) */
|
|
261
|
+
hideInput?: boolean;
|
|
262
|
+
/** Ukuran tinggi input (sm: 30px, default: 36px, lg: 42px) */
|
|
263
|
+
size?: 'sm' | 'default' | 'lg';
|
|
264
|
+
}): React.JSX.Element;
|
|
265
|
+
/**
|
|
266
|
+
* InputUrl -- auto-prepend `https://` saat blur kalau user ketik domain tanpa protokol
|
|
267
|
+
* (mis. "example.com" -> "https://example.com") -- UX umum di form modern, user jarang mau
|
|
268
|
+
* ketik "https://" manual. Validasi format URL dasar, error SETELAH blur (sama pola InputEmail).
|
|
269
|
+
* `icon` -- default false, `true` pakai iconLibrary.link.
|
|
270
|
+
*/
|
|
271
|
+
export declare function InputUrl({ className, onBlur, onChange, errorMessage, icon, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
272
|
+
errorMessage?: string;
|
|
273
|
+
icon?: boolean | IconComponent;
|
|
274
|
+
}): React.JSX.Element;
|
|
275
|
+
export declare function RangeSlider({ className, ...props }: React.InputHTMLAttributes<HTMLInputElement>): React.JSX.Element;
|
|
276
|
+
export declare function DualRangeSlider({ min, max, step, value, onChange, className, name, }: {
|
|
277
|
+
min: number;
|
|
278
|
+
max: number;
|
|
279
|
+
/** Step increment untuk kedua native <input type="range"> (default: 1, sama seperti
|
|
280
|
+
* RangeSlider). Sebelumnya prop ini diterima tapi didrop diam-diam -- caller yang sudah
|
|
281
|
+
* pass step= (mis. filter.tsx) tidak pernah benar-benar dapat efeknya (gap 2026-08-13). */
|
|
282
|
+
step?: number;
|
|
283
|
+
value: [number, number];
|
|
284
|
+
onChange: (value: [number, number]) => void;
|
|
285
|
+
className?: string;
|
|
286
|
+
/** Diteruskan sebagai `${name}Min`/`${name}Max` ke 2 native <input type="range"> --
|
|
287
|
+
* keduanya sudah native jadi otomatis form-integratable, sebelumnya cuma tidak expose
|
|
288
|
+
* prop `name` sama sekali (gap 2026-07-28). */
|
|
289
|
+
name?: string;
|
|
290
|
+
}): React.JSX.Element;
|
|
291
|
+
export interface StepSliderStep {
|
|
292
|
+
label: string;
|
|
293
|
+
value: string | number;
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* StepSlider -- slider dengan pilihan DISKRIT (bukan range kontinu), untuk kasus seperti
|
|
297
|
+
* varian produk VPS (RAM: 0.5GB/1GB/2GB/4GB -- interval TIDAK rata, tidak bisa direpresentasi
|
|
298
|
+
* `min`/`max`/`step` numerik polos seperti RangeSlider). Request eksplisit 2026-07-28,
|
|
299
|
+
* "biasanya buat ngatur di product VPS". Internal state = INDEX di array `steps` (bukan
|
|
300
|
+
* value asli) -- native <input type="range"> cuma paham angka linear berurutan, index selalu
|
|
301
|
+
* 0..steps.length-1 apapun value aslinya (termasuk non-numerik/tidak berurutan).
|
|
302
|
+
* Titik-titik di sepanjang track menandai posisi tiap step, label ditampilkan di bawahnya.
|
|
303
|
+
*/
|
|
304
|
+
export declare function StepSlider({ steps, value, onChange, className, name, }: {
|
|
305
|
+
steps: StepSliderStep[];
|
|
306
|
+
value: string | number;
|
|
307
|
+
onChange: (value: string | number) => void;
|
|
308
|
+
className?: string;
|
|
309
|
+
/** Diteruskan ke native <input type="range"> internal (index step, bukan value asli) --
|
|
310
|
+
* sebelumnya tidak ada prop `name` sama sekali (gap 2026-07-28). */
|
|
311
|
+
name?: string;
|
|
312
|
+
}): React.JSX.Element;
|
|
313
|
+
/**
|
|
314
|
+
* RadioIndicator -- bagian VISUAL murni dari Radio (lingkaran + dot), diextract (2026-07-28)
|
|
315
|
+
* supaya CardRadio (form-advanced.tsx) pakai tampilan yang SAMA PERSIS, konsisten dengan
|
|
316
|
+
* CheckboxIndicator di atas. Radio selalu controlled (tidak ada uncontrolled path seperti
|
|
317
|
+
* Checkbox), jadi aman langsung diextract tanpa risiko regresi.
|
|
318
|
+
*/
|
|
319
|
+
export declare function RadioIndicator({ checked, disabled }: {
|
|
320
|
+
checked: boolean;
|
|
321
|
+
disabled?: boolean;
|
|
322
|
+
}): React.JSX.Element;
|
|
323
|
+
export declare function Radio({ className, label, checked, disabled, onChange, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
324
|
+
label: string;
|
|
325
|
+
}): React.JSX.Element;
|
|
326
|
+
/**
|
|
327
|
+
* FileInput -- 2 variant (2026-07-28, request eksplisit "bikin default input baru classic"):
|
|
328
|
+
* - `dropzone` (default, behavior lama) -- box dashed-border, preview besar (gambar/video/PDF)
|
|
329
|
+
* ditampilkan DI DALAM box, nama file di bawah preview.
|
|
330
|
+
* - `classic` -- 1 baris input-bar horizontal mirip text input biasa. Idle: label "Pilih
|
|
331
|
+
* file..." + tombol "Browse". Terisi: nama file + ukuran (format `1.2 MB`) menggantikan
|
|
332
|
+
* label, TANPA preview besar (ringkas, untuk konteks form yang padat, mis. multi-upload).
|
|
333
|
+
*
|
|
334
|
+
* Preview auto-detect dari `file.type` (dipakai variant="dropzone" saja, "classic" sengaja
|
|
335
|
+
* tidak preview supaya tetap ringkas 1 baris) -- image/* -> <img>, video/* -> <video>,
|
|
336
|
+
* application/pdf -> <embed>, selain itu tidak ada preview visual (cuma nama file).
|
|
337
|
+
*
|
|
338
|
+
* Validasi (2026-07-28): `maxSizeMB` -- ukuran maksimal per file dalam MB. `accept` (native
|
|
339
|
+
* prop HTML, tetap dipakai) -- filter tipe di file-picker native SEKALIGUS divalidasi ulang
|
|
340
|
+
* di JS (native `accept` cuma hint UI, browser TETAP bisa terima file lain lewat drag-drop
|
|
341
|
+
* atau "All Files"). File yang tidak lolos validasi DITOLAK TOTAL -- tidak pernah sampai ke
|
|
342
|
+
* `onChange` pemanggil, `onError(message)` dipanggil sebagai gantinya supaya form pemanggil
|
|
343
|
+
* bisa tampilkan pesannya lewat sistem validasi masing-masing.
|
|
344
|
+
*/
|
|
345
|
+
export declare function FileInput({ className, uploadLabel, helperText, file, variant, onRemove, maxSizeMB, onError, onChange, ...props }: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onError'> & {
|
|
346
|
+
uploadLabel?: string;
|
|
347
|
+
helperText?: string;
|
|
348
|
+
file?: File | null;
|
|
349
|
+
variant?: 'dropzone' | 'classic';
|
|
350
|
+
/** Tombol "x" untuk hapus file terpilih -- dipakai demo multiple-upload (hapus 1 field dari list). */
|
|
351
|
+
onRemove?: () => void;
|
|
352
|
+
/** Ukuran maksimal per file dalam MB. File lebih besar ditolak, tidak masuk ke onChange. */
|
|
353
|
+
maxSizeMB?: number;
|
|
354
|
+
/** Dipanggil saat file ditolak validasi (`accept` tidak cocok atau melebihi `maxSizeMB`).
|
|
355
|
+
* BUKAN native HTML onError (image/video load error) -- nama sengaja sama tapi type
|
|
356
|
+
* berbeda total, native dikecualikan lewat Omit di atas supaya tidak bentrok.
|
|
357
|
+
* FileInput TIDAK merender pesan sendiri -- form pemanggil yang menentukan cara tampil
|
|
358
|
+
* (inline alert/toast/dialog) sesuai sistem validasi masing-masing. */
|
|
359
|
+
onError?: (message: string) => void;
|
|
360
|
+
}): React.JSX.Element;
|
|
361
|
+
/**
|
|
362
|
+
* FileInputMultiple -- komponen TERPISAH dari FileInput (2026-07-28, request eksplisit
|
|
363
|
+
* "ada FileInputMultiple yang bisa memilih file lebih dari 1 sekaligus"). Beda pola dengan
|
|
364
|
+
* FileInput yang di-"+Tambah kolom" (tetap 1 file per field, banyak field terpisah): di sini
|
|
365
|
+
* SATU dropzone besar menerima BANYAK file sekaligus (native `multiple` + drag-n-drop),
|
|
366
|
+
* lalu semua file yang terpilih ditampilkan sebagai LIST di bawah dropzone (icon generic +
|
|
367
|
+
* nama + ukuran + tombol hapus per baris, TANPA thumbnail -- tetap ringan untuk banyak file).
|
|
368
|
+
*
|
|
369
|
+
* State `files` selalu dikontrol dari luar (`value`/`onChange`, pola sama seperti
|
|
370
|
+
* DualRangeSlider) -- component ini TIDAK punya internal state file list, supaya caller bebas
|
|
371
|
+
* gabung dengan file yang sudah ada di form / validasi total ukuran, dll.
|
|
372
|
+
*
|
|
373
|
+
* Validasi (2026-07-28, request eksplisit "bisa dibatasi file tertentu ga boleh upload?
|
|
374
|
+
* maximal tambah file berapa, minimal upload file berapa"):
|
|
375
|
+
* - `accept` -- filter TIPE file (native prop, sudah ada sejak awal).
|
|
376
|
+
* - `maxSizeMB` -- ukuran maksimal PER FILE dalam MB.
|
|
377
|
+
* - `maxFiles` -- jumlah file maksimal TOTAL (existing `files.length` + yang baru dipilih).
|
|
378
|
+
* Kalau batch yang dipilih/drop melebihi sisa kuota, KELEBIHANNYA ditolak (bukan semua
|
|
379
|
+
* batch ditolak) -- mis. sudah ada 8/10, drop 5 file -> 2 pertama diterima, 3 sisanya
|
|
380
|
+
* ditolak dengan pesan "batas maksimal N file".
|
|
381
|
+
* - `minFiles` -- BUKAN divalidasi di sini (tidak ada aksi "tolak" yang masuk akal saat
|
|
382
|
+
* file KURANG dari minimum -- itu constraint di level SUBMIT form, bukan di level
|
|
383
|
+
* pemilihan file). Diekspos sebagai prop supaya form pemanggil bisa baca & tampilkan
|
|
384
|
+
* helper text / validasi saat submit ("`files.length < minFiles`" -> error).
|
|
385
|
+
* - File yang gagal validasi (tipe/ukuran/kuota) DITOLAK TOTAL, tidak masuk `files` -- semua
|
|
386
|
+
* pesan digabung jadi 1 callback `onError(message)` per batch (bukan 1 alert per file kalau
|
|
387
|
+
* banyak yang gagal sekaligus), form pemanggil yang menentukan cara tampil.
|
|
388
|
+
*/
|
|
389
|
+
export declare function FileInputMultiple({ className, uploadLabel, helperText, accept, files, onChange, maxSizeMB, maxFiles, minFiles, onError, disabled, }: {
|
|
390
|
+
className?: string;
|
|
391
|
+
uploadLabel?: string;
|
|
392
|
+
helperText?: string;
|
|
393
|
+
accept?: string;
|
|
394
|
+
files: File[];
|
|
395
|
+
onChange: (files: File[]) => void;
|
|
396
|
+
/** Ukuran maksimal PER FILE dalam MB. */
|
|
397
|
+
maxSizeMB?: number;
|
|
398
|
+
/** Jumlah file maksimal TOTAL (existing + baru). Kelebihan batch ditolak, sisa kuota tetap diterima. */
|
|
399
|
+
maxFiles?: number;
|
|
400
|
+
/** Jumlah file minimal -- TIDAK divalidasi di sini (constraint level submit), murni info untuk form pemanggil. */
|
|
401
|
+
minFiles?: number;
|
|
402
|
+
/** Dipanggil saat ada file ditolak validasi (tipe/ukuran/kuota) -- 1 ARRAY berisi semua pesan
|
|
403
|
+
* dari batch drop/pilih (bukan 1 string gabungan) supaya form pemanggil bebas render tiap
|
|
404
|
+
* pesan sebagai baris/list-item terpisah (2026-07-28, dilaporkan "belum rapi, masing-masing
|
|
405
|
+
* deskripsi harusnya sudah baris baru" -- gabungan `errors.join(' ')` sebelumnya jadi 1
|
|
406
|
+
* paragraf panjang, keputusan format tampilan HARUS di form pemanggil, bukan dipaksa
|
|
407
|
+
* `\n`/`<br>` di sini). */
|
|
408
|
+
onError?: (messages: string[]) => void;
|
|
409
|
+
/** Nonaktifkan seluruh dropzone + tombol hapus (2026-07-28, gap "FileInputMultiple tidak
|
|
410
|
+
* bisa disabled sama sekali" -- sebelumnya props di-destructure eksplisit tanpa spread
|
|
411
|
+
* sisanya, jadi native `disabled` HTML tidak pernah sampai ke elemen manapun). */
|
|
412
|
+
disabled?: boolean;
|
|
413
|
+
}): React.JSX.Element;
|
|
414
|
+
export interface TagInputOption {
|
|
415
|
+
label: string;
|
|
416
|
+
value: string;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* TagInput -- `<select multiple>` bergaya tag/chip (2026-07-28, request eksplisit "Input
|
|
420
|
+
* Tags, itu dari multiple select input biasanya... opsinya sudah ditentukan tinggal
|
|
421
|
+
* dipilih seperti tag mode"). BEDA dari MultiSelect (checkbox-list bertumpuk vertikal):
|
|
422
|
+
* di sini opsi terpilih tampil sebagai CHIP di dalam SATU field, dropdown pencarian
|
|
423
|
+
* (pola sama `CustomSelect` -- typeahead + keyboard nav) muncul untuk pilih opsi
|
|
424
|
+
* berikutnya. Opsi SELALU dari `options` prop (daftar tetap) -- BUKAN teks bebas ketik
|
|
425
|
+
* sendiri (percobaan pertama sempat begini, dikoreksi user: "itu kan dari <select
|
|
426
|
+
* multiple> biasanya jadi selectionya sudah ditentukan").
|
|
427
|
+
*
|
|
428
|
+
* Backspace di input pencarian KOSONG menghapus chip TERAKHIR -- pola standar
|
|
429
|
+
* tag-input, memudahkan koreksi cepat tanpa perlu klik tombol X tiap chip.
|
|
430
|
+
*/
|
|
431
|
+
export declare function TagInput({ options, value, onChange, placeholder, maxTags, onError, className, name, }: {
|
|
432
|
+
options: TagInputOption[];
|
|
433
|
+
/** Array `value` dari option yang terpilih (urutan sesuai urutan dipilih, bukan urutan `options`). */
|
|
434
|
+
value: string[];
|
|
435
|
+
onChange: (values: string[]) => void;
|
|
436
|
+
placeholder?: string;
|
|
437
|
+
/** Jumlah chip maksimal. Pemilihan berikutnya ditolak + `onError` dipanggil. */
|
|
438
|
+
maxTags?: number;
|
|
439
|
+
/** Dipanggil saat pemilihan ditolak (melebihi maxTags) -- filosofi sama FileInput: form
|
|
440
|
+
* pemanggil yang menentukan cara tampil (inline/toast/dsb), komponen ini cuma callback. */
|
|
441
|
+
onError?: (message: string) => void;
|
|
442
|
+
className?: string;
|
|
443
|
+
/** Hidden native <input type="hidden"> (value di-join koma) untuk FormData/native form
|
|
444
|
+
* submission -- pola sama Select multiple (2026-07-28, gap "TagInput tidak ada
|
|
445
|
+
* name/native hidden input"). */
|
|
446
|
+
name?: string;
|
|
447
|
+
}): React.JSX.Element;
|
|
448
|
+
export declare function PrefixInput({ prefixNode, prefixClassName, className, inputSize, icon, ...props }: React.ComponentProps<typeof Input> & {
|
|
449
|
+
prefixNode: React.ReactNode;
|
|
450
|
+
prefixClassName?: string;
|
|
451
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FormatCurrencyProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
value: number | string;
|
|
4
|
+
currency?: string;
|
|
5
|
+
locale?: string;
|
|
6
|
+
showSymbol?: boolean;
|
|
7
|
+
minimumFractionDigits?: number;
|
|
8
|
+
maximumFractionDigits?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function FormatCurrency({ value, currency, locale, showSymbol, minimumFractionDigits, maximumFractionDigits, className, ...props }: FormatCurrencyProps): React.JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type DateFormatOptions = 'relative' | 'date' | 'datetime' | 'time';
|
|
3
|
+
export interface FormatDateProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
/** Nilai tanggal: Date object, ISO String, MySQL string ("2026-08-11 12:00:00"), atau Timestamp */
|
|
5
|
+
value: string | number | Date;
|
|
6
|
+
/**
|
|
7
|
+
* Mode tampilan:
|
|
8
|
+
* relative = "2 jam yang lalu"
|
|
9
|
+
* date = "11 Agustus 2026"
|
|
10
|
+
* datetime = "11 Agt 2026, 12:00"
|
|
11
|
+
* time = "12:00"
|
|
12
|
+
*/
|
|
13
|
+
format?: DateFormatOptions;
|
|
14
|
+
/** Bahasa lokalisasi (default: id-ID) */
|
|
15
|
+
locale?: string;
|
|
16
|
+
/** Format 12 jam (AM/PM). Default mengikuti locale. */
|
|
17
|
+
hour12?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Fungsi murni (bukan komponen React) -- 2026-08-18, diekstrak dari `<FormatDate>` di
|
|
21
|
+
* bawah supaya bisa dipakai di konteks yang butuh STRING langsung, bukan JSX. Contoh nyata
|
|
22
|
+
* yang memicu ekstraksi: Recharts `XAxis`/`Tooltip` label butuh string biasa, bukan
|
|
23
|
+
* komponen -- sebelum ini `OrchestratorOverviewPage.tsx` menulis ulang manual
|
|
24
|
+
* `d.toLocaleTimeString('id-ID', {...})` sendiri di luar UI Kit. `<FormatDate>` sekarang
|
|
25
|
+
* murni wrapper tipis di atas fungsi ini -- SATU sumber logic format, bukan 2 implementasi.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatDateValue(value: string | number | Date, format?: DateFormatOptions, locale?: string, hour12?: boolean): string;
|
|
28
|
+
export declare function FormatDate({ value, format, locale, hour12, className, ...props }: FormatDateProps): React.JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FormatNumberOptions {
|
|
3
|
+
locale?: string;
|
|
4
|
+
minimumFractionDigits?: number;
|
|
5
|
+
maximumFractionDigits?: number;
|
|
6
|
+
notation?: 'standard' | 'scientific' | 'engineering' | 'compact';
|
|
7
|
+
compactDisplay?: 'short' | 'long';
|
|
8
|
+
}
|
|
9
|
+
export interface FormatNumberProps extends React.HTMLAttributes<HTMLSpanElement>, FormatNumberOptions {
|
|
10
|
+
value: number | string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Fungsi murni (bukan komponen React) -- 2026-08-18, diekstrak dari `<FormatNumber>` di
|
|
14
|
+
* bawah supaya bisa dipakai di konteks yang butuh STRING langsung, bukan JSX. Contoh nyata
|
|
15
|
+
* yang memicu ekstraksi: Recharts `<Tooltip formatter={...}>` butuh fungsi yang
|
|
16
|
+
* mengembalikan string, bukan komponen -- sebelum ini tooltip chart menampilkan angka
|
|
17
|
+
* mentah API tanpa pembulatan (`3.4588888888888896`) karena tidak ada cara pakai
|
|
18
|
+
* `<FormatNumber>` di situ. `<FormatNumber>` sekarang murni wrapper tipis di atas fungsi
|
|
19
|
+
* ini -- SATU sumber logic format, bukan 2 implementasi terpisah.
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatNumberValue(value: number | string, options?: FormatNumberOptions): string;
|
|
22
|
+
export declare function FormatNumber({ value, locale, minimumFractionDigits, maximumFractionDigits, notation, compactDisplay, className, ...props }: FormatNumberProps): React.JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Responsive } from '../../lib/layout/types';
|
|
3
|
+
export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Jarak antar GridItem -- skala Tailwind spacing (0-12, bukan px
|
|
5
|
+
* bebas). Default 4. Nilai di luar daftar `GAP_CLASS` fallback ke
|
|
6
|
+
* `gap-4` -- gagal aman ke default yang wajar, bukan class kosong. */
|
|
7
|
+
gap?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/** Lebar kolom (1-12) dari total grid-12. Angka polos = sama di semua
|
|
12
|
+
* breakpoint (`span={4}` setara `span={{ base: 4 }}`). Object = beda
|
|
13
|
+
* per breakpoint, mobile-first cascade (SAMA `Responsive<T>` yang
|
|
14
|
+
* dipakai `LayoutItem.grid.span` -- breakpoint yang tidak diisi
|
|
15
|
+
* mewarisi nilai breakpoint terdekat di bawahnya). */
|
|
16
|
+
span: number | Responsive<number>;
|
|
17
|
+
/** Sembunyikan/tampilkan item ini per breakpoint -- CSS asli (media query,
|
|
18
|
+
* BUKAN conditional render JS, jadi tetap SSR-safe seperti `span`), reuse
|
|
19
|
+
* `sectionVisibilityClass()` yang sama dipakai `LayoutBuilder`/
|
|
20
|
+
* `DynamicLayout` untuk visibility per-Section (2026-08-13, request:
|
|
21
|
+
* "kita bisa tentukan nanti tampilan mobile pake berapa, ga cmn andelin
|
|
22
|
+
* CSS aja"). Object mobile-first cascade sama seperti `span` -- breakpoint
|
|
23
|
+
* yang tidak diisi mewarisi nilai breakpoint terdekat di bawahnya
|
|
24
|
+
* (mis. `{ base: true, md: false }` = tampil di mobile, hilang dari md
|
|
25
|
+
* ke atas). Angka polos TIDAK didukung (beda dari `span`) -- visibility
|
|
26
|
+
* cuma masuk akal kalau BEDA antar breakpoint, kalau sama di semua
|
|
27
|
+
* breakpoint lebih jelas cukup render/tidak-render item-nya langsung. */
|
|
28
|
+
visible?: Responsive<boolean>;
|
|
29
|
+
}
|
|
30
|
+
export declare const GridItem: React.ForwardRefExoticComponent<GridItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2
|
+
export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
3
|
+
level?: HeadingLevel;
|
|
4
|
+
as?: HeadingLevel;
|
|
5
|
+
className?: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function Heading({ level, as, className, children, ...props }: HeadingProps): import("react").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DewebColor } from '../../lib/theme/types';
|
|
3
|
+
export interface IndicatorProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
content?: string | number;
|
|
6
|
+
icon?: string;
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
cutout?: boolean;
|
|
9
|
+
cutoutSize?: number;
|
|
10
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
color?: DewebColor;
|
|
12
|
+
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
13
|
+
ring?: boolean | 'solid' | 'card' | 'border' | 'translucent' | 'none';
|
|
14
|
+
className?: string;
|
|
15
|
+
badgeClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Indicator({ children, content, icon, dot, cutout, cutoutSize, size, color, position, ring, className, badgeClassName, }: IndicatorProps): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { DewebColor, DewebSize } from '../../lib/theme/types';
|
|
3
|
+
type LegacySize = 'default' | 'sm' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export interface InitialIconProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'> {
|
|
5
|
+
initials: string;
|
|
6
|
+
color?: DewebColor | 'muted';
|
|
7
|
+
variant?: 'primary' | 'secondary';
|
|
8
|
+
size?: DewebSize | LegacySize;
|
|
9
|
+
}
|
|
10
|
+
export declare const InitialIcon: React.ForwardRefExoticComponent<InitialIconProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface InputCodeProps {
|
|
3
|
+
/** The number of digits/boxes (default: 6, ignored if format is provided) */
|
|
4
|
+
length?: number;
|
|
5
|
+
/** Format pattern with groups separated by dash, e.g. "4-4" or "4-4-4-4" */
|
|
6
|
+
format?: string;
|
|
7
|
+
/** The current value of the OTP */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** Callback when value changes */
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
/** Callback when all digits are filled (useful for auto-verify) */
|
|
12
|
+
onComplete?: (value: string) => void;
|
|
13
|
+
/** Regex pattern for each character. Default is only numbers (^[0-9]$) */
|
|
14
|
+
pattern?: RegExp;
|
|
15
|
+
/** Whether the input is disabled */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Whether the input has an error state */
|
|
18
|
+
hasError?: boolean;
|
|
19
|
+
/** Whether the input has a success state */
|
|
20
|
+
isSuccess?: boolean;
|
|
21
|
+
/** Whether to automatically convert input to uppercase */
|
|
22
|
+
forceUppercase?: boolean;
|
|
23
|
+
className?: string;
|
|
24
|
+
/** Class for individual input boxes */
|
|
25
|
+
inputClassName?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function InputCode({ length, format, value, onChange, onComplete, pattern, disabled, hasError, isSuccess, forceUppercase, className, inputClassName }: InputCodeProps): React.JSX.Element;
|