@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,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper sanitasi HTML terpusat -- SATU kebijakan DOMPurify dipakai semua
|
|
3
|
+
* komponen yang merender HTML tidak terpercaya (2026-08-18, audit
|
|
4
|
+
* PLAN_KIT_TRINITY_HARDENING § Fase 2). Sebelumnya `CustomHtmlBlock.tsx`
|
|
5
|
+
* punya konfigurasi DOMPurify sendiri inline, `blog.tsx` (`post.content`)
|
|
6
|
+
* TIDAK disanitasi sama sekali -- risiko XSS nyata untuk konten yang bisa
|
|
7
|
+
* datang dari CMS/user submission.
|
|
8
|
+
*
|
|
9
|
+
* TIDAK dipakai di `DynamicLayout.tsx` (`blockDef.html`) -- SENGAJA, itu
|
|
10
|
+
* jalur "trusted by design" (HTML diisi admin lewat Layout Builder, level
|
|
11
|
+
* trust sama seperti JSX hardcode di kode, BUKAN konten user-submitted).
|
|
12
|
+
* Ryan (2026-08-18): DynamicLayout dibiarkan dulu, khawatir menyanitasi
|
|
13
|
+
* jalur itu bisa membuang `<script>`/event-handler inline yang mungkin
|
|
14
|
+
* SENGAJA dipakai admin untuk widget embed -- kalau nanti mau disanitasi
|
|
15
|
+
* juga, cek dulu apakah ada block existing yang bergantung pada itu.
|
|
16
|
+
*
|
|
17
|
+
* `extraAllowedTags`/`extraAllowedAttr` -- untuk komponen yang butuh tag
|
|
18
|
+
* kustom tambahan (mis. `deweb-block`/`deweb-section`/`deweb-preset`/
|
|
19
|
+
* `deweb-include` di `CustomHtmlBlock`), TIDAK sekadar terima config
|
|
20
|
+
* DOMPurify mentah supaya kebijakan DASAR (larangan `script`, `on*`,
|
|
21
|
+
* `javascript:`, dst) tidak bisa diam-diam dilonggarkan oleh pemanggil.
|
|
22
|
+
*/
|
|
23
|
+
export interface SanitizeHtmlOptions {
|
|
24
|
+
/** Tag tambahan di luar default DOMPurify (mis. custom element `deweb-*`). */
|
|
25
|
+
extraAllowedTags?: string[];
|
|
26
|
+
/** Atribut tambahan di luar default DOMPurify. */
|
|
27
|
+
extraAllowedAttr?: string[];
|
|
28
|
+
}
|
|
29
|
+
export declare function sanitizeHtml(html: string, options?: SanitizeHtmlOptions): string;
|
|
30
|
+
/**
|
|
31
|
+
* Sanitasi CSS mentah (mis. `customCss` yang diinjeksi lewat `<style>` tag)
|
|
32
|
+
* -- DOMPurify TIDAK punya mode CSS-sanitizer, jadi ini pembersih naif
|
|
33
|
+
* berbasis regex untuk vektor serangan CSS yang paling umum:
|
|
34
|
+
*
|
|
35
|
+
* - `@import` -- bisa menarik stylesheet/font dari origin eksternal
|
|
36
|
+
* sembarangan (data exfiltration via CSS attribute selector, atau
|
|
37
|
+
* sekadar tracking).
|
|
38
|
+
* - `url(...)` yang menunjuk ke `javascript:` -- vektor XSS lama di
|
|
39
|
+
* browser tertentu, dan beberapa browser lama mengeksekusi `expression()`
|
|
40
|
+
* IE-style -- keduanya jarang relevan di browser modern tapi murah untuk
|
|
41
|
+
* ditolak sekalian.
|
|
42
|
+
* - `</style>` di tengah teks -- mencegah pemutusan konteks tag `<style>`
|
|
43
|
+
* yang bisa menyisipkan tag lain (mis. `<script>`) setelahnya kalau CSS
|
|
44
|
+
* ini nanti dirender lewat `dangerouslySetInnerHTML` di dalam `<style>`.
|
|
45
|
+
*
|
|
46
|
+
* INI BUKAN parser CSS lengkap -- CSS valid yang genuinely butuh `url()` ke
|
|
47
|
+
* asset sendiri/data URI TETAP LOLOS (cuma skema berbahaya yang ditolak).
|
|
48
|
+
* Untuk kebutuhan yang lebih ketat (mis. whitelist origin `url()`), pakai
|
|
49
|
+
* parser CSS sungguhan (`postcss` dst) di level aplikasi -- di luar scope
|
|
50
|
+
* helper generik ini.
|
|
51
|
+
*/
|
|
52
|
+
export declare function sanitizeCss(css: string): string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { DewebMotionSpeed, DewebMotionEasing, DewebMotionPreset, DewebMotionIntensity, ThemeMotionConfig, DewebMotionAction } from './types';
|
|
2
|
+
export interface ResolvedMotionSettings {
|
|
3
|
+
level: number;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
preset: DewebMotionPreset;
|
|
6
|
+
speed: DewebMotionSpeed;
|
|
7
|
+
durationMs: number;
|
|
8
|
+
easing: DewebMotionEasing;
|
|
9
|
+
easingCss: string;
|
|
10
|
+
action: DewebMotionAction;
|
|
11
|
+
hasDelight: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* resolveMotion
|
|
15
|
+
* Mengonversi input intensitas (angka 0-10 atau preset string) menjadi setting gerak konkret.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveMotion(input?: DewebMotionIntensity | DewebMotionPreset | ThemeMotionConfig | number | string): ResolvedMotionSettings;
|
|
18
|
+
/**
|
|
19
|
+
* getMotionDurationMs
|
|
20
|
+
* Mengembalikan durasi waktu dalam milidetik dari token speed.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getMotionDurationMs(speed?: DewebMotionSpeed): number;
|
|
23
|
+
/**
|
|
24
|
+
* getMotionEasingCss
|
|
25
|
+
* Mengembalikan fungsi kurva CSS dari token easing.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getMotionEasingCss(easing?: DewebMotionEasing): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveMotion2,
|
|
3
|
+
getMotionDurationMs2,
|
|
4
|
+
getMotionEasingCss2
|
|
5
|
+
} from "../../chunk-0x0et52k.js";
|
|
6
|
+
export {
|
|
7
|
+
getMotionDurationMs2 as getMotionDurationMs,
|
|
8
|
+
getMotionEasingCss2 as getMotionEasingCss,
|
|
9
|
+
resolveMotion2 as resolveMotion
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//# debugId=E32A61C8723B06F964756E2164756E21
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global Theme System Props for Deweb UI Kit
|
|
3
|
+
*
|
|
4
|
+
* Digunakan sebagai standar baku (Source of Truth) untuk props komponen
|
|
5
|
+
* agar seluruh UI Kit konsisten dalam penamaan tipe warna, ukuran, dan gaya visual.
|
|
6
|
+
*/
|
|
7
|
+
export type DewebColor = 'default' | 'primary' | 'secondary' | 'accent' | 'success' | 'danger' | 'warning' | 'info' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'slate' | 'gray' | 'zinc' | 'neutral' | 'stone' | 'taupe' | 'mauve' | 'mist' | 'olive' | 'dark' | 'light' | (string & {});
|
|
8
|
+
export type DewebVariant = 'solid' | 'soft' | 'outline' | 'ghost';
|
|
9
|
+
export type DewebSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
10
|
+
export type DewebRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
11
|
+
export type DewebShadow = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
12
|
+
export type DewebMotionSpeed = 'none' | 'instant' | 'fast' | 'normal' | 'slow' | 'gentle';
|
|
13
|
+
export type DewebMotionEasing = 'natural' | 'spring' | 'smooth' | 'linear';
|
|
14
|
+
export type DewebMotionType = 'fade' | 'slide-up' | 'slide-down' | 'slide-left' | 'slide-right' | 'scale' | 'blur' | 'none';
|
|
15
|
+
export type DewebMotionAction = 'ripple' | 'tactile' | 'glow' | 'minimal';
|
|
16
|
+
export type DewebMotionPreset = 'none' | 'minimal' | 'normal' | 'expressive' | 'playful';
|
|
17
|
+
export type DewebMotionIntensity = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
18
|
+
export interface ThemeMotionConfig {
|
|
19
|
+
/** Intensitas gerak: slider integer 0-10 atau string preset ('none' | 'minimal' | 'normal' | 'expressive' | 'playful') */
|
|
20
|
+
intensity?: DewebMotionIntensity | DewebMotionPreset | number | string;
|
|
21
|
+
/** Durasi waktu dasar fallback */
|
|
22
|
+
speed?: DewebMotionSpeed;
|
|
23
|
+
/** Kurva fisika gerak fallback */
|
|
24
|
+
easing?: DewebMotionEasing;
|
|
25
|
+
/** Transisi default pindah halaman */
|
|
26
|
+
page_transition?: DewebMotionType;
|
|
27
|
+
/** Respon aksi default tombol */
|
|
28
|
+
action_effect?: DewebMotionAction;
|
|
29
|
+
/** Aksesibilitas OS: otomatis nonaktifkan gerak jika user menyetel prefers-reduced-motion */
|
|
30
|
+
reduced_motion?: boolean;
|
|
31
|
+
/** Konfigurasi spesifik per jenis komponen (Scoped Component Motion) */
|
|
32
|
+
components?: {
|
|
33
|
+
button?: {
|
|
34
|
+
action?: DewebMotionAction;
|
|
35
|
+
speed?: DewebMotionSpeed;
|
|
36
|
+
};
|
|
37
|
+
dropdown?: {
|
|
38
|
+
entrance?: 'slide' | 'fade' | 'zoom';
|
|
39
|
+
speed?: DewebMotionSpeed;
|
|
40
|
+
};
|
|
41
|
+
modal?: {
|
|
42
|
+
entrance?: 'scale' | 'slide-up' | 'fade';
|
|
43
|
+
speed?: DewebMotionSpeed;
|
|
44
|
+
};
|
|
45
|
+
accordion?: {
|
|
46
|
+
expand?: 'smooth' | 'instant';
|
|
47
|
+
speed?: DewebMotionSpeed;
|
|
48
|
+
};
|
|
49
|
+
tabs?: {
|
|
50
|
+
indicator?: 'slide' | 'fade' | 'instant';
|
|
51
|
+
speed?: DewebMotionSpeed;
|
|
52
|
+
};
|
|
53
|
+
input?: {
|
|
54
|
+
focus?: 'bloom' | 'instant';
|
|
55
|
+
error?: 'shake' | 'flash' | 'none';
|
|
56
|
+
speed?: DewebMotionSpeed;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export type DewebSupportedComponent = 'button' | 'card' | 'input' | 'badge' | 'modal' | 'dropdown' | 'table';
|
|
61
|
+
export interface ComponentTokenOverride {
|
|
62
|
+
radius?: DewebRadius | string;
|
|
63
|
+
height?: Partial<Record<DewebSize, string>>;
|
|
64
|
+
paddingX?: Partial<Record<DewebSize, string>>;
|
|
65
|
+
fontSize?: Partial<Record<DewebSize, string>>;
|
|
66
|
+
shadow?: DewebShadow | string;
|
|
67
|
+
}
|
|
68
|
+
export interface ThemeScalesConfig {
|
|
69
|
+
radius?: Partial<Record<DewebSize | 'none' | 'full', string>>;
|
|
70
|
+
font_size?: Partial<Record<DewebSize, string>>;
|
|
71
|
+
button?: {
|
|
72
|
+
height?: Partial<Record<DewebSize, string>>;
|
|
73
|
+
padding_x?: Partial<Record<DewebSize, string>>;
|
|
74
|
+
};
|
|
75
|
+
icon?: Partial<Record<DewebSize, string>>;
|
|
76
|
+
gap?: Partial<Record<DewebSize, string>>;
|
|
77
|
+
}
|
|
78
|
+
export interface ThemeBoxConfig {
|
|
79
|
+
/** Radius sudut dasar dalam pixel (contoh: 8) */
|
|
80
|
+
radius?: number | string | Record<string, any>;
|
|
81
|
+
/** Intensitas bayangan / shadow spread 0..20 (contoh: 6) */
|
|
82
|
+
shadow?: number | string;
|
|
83
|
+
/** Konfigurasi garis batas / border */
|
|
84
|
+
border?: {
|
|
85
|
+
/** Ketebalan border dalam pixel (contoh: 1) */
|
|
86
|
+
size?: number;
|
|
87
|
+
/** Kontras opasitas border dalam persen 0..100 (contoh: 10) */
|
|
88
|
+
contrast?: number;
|
|
89
|
+
};
|
|
90
|
+
/** Konfigurasi animasi transisi box */
|
|
91
|
+
animation?: {
|
|
92
|
+
/** Kecepatan animasi dalam milidetik (contoh: 200) */
|
|
93
|
+
speed?: number;
|
|
94
|
+
/** Efek kurva transisi (contoh: 'ease-out', 'linear', 'ease', 'smooth') */
|
|
95
|
+
effect?: string;
|
|
96
|
+
};
|
|
97
|
+
/** Scales legacy untuk backwards compatibility */
|
|
98
|
+
scales?: ThemeScalesConfig;
|
|
99
|
+
}
|
|
100
|
+
export interface ThemePresetSchema {
|
|
101
|
+
$schema?: string;
|
|
102
|
+
name?: string;
|
|
103
|
+
version?: string;
|
|
104
|
+
framework?: string;
|
|
105
|
+
design_aesthetic?: string;
|
|
106
|
+
author?: string;
|
|
107
|
+
/** Konfigurasi Color Engine (Dianjurkan di dalam braket color: { brand, theme }) */
|
|
108
|
+
color?: {
|
|
109
|
+
brand?: Record<string, string>;
|
|
110
|
+
theme?: Record<string, string>;
|
|
111
|
+
elements?: Record<string, string>;
|
|
112
|
+
};
|
|
113
|
+
/** Brand colors legacy (di luar / root level) untuk backwards compatibility */
|
|
114
|
+
brand?: Record<string, string>;
|
|
115
|
+
/** Theme semantic slots legacy (di luar / root level) untuk backwards compatibility */
|
|
116
|
+
theme?: Record<string, string>;
|
|
117
|
+
elements?: Record<string, string>;
|
|
118
|
+
/** Konfigurasi Font Engine */
|
|
119
|
+
font?: Record<string, any>;
|
|
120
|
+
/** Konfigurasi Icon Engine */
|
|
121
|
+
icon?: Record<string, any>;
|
|
122
|
+
/** Konfigurasi Box Engine (Geometri fisik wadah: radius, shadow, border, animation) */
|
|
123
|
+
box?: ThemeBoxConfig;
|
|
124
|
+
/** Konfigurasi Motion Engine (Intensitas 0-10, kecepatan, kurva gerak, transisi, respon aksi) */
|
|
125
|
+
motion?: ThemeMotionConfig | DewebMotionIntensity | DewebMotionPreset | number | string;
|
|
126
|
+
shadows?: Record<string, string>;
|
|
127
|
+
scales?: ThemeScalesConfig;
|
|
128
|
+
/** Preset & override konfigurasi komponen UI Kit */
|
|
129
|
+
components?: Partial<Record<DewebSupportedComponent, ComponentTokenOverride>>;
|
|
130
|
+
radius?: Record<string, any>;
|
|
131
|
+
spacing?: Record<string, any>;
|
|
132
|
+
styles?: string;
|
|
133
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* History undo/redo GENERIK -- snapshot array + pointer, dipakai Layout Builder & Color
|
|
3
|
+
* Engine (dan Engine lain nanti). Scope PER-SESI EDITING, bukan persistence: history di
|
|
4
|
+
* reset tiap reload halaman/remount komponen (state React biasa, TIDAK ditulis ke
|
|
5
|
+
* localStorage/JSON). Begitu user "Save" (Simpan sebagai Preset / commit ke config JSON),
|
|
6
|
+
* itu jadi checkpoint PERMANEN terpisah dari history sesi ini -- undo/redo tidak pernah
|
|
7
|
+
* menyentuh file config, cuma state di memory selama sesi berjalan.
|
|
8
|
+
*
|
|
9
|
+
* `push()` BUKAN dipanggil tiap kali value berubah sedikit (mis. tiap pixel drag-resize)
|
|
10
|
+
* -- consumer yang menentukan KAPAN commit ke history (biasanya di titik "commit selesai",
|
|
11
|
+
* bukan "sedang live-preview"), supaya 1 aksi user (1 resize, 1 drag, 1 ganti warna) = 1
|
|
12
|
+
* entry history, bukan puluhan entry per gerakan mouse.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useUndoRedo<T>(initial: T): {
|
|
15
|
+
push: (next: T) => void;
|
|
16
|
+
undo: () => T | undefined;
|
|
17
|
+
redo: () => T | undefined;
|
|
18
|
+
reset: (value: T) => void;
|
|
19
|
+
canUndo: boolean;
|
|
20
|
+
canRedo: boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipe Product buat komponen product/ Component Kit (diadaptasi dari
|
|
3
|
+
* /app/types/product.ts). MURNI referensi visual e-commerce --
|
|
4
|
+
* TIDAK match skema produk Deweb (Deweb jual Container/VPS/Database/dst,
|
|
5
|
+
* lihat schema/deweb_portal_d1_schema.sql `products` table, field beda
|
|
6
|
+
* total). Disertakan untuk kelengkapan Component Kit (2026-07-26, tarik
|
|
7
|
+
* semua per keputusan user), bukan berarti dipakai langsung di Portal.
|
|
8
|
+
*/
|
|
9
|
+
export interface ProductTag {
|
|
10
|
+
id?: string | number;
|
|
11
|
+
name: string;
|
|
12
|
+
bg_color?: string;
|
|
13
|
+
text_color?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ProductType {
|
|
16
|
+
id: string | number;
|
|
17
|
+
name: string;
|
|
18
|
+
brand?: string;
|
|
19
|
+
price: number;
|
|
20
|
+
discount_price: number;
|
|
21
|
+
image_small_url?: string;
|
|
22
|
+
rating: number;
|
|
23
|
+
sale_count: number;
|
|
24
|
+
qty_available?: number;
|
|
25
|
+
in_wishlist?: boolean;
|
|
26
|
+
tag_ids?: ProductTag[];
|
|
27
|
+
}
|