@blukavantui/community 0.0.0-stage → 1.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.txt +103 -0
- package/README.md +177 -2
- package/THIRD_PARTY_NOTICES.txt +58 -0
- package/assets/fonts/dm-sans-LICENSE.txt +93 -0
- package/assets/fonts/dm-sans-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/dm-sans-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/dm-sans-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/dm-sans-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-LICENSE.txt +93 -0
- package/assets/fonts/ibm-plex-mono-latin-100-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-100-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-200-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-200-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-300-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-300-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-400-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-500-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-600-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-700-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-700-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-100-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-100-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-200-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-200-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-300-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-300-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-400-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-500-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-600-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-600-normal.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-700-italic.woff2 +0 -0
- package/assets/fonts/ibm-plex-mono-latin-ext-700-normal.woff2 +0 -0
- package/assets/fonts/inter-LICENSE.txt +93 -0
- package/assets/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-LICENSE.txt +93 -0
- package/assets/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/lora-LICENSE.txt +93 -0
- package/assets/fonts/lora-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/lora-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/lora-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/lora-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/manifest.json +618 -0
- package/assets/fonts/manrope-LICENSE.txt +93 -0
- package/assets/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/merriweather-LICENSE.txt +93 -0
- package/assets/fonts/merriweather-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/merriweather-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/merriweather-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/merriweather-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/montserrat-LICENSE.txt +93 -0
- package/assets/fonts/montserrat-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/montserrat-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/montserrat-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/montserrat-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/playfair-display-LICENSE.txt +93 -0
- package/assets/fonts/playfair-display-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/playfair-display-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/playfair-display-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/playfair-display-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/roboto-LICENSE.txt +93 -0
- package/assets/fonts/roboto-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/roboto-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/roboto-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/roboto-latin-wght-normal.woff2 +0 -0
- package/assets/fonts/source-sans-3-LICENSE.txt +93 -0
- package/assets/fonts/source-sans-3-latin-ext-wght-italic.woff2 +0 -0
- package/assets/fonts/source-sans-3-latin-ext-wght-normal.woff2 +0 -0
- package/assets/fonts/source-sans-3-latin-wght-italic.woff2 +0 -0
- package/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/dist/advanced-types.d.ts +114 -0
- package/dist/app-layout.css +115 -0
- package/dist/app-layout.d.ts +2 -0
- package/dist/app-layout.js +1 -0
- package/dist/badge.css +131 -0
- package/dist/badge.d.ts +2 -0
- package/dist/badge.js +1 -0
- package/dist/bluui-community-grid.js +72 -0
- package/dist/bluui-community.js +1 -0
- package/dist/breadcrumbs.css +77 -0
- package/dist/breadcrumbs.d.ts +2 -0
- package/dist/breadcrumbs.js +1 -0
- package/dist/build-audit.json +516 -0
- package/dist/button.css +625 -0
- package/dist/button.d.ts +2 -0
- package/dist/button.js +1 -0
- package/dist/card.css +119 -0
- package/dist/card.d.ts +2 -0
- package/dist/card.js +1 -0
- package/dist/cascader.css +152 -0
- package/dist/cascader.d.ts +2 -0
- package/dist/cascader.js +1 -0
- package/dist/chat-widget.css +121 -0
- package/dist/chat-widget.d.ts +2 -0
- package/dist/chat-widget.js +1 -0
- package/dist/chat.css +66 -0
- package/dist/chat.d.ts +2 -0
- package/dist/chat.js +1 -0
- package/dist/checkbox.css +1 -0
- package/dist/checkbox.d.ts +2 -0
- package/dist/checkbox.js +1 -0
- package/dist/chip-group.css +44 -0
- package/dist/chip-group.d.ts +2 -0
- package/dist/chip-group.js +1 -0
- package/dist/chip.css +191 -0
- package/dist/chip.d.ts +2 -0
- package/dist/chip.js +1 -0
- package/dist/chunk-2HFI6CC6.js +0 -0
- package/dist/chunk-2MQNFEGJ.js +1 -0
- package/dist/chunk-3LWXPCWY.js +1 -0
- package/dist/chunk-3PNBQVYS.js +1 -0
- package/dist/chunk-3ZS5YITP.js +1 -0
- package/dist/chunk-4RM3B4L7.js +1 -0
- package/dist/chunk-4USJBOSC.js +1 -0
- package/dist/chunk-5ENZVZGF.js +0 -0
- package/dist/chunk-5TEIXA4R.js +1 -0
- package/dist/chunk-64LOE3FU.js +1 -0
- package/dist/chunk-6EHKOVZK.js +1 -0
- package/dist/chunk-6EJIIQNF.js +1 -0
- package/dist/chunk-6XOMFIPU.js +1 -0
- package/dist/chunk-75BQYII5.js +1 -0
- package/dist/chunk-7HXX66DB.js +3 -0
- package/dist/chunk-7KMRDQZG.js +0 -0
- package/dist/chunk-AICXIQKD.js +1 -0
- package/dist/chunk-AL2ETLJV.js +1 -0
- package/dist/chunk-BLDXIO7P.js +1 -0
- package/dist/chunk-BN3PDE5G.js +0 -0
- package/dist/chunk-C3CLLZH2.js +1 -0
- package/dist/chunk-CZXYS6CY.js +1 -0
- package/dist/chunk-EOKNLCNS.js +1 -0
- package/dist/chunk-EPZGLHPD.js +0 -0
- package/dist/chunk-FNX33PDD.js +0 -0
- package/dist/chunk-GEG3TNB4.js +1 -0
- package/dist/chunk-GK3INPAZ.js +1 -0
- package/dist/chunk-GXHANADL.js +1 -0
- package/dist/chunk-H5IEGCAK.js +72 -0
- package/dist/chunk-H7ETPJVW.js +1 -0
- package/dist/chunk-HO6CYWED.js +0 -0
- package/dist/chunk-IHKCC6WJ.js +1 -0
- package/dist/chunk-IIKSMXQE.js +1 -0
- package/dist/chunk-IJ62ILKE.js +0 -0
- package/dist/chunk-IO22GWON.js +0 -0
- package/dist/chunk-IZJN3EF7.js +1 -0
- package/dist/chunk-J7BV4KHG.js +1 -0
- package/dist/chunk-JVE6CXCJ.js +1 -0
- package/dist/chunk-K2P2BHV5.js +1 -0
- package/dist/chunk-KBOMPMSI.js +1 -0
- package/dist/chunk-KR3UUTB2.js +1 -0
- package/dist/chunk-LGJVLEAH.js +1 -0
- package/dist/chunk-LJ4O6YTN.js +1 -0
- package/dist/chunk-MBC4UVTS.js +1 -0
- package/dist/chunk-MCVO25PZ.js +1 -0
- package/dist/chunk-MEEQNPGM.js +1 -0
- package/dist/chunk-MSMNEIWA.js +0 -0
- package/dist/chunk-MYVLBALF.js +1 -0
- package/dist/chunk-MZBB5ROJ.js +1 -0
- package/dist/chunk-NB5PGEDY.js +1 -0
- package/dist/chunk-NTFHNL7T.js +1 -0
- package/dist/chunk-O3MRWAI5.js +1 -0
- package/dist/chunk-OPMD7QNV.js +1 -0
- package/dist/chunk-RGTLYBOY.js +3 -0
- package/dist/chunk-RWBLICYX.js +0 -0
- package/dist/chunk-RYD6RHRX.js +0 -0
- package/dist/chunk-RZ5YSY7Y.js +0 -0
- package/dist/chunk-SDMH2EVD.js +1 -0
- package/dist/chunk-SEJUHKS5.js +1 -0
- package/dist/chunk-SIU7DSOA.js +1 -0
- package/dist/chunk-T45UAWNI.js +3 -0
- package/dist/chunk-TIXCZTJ7.js +0 -0
- package/dist/chunk-U4ZP73V4.js +1 -0
- package/dist/chunk-U73BNLZ3.js +1 -0
- package/dist/chunk-UEOCR2C3.js +2 -0
- package/dist/chunk-UN2SLVFG.js +1 -0
- package/dist/chunk-UUZ4HU7L.js +0 -0
- package/dist/chunk-VBRSAI3K.js +1 -0
- package/dist/chunk-VJVFHL6P.js +0 -0
- package/dist/chunk-W27NAI62.js +1 -0
- package/dist/chunk-W4SW4RWX.js +1 -0
- package/dist/chunk-WHA6UO5X.js +1 -0
- package/dist/chunk-XIOI5PKM.js +1 -0
- package/dist/chunk-XWXEH3SW.js +1 -0
- package/dist/chunk-Y4TCT2K6.js +1 -0
- package/dist/chunk-Y4WEMSE4.js +0 -0
- package/dist/chunk-YCLR3IE3.js +0 -0
- package/dist/collection-layout.css +30 -0
- package/dist/collection-layout.d.ts +2 -0
- package/dist/collection-layout.js +1 -0
- package/dist/colors.d.ts +2 -0
- package/dist/columns2.css +1 -0
- package/dist/columns2.d.ts +2 -0
- package/dist/columns2.js +1 -0
- package/dist/columns3.css +1 -0
- package/dist/columns3.d.ts +2 -0
- package/dist/columns3.js +1 -0
- package/dist/columns4.css +1 -0
- package/dist/columns4.d.ts +2 -0
- package/dist/columns4.js +1 -0
- package/dist/command-palette.css +35 -0
- package/dist/command-palette.d.ts +2 -0
- package/dist/command-palette.js +1 -0
- package/dist/component-factories/app-layout.d.ts +2 -0
- package/dist/component-factories/breadcrumbs.d.ts +2 -0
- package/dist/component-factories/cascader.d.ts +2 -0
- package/dist/component-factories/chat-widget.d.ts +2 -0
- package/dist/component-factories/chat.d.ts +2 -0
- package/dist/component-factories/collection-layout.d.ts +2 -0
- package/dist/component-factories/command-palette.d.ts +2 -0
- package/dist/component-factories/content-carousel.d.ts +2 -0
- package/dist/component-factories/dashboard-canvas.d.ts +3 -0
- package/dist/component-factories/dashboard-panel.d.ts +3 -0
- package/dist/component-factories/date-picker.d.ts +2 -0
- package/dist/component-factories/date-range-picker.d.ts +2 -0
- package/dist/component-factories/date-time-picker.d.ts +2 -0
- package/dist/component-factories/descriptions.d.ts +2 -0
- package/dist/component-factories/drawer.d.ts +2 -0
- package/dist/component-factories/float-button.d.ts +2 -0
- package/dist/component-factories/font-provider.d.ts +2 -0
- package/dist/component-factories/hero-section.d.ts +2 -0
- package/dist/component-factories/image-compare.d.ts +2 -0
- package/dist/component-factories/logo-cloud.d.ts +2 -0
- package/dist/component-factories/media-card.d.ts +2 -0
- package/dist/component-factories/media-image.d.ts +2 -0
- package/dist/component-factories/modal.d.ts +2 -0
- package/dist/component-factories/notification-center.d.ts +3 -0
- package/dist/component-factories/notification.d.ts +5 -0
- package/dist/component-factories/page-header.d.ts +2 -0
- package/dist/component-factories/page-layout.d.ts +2 -0
- package/dist/component-factories/pagination.d.ts +2 -0
- package/dist/component-factories/profile-card.d.ts +2 -0
- package/dist/component-factories/qr-code.d.ts +2 -0
- package/dist/component-factories/quote-card.d.ts +2 -0
- package/dist/component-factories/shape-mask.d.ts +2 -0
- package/dist/component-factories/sidebar.d.ts +2 -0
- package/dist/component-factories/sparkline.d.ts +2 -0
- package/dist/component-factories/split-section.d.ts +2 -0
- package/dist/component-factories/splitter.d.ts +2 -0
- package/dist/component-factories/statistic.d.ts +2 -0
- package/dist/component-factories/text-highlight.d.ts +2 -0
- package/dist/component-factories/time-picker.d.ts +2 -0
- package/dist/component-factories/timeline.d.ts +2 -0
- package/dist/component-factories/tour.d.ts +2 -0
- package/dist/component-factories/transfer-list.d.ts +2 -0
- package/dist/component-factories/tree-select.d.ts +2 -0
- package/dist/component-factories/tree-view.d.ts +2 -0
- package/dist/component-factories/upload-manager.d.ts +2 -0
- package/dist/component-factories/video-lightbox.d.ts +2 -0
- package/dist/component-factories/video-player.d.ts +2 -0
- package/dist/component-runtime.d.ts +2 -0
- package/dist/content-carousel.css +34 -0
- package/dist/content-carousel.d.ts +2 -0
- package/dist/content-carousel.js +1 -0
- package/dist/content.css +2085 -0
- package/dist/content.d.ts +13 -0
- package/dist/content.js +1 -0
- package/dist/core.css +1070 -0
- package/dist/core.d.ts +6 -0
- package/dist/core.js +1 -0
- package/dist/dashboard-canvas.css +49 -0
- package/dist/dashboard-canvas.d.ts +2 -0
- package/dist/dashboard-canvas.js +1 -0
- package/dist/dashboard-panel.css +2 -0
- package/dist/dashboard-panel.d.ts +2 -0
- package/dist/dashboard-panel.js +1 -0
- package/dist/data.css +876 -0
- package/dist/data.d.ts +10 -0
- package/dist/data.js +1 -0
- package/dist/date-picker.css +78 -0
- package/dist/date-picker.d.ts +2 -0
- package/dist/date-picker.js +1 -0
- package/dist/date-range-picker.css +78 -0
- package/dist/date-range-picker.d.ts +2 -0
- package/dist/date-range-picker.js +1 -0
- package/dist/date-time-picker.css +78 -0
- package/dist/date-time-picker.d.ts +2 -0
- package/dist/date-time-picker.js +1 -0
- package/dist/descriptions.css +113 -0
- package/dist/descriptions.d.ts +2 -0
- package/dist/descriptions.js +1 -0
- package/dist/dom.d.ts +7 -0
- package/dist/draft-components.json +77 -0
- package/dist/drawer.css +215 -0
- package/dist/drawer.d.ts +2 -0
- package/dist/drawer.js +1 -0
- package/dist/empty-state.css +110 -0
- package/dist/empty-state.d.ts +2 -0
- package/dist/empty-state.js +1 -0
- package/dist/essentials.css +1295 -0
- package/dist/essentials.d.ts +11 -0
- package/dist/essentials.js +1 -0
- package/dist/feedback.css +1136 -0
- package/dist/feedback.d.ts +10 -0
- package/dist/feedback.js +1 -0
- package/dist/float-button.css +28 -0
- package/dist/float-button.d.ts +2 -0
- package/dist/float-button.js +1 -0
- package/dist/font-provider.css +5 -0
- package/dist/font-provider.d.ts +2 -0
- package/dist/font-provider.js +1 -0
- package/dist/fonts/dm-sans-LICENSE.txt +93 -0
- package/dist/fonts/dm-sans-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/dm-sans-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/dm-sans-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/dm-sans-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-LICENSE.txt +93 -0
- package/dist/fonts/ibm-plex-mono-latin-100-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-100-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-200-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-200-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-300-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-300-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-400-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-500-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-600-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-700-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-700-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-100-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-100-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-200-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-200-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-300-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-300-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-400-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-500-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-600-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-600-normal.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-700-italic.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-latin-ext-700-normal.woff2 +0 -0
- package/dist/fonts/inter-LICENSE.txt +93 -0
- package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-LICENSE.txt +93 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/lora-LICENSE.txt +93 -0
- package/dist/fonts/lora-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/lora-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/lora-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/lora-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/manifest.json +618 -0
- package/dist/fonts/manrope-LICENSE.txt +93 -0
- package/dist/fonts/manrope-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/manrope-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/merriweather-LICENSE.txt +93 -0
- package/dist/fonts/merriweather-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/merriweather-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/merriweather-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/merriweather-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/montserrat-LICENSE.txt +93 -0
- package/dist/fonts/montserrat-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/montserrat-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/montserrat-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/montserrat-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-LICENSE.txt +93 -0
- package/dist/fonts/playfair-display-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/playfair-display-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/roboto-LICENSE.txt +93 -0
- package/dist/fonts/roboto-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/roboto-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/roboto-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/roboto-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/source-sans-3-LICENSE.txt +93 -0
- package/dist/fonts/source-sans-3-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/source-sans-3-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/source-sans-3-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/dist/form-field.css +1 -0
- package/dist/form-field.d.ts +2 -0
- package/dist/form-field.js +1 -0
- package/dist/form-layout/choice.d.ts +15 -0
- package/dist/form-layout/layout.d.ts +12 -0
- package/dist/form-layout/select.d.ts +3 -0
- package/dist/form-layout/shared.d.ts +21 -0
- package/dist/form-layout/table.d.ts +20 -0
- package/dist/form-layout/text.d.ts +3 -0
- package/dist/form-layout/types.d.ts +151 -0
- package/dist/form-layout.css +62 -0
- package/dist/form-layout.d.ts +12 -0
- package/dist/form-layout.js +1 -0
- package/dist/grid-basic.css +12 -0
- package/dist/grid-basic.d.ts +10 -0
- package/dist/grid-basic.js +1 -0
- package/dist/grid-spec.d.ts +37 -0
- package/dist/grid.css +12 -0
- package/dist/grid.d.ts +1 -0
- package/dist/grid.js +1 -0
- package/dist/hero-section.css +41 -0
- package/dist/hero-section.d.ts +2 -0
- package/dist/hero-section.js +1 -0
- package/dist/image-compare.css +35 -0
- package/dist/image-compare.d.ts +2 -0
- package/dist/image-compare.js +1 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +1 -0
- package/dist/inputs.css +1587 -0
- package/dist/inputs.d.ts +16 -0
- package/dist/inputs.js +1 -0
- package/dist/layout.css +907 -0
- package/dist/layout.d.ts +11 -0
- package/dist/layout.js +1 -0
- package/dist/logo-cloud.css +33 -0
- package/dist/logo-cloud.d.ts +2 -0
- package/dist/logo-cloud.js +1 -0
- package/dist/marketing-template-layout.css +30 -0
- package/dist/media-card.css +41 -0
- package/dist/media-card.d.ts +2 -0
- package/dist/media-card.js +1 -0
- package/dist/media-image.css +531 -0
- package/dist/media-image.d.ts +2 -0
- package/dist/media-image.js +1 -0
- package/dist/modal.css +210 -0
- package/dist/modal.d.ts +2 -0
- package/dist/modal.js +1 -0
- package/dist/native/app-layout.js +1 -0
- package/dist/native/cascader.js +1 -0
- package/dist/native/chat-widget.js +3 -0
- package/dist/native/chat.js +3 -0
- package/dist/native/collection-layout.js +1 -0
- package/dist/native/command-palette.js +1 -0
- package/dist/native/content-carousel.js +1 -0
- package/dist/native/dashboard-canvas.js +1 -0
- package/dist/native/date-picker.js +1 -0
- package/dist/native/date-range-picker.js +1 -0
- package/dist/native/date-time-picker.js +1 -0
- package/dist/native/descriptions.js +1 -0
- package/dist/native/drawer.js +1 -0
- package/dist/native/float-button.js +1 -0
- package/dist/native/font-provider.js +1 -0
- package/dist/native/form-layout.js +1 -0
- package/dist/native/hero-section.js +1 -0
- package/dist/native/image-compare.js +1 -0
- package/dist/native/logo-cloud.js +1 -0
- package/dist/native/media-card.js +1 -0
- package/dist/native/media-image.js +1 -0
- package/dist/native/modal.js +1 -0
- package/dist/native/notification-center.js +1 -0
- package/dist/native/notification.js +2 -0
- package/dist/native/page-layout.js +1 -0
- package/dist/native/pagination.js +1 -0
- package/dist/native/profile-card.js +1 -0
- package/dist/native/qr-code.js +3 -0
- package/dist/native/quote-card.js +1 -0
- package/dist/native/shape-mask.js +1 -0
- package/dist/native/sparkline.js +1 -0
- package/dist/native/split-section.js +1 -0
- package/dist/native/splitter.js +1 -0
- package/dist/native/statistic.js +1 -0
- package/dist/native/text-highlight.js +1 -0
- package/dist/native/time-picker.js +1 -0
- package/dist/native/timeline.js +1 -0
- package/dist/native/tour.js +1 -0
- package/dist/native/transfer-list.js +1 -0
- package/dist/native/tree-select.js +1 -0
- package/dist/native/tree-view.js +1 -0
- package/dist/native/upload-manager.js +1 -0
- package/dist/native/video-lightbox.js +1 -0
- package/dist/native/video-player.js +1 -0
- package/dist/native-base.d.ts +1 -0
- package/dist/native-components/app-layout.d.ts +1 -0
- package/dist/native-components/cascader.d.ts +1 -0
- package/dist/native-components/chat-widget.d.ts +1 -0
- package/dist/native-components/chat.d.ts +1 -0
- package/dist/native-components/collection-layout.d.ts +1 -0
- package/dist/native-components/command-palette.d.ts +1 -0
- package/dist/native-components/content-carousel.d.ts +1 -0
- package/dist/native-components/dashboard-canvas.d.ts +1 -0
- package/dist/native-components/date-picker.d.ts +1 -0
- package/dist/native-components/date-range-picker.d.ts +1 -0
- package/dist/native-components/date-time-picker.d.ts +1 -0
- package/dist/native-components/descriptions.d.ts +1 -0
- package/dist/native-components/drawer.d.ts +1 -0
- package/dist/native-components/float-button.d.ts +1 -0
- package/dist/native-components/font-provider.d.ts +1 -0
- package/dist/native-components/form-layout.d.ts +1 -0
- package/dist/native-components/hero-section.d.ts +1 -0
- package/dist/native-components/image-compare.d.ts +1 -0
- package/dist/native-components/logo-cloud.d.ts +1 -0
- package/dist/native-components/media-card.d.ts +1 -0
- package/dist/native-components/media-image.d.ts +1 -0
- package/dist/native-components/modal.d.ts +1 -0
- package/dist/native-components/notification-center.d.ts +1 -0
- package/dist/native-components/notification.d.ts +1 -0
- package/dist/native-components/page-layout.d.ts +1 -0
- package/dist/native-components/pagination.d.ts +1 -0
- package/dist/native-components/profile-card.d.ts +1 -0
- package/dist/native-components/qr-code.d.ts +1 -0
- package/dist/native-components/quote-card.d.ts +1 -0
- package/dist/native-components/shape-mask.d.ts +1 -0
- package/dist/native-components/sparkline.d.ts +1 -0
- package/dist/native-components/split-section.d.ts +1 -0
- package/dist/native-components/splitter.d.ts +1 -0
- package/dist/native-components/statistic.d.ts +1 -0
- package/dist/native-components/text-highlight.d.ts +1 -0
- package/dist/native-components/time-picker.d.ts +1 -0
- package/dist/native-components/timeline.d.ts +1 -0
- package/dist/native-components/tour.d.ts +1 -0
- package/dist/native-components/transfer-list.d.ts +1 -0
- package/dist/native-components/tree-select.d.ts +1 -0
- package/dist/native-components/tree-view.d.ts +1 -0
- package/dist/native-components/upload-manager.d.ts +1 -0
- package/dist/native-components/video-lightbox.d.ts +1 -0
- package/dist/native-components/video-player.d.ts +1 -0
- package/dist/native-grid.d.ts +1 -0
- package/dist/native.d.ts +1 -0
- package/dist/notification-center.css +49 -0
- package/dist/notification-center.d.ts +2 -0
- package/dist/notification-center.js +1 -0
- package/dist/notification.css +155 -0
- package/dist/notification.d.ts +2 -0
- package/dist/notification.js +1 -0
- package/dist/page-header.css +184 -0
- package/dist/page-header.d.ts +2 -0
- package/dist/page-header.js +1 -0
- package/dist/page-layout.css +117 -0
- package/dist/page-layout.d.ts +2 -0
- package/dist/page-layout.js +1 -0
- package/dist/pagination.css +127 -0
- package/dist/pagination.d.ts +2 -0
- package/dist/pagination.js +1 -0
- package/dist/primitives.d.ts +1 -0
- package/dist/profile-card.css +484 -0
- package/dist/profile-card.d.ts +2 -0
- package/dist/profile-card.js +1 -0
- package/dist/qr-code.css +125 -0
- package/dist/qr-code.d.ts +2 -0
- package/dist/qr-code.js +1 -0
- package/dist/quote-card.css +30 -0
- package/dist/quote-card.d.ts +2 -0
- package/dist/quote-card.js +1 -0
- package/dist/radio-button.css +1 -0
- package/dist/radio-button.d.ts +2 -0
- package/dist/radio-button.js +1 -0
- package/dist/radio-group.css +1 -0
- package/dist/radio-group.d.ts +2 -0
- package/dist/radio-group.js +1 -0
- package/dist/select.css +1 -0
- package/dist/select.d.ts +2 -0
- package/dist/select.js +1 -0
- package/dist/shape-mask.css +10 -0
- package/dist/shape-mask.d.ts +2 -0
- package/dist/shape-mask.js +1 -0
- package/dist/sidebar.css +183 -0
- package/dist/sidebar.d.ts +2 -0
- package/dist/sidebar.js +1 -0
- package/dist/sizes.json +1194 -0
- package/dist/skeleton.css +69 -0
- package/dist/skeleton.d.ts +2 -0
- package/dist/skeleton.js +1 -0
- package/dist/sparkline.css +38 -0
- package/dist/sparkline.d.ts +2 -0
- package/dist/sparkline.js +1 -0
- package/dist/split-section.css +34 -0
- package/dist/split-section.d.ts +2 -0
- package/dist/split-section.js +1 -0
- package/dist/splitter.css +32 -0
- package/dist/splitter.d.ts +2 -0
- package/dist/splitter.js +1 -0
- package/dist/statistic.css +107 -0
- package/dist/statistic.d.ts +2 -0
- package/dist/statistic.js +1 -0
- package/dist/styles.css +8945 -0
- package/dist/switch.css +1 -0
- package/dist/switch.d.ts +2 -0
- package/dist/switch.js +1 -0
- package/dist/table.css +1 -0
- package/dist/table.d.ts +2 -0
- package/dist/table.js +1 -0
- package/dist/text-area.css +1 -0
- package/dist/text-area.d.ts +2 -0
- package/dist/text-area.js +1 -0
- package/dist/text-highlight.css +49 -0
- package/dist/text-highlight.d.ts +2 -0
- package/dist/text-highlight.js +1 -0
- package/dist/text-input.css +1 -0
- package/dist/text-input.d.ts +2 -0
- package/dist/text-input.js +1 -0
- package/dist/theme-runtime.d.ts +1 -0
- package/dist/theme.css +1391 -0
- package/dist/theme.d.ts +10 -0
- package/dist/theme.js +1 -0
- package/dist/time-picker.css +78 -0
- package/dist/time-picker.d.ts +2 -0
- package/dist/time-picker.js +1 -0
- package/dist/timeline.css +126 -0
- package/dist/timeline.d.ts +2 -0
- package/dist/timeline.js +1 -0
- package/dist/tour.css +138 -0
- package/dist/tour.d.ts +2 -0
- package/dist/tour.js +1 -0
- package/dist/transfer-list.css +878 -0
- package/dist/transfer-list.d.ts +2 -0
- package/dist/transfer-list.js +1 -0
- package/dist/tree-select.css +135 -0
- package/dist/tree-select.d.ts +2 -0
- package/dist/tree-select.js +1 -0
- package/dist/tree-view.css +118 -0
- package/dist/tree-view.d.ts +2 -0
- package/dist/tree-view.js +1 -0
- package/dist/types.d.ts +1284 -0
- package/dist/upload-manager.css +40 -0
- package/dist/upload-manager.d.ts +2 -0
- package/dist/upload-manager.js +1 -0
- package/dist/video-lightbox.css +639 -0
- package/dist/video-lightbox.d.ts +2 -0
- package/dist/video-lightbox.js +1 -0
- package/dist/video-player.css +92 -0
- package/dist/video-player.d.ts +2 -0
- package/dist/video-player.js +1 -0
- package/docs/FORM-LAYOUT-ESSENTIALS.md +122 -0
- package/docs/PUBLISHING.md +129 -0
- package/draft-components.json +77 -0
- package/edition.json +282 -0
- package/npm-shrinkwrap.json +554 -0
- package/package.json +457 -4
- package/scripts/build.mjs +42 -0
- package/scripts/verify-package.mjs +136 -0
- package/src/advanced-types.ts +89 -0
- package/src/app-layout.ts +2 -0
- package/src/badge.ts +2 -0
- package/src/breadcrumbs.ts +2 -0
- package/src/button.ts +2 -0
- package/src/card.ts +2 -0
- package/src/cascader.ts +2 -0
- package/src/chat-widget.ts +2 -0
- package/src/chat.ts +2 -0
- package/src/checkbox.ts +2 -0
- package/src/chip-group.ts +2 -0
- package/src/chip.ts +2 -0
- package/src/collection-layout.ts +2 -0
- package/src/colors.ts +3 -0
- package/src/columns2.ts +2 -0
- package/src/columns3.ts +2 -0
- package/src/columns4.ts +2 -0
- package/src/command-palette.ts +2 -0
- package/src/component-factories/app-layout.ts +8 -0
- package/src/component-factories/breadcrumbs.ts +45 -0
- package/src/component-factories/cascader.ts +11 -0
- package/src/component-factories/chat-widget.ts +12 -0
- package/src/component-factories/chat.ts +10 -0
- package/src/component-factories/collection-layout.ts +5 -0
- package/src/component-factories/command-palette.ts +79 -0
- package/src/component-factories/content-carousel.ts +5 -0
- package/src/component-factories/dashboard-canvas.ts +11 -0
- package/src/component-factories/dashboard-panel.ts +9 -0
- package/src/component-factories/date-picker.ts +6 -0
- package/src/component-factories/date-range-picker.ts +6 -0
- package/src/component-factories/date-time-picker.ts +6 -0
- package/src/component-factories/descriptions.ts +11 -0
- package/src/component-factories/drawer.ts +12 -0
- package/src/component-factories/float-button.ts +7 -0
- package/src/component-factories/font-provider.ts +6 -0
- package/src/component-factories/hero-section.ts +5 -0
- package/src/component-factories/image-compare.ts +5 -0
- package/src/component-factories/logo-cloud.ts +5 -0
- package/src/component-factories/media-card.ts +5 -0
- package/src/component-factories/media-image.ts +5 -0
- package/src/component-factories/modal.ts +12 -0
- package/src/component-factories/notification-center.ts +13 -0
- package/src/component-factories/notification.ts +16 -0
- package/src/component-factories/page-header.ts +73 -0
- package/src/component-factories/page-layout.ts +8 -0
- package/src/component-factories/pagination.ts +11 -0
- package/src/component-factories/profile-card.ts +5 -0
- package/src/component-factories/qr-code.ts +11 -0
- package/src/component-factories/quote-card.ts +5 -0
- package/src/component-factories/shape-mask.ts +6 -0
- package/src/component-factories/sidebar.ts +98 -0
- package/src/component-factories/sparkline.ts +8 -0
- package/src/component-factories/split-section.ts +5 -0
- package/src/component-factories/splitter.ts +105 -0
- package/src/component-factories/statistic.ts +10 -0
- package/src/component-factories/text-highlight.ts +5 -0
- package/src/component-factories/time-picker.ts +6 -0
- package/src/component-factories/timeline.ts +11 -0
- package/src/component-factories/tour.ts +13 -0
- package/src/component-factories/transfer-list.ts +159 -0
- package/src/component-factories/tree-select.ts +83 -0
- package/src/component-factories/tree-view.ts +115 -0
- package/src/component-factories/upload-manager.ts +76 -0
- package/src/component-factories/video-lightbox.ts +5 -0
- package/src/component-factories/video-player.ts +5 -0
- package/src/component-runtime.ts +20 -0
- package/src/content-carousel.ts +2 -0
- package/src/content.ts +13 -0
- package/src/core.ts +6 -0
- package/src/dashboard-canvas.ts +2 -0
- package/src/dashboard-panel.ts +2 -0
- package/src/data.ts +10 -0
- package/src/date-picker.ts +2 -0
- package/src/date-range-picker.ts +2 -0
- package/src/date-time-picker.ts +2 -0
- package/src/descriptions.ts +2 -0
- package/src/dom.ts +65 -0
- package/src/drawer.ts +2 -0
- package/src/empty-state.ts +2 -0
- package/src/essentials.ts +180 -0
- package/src/feedback.ts +10 -0
- package/src/float-button.ts +2 -0
- package/src/font-provider.ts +2 -0
- package/src/form-field.ts +2 -0
- package/src/form-layout/choice.ts +66 -0
- package/src/form-layout/layout.ts +40 -0
- package/src/form-layout/select.ts +97 -0
- package/src/form-layout/shared.ts +57 -0
- package/src/form-layout/table.ts +86 -0
- package/src/form-layout/text.ts +73 -0
- package/src/form-layout/types.ts +59 -0
- package/src/form-layout.ts +12 -0
- package/src/grid-basic.ts +46 -0
- package/src/grid-spec.ts +93 -0
- package/src/grid.ts +1 -0
- package/src/hero-section.ts +2 -0
- package/src/image-compare.ts +2 -0
- package/src/index.ts +58 -0
- package/src/inputs.ts +16 -0
- package/src/layout.ts +11 -0
- package/src/logo-cloud.ts +2 -0
- package/src/media-card.ts +2 -0
- package/src/media-image.ts +2 -0
- package/src/modal.ts +2 -0
- package/src/native-base.ts +20 -0
- package/src/native-components/app-layout.ts +2 -0
- package/src/native-components/cascader.ts +2 -0
- package/src/native-components/chat-widget.ts +2 -0
- package/src/native-components/chat.ts +2 -0
- package/src/native-components/collection-layout.ts +2 -0
- package/src/native-components/command-palette.ts +2 -0
- package/src/native-components/content-carousel.ts +2 -0
- package/src/native-components/dashboard-canvas.ts +2 -0
- package/src/native-components/date-picker.ts +2 -0
- package/src/native-components/date-range-picker.ts +2 -0
- package/src/native-components/date-time-picker.ts +2 -0
- package/src/native-components/descriptions.ts +2 -0
- package/src/native-components/drawer.ts +2 -0
- package/src/native-components/float-button.ts +2 -0
- package/src/native-components/font-provider.ts +2 -0
- package/src/native-components/form-layout.ts +21 -0
- package/src/native-components/hero-section.ts +2 -0
- package/src/native-components/image-compare.ts +2 -0
- package/src/native-components/logo-cloud.ts +2 -0
- package/src/native-components/media-card.ts +2 -0
- package/src/native-components/media-image.ts +2 -0
- package/src/native-components/modal.ts +2 -0
- package/src/native-components/notification-center.ts +2 -0
- package/src/native-components/notification.ts +2 -0
- package/src/native-components/page-layout.ts +2 -0
- package/src/native-components/pagination.ts +2 -0
- package/src/native-components/profile-card.ts +2 -0
- package/src/native-components/qr-code.ts +2 -0
- package/src/native-components/quote-card.ts +2 -0
- package/src/native-components/shape-mask.ts +2 -0
- package/src/native-components/sparkline.ts +2 -0
- package/src/native-components/split-section.ts +2 -0
- package/src/native-components/splitter.ts +2 -0
- package/src/native-components/statistic.ts +2 -0
- package/src/native-components/text-highlight.ts +2 -0
- package/src/native-components/time-picker.ts +2 -0
- package/src/native-components/timeline.ts +2 -0
- package/src/native-components/tour.ts +2 -0
- package/src/native-components/transfer-list.ts +2 -0
- package/src/native-components/tree-select.ts +2 -0
- package/src/native-components/tree-view.ts +2 -0
- package/src/native-components/upload-manager.ts +2 -0
- package/src/native-components/video-lightbox.ts +2 -0
- package/src/native-components/video-player.ts +2 -0
- package/src/native-grid.ts +3 -0
- package/src/native.ts +3 -0
- package/src/notification-center.ts +2 -0
- package/src/notification.ts +2 -0
- package/src/page-header.ts +2 -0
- package/src/page-layout.ts +2 -0
- package/src/pagination.ts +2 -0
- package/src/primitives.ts +1 -0
- package/src/profile-card.ts +2 -0
- package/src/qr-code.ts +2 -0
- package/src/quote-card.ts +2 -0
- package/src/radio-button.ts +2 -0
- package/src/radio-group.ts +2 -0
- package/src/runtime/app-layout.d.ts +1 -0
- package/src/runtime/app-layout.js +168 -0
- package/src/runtime/cascader.d.ts +1 -0
- package/src/runtime/cascader.js +381 -0
- package/src/runtime/chat-widget.d.ts +1 -0
- package/src/runtime/chat-widget.js +630 -0
- package/src/runtime/chat.d.ts +1 -0
- package/src/runtime/chat.js +461 -0
- package/src/runtime/collection-layout.d.ts +1 -0
- package/src/runtime/collection-layout.js +269 -0
- package/src/runtime/command-palette.d.ts +1 -0
- package/src/runtime/command-palette.js +302 -0
- package/src/runtime/content-carousel.d.ts +1 -0
- package/src/runtime/content-carousel.js +282 -0
- package/src/runtime/dashboard-canvas.d.ts +1 -0
- package/src/runtime/dashboard-canvas.js +493 -0
- package/src/runtime/date-picker.d.ts +1 -0
- package/src/runtime/date-picker.js +826 -0
- package/src/runtime/date-range-picker.d.ts +1 -0
- package/src/runtime/date-range-picker.js +826 -0
- package/src/runtime/date-time-picker.d.ts +1 -0
- package/src/runtime/date-time-picker.js +826 -0
- package/src/runtime/descriptions.d.ts +1 -0
- package/src/runtime/descriptions.js +220 -0
- package/src/runtime/drawer.d.ts +1 -0
- package/src/runtime/drawer.js +287 -0
- package/src/runtime/empty-state.d.ts +1 -0
- package/src/runtime/empty-state.js +178 -0
- package/src/runtime/float-button.d.ts +1 -0
- package/src/runtime/float-button.js +171 -0
- package/src/runtime/font-provider.d.ts +1 -0
- package/src/runtime/font-provider.js +694 -0
- package/src/runtime/hero-section.d.ts +1 -0
- package/src/runtime/hero-section.js +186 -0
- package/src/runtime/image-compare.d.ts +1 -0
- package/src/runtime/image-compare.js +242 -0
- package/src/runtime/kernel.js +8 -0
- package/src/runtime/logo-cloud.d.ts +1 -0
- package/src/runtime/logo-cloud.js +163 -0
- package/src/runtime/media-card.d.ts +1 -0
- package/src/runtime/media-card.js +189 -0
- package/src/runtime/media-image.d.ts +1 -0
- package/src/runtime/media-image.js +480 -0
- package/src/runtime/modal.d.ts +1 -0
- package/src/runtime/modal.js +287 -0
- package/src/runtime/notification-center.d.ts +1 -0
- package/src/runtime/notification-center.js +417 -0
- package/src/runtime/notification.d.ts +1 -0
- package/src/runtime/notification.js +347 -0
- package/src/runtime/page-layout.d.ts +1 -0
- package/src/runtime/page-layout.js +105 -0
- package/src/runtime/pagination.d.ts +1 -0
- package/src/runtime/pagination.js +274 -0
- package/src/runtime/profile-card.d.ts +1 -0
- package/src/runtime/profile-card.js +512 -0
- package/src/runtime/qr-code.d.ts +1 -0
- package/src/runtime/qr-code.js +1942 -0
- package/src/runtime/quote-card.d.ts +1 -0
- package/src/runtime/quote-card.js +153 -0
- package/src/runtime/shape-mask.d.ts +1 -0
- package/src/runtime/shape-mask.js +211 -0
- package/src/runtime/sparkline.d.ts +1 -0
- package/src/runtime/sparkline.js +197 -0
- package/src/runtime/split-section.d.ts +1 -0
- package/src/runtime/split-section.js +148 -0
- package/src/runtime/splitter.d.ts +1 -0
- package/src/runtime/splitter.js +278 -0
- package/src/runtime/statistic.d.ts +1 -0
- package/src/runtime/statistic.js +204 -0
- package/src/runtime/text-highlight.d.ts +1 -0
- package/src/runtime/text-highlight.js +194 -0
- package/src/runtime/time-picker.d.ts +1 -0
- package/src/runtime/time-picker.js +826 -0
- package/src/runtime/timeline.d.ts +1 -0
- package/src/runtime/timeline.js +213 -0
- package/src/runtime/tour.d.ts +1 -0
- package/src/runtime/tour.js +412 -0
- package/src/runtime/transfer.d.ts +1 -0
- package/src/runtime/transfer.js +88 -0
- package/src/runtime/tree-select.d.ts +1 -0
- package/src/runtime/tree-select.js +420 -0
- package/src/runtime/tree.d.ts +1 -0
- package/src/runtime/tree.js +302 -0
- package/src/runtime/upload-manager.d.ts +1 -0
- package/src/runtime/upload-manager.js +408 -0
- package/src/runtime/video-lightbox.d.ts +1 -0
- package/src/runtime/video-lightbox.js +1117 -0
- package/src/runtime/video-player.d.ts +1 -0
- package/src/runtime/video-player.js +770 -0
- package/src/select.ts +2 -0
- package/src/shape-mask.ts +2 -0
- package/src/sidebar.ts +2 -0
- package/src/skeleton.ts +2 -0
- package/src/sparkline.ts +2 -0
- package/src/split-section.ts +2 -0
- package/src/splitter.ts +2 -0
- package/src/statistic.ts +2 -0
- package/src/switch.ts +2 -0
- package/src/table.ts +2 -0
- package/src/text-area.ts +2 -0
- package/src/text-highlight.ts +2 -0
- package/src/text-input.ts +2 -0
- package/src/theme-runtime.ts +70 -0
- package/src/theme.ts +32 -0
- package/src/time-picker.ts +2 -0
- package/src/timeline.ts +2 -0
- package/src/tour.ts +2 -0
- package/src/transfer-list.ts +2 -0
- package/src/tree-select.ts +2 -0
- package/src/tree-view.ts +2 -0
- package/src/types.ts +1287 -0
- package/src/upload-manager.ts +2 -0
- package/src/video-lightbox.ts +2 -0
- package/src/video-player.ts +2 -0
- package/styles/app-layout.css +115 -0
- package/styles/badge.css +131 -0
- package/styles/breadcrumbs.css +77 -0
- package/styles/button.css +625 -0
- package/styles/card.css +119 -0
- package/styles/cascader.css +152 -0
- package/styles/chat-widget.css +121 -0
- package/styles/chat.css +66 -0
- package/styles/checkbox.css +1 -0
- package/styles/chip-group.css +44 -0
- package/styles/chip.css +191 -0
- package/styles/collection-layout.css +30 -0
- package/styles/columns2.css +1 -0
- package/styles/columns3.css +1 -0
- package/styles/columns4.css +1 -0
- package/styles/command-palette.css +35 -0
- package/styles/content-carousel.css +34 -0
- package/styles/dashboard-canvas.css +49 -0
- package/styles/dashboard-panel.css +2 -0
- package/styles/date-picker.css +78 -0
- package/styles/date-range-picker.css +78 -0
- package/styles/date-time-picker.css +78 -0
- package/styles/descriptions.css +113 -0
- package/styles/drawer.css +215 -0
- package/styles/empty-state.css +110 -0
- package/styles/float-button.css +28 -0
- package/styles/font-provider.css +5 -0
- package/styles/form-field.css +1 -0
- package/styles/form-layout.css +62 -0
- package/styles/grid-basic.css +12 -0
- package/styles/hero-section.css +41 -0
- package/styles/image-compare.css +35 -0
- package/styles/logo-cloud.css +33 -0
- package/styles/marketing-template-layout.css +30 -0
- package/styles/media-card.css +41 -0
- package/styles/media-image.css +531 -0
- package/styles/modal.css +210 -0
- package/styles/notification-center.css +49 -0
- package/styles/notification.css +155 -0
- package/styles/page-header.css +184 -0
- package/styles/page-layout.css +117 -0
- package/styles/pagination.css +127 -0
- package/styles/profile-card.css +484 -0
- package/styles/qr-code.css +125 -0
- package/styles/quote-card.css +30 -0
- package/styles/radio-button.css +1 -0
- package/styles/radio-group.css +1 -0
- package/styles/select.css +1 -0
- package/styles/shape-mask.css +10 -0
- package/styles/sidebar.css +183 -0
- package/styles/skeleton.css +69 -0
- package/styles/sparkline.css +38 -0
- package/styles/split-section.css +34 -0
- package/styles/splitter.css +32 -0
- package/styles/statistic.css +107 -0
- package/styles/switch.css +1 -0
- package/styles/table.css +1 -0
- package/styles/text-area.css +1 -0
- package/styles/text-highlight.css +49 -0
- package/styles/text-input.css +1 -0
- package/styles/theme.css +1391 -0
- package/styles/time-picker.css +78 -0
- package/styles/timeline.css +126 -0
- package/styles/tour.css +138 -0
- package/styles/transfer-list.css +878 -0
- package/styles/tree-select.css +135 -0
- package/styles/tree-view.css +118 -0
- package/styles/upload-manager.css +40 -0
- package/styles/video-lightbox.css +639 -0
- package/styles/video-player.css +92 -0
- package/test/contracts.test.mjs +8 -0
- package/test/form-layout.test.mjs +28 -0
- package/test/isolation.test.mjs +36 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import {installProfileCard} from '../runtime/profile-card.js';
|
|
2
|
+
import {bind} from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
export function createProfileCard(host:HTMLElement, options:T.ProfileCardOptions, events:T.ProfileCardEvents={}) {
|
|
5
|
+
installProfileCard();return bind<T.ProfileCardOptions>(host,"ProfileCard",{...{"ImageUrl": "", "ImageDescription": "", "FocalPoint": "50% 50%", "Name": "Alex Morgan", "Role": "Creative director", "Biography": "", "Variant": "Below", "AllowExpand": true, "ProfileUrl": "", "AccessibleLabel": "", "ExtendedClass": ""},...options},remember=>({Error: (message) => {return events.Error?.(message);}}),[],["Links"]);}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {installQRCode} from '../runtime/qr-code.js';
|
|
2
|
+
import { bind } from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type NotificationRuntime={show(hostKey:string,message:T.BluNotificationMessage):string;update(hostKey:string,message:T.BluNotificationMessage):string;dismiss(hostKey:string,key?:string):void};
|
|
5
|
+
export function createQRCode(host:HTMLElement,options:T.QRCodeOptions,events:T.QRCodeEvents={}){
|
|
6
|
+
installQRCode();
|
|
7
|
+
return bind(host,"QRCode",options,remember=>({
|
|
8
|
+
Refresh:(key)=>{return events.Refresh?.(key);},
|
|
9
|
+
Error:(message)=>{return events.Error?.(message);},
|
|
10
|
+
}),[],[]);
|
|
11
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import {installQuoteCard} from '../runtime/quote-card.js';
|
|
2
|
+
import {bind} from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
export function createQuoteCard(host:HTMLElement, options:T.QuoteCardOptions, events:T.QuoteCardEvents={}) {
|
|
5
|
+
installQuoteCard();return bind<T.QuoteCardOptions>(host,"QuoteCard",{...{"Quote": "Good work starts with a conversation.", "Name": "Alex Morgan", "Role": "", "AvatarUrl": "", "LogoUrl": "", "Rating": 0, "AccessibleLabel": "", "ExtendedClass": ""},...options},remember=>({Error: (message) => {return events.Error?.(message);}}),[],[]);}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {installShapeMask} from '../runtime/shape-mask.js';
|
|
2
|
+
import {bind} from '../component-runtime.js';
|
|
3
|
+
import type {ShapeMaskOptions,ShapeMaskEvents} from '../types.js';
|
|
4
|
+
export function createShapeMask(host:HTMLElement,options:ShapeMaskOptions,events:ShapeMaskEvents={}){
|
|
5
|
+
installShapeMask();return bind<ShapeMaskOptions>(host,'ShapeMask',options,remember=>({Loaded:url=>events.Loaded?.(url),Error:message=>events.Error?.(message)}),[],["Content"]);
|
|
6
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { node, slot, component, classes, safeUrl } from "../dom.js";
|
|
2
|
+
import type {
|
|
3
|
+
ButtonOptions,
|
|
4
|
+
ButtonEvents,
|
|
5
|
+
BadgeOptions,
|
|
6
|
+
ChipOptions,
|
|
7
|
+
ChipEvents,
|
|
8
|
+
CardOptions,
|
|
9
|
+
BreadcrumbsOptions,
|
|
10
|
+
PageHeaderOptions,
|
|
11
|
+
SidebarOptions,
|
|
12
|
+
SidebarEvents,
|
|
13
|
+
SkeletonOptions,
|
|
14
|
+
} from "../types.js";
|
|
15
|
+
function breadcrumbs(p: BreadcrumbsOptions) {
|
|
16
|
+
const n = node("nav", classes("blu-breadcrumbs", p.ExtendedClass));
|
|
17
|
+
n.setAttribute("aria-label", p.AccessibleLabel || "Breadcrumbs");
|
|
18
|
+
const list = node("ol", "blu-breadcrumbs__list");
|
|
19
|
+
n.append(list);
|
|
20
|
+
p.Items.forEach((item, i) => {
|
|
21
|
+
const li = node("li", "blu-breadcrumbs__item");
|
|
22
|
+
if (i) {
|
|
23
|
+
const sep = node("span", "blu-breadcrumbs__separator", "/");
|
|
24
|
+
sep.setAttribute("aria-hidden", "true");
|
|
25
|
+
li.append(sep);
|
|
26
|
+
}
|
|
27
|
+
if (i === p.Items.length - 1 || !item.Url) {
|
|
28
|
+
const text = node("span", "blu-breadcrumbs__current", item.Label);
|
|
29
|
+
if (i === p.Items.length - 1) text.setAttribute("aria-current", "page");
|
|
30
|
+
li.append(text);
|
|
31
|
+
} else {
|
|
32
|
+
const a = node("a", "blu-breadcrumbs__link", item.Label);
|
|
33
|
+
a.href = safeUrl(item.Url);
|
|
34
|
+
li.append(a);
|
|
35
|
+
}
|
|
36
|
+
list.append(li);
|
|
37
|
+
});
|
|
38
|
+
return n;
|
|
39
|
+
}
|
|
40
|
+
export function createSidebar(
|
|
41
|
+
host: HTMLElement,
|
|
42
|
+
options: SidebarOptions,
|
|
43
|
+
events: SidebarEvents = {},
|
|
44
|
+
) {
|
|
45
|
+
return component(host, options, (r, p, update) => {
|
|
46
|
+
const active = r.contains(document.activeElement) ? (document.activeElement as HTMLElement)?.dataset.navigationKey : undefined;
|
|
47
|
+
const previousScroll=r.querySelector(".blu-sidebar")?.scrollTop||0;
|
|
48
|
+
const n = node(
|
|
49
|
+
"aside",
|
|
50
|
+
classes(
|
|
51
|
+
"blu-sidebar" + (p.IsOpen === false ? " blu-sidebar--closed" : ""),
|
|
52
|
+
p.ExtendedClass,
|
|
53
|
+
),
|
|
54
|
+
);
|
|
55
|
+
n.hidden = p.IsOpen === false;
|
|
56
|
+
n.setAttribute("aria-label", p.AccessibleLabel || "Navigation");
|
|
57
|
+
const c = node("div", "blu-sidebar__content blu-navigation-menu");
|
|
58
|
+
slot(c, p.Content);
|
|
59
|
+
for (const item of p.Items || []) {
|
|
60
|
+
if (item.IsGroup) {
|
|
61
|
+
c.append(node("div", "blu-navigation-menu__group-title", item.Label));
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
const b = item.Url ? node("a") : node("button");
|
|
65
|
+
if (b instanceof HTMLButtonElement) {
|
|
66
|
+
b.type = "button";
|
|
67
|
+
b.disabled = !!item.IsDisabled;
|
|
68
|
+
} else if (item.Url && !item.IsDisabled) b.href = safeUrl(item.Url);
|
|
69
|
+
b.dataset.navigationKey = item.Key;
|
|
70
|
+
b.className =
|
|
71
|
+
"blu-navigation-menu__link" +
|
|
72
|
+
(item.Key === p.ActiveKey ? " blu-navigation-menu__link--active" : "");
|
|
73
|
+
if (item.Key === p.ActiveKey) b.setAttribute("aria-current", "page");
|
|
74
|
+
if (item.IsDisabled) b.setAttribute("aria-disabled", "true");
|
|
75
|
+
if (item.IconUrl) {
|
|
76
|
+
const icon = node("img");
|
|
77
|
+
icon.src = safeUrl(item.IconUrl);
|
|
78
|
+
icon.alt = "";
|
|
79
|
+
b.append(icon);
|
|
80
|
+
}
|
|
81
|
+
b.append(node("span", "", item.Label));
|
|
82
|
+
b.onclick = (e) => {
|
|
83
|
+
if (item.IsDisabled) {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
if (!item.Url) update({ ActiveKey: item.Key });
|
|
88
|
+
void events.Navigate?.(item.Key, e);
|
|
89
|
+
};
|
|
90
|
+
c.append(b);
|
|
91
|
+
}
|
|
92
|
+
n.append(c);
|
|
93
|
+
r.replaceChildren(n);
|
|
94
|
+
n.scrollTop=previousScroll;
|
|
95
|
+
requestAnimationFrame(()=>{const selected=n.querySelector<HTMLElement>('[aria-current="page"]');if(!selected||!n.isConnected)return;const a=selected.getBoundingClientRect(),p=n.getBoundingClientRect();if(a.top<p.top+12||a.bottom>p.bottom-12)n.scrollTop+=a.top-p.top-n.clientHeight/2+a.height/2;});
|
|
96
|
+
if (active) Array.from(r.querySelectorAll<HTMLElement>('[data-navigation-key]')).find(el => el.dataset.navigationKey === active)?.focus();
|
|
97
|
+
});
|
|
98
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import {installSparkline} from '../runtime/sparkline.js';
|
|
2
|
+
import { bind } from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type NotificationRuntime={show(hostKey:string,message:T.BluNotificationMessage):string;update(hostKey:string,message:T.BluNotificationMessage):string;dismiss(hostKey:string,key?:string):void};
|
|
5
|
+
export function createSparkline(host:HTMLElement,options:T.SparklineOptions,events:T.SparklineEvents={}) {
|
|
6
|
+
installSparkline();
|
|
7
|
+
return bind(host,"Sparkline",options,()=>({Error:(message)=>events.Error?.(message)}),["Points"]);
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import {installSplitSection} from '../runtime/split-section.js';
|
|
2
|
+
import {bind} from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
export function createSplitSection(host:HTMLElement, options:T.SplitSectionOptions, events:T.SplitSectionEvents={}) {
|
|
5
|
+
installSplitSection();return bind<T.SplitSectionOptions>(host,"SplitSection",{...{"Eyebrow": "", "Title": "A different perspective.", "Description": "", "MediaSide": "Left", "Surface": "Default", "HeadingLevel": 2, "Spacing": "Comfortable", "AccessibleLabel": "", "ExtendedClass": ""},...options},remember=>({Error: (message) => {return events.Error?.(message);}}),[],["Media", "Content", "Actions"]);}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {installSplitter} from '../runtime/splitter.js';
|
|
2
|
+
import { mountRoot, node, slot } from "../dom.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type RawEvents = Record<string, (...args: any[]) => unknown>;
|
|
5
|
+
type Raw = {
|
|
6
|
+
sync(id: string, options: object, events: RawEvents, owner: string): string;
|
|
7
|
+
destroy(owner: string): void;
|
|
8
|
+
};
|
|
9
|
+
function runtime(): Record<string, Raw> {
|
|
10
|
+
if (typeof window === "undefined")
|
|
11
|
+
throw new Error("Mount BluKavantUI in a browser, after the host is connected.");
|
|
12
|
+
return (window as unknown as { BluUICommunityRuntime: Record<string, Raw> })
|
|
13
|
+
.BluUICommunityRuntime;
|
|
14
|
+
}
|
|
15
|
+
function bind<P extends object>(
|
|
16
|
+
host: HTMLElement,
|
|
17
|
+
kind: string,
|
|
18
|
+
initial: P,
|
|
19
|
+
map: (p: P) => object,
|
|
20
|
+
events: (remember: (p: Partial<P>) => void) => RawEvents,
|
|
21
|
+
setup?: (root: HTMLElement, p: P) => void,
|
|
22
|
+
): T.Component<P> {
|
|
23
|
+
const r = mountRoot(host),
|
|
24
|
+
key = r.id;
|
|
25
|
+
let props = { ...initial },
|
|
26
|
+
disposed = false;
|
|
27
|
+
const raw = runtime()[kind],
|
|
28
|
+
callbacks = events((p) => {
|
|
29
|
+
props = { ...props, ...p };
|
|
30
|
+
});
|
|
31
|
+
const update = (patch: Partial<P>) => {
|
|
32
|
+
if (disposed) throw new Error("Component is destroyed.");
|
|
33
|
+
props = { ...props, ...patch };
|
|
34
|
+
setup?.(r, props);
|
|
35
|
+
const error = raw.sync(r.id, map(props), callbacks, key);
|
|
36
|
+
if (error) throw new Error(error);
|
|
37
|
+
};
|
|
38
|
+
try {
|
|
39
|
+
update({});
|
|
40
|
+
} catch (e) {
|
|
41
|
+
raw.destroy(key);
|
|
42
|
+
r.remove();
|
|
43
|
+
throw e;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
element: r,
|
|
47
|
+
update,
|
|
48
|
+
destroy() {
|
|
49
|
+
if (disposed) return;
|
|
50
|
+
disposed = true;
|
|
51
|
+
raw.destroy(key);
|
|
52
|
+
r.remove();
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function createSplitter(
|
|
57
|
+
host: HTMLElement,
|
|
58
|
+
options: T.SplitterOptions,
|
|
59
|
+
events: T.SplitterEvents = {},
|
|
60
|
+
) {
|
|
61
|
+
installSplitter();
|
|
62
|
+
let primary: HTMLElement,
|
|
63
|
+
secondary: HTMLElement,
|
|
64
|
+
lastPrimary: T.Slot | undefined,
|
|
65
|
+
lastSecondary: T.Slot | undefined;
|
|
66
|
+
return bind(
|
|
67
|
+
host,
|
|
68
|
+
"Splitter",
|
|
69
|
+
options,
|
|
70
|
+
(p) => {
|
|
71
|
+
const { PrimaryContent, SecondaryContent, ...rest } = p;
|
|
72
|
+
return rest;
|
|
73
|
+
},
|
|
74
|
+
(remember) => ({
|
|
75
|
+
LayoutChanged: (size, collapsed) => {
|
|
76
|
+
remember({ PrimarySize: size, IsCollapsed: collapsed });
|
|
77
|
+
return events.LayoutChanged?.(size, collapsed);
|
|
78
|
+
},
|
|
79
|
+
Error: (message) => events.Error?.(message),
|
|
80
|
+
}),
|
|
81
|
+
(root, p) => {
|
|
82
|
+
if (!primary) {
|
|
83
|
+
root.className = "blu-splitter";
|
|
84
|
+
primary = node("section", "blu-splitter__primary");
|
|
85
|
+
secondary = node("section", "blu-splitter__secondary");
|
|
86
|
+
root.append(
|
|
87
|
+
primary,
|
|
88
|
+
node("div", "blu-splitter__handle"),
|
|
89
|
+
secondary,
|
|
90
|
+
node("div", "blu-splitter__error"),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
if (p.PrimaryContent !== lastPrimary) {
|
|
94
|
+
primary.replaceChildren();
|
|
95
|
+
slot(primary, p.PrimaryContent);
|
|
96
|
+
lastPrimary = p.PrimaryContent;
|
|
97
|
+
}
|
|
98
|
+
if (p.SecondaryContent !== lastSecondary) {
|
|
99
|
+
secondary.replaceChildren();
|
|
100
|
+
slot(secondary, p.SecondaryContent);
|
|
101
|
+
lastSecondary = p.SecondaryContent;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
);
|
|
105
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {installStatistic} from '../runtime/statistic.js';
|
|
2
|
+
import { bind } from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type NotificationRuntime={show(hostKey:string,message:T.BluNotificationMessage):string;update(hostKey:string,message:T.BluNotificationMessage):string;dismiss(hostKey:string,key?:string):void};
|
|
5
|
+
export function createStatistic(host:HTMLElement,options:T.StatisticOptions,events:T.StatisticEvents={}){
|
|
6
|
+
installStatistic();
|
|
7
|
+
return bind(host,"Statistic",options,remember=>({
|
|
8
|
+
Error:(message)=>{return events.Error?.(message);},
|
|
9
|
+
}),[],[]);
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import {installTextHighlight} from '../runtime/text-highlight.js';
|
|
2
|
+
import {bind} from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
export function createTextHighlight(host:HTMLElement, options:T.TextHighlightOptions, events:T.TextHighlightEvents={}) {
|
|
5
|
+
installTextHighlight();return bind<T.TextHighlightOptions>(host,"TextHighlight",{...{"Text": "Something worth noticing", "Style": "Marker", "Color": "Primary", "IsAnimated": false, "AccessibleLabel": "", "ExtendedClass": ""},...options},remember=>({Error: (message) => {return events.Error?.(message);}}),[],[]);}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import {installTimePicker} from '../runtime/time-picker.js';
|
|
2
|
+
import {bind} from '../component-runtime.js';
|
|
3
|
+
import type {TimePickerOptions,PickerEvents} from '../types.js';
|
|
4
|
+
export function createTimePicker(host:HTMLElement,options:TimePickerOptions={},events:PickerEvents={}){
|
|
5
|
+
installTimePicker();return bind<TimePickerOptions>(host,'TimePicker',options,remember=>({Change:(value)=>{remember({Value:value});return events.Change?.(value);},ValidationChanged:(valid,message)=>events.ValidationChanged?.(valid,message),OpenChanged:open=>events.OpenChanged?.(open),Error:message=>events.Error?.(message)}),[],[]);
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {installTimeline} from '../runtime/timeline.js';
|
|
2
|
+
import { bind } from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type NotificationRuntime={show(hostKey:string,message:T.BluNotificationMessage):string;update(hostKey:string,message:T.BluNotificationMessage):string;dismiss(hostKey:string,key?:string):void};
|
|
5
|
+
export function createTimeline(host:HTMLElement,options:T.TimelineOptions,events:T.TimelineEvents={}){
|
|
6
|
+
installTimeline();
|
|
7
|
+
return bind(host,"Timeline",options,remember=>({
|
|
8
|
+
ItemClick:(key)=>{return events.ItemClick?.(key);},
|
|
9
|
+
Error:(message)=>{return events.Error?.(message);},
|
|
10
|
+
}),["Items"],[]);
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {installTour} from '../runtime/tour.js';
|
|
2
|
+
import { bind } from "../component-runtime.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type NotificationRuntime={show(hostKey:string,message:T.BluNotificationMessage):string;update(hostKey:string,message:T.BluNotificationMessage):string;dismiss(hostKey:string,key?:string):void};
|
|
5
|
+
export function createTour(host:HTMLElement,options:T.TourOptions,events:T.TourEvents={}){
|
|
6
|
+
installTour();
|
|
7
|
+
return bind(host,"Tour",options,remember=>({
|
|
8
|
+
OpenChanged:(isOpen,reason)=>{remember({IsOpen:isOpen});return events.OpenChanged?.(isOpen,reason);},
|
|
9
|
+
StepChanged:(currentStep,key)=>{remember({CurrentStep:currentStep});return events.StepChanged?.(currentStep,key);},
|
|
10
|
+
Completed:(key)=>{return events.Completed?.(key);},
|
|
11
|
+
Error:(message)=>{return events.Error?.(message);},
|
|
12
|
+
}),["Steps"],[]);
|
|
13
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import {installTransfer} from '../runtime/transfer.js';
|
|
2
|
+
import { component, node } from "../dom.js";
|
|
3
|
+
import { buttonElement } from "../primitives.js";
|
|
4
|
+
import type { TransferListOptions, TransferListEvents } from "../types.js";
|
|
5
|
+
interface Row {
|
|
6
|
+
Key: string;
|
|
7
|
+
Label: string;
|
|
8
|
+
Description: string;
|
|
9
|
+
IsDisabled: boolean;
|
|
10
|
+
IsMarked: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface TransferRuntime {
|
|
13
|
+
project(
|
|
14
|
+
items: string,
|
|
15
|
+
selected: string,
|
|
16
|
+
availableSearch: string,
|
|
17
|
+
selectedSearch: string,
|
|
18
|
+
): {
|
|
19
|
+
AvailableRowsJson: string;
|
|
20
|
+
SelectedRowsJson: string;
|
|
21
|
+
AvailableCount: number;
|
|
22
|
+
SelectedCount: number;
|
|
23
|
+
};
|
|
24
|
+
move(items: string, selected: string, rows: string, add: boolean): string;
|
|
25
|
+
}
|
|
26
|
+
export function createTransferList(
|
|
27
|
+
host: HTMLElement,
|
|
28
|
+
options: TransferListOptions,
|
|
29
|
+
events: TransferListEvents = {},
|
|
30
|
+
) {
|
|
31
|
+
installTransfer();
|
|
32
|
+
const searches = { available: "", selected: "" };
|
|
33
|
+
return component(host, options, (root, p, update) => {
|
|
34
|
+
const runtime = (
|
|
35
|
+
window as unknown as { BluUICommunityRuntime: { Transfer: TransferRuntime } }
|
|
36
|
+
).BluUICommunityRuntime.Transfer;
|
|
37
|
+
const data = JSON.stringify(p.Items),
|
|
38
|
+
selection = JSON.stringify(p.SelectedKeys || []),
|
|
39
|
+
projection = runtime.project(
|
|
40
|
+
data,
|
|
41
|
+
selection,
|
|
42
|
+
searches.available,
|
|
43
|
+
searches.selected,
|
|
44
|
+
);
|
|
45
|
+
const rows: { available: Row[]; selected: Row[] } = {
|
|
46
|
+
available: JSON.parse(projection.AvailableRowsJson),
|
|
47
|
+
selected: JSON.parse(projection.SelectedRowsJson),
|
|
48
|
+
};
|
|
49
|
+
const box = node("div", "blu-transfer"),
|
|
50
|
+
layout = node("div", "blu-transfer__layout");
|
|
51
|
+
box.append(layout);
|
|
52
|
+
const pane = (side: "available" | "selected", label: string) => {
|
|
53
|
+
const panel = node("div", "blu-transfer__pane");
|
|
54
|
+
panel.setAttribute("role", "group");
|
|
55
|
+
panel.setAttribute("aria-label", label);
|
|
56
|
+
panel.append(
|
|
57
|
+
node(
|
|
58
|
+
"div",
|
|
59
|
+
"blu-transfer__heading",
|
|
60
|
+
label +
|
|
61
|
+
" (" +
|
|
62
|
+
(side === "available"
|
|
63
|
+
? projection.AvailableCount
|
|
64
|
+
: projection.SelectedCount) +
|
|
65
|
+
")",
|
|
66
|
+
),
|
|
67
|
+
);
|
|
68
|
+
if (p.ShowSearch !== false) {
|
|
69
|
+
const wrap = node("div", "blu-transfer__search"),
|
|
70
|
+
input = node("input");
|
|
71
|
+
input.type = "search";
|
|
72
|
+
input.dataset.side = side;
|
|
73
|
+
input.setAttribute("aria-label", "Search " + label);
|
|
74
|
+
input.placeholder = "Search " + label;
|
|
75
|
+
input.value = searches[side];
|
|
76
|
+
input.disabled = !!p.IsDisabled;
|
|
77
|
+
input.oninput = () => {
|
|
78
|
+
searches[side] = input.value;
|
|
79
|
+
update({});
|
|
80
|
+
root
|
|
81
|
+
.querySelector<HTMLInputElement>(`input[data-side="${side}"]`)
|
|
82
|
+
?.focus();
|
|
83
|
+
};
|
|
84
|
+
wrap.append(input);
|
|
85
|
+
panel.append(wrap);
|
|
86
|
+
}
|
|
87
|
+
const list = node("div", "blu-transfer__list");
|
|
88
|
+
list.setAttribute("role", "list");
|
|
89
|
+
panel.append(list);
|
|
90
|
+
if (!rows[side].length)
|
|
91
|
+
list.append(node("p", "blu-transfer__empty", "No matching items."));
|
|
92
|
+
for (const item of rows[side]) {
|
|
93
|
+
const line = node(
|
|
94
|
+
"div",
|
|
95
|
+
"blu-transfer__row" +
|
|
96
|
+
(item.IsDisabled ? " blu-transfer__row--disabled" : ""),
|
|
97
|
+
);
|
|
98
|
+
line.setAttribute("role", "listitem");
|
|
99
|
+
const c = node("input");
|
|
100
|
+
c.type = "checkbox";
|
|
101
|
+
c.disabled = !!(item.IsDisabled || p.IsDisabled);
|
|
102
|
+
c.setAttribute(
|
|
103
|
+
"aria-label",
|
|
104
|
+
`Mark ${item.Label} to ${side === "available" ? "add" : "remove"}`,
|
|
105
|
+
);
|
|
106
|
+
c.onchange = () => {
|
|
107
|
+
item.IsMarked = c.checked;
|
|
108
|
+
};
|
|
109
|
+
const copy = node("div", "blu-transfer__copy");
|
|
110
|
+
copy.append(
|
|
111
|
+
node("span", "blu-transfer__label", item.Label),
|
|
112
|
+
node("span", "blu-transfer__description", item.Description),
|
|
113
|
+
);
|
|
114
|
+
line.append(c, copy);
|
|
115
|
+
list.append(line);
|
|
116
|
+
}
|
|
117
|
+
layout.append(panel);
|
|
118
|
+
};
|
|
119
|
+
pane("available", p.AvailableLabel || "Available");
|
|
120
|
+
const commands = node("div", "blu-transfer__commands");
|
|
121
|
+
layout.append(commands);
|
|
122
|
+
const move = (add: boolean) => {
|
|
123
|
+
const keys = JSON.parse(
|
|
124
|
+
runtime.move(
|
|
125
|
+
data,
|
|
126
|
+
selection,
|
|
127
|
+
JSON.stringify(rows[add ? "available" : "selected"]),
|
|
128
|
+
add,
|
|
129
|
+
),
|
|
130
|
+
);
|
|
131
|
+
update({ SelectedKeys: keys });
|
|
132
|
+
root
|
|
133
|
+
.querySelector<HTMLButtonElement>(add ? "button" : "button:last-child")
|
|
134
|
+
?.focus();
|
|
135
|
+
void events.SelectionChanged?.(keys);
|
|
136
|
+
};
|
|
137
|
+
commands.append(
|
|
138
|
+
buttonElement(
|
|
139
|
+
{ Label: "Add checked", Size: "Small", IsDisabled: p.IsDisabled },
|
|
140
|
+
{ Click: () => move(true) },
|
|
141
|
+
),
|
|
142
|
+
buttonElement(
|
|
143
|
+
{
|
|
144
|
+
Label: "Remove checked",
|
|
145
|
+
Size: "Small",
|
|
146
|
+
Variant: "Outlined",
|
|
147
|
+
IsDisabled: p.IsDisabled,
|
|
148
|
+
},
|
|
149
|
+
{ Click: () => move(false) },
|
|
150
|
+
),
|
|
151
|
+
);
|
|
152
|
+
pane("selected", p.SelectedLabel || "Selected");
|
|
153
|
+
// Keep the live region mounted so selection changes are announced reliably.
|
|
154
|
+
let status = root.querySelector<HTMLElement>(".blu-transfer__status");
|
|
155
|
+
if (!status) { status = node("p", "blu-transfer__status"); status.setAttribute("role", "status"); }
|
|
156
|
+
root.replaceChildren(box, status);
|
|
157
|
+
status.textContent = projection.SelectedCount + " selected.";
|
|
158
|
+
});
|
|
159
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {installTreeSelect} from '../runtime/tree-select.js';
|
|
2
|
+
import { mountRoot, node, slot } from "../dom.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type RawEvents = Record<string, (...args: any[]) => unknown>;
|
|
5
|
+
type Raw = {
|
|
6
|
+
sync(id: string, options: object, events: RawEvents, owner: string): string;
|
|
7
|
+
destroy(owner: string): void;
|
|
8
|
+
};
|
|
9
|
+
function runtime(): Record<string, Raw> {
|
|
10
|
+
if (typeof window === "undefined")
|
|
11
|
+
throw new Error("Mount BluKavantUI in a browser, after the host is connected.");
|
|
12
|
+
return (window as unknown as { BluUICommunityRuntime: Record<string, Raw> })
|
|
13
|
+
.BluUICommunityRuntime;
|
|
14
|
+
}
|
|
15
|
+
function bind<P extends object>(
|
|
16
|
+
host: HTMLElement,
|
|
17
|
+
kind: string,
|
|
18
|
+
initial: P,
|
|
19
|
+
map: (p: P) => object,
|
|
20
|
+
events: (remember: (p: Partial<P>) => void) => RawEvents,
|
|
21
|
+
setup?: (root: HTMLElement, p: P) => void,
|
|
22
|
+
): T.Component<P> {
|
|
23
|
+
const r = mountRoot(host),
|
|
24
|
+
key = r.id;
|
|
25
|
+
let props = { ...initial },
|
|
26
|
+
disposed = false;
|
|
27
|
+
const raw = runtime()[kind],
|
|
28
|
+
callbacks = events((p) => {
|
|
29
|
+
props = { ...props, ...p };
|
|
30
|
+
});
|
|
31
|
+
const update = (patch: Partial<P>) => {
|
|
32
|
+
if (disposed) throw new Error("Component is destroyed.");
|
|
33
|
+
props = { ...props, ...patch };
|
|
34
|
+
setup?.(r, props);
|
|
35
|
+
const error = raw.sync(r.id, map(props), callbacks, key);
|
|
36
|
+
if (error) throw new Error(error);
|
|
37
|
+
};
|
|
38
|
+
try {
|
|
39
|
+
update({});
|
|
40
|
+
} catch (e) {
|
|
41
|
+
raw.destroy(key);
|
|
42
|
+
r.remove();
|
|
43
|
+
throw e;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
element: r,
|
|
47
|
+
update,
|
|
48
|
+
destroy() {
|
|
49
|
+
if (disposed) return;
|
|
50
|
+
disposed = true;
|
|
51
|
+
raw.destroy(key);
|
|
52
|
+
r.remove();
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function createTreeSelect(
|
|
57
|
+
host: HTMLElement,
|
|
58
|
+
options: T.TreeSelectOptions,
|
|
59
|
+
events: T.TreeSelectEvents = {},
|
|
60
|
+
) {
|
|
61
|
+
installTreeSelect();
|
|
62
|
+
return bind(
|
|
63
|
+
host,
|
|
64
|
+
"TreeSelect",
|
|
65
|
+
options,
|
|
66
|
+
(p) => {
|
|
67
|
+
const { Nodes, SelectedKeys, ...rest } = p;
|
|
68
|
+
return {
|
|
69
|
+
...rest,
|
|
70
|
+
NodesJson: JSON.stringify(Nodes),
|
|
71
|
+
SelectedKeysJson: JSON.stringify(SelectedKeys || []),
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
(remember) => ({
|
|
75
|
+
SelectionChanged: (j: string) => {
|
|
76
|
+
const keys = JSON.parse(j);
|
|
77
|
+
remember({ SelectedKeys: keys });
|
|
78
|
+
return events.SelectionChanged?.(keys);
|
|
79
|
+
},
|
|
80
|
+
Error: (message) => events.Error?.(message),
|
|
81
|
+
}),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import {installTree} from '../runtime/tree.js';
|
|
2
|
+
import { mountRoot, node, slot } from "../dom.js";
|
|
3
|
+
import type * as T from "../types.js";
|
|
4
|
+
type RawEvents = Record<string, (...args: any[]) => unknown>;
|
|
5
|
+
type Raw = {
|
|
6
|
+
sync(id: string, options: object, events: RawEvents, owner: string): string;
|
|
7
|
+
destroy(owner: string): void;
|
|
8
|
+
};
|
|
9
|
+
function runtime(): Record<string, Raw> {
|
|
10
|
+
if (typeof window === "undefined")
|
|
11
|
+
throw new Error("Mount BluKavantUI in a browser, after the host is connected.");
|
|
12
|
+
return (window as unknown as { BluUICommunityRuntime: Record<string, Raw> })
|
|
13
|
+
.BluUICommunityRuntime;
|
|
14
|
+
}
|
|
15
|
+
function bind<P extends object>(
|
|
16
|
+
host: HTMLElement,
|
|
17
|
+
kind: string,
|
|
18
|
+
initial: P,
|
|
19
|
+
map: (p: P) => object,
|
|
20
|
+
events: (remember: (p: Partial<P>) => void) => RawEvents,
|
|
21
|
+
setup?: (root: HTMLElement, p: P) => void,
|
|
22
|
+
): T.Component<P> {
|
|
23
|
+
const r = mountRoot(host),
|
|
24
|
+
key = r.id;
|
|
25
|
+
let props = { ...initial },
|
|
26
|
+
disposed = false;
|
|
27
|
+
const raw = runtime()[kind],
|
|
28
|
+
callbacks = events((p) => {
|
|
29
|
+
props = { ...props, ...p };
|
|
30
|
+
});
|
|
31
|
+
const update = (patch: Partial<P>) => {
|
|
32
|
+
if (disposed) throw new Error("Component is destroyed.");
|
|
33
|
+
props = { ...props, ...patch };
|
|
34
|
+
setup?.(r, props);
|
|
35
|
+
const error = raw.sync(r.id, map(props), callbacks, key);
|
|
36
|
+
if (error) throw new Error(error);
|
|
37
|
+
};
|
|
38
|
+
try {
|
|
39
|
+
update({});
|
|
40
|
+
} catch (e) {
|
|
41
|
+
raw.destroy(key);
|
|
42
|
+
r.remove();
|
|
43
|
+
throw e;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
element: r,
|
|
47
|
+
update,
|
|
48
|
+
destroy() {
|
|
49
|
+
if (disposed) return;
|
|
50
|
+
disposed = true;
|
|
51
|
+
raw.destroy(key);
|
|
52
|
+
r.remove();
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function createTreeView(
|
|
57
|
+
host: HTMLElement,
|
|
58
|
+
options: T.TreeViewOptions,
|
|
59
|
+
events: T.TreeViewEvents = {},
|
|
60
|
+
): T.Component<T.TreeViewOptions> {
|
|
61
|
+
installTree();
|
|
62
|
+
const r = mountRoot(host);
|
|
63
|
+
r.className = "blu-tree";
|
|
64
|
+
let props = { ...options },
|
|
65
|
+
disposed = false;
|
|
66
|
+
const raw = (
|
|
67
|
+
runtime() as unknown as {
|
|
68
|
+
Tree: {
|
|
69
|
+
create(id: string, p: object, e: RawEvents): void;
|
|
70
|
+
update(id: string, p: object): void;
|
|
71
|
+
destroy(id: string): void;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
).Tree;
|
|
75
|
+
const map = () => {
|
|
76
|
+
const { Nodes, InitialExpandedKeys, ...rest } = props;
|
|
77
|
+
return {
|
|
78
|
+
...rest,
|
|
79
|
+
NodesJson: JSON.stringify(Nodes),
|
|
80
|
+
InitialExpandedKeysJson: JSON.stringify(InitialExpandedKeys || []),
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
try {
|
|
84
|
+
raw.create(r.id, map(), {
|
|
85
|
+
SelectionChanged: (key) => {
|
|
86
|
+
props.SelectedKey = key;
|
|
87
|
+
return events.SelectionChanged?.(key);
|
|
88
|
+
},
|
|
89
|
+
ExpandedChanged: (j) => {
|
|
90
|
+
const keys = JSON.parse(j);
|
|
91
|
+
props.InitialExpandedKeys = keys;
|
|
92
|
+
return events.ExpandedChanged?.(keys);
|
|
93
|
+
},
|
|
94
|
+
Error: (message) => events.Error?.(message),
|
|
95
|
+
});
|
|
96
|
+
} catch (e) {
|
|
97
|
+
raw.destroy(r.id);
|
|
98
|
+
r.remove();
|
|
99
|
+
throw e;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
element: r,
|
|
103
|
+
update(p) {
|
|
104
|
+
if (disposed) throw new Error("Component is destroyed.");
|
|
105
|
+
props = { ...props, ...p };
|
|
106
|
+
raw.update(r.id, map());
|
|
107
|
+
},
|
|
108
|
+
destroy() {
|
|
109
|
+
if (disposed) return;
|
|
110
|
+
disposed = true;
|
|
111
|
+
raw.destroy(r.id);
|
|
112
|
+
r.remove();
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
}
|