@getufy/flint-ui 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/dist/_shared/decorate-DPS9PT8d.js +9 -0
- package/dist/_shared/flint-accordion-CnXIksxN.js +104 -0
- package/dist/_shared/flint-alert-DNcwWxQL.js +59 -0
- package/dist/_shared/flint-app-bar-CNbq6ggt.js +39 -0
- package/dist/_shared/flint-autocomplete-B1tLM8lN.js +131 -0
- package/dist/_shared/flint-avatar-DSQJv4gX.js +40 -0
- package/dist/_shared/flint-backdrop-BszHm5cJ.js +58 -0
- package/dist/_shared/flint-badge-AzmcBWUq.js +38 -0
- package/dist/_shared/flint-bottom-navigation-B4-3_1w7.js +46 -0
- package/dist/_shared/flint-bottom-navigation-action-CW0ZUZlF.js +44 -0
- package/dist/_shared/flint-box-TbPTowiO.js +60 -0
- package/dist/_shared/flint-breadcrumbs-DjFiMWIj.js +83 -0
- package/dist/_shared/flint-button-DwrmFg7O.js +39 -0
- package/dist/_shared/flint-button-group-CdwiDTLI.js +20 -0
- package/dist/_shared/flint-card-C-j6SYxM.js +33 -0
- package/dist/_shared/flint-card-action-area-07Emwi1d.js +22 -0
- package/dist/_shared/flint-card-actions-C74ZbYNI.js +17 -0
- package/dist/_shared/flint-card-content-C3Gv3Ps5.js +17 -0
- package/dist/_shared/flint-card-header-HxL5TlBx.js +28 -0
- package/dist/_shared/flint-card-media-B1U9TYsC.js +26 -0
- package/dist/_shared/flint-carousel-jwZ5C4e_.js +224 -0
- package/dist/_shared/flint-checkbox-GnuZq0Yy.js +82 -0
- package/dist/_shared/flint-chip-5QF8rU8e.js +86 -0
- package/dist/_shared/flint-circular-progress-CuR8VdqI.js +68 -0
- package/dist/_shared/flint-collapsible-BJ4LwGpz.js +101 -0
- package/dist/_shared/flint-command-DGhby0QI.js +318 -0
- package/dist/_shared/flint-container-CYSq758Y.js +42 -0
- package/dist/_shared/flint-copy-button-Y4yVbPxo.js +142 -0
- package/dist/_shared/flint-date-field-CYSc9ezt.js +288 -0
- package/dist/_shared/flint-date-picker-CmCtDBVO.js +370 -0
- package/dist/_shared/flint-date-range-calendar-BPBdO9n3.js +122 -0
- package/dist/_shared/flint-date-range-picker-DiVjn_ST.js +201 -0
- package/dist/_shared/flint-dialog-CH1ylFUb.js +113 -0
- package/dist/_shared/flint-divider-Boj8Ggbt.js +37 -0
- package/dist/_shared/flint-drawer-BAukflTn.js +79 -0
- package/dist/_shared/flint-empty-Bq8DuJQT.js +75 -0
- package/dist/_shared/flint-fab-D8nKcAan.js +77 -0
- package/dist/_shared/flint-format-date-_jfKYO_2.js +62 -0
- package/dist/_shared/flint-format-number-g8MkggyM.js +68 -0
- package/dist/_shared/flint-grid-ClCXGz3k.js +177 -0
- package/dist/_shared/flint-hover-card-fSMVR0xj.js +125 -0
- package/dist/_shared/flint-image-comparer-DDF_wCjc.js +116 -0
- package/dist/_shared/flint-image-list-CS-XDM0T.js +24 -0
- package/dist/_shared/flint-image-list-item-CE1j29Ay.js +41 -0
- package/dist/_shared/flint-image-list-item-bar-BZfSoVrZ.js +31 -0
- package/dist/_shared/flint-input-BV4Glu8N.js +87 -0
- package/dist/_shared/flint-input-otp-__geY8N4.js +203 -0
- package/dist/_shared/flint-item-XvdemneV.js +114 -0
- package/dist/_shared/flint-kbd-DXSl3YcK.js +31 -0
- package/dist/_shared/flint-linear-progress-B4sGgZrk.js +63 -0
- package/dist/_shared/flint-link-CnzR1CYQ.js +55 -0
- package/dist/_shared/flint-list-DJCPEDre.js +113 -0
- package/dist/_shared/flint-menu-EOF1QvHq.js +207 -0
- package/dist/_shared/flint-menubar-7AuGQli6.js +666 -0
- package/dist/_shared/flint-pagination-D-KNsfjM.js +143 -0
- package/dist/_shared/flint-paper-CArGvvRa.js +27 -0
- package/dist/_shared/flint-radio-B_C3wNRn.js +165 -0
- package/dist/_shared/flint-range-slider-IfXMtey2.js +129 -0
- package/dist/_shared/flint-rating-9FxNfBNa.js +148 -0
- package/dist/_shared/flint-relative-time-BFh5nQqz.js +98 -0
- package/dist/_shared/flint-rich-tree-view-BGUjgeZv.js +383 -0
- package/dist/_shared/flint-scroll-area-Dn9yT7ZU.js +227 -0
- package/dist/_shared/flint-select-Bhc3BR09.js +249 -0
- package/dist/_shared/flint-simple-tree-view-DD3zHLzJ.js +175 -0
- package/dist/_shared/flint-single-input-date-range-field-BVGf6515.js +314 -0
- package/dist/_shared/flint-skeleton-CWFa-PkE.js +54 -0
- package/dist/_shared/flint-slider-CVb_rYPp.js +97 -0
- package/dist/_shared/flint-snackbar-DS5F7oXF.js +102 -0
- package/dist/_shared/flint-sonner-DD_qGTfm.js +230 -0
- package/dist/_shared/flint-speed-dial-DTZ2WaBh.js +259 -0
- package/dist/_shared/flint-stack-GAeGPdLR.js +98 -0
- package/dist/_shared/flint-stepper-DdkEEVXE.js +285 -0
- package/dist/_shared/flint-switch-DN7VI9jT.js +80 -0
- package/dist/_shared/flint-table-DQ--YqEC.js +112 -0
- package/dist/_shared/flint-table-pagination-BrJ56t-r.js +97 -0
- package/dist/_shared/flint-table-sort-label-C4mkQmDM.js +37 -0
- package/dist/_shared/flint-tabs-Do8hU-DT.js +226 -0
- package/dist/_shared/flint-text-field-DlLvuIJW.js +76 -0
- package/dist/_shared/flint-textarea-wDEUC9Bt.js +106 -0
- package/dist/_shared/flint-time-picker-D00w7wjz.js +817 -0
- package/dist/_shared/flint-toggle-DTT9i3J2.js +61 -0
- package/dist/_shared/flint-toggle-button-GmL4rbZa.js +48 -0
- package/dist/_shared/flint-toggle-button-group-Cp9x0wSj.js +52 -0
- package/dist/_shared/flint-tooltip-C9nJvtJi.js +108 -0
- package/dist/_shared/flint-transfer-list-DZsAcF0l.js +173 -0
- package/dist/_shared/flint-tree-item-iMT216uo.js +130 -0
- package/dist/_shared/flint-typography-D0vqF15X.js +66 -0
- package/dist/_shared/flint-visually-hidden-CqgpY__B.js +22 -0
- package/dist/_shared/form-associated-EGIhyHHt.js +20 -0
- package/dist/accordion/flint-accordion.d.ts +61 -0
- package/dist/accordion/flint-accordion.d.ts.map +1 -0
- package/dist/accordion/flint-accordion.js +2 -0
- package/dist/alert/flint-alert.d.ts +35 -0
- package/dist/alert/flint-alert.d.ts.map +1 -0
- package/dist/alert/flint-alert.js +2 -0
- package/dist/app-bar/flint-app-bar.d.ts +20 -0
- package/dist/app-bar/flint-app-bar.d.ts.map +1 -0
- package/dist/app-bar/flint-app-bar.js +2 -0
- package/dist/autocomplete/flint-autocomplete.d.ts +44 -0
- package/dist/autocomplete/flint-autocomplete.d.ts.map +1 -0
- package/dist/autocomplete/flint-autocomplete.js +2 -0
- package/dist/avatar/flint-avatar.d.ts +26 -0
- package/dist/avatar/flint-avatar.d.ts.map +1 -0
- package/dist/avatar/flint-avatar.js +2 -0
- package/dist/backdrop/flint-backdrop.d.ts +28 -0
- package/dist/backdrop/flint-backdrop.d.ts.map +1 -0
- package/dist/backdrop/flint-backdrop.js +2 -0
- package/dist/badge/flint-badge.d.ts +27 -0
- package/dist/badge/flint-badge.d.ts.map +1 -0
- package/dist/badge/flint-badge.js +2 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.d.ts +34 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.d.ts.map +1 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.js +2 -0
- package/dist/bottom-navigation/flint-bottom-navigation.d.ts +30 -0
- package/dist/bottom-navigation/flint-bottom-navigation.d.ts.map +1 -0
- package/dist/bottom-navigation/flint-bottom-navigation.js +2 -0
- package/dist/box/flint-box.d.ts +79 -0
- package/dist/box/flint-box.d.ts.map +1 -0
- package/dist/box/flint-box.js +2 -0
- package/dist/breadcrumbs/flint-breadcrumbs.d.ts +50 -0
- package/dist/breadcrumbs/flint-breadcrumbs.d.ts.map +1 -0
- package/dist/breadcrumbs/flint-breadcrumbs.js +2 -0
- package/dist/button/flint-button-group.d.ts +12 -0
- package/dist/button/flint-button-group.d.ts.map +1 -0
- package/dist/button/flint-button-group.js +2 -0
- package/dist/button/flint-button.d.ts +19 -0
- package/dist/button/flint-button.d.ts.map +1 -0
- package/dist/button/flint-button.js +2 -0
- package/dist/button/flint-toggle-button-group.d.ts +25 -0
- package/dist/button/flint-toggle-button-group.d.ts.map +1 -0
- package/dist/button/flint-toggle-button-group.js +2 -0
- package/dist/button/flint-toggle-button.d.ts +25 -0
- package/dist/button/flint-toggle-button.d.ts.map +1 -0
- package/dist/button/flint-toggle-button.js +2 -0
- package/dist/card/flint-card-action-area.d.ts +12 -0
- package/dist/card/flint-card-action-area.d.ts.map +1 -0
- package/dist/card/flint-card-action-area.js +2 -0
- package/dist/card/flint-card-actions.d.ts +11 -0
- package/dist/card/flint-card-actions.d.ts.map +1 -0
- package/dist/card/flint-card-actions.js +2 -0
- package/dist/card/flint-card-content.d.ts +11 -0
- package/dist/card/flint-card-content.d.ts.map +1 -0
- package/dist/card/flint-card-content.js +2 -0
- package/dist/card/flint-card-header.d.ts +13 -0
- package/dist/card/flint-card-header.d.ts.map +1 -0
- package/dist/card/flint-card-header.js +2 -0
- package/dist/card/flint-card-media.d.ts +14 -0
- package/dist/card/flint-card-media.d.ts.map +1 -0
- package/dist/card/flint-card-media.js +2 -0
- package/dist/card/flint-card.d.ts +13 -0
- package/dist/card/flint-card.d.ts.map +1 -0
- package/dist/card/flint-card.js +2 -0
- package/dist/carousel/flint-carousel.d.ts +87 -0
- package/dist/carousel/flint-carousel.d.ts.map +1 -0
- package/dist/carousel/flint-carousel.js +2 -0
- package/dist/checkbox/flint-checkbox.d.ts +41 -0
- package/dist/checkbox/flint-checkbox.d.ts.map +1 -0
- package/dist/checkbox/flint-checkbox.js +2 -0
- package/dist/chip/flint-chip.d.ts +34 -0
- package/dist/chip/flint-chip.d.ts.map +1 -0
- package/dist/chip/flint-chip.js +2 -0
- package/dist/collapsible/flint-collapsible.d.ts +80 -0
- package/dist/collapsible/flint-collapsible.d.ts.map +1 -0
- package/dist/collapsible/flint-collapsible.js +2 -0
- package/dist/command/flint-command.d.ts +189 -0
- package/dist/command/flint-command.d.ts.map +1 -0
- package/dist/command/flint-command.js +2 -0
- package/dist/container/flint-container.d.ts +27 -0
- package/dist/container/flint-container.d.ts.map +1 -0
- package/dist/container/flint-container.js +2 -0
- package/dist/copy-button/flint-copy-button.d.ts +55 -0
- package/dist/copy-button/flint-copy-button.d.ts.map +1 -0
- package/dist/copy-button/flint-copy-button.js +2 -0
- package/dist/date-field/flint-date-field.d.ts +82 -0
- package/dist/date-field/flint-date-field.d.ts.map +1 -0
- package/dist/date-field/flint-date-field.js +2 -0
- package/dist/date-picker/flint-date-picker.d.ts +93 -0
- package/dist/date-picker/flint-date-picker.d.ts.map +1 -0
- package/dist/date-picker/flint-date-picker.js +2 -0
- package/dist/date-range-picker/date-range-helpers.d.ts +31 -0
- package/dist/date-range-picker/date-range-helpers.d.ts.map +1 -0
- package/dist/date-range-picker/date-range-helpers.js +128 -0
- package/dist/date-range-picker/flint-date-range-calendar.d.ts +41 -0
- package/dist/date-range-picker/flint-date-range-calendar.d.ts.map +1 -0
- package/dist/date-range-picker/flint-date-range-calendar.js +2 -0
- package/dist/date-range-picker/flint-date-range-picker.d.ts +74 -0
- package/dist/date-range-picker/flint-date-range-picker.d.ts.map +1 -0
- package/dist/date-range-picker/flint-date-range-picker.js +2 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.d.ts +65 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.d.ts.map +1 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.js +2 -0
- package/dist/dialog/flint-dialog.d.ts +76 -0
- package/dist/dialog/flint-dialog.d.ts.map +1 -0
- package/dist/dialog/flint-dialog.js +2 -0
- package/dist/divider/flint-divider.d.ts +24 -0
- package/dist/divider/flint-divider.d.ts.map +1 -0
- package/dist/divider/flint-divider.js +2 -0
- package/dist/drawer/flint-drawer.d.ts +37 -0
- package/dist/drawer/flint-drawer.d.ts.map +1 -0
- package/dist/drawer/flint-drawer.js +2 -0
- package/dist/empty/flint-empty.d.ts +70 -0
- package/dist/empty/flint-empty.d.ts.map +1 -0
- package/dist/empty/flint-empty.js +2 -0
- package/dist/fab/flint-fab.d.ts +25 -0
- package/dist/fab/flint-fab.d.ts.map +1 -0
- package/dist/fab/flint-fab.js +2 -0
- package/dist/flint-range-slider/flint-range-slider.d.ts +56 -0
- package/dist/flint-range-slider/flint-range-slider.d.ts.map +1 -0
- package/dist/flint-range-slider/flint-range-slider.js +2 -0
- package/dist/format-date/flint-format-date.d.ts +89 -0
- package/dist/format-date/flint-format-date.d.ts.map +1 -0
- package/dist/format-date/flint-format-date.js +2 -0
- package/dist/format-number/flint-format-number.d.ts +81 -0
- package/dist/format-number/flint-format-number.d.ts.map +1 -0
- package/dist/format-number/flint-format-number.js +2 -0
- package/dist/grid/flint-grid.d.ts +73 -0
- package/dist/grid/flint-grid.d.ts.map +1 -0
- package/dist/grid/flint-grid.js +2 -0
- package/dist/hover-card/flint-hover-card.d.ts +103 -0
- package/dist/hover-card/flint-hover-card.d.ts.map +1 -0
- package/dist/hover-card/flint-hover-card.js +2 -0
- package/dist/image-comparer/flint-image-comparer.d.ts +50 -0
- package/dist/image-comparer/flint-image-comparer.d.ts.map +1 -0
- package/dist/image-comparer/flint-image-comparer.js +2 -0
- package/dist/image-list/flint-image-list-item-bar.d.ts +26 -0
- package/dist/image-list/flint-image-list-item-bar.d.ts.map +1 -0
- package/dist/image-list/flint-image-list-item-bar.js +2 -0
- package/dist/image-list/flint-image-list-item.d.ts +48 -0
- package/dist/image-list/flint-image-list-item.d.ts.map +1 -0
- package/dist/image-list/flint-image-list-item.js +2 -0
- package/dist/image-list/flint-image-list.d.ts +28 -0
- package/dist/image-list/flint-image-list.d.ts.map +1 -0
- package/dist/image-list/flint-image-list.js +2 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96 -0
- package/dist/input/flint-input.d.ts +52 -0
- package/dist/input/flint-input.d.ts.map +1 -0
- package/dist/input/flint-input.js +2 -0
- package/dist/input-otp/flint-input-otp.d.ts +130 -0
- package/dist/input-otp/flint-input-otp.d.ts.map +1 -0
- package/dist/input-otp/flint-input-otp.js +2 -0
- package/dist/item/flint-item.d.ts +151 -0
- package/dist/item/flint-item.d.ts.map +1 -0
- package/dist/item/flint-item.js +2 -0
- package/dist/kbd/flint-kbd.d.ts +47 -0
- package/dist/kbd/flint-kbd.d.ts.map +1 -0
- package/dist/kbd/flint-kbd.js +2 -0
- package/dist/link/flint-link.d.ts +47 -0
- package/dist/link/flint-link.d.ts.map +1 -0
- package/dist/link/flint-link.js +2 -0
- package/dist/list/flint-list.d.ts +78 -0
- package/dist/list/flint-list.d.ts.map +1 -0
- package/dist/list/flint-list.js +2 -0
- package/dist/menu/flint-menu.d.ts +107 -0
- package/dist/menu/flint-menu.d.ts.map +1 -0
- package/dist/menu/flint-menu.js +2 -0
- package/dist/menubar/flint-menubar.d.ts +256 -0
- package/dist/menubar/flint-menubar.d.ts.map +1 -0
- package/dist/menubar/flint-menubar.js +2 -0
- package/dist/mixins/form-associated.d.ts +20 -0
- package/dist/mixins/form-associated.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-content.d.ts +53 -0
- package/dist/navigation-menu/flint-navigation-menu-content.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-content.js +147 -0
- package/dist/navigation-menu/flint-navigation-menu-item.d.ts +47 -0
- package/dist/navigation-menu/flint-navigation-menu-item.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-item.js +109 -0
- package/dist/navigation-menu/flint-navigation-menu-link.d.ts +50 -0
- package/dist/navigation-menu/flint-navigation-menu-link.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-link.js +109 -0
- package/dist/navigation-menu/flint-navigation-menu-list.d.ts +35 -0
- package/dist/navigation-menu/flint-navigation-menu-list.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-list.js +52 -0
- package/dist/navigation-menu/flint-navigation-menu-trigger.d.ts +52 -0
- package/dist/navigation-menu/flint-navigation-menu-trigger.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu-trigger.js +190 -0
- package/dist/navigation-menu/flint-navigation-menu.d.ts +42 -0
- package/dist/navigation-menu/flint-navigation-menu.d.ts.map +1 -0
- package/dist/navigation-menu/flint-navigation-menu.js +69 -0
- package/dist/pagination/flint-pagination.d.ts +63 -0
- package/dist/pagination/flint-pagination.d.ts.map +1 -0
- package/dist/pagination/flint-pagination.js +2 -0
- package/dist/paper/flint-paper.d.ts +34 -0
- package/dist/paper/flint-paper.d.ts.map +1 -0
- package/dist/paper/flint-paper.js +2 -0
- package/dist/progress/flint-circular-progress.d.ts +28 -0
- package/dist/progress/flint-circular-progress.d.ts.map +1 -0
- package/dist/progress/flint-circular-progress.js +2 -0
- package/dist/progress/flint-linear-progress.d.ts +26 -0
- package/dist/progress/flint-linear-progress.d.ts.map +1 -0
- package/dist/progress/flint-linear-progress.js +2 -0
- package/dist/radio/flint-radio.d.ts +76 -0
- package/dist/radio/flint-radio.d.ts.map +1 -0
- package/dist/radio/flint-radio.js +2 -0
- package/dist/rating/flint-rating.d.ts +49 -0
- package/dist/rating/flint-rating.d.ts.map +1 -0
- package/dist/rating/flint-rating.js +2 -0
- package/dist/relative-time/flint-relative-time.d.ts +50 -0
- package/dist/relative-time/flint-relative-time.d.ts.map +1 -0
- package/dist/relative-time/flint-relative-time.js +2 -0
- package/dist/resizable/flint-resizable.d.ts +124 -0
- package/dist/resizable/flint-resizable.d.ts.map +1 -0
- package/dist/resizable/flint-resizable.js +346 -0
- package/dist/scroll-area/flint-scroll-area.d.ts +126 -0
- package/dist/scroll-area/flint-scroll-area.d.ts.map +1 -0
- package/dist/scroll-area/flint-scroll-area.js +2 -0
- package/dist/select/flint-select.d.ts +71 -0
- package/dist/select/flint-select.d.ts.map +1 -0
- package/dist/select/flint-select.js +2 -0
- package/dist/skeleton/flint-skeleton.d.ts +47 -0
- package/dist/skeleton/flint-skeleton.d.ts.map +1 -0
- package/dist/skeleton/flint-skeleton.js +2 -0
- package/dist/slider/flint-slider.d.ts +48 -0
- package/dist/slider/flint-slider.d.ts.map +1 -0
- package/dist/slider/flint-slider.js +2 -0
- package/dist/snackbar/flint-snackbar.d.ts +67 -0
- package/dist/snackbar/flint-snackbar.d.ts.map +1 -0
- package/dist/snackbar/flint-snackbar.js +2 -0
- package/dist/sonner/flint-sonner.d.ts +152 -0
- package/dist/sonner/flint-sonner.d.ts.map +1 -0
- package/dist/sonner/flint-sonner.js +2 -0
- package/dist/speed-dial/flint-speed-dial.d.ts +101 -0
- package/dist/speed-dial/flint-speed-dial.d.ts.map +1 -0
- package/dist/speed-dial/flint-speed-dial.js +2 -0
- package/dist/split-panel/flint-split-panel.d.ts +101 -0
- package/dist/split-panel/flint-split-panel.d.ts.map +1 -0
- package/dist/split-panel/flint-split-panel.js +278 -0
- package/dist/stack/flint-stack.d.ts +38 -0
- package/dist/stack/flint-stack.d.ts.map +1 -0
- package/dist/stack/flint-stack.js +2 -0
- package/dist/stepper/flint-stepper.d.ts +122 -0
- package/dist/stepper/flint-stepper.d.ts.map +1 -0
- package/dist/stepper/flint-stepper.js +2 -0
- package/dist/switch/flint-switch.d.ts +44 -0
- package/dist/switch/flint-switch.d.ts.map +1 -0
- package/dist/switch/flint-switch.js +2 -0
- package/dist/table/flint-table-pagination.d.ts +42 -0
- package/dist/table/flint-table-pagination.d.ts.map +1 -0
- package/dist/table/flint-table-pagination.js +2 -0
- package/dist/table/flint-table-sort-label.d.ts +16 -0
- package/dist/table/flint-table-sort-label.d.ts.map +1 -0
- package/dist/table/flint-table-sort-label.js +2 -0
- package/dist/table/flint-table.d.ts +89 -0
- package/dist/table/flint-table.d.ts.map +1 -0
- package/dist/table/flint-table.js +2 -0
- package/dist/tabs/flint-tabs.d.ts +136 -0
- package/dist/tabs/flint-tabs.d.ts.map +1 -0
- package/dist/tabs/flint-tabs.js +2 -0
- package/dist/text-field/flint-text-field.d.ts +40 -0
- package/dist/text-field/flint-text-field.d.ts.map +1 -0
- package/dist/text-field/flint-text-field.js +2 -0
- package/dist/textarea/flint-textarea.d.ts +68 -0
- package/dist/textarea/flint-textarea.d.ts.map +1 -0
- package/dist/textarea/flint-textarea.js +2 -0
- package/dist/time-picker/flint-time-picker.d.ts +230 -0
- package/dist/time-picker/flint-time-picker.d.ts.map +1 -0
- package/dist/time-picker/flint-time-picker.js +2 -0
- package/dist/toggle/flint-toggle.d.ts +43 -0
- package/dist/toggle/flint-toggle.d.ts.map +1 -0
- package/dist/toggle/flint-toggle.js +2 -0
- package/dist/tooltip/flint-tooltip.d.ts +41 -0
- package/dist/tooltip/flint-tooltip.d.ts.map +1 -0
- package/dist/tooltip/flint-tooltip.js +2 -0
- package/dist/transfer-list/flint-transfer-list.d.ts +48 -0
- package/dist/transfer-list/flint-transfer-list.d.ts.map +1 -0
- package/dist/transfer-list/flint-transfer-list.js +2 -0
- package/dist/tree-view/flint-rich-tree-view.d.ts +213 -0
- package/dist/tree-view/flint-rich-tree-view.d.ts.map +1 -0
- package/dist/tree-view/flint-rich-tree-view.js +2 -0
- package/dist/tree-view/flint-simple-tree-view.d.ts +112 -0
- package/dist/tree-view/flint-simple-tree-view.d.ts.map +1 -0
- package/dist/tree-view/flint-simple-tree-view.js +2 -0
- package/dist/tree-view/flint-tree-item.d.ts +67 -0
- package/dist/tree-view/flint-tree-item.d.ts.map +1 -0
- package/dist/tree-view/flint-tree-item.js +2 -0
- package/dist/typography/flint-typography.d.ts +37 -0
- package/dist/typography/flint-typography.d.ts.map +1 -0
- package/dist/typography/flint-typography.js +2 -0
- package/dist/visually-hidden/flint-visually-hidden.d.ts +52 -0
- package/dist/visually-hidden/flint-visually-hidden.d.ts.map +1 -0
- package/dist/visually-hidden/flint-visually-hidden.js +2 -0
- package/package.json +470 -0
- package/src/theme-dark.css +261 -0
- package/src/theme.css +651 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
type Placement = 'top' | 'bottom' | 'left' | 'right';
|
|
3
|
+
/**
|
|
4
|
+
* flint-tooltip
|
|
5
|
+
* A component that displays a text label when users hover over or focus on an element.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FlintTooltip extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/** Text content displayed inside the tooltip. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Preferred placement of the tooltip relative to the trigger element. */
|
|
12
|
+
placement: Placement;
|
|
13
|
+
/** Show a small arrow pointing toward the trigger element. */
|
|
14
|
+
arrow: boolean;
|
|
15
|
+
/** Disables the tooltip so it never appears. */
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
/** Delay in ms before showing the tooltip. */
|
|
18
|
+
openDelay: number;
|
|
19
|
+
/** Delay in ms before hiding the tooltip. */
|
|
20
|
+
closeDelay: number;
|
|
21
|
+
private _visible;
|
|
22
|
+
private _activePlacement;
|
|
23
|
+
private _tooltipId;
|
|
24
|
+
private _openTimer;
|
|
25
|
+
private _closeTimer;
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
private _clearTimers;
|
|
28
|
+
private _show;
|
|
29
|
+
private _hide;
|
|
30
|
+
private _handleKeydown;
|
|
31
|
+
/** Check if the tooltip fits within the viewport, flip if not. */
|
|
32
|
+
private _applyAutoFlip;
|
|
33
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
34
|
+
}
|
|
35
|
+
declare global {
|
|
36
|
+
interface HTMLElementTagNameMap {
|
|
37
|
+
'flint-tooltip': FlintTooltip;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=flint-tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flint-tooltip.d.ts","sourceRoot":"","sources":["../../src/tooltip/flint-tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,MAAM,KAAK,CAAC;AAK3D,KAAK,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAWrD;;;GAGG;AACH,qBACa,YAAa,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAA8B;IAEpD,iDAAiD;IACrB,KAAK,SAAM;IACvC,0EAA0E;IAC9C,SAAS,EAAE,SAAS,CAAS;IACzD,8DAA8D;IACjC,KAAK,UAAS;IAC3C,gDAAgD;IACJ,QAAQ,UAAS;IAE7D,8CAA8C;IACO,SAAS,SAAK;IAEnE,6CAA6C;IACS,UAAU,SAAK;IAE5D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,gBAAgB,CAA6B;IAE9D,OAAO,CAAC,UAAU,CAAwC;IAC1D,OAAO,CAAC,UAAU,CAA8C;IAChE,OAAO,CAAC,WAAW,CAA8C;IAExD,oBAAoB,IAAI,IAAI;IAKrC,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,KAAK;IAmBb,OAAO,CAAC,KAAK;IAgBb,OAAO,CAAC,cAAc;IAOtB,kEAAkE;IAClE,OAAO,CAAC,cAAc;IA8Bb,MAAM;CA+BlB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,eAAe,EAAE,YAAY,CAAC;KACjC;CACJ"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import type { PropertyValues } from 'lit';
|
|
3
|
+
export interface TransferOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A premium Transfer List component for moving items between two lists.
|
|
9
|
+
*
|
|
10
|
+
* @fires change - Dispatched when items are moved between lists. Detail: `{ value: string[] }`
|
|
11
|
+
*/
|
|
12
|
+
export declare class FlintTransferList extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
/** Available options to display in the transfer list. */
|
|
15
|
+
options: TransferOption[];
|
|
16
|
+
/** Currently selected values (items in the right list). */
|
|
17
|
+
value: string[];
|
|
18
|
+
/** Initial value for uncontrolled usage. Applied once on first render. */
|
|
19
|
+
defaultValue: string[];
|
|
20
|
+
/** Title displayed above the left (available) list. */
|
|
21
|
+
leftTitle: string;
|
|
22
|
+
/** Title displayed above the right (selected) list. */
|
|
23
|
+
rightTitle: string;
|
|
24
|
+
/** Whether the transfer list is disabled. */
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
/** Whether to show search inputs for filtering each list. */
|
|
27
|
+
searchable: boolean;
|
|
28
|
+
private leftChecked;
|
|
29
|
+
private rightChecked;
|
|
30
|
+
private _leftSearch;
|
|
31
|
+
private _rightSearch;
|
|
32
|
+
private _firstUpdate;
|
|
33
|
+
willUpdate(changed: PropertyValues): void;
|
|
34
|
+
private _toggleChecked;
|
|
35
|
+
private _handleItemKeydown;
|
|
36
|
+
private _moveRight;
|
|
37
|
+
private _moveLeft;
|
|
38
|
+
private _moveAllRight;
|
|
39
|
+
private _moveAllLeft;
|
|
40
|
+
private _dispatchChange;
|
|
41
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
'flint-transfer-list': FlintTransferList;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=flint-transfer-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flint-transfer-list.d.ts","sourceRoot":"","sources":["../../src/transfer-list/flint-transfer-list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAK1C,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,qBACa,iBAAkB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,0BAAmC;IAEhD,yDAAyD;IAC9B,OAAO,EAAE,cAAc,EAAE,CAAM;IAC1D,2DAA2D;IAChC,KAAK,EAAE,MAAM,EAAE,CAAM;IAChD,0EAA0E;IACnB,YAAY,EAAE,MAAM,EAAE,CAAM;IACnF,uDAAuD;IAC3B,SAAS,SAAa;IAClD,uDAAuD;IAC3B,UAAU,SAAc;IACpD,6CAA6C;IACD,QAAQ,UAAS;IAC7D,6DAA6D;IAChC,UAAU,UAAS;IAEvC,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,WAAW,CAAM;IACzB,OAAO,CAAC,YAAY,CAAM;IAEnC,OAAO,CAAC,YAAY,CAAQ;IAEnB,UAAU,CAAC,OAAO,EAAE,cAAc;IAU3C,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,YAAY;IAQpB,OAAO,CAAC,eAAe;IAQvB,MAAM;CA+HT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,qBAAqB,EAAE,iBAAiB,CAAC;KAC5C;CACJ"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues, type TemplateResult } from 'lit';
|
|
2
|
+
import type { FlintTreeItem } from './flint-tree-item.js';
|
|
3
|
+
import './flint-tree-item.js';
|
|
4
|
+
export type RichTreeItem = Record<string, unknown>;
|
|
5
|
+
/**
|
|
6
|
+
* Data source for lazy loading.
|
|
7
|
+
*
|
|
8
|
+
* @method getTreeItems - Returns children for a given parent ID, or root items when `null`.
|
|
9
|
+
* @method getChildrenCount - Returns the number of children for the item.
|
|
10
|
+
* Return a positive number if known, -1 if the item has children but the count is unknown,
|
|
11
|
+
* or 0 if the item has no children.
|
|
12
|
+
*/
|
|
13
|
+
export interface RichTreeViewDataSource {
|
|
14
|
+
getTreeItems(parentId: string | null): Promise<RichTreeItem[]>;
|
|
15
|
+
getChildrenCount(item: RichTreeItem): number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A data-driven tree view that renders its structure from an `items` array.
|
|
19
|
+
*
|
|
20
|
+
* Unlike `flint-simple-tree-view` (which uses a slot), `flint-rich-tree-view` renders
|
|
21
|
+
* `flint-tree-item` elements internally from data.
|
|
22
|
+
*
|
|
23
|
+
* **Lazy loading:** Provide a `dataSource` to load children on demand.
|
|
24
|
+
* Pass an empty `items` array to also load the root level lazily.
|
|
25
|
+
*
|
|
26
|
+
* @prop {RichTreeItem[]} items - Array of item data objects.
|
|
27
|
+
* @prop {RichTreeViewDataSource} dataSource - Optional lazy-load data source.
|
|
28
|
+
* @prop {(item) => string} getItemId - Extract unique ID (default: `item.id`).
|
|
29
|
+
* @prop {(item) => string} getItemLabel - Extract label (default: `item.label`).
|
|
30
|
+
* @prop {(item) => RichTreeItem[] | undefined} getItemChildren - Extract children (default: `item.children`).
|
|
31
|
+
* @prop {(item) => boolean} isItemDisabled - Return true to disable an item.
|
|
32
|
+
*
|
|
33
|
+
* @fires flint-tree-view-item-click - When a tree item is activated (detail: { itemId })
|
|
34
|
+
* @fires flint-tree-view-expanded-items-change - When the expanded set changes (detail: { expandedItems })
|
|
35
|
+
* @fires flint-tree-view-error - When a lazy-loading dataSource call fails (detail: { message, id, error })
|
|
36
|
+
*/
|
|
37
|
+
export declare class FlintRichTreeView extends LitElement {
|
|
38
|
+
static styles: import("lit").CSSResult;
|
|
39
|
+
/** Array of item data objects to render in the tree. */
|
|
40
|
+
items: RichTreeItem[];
|
|
41
|
+
/**
|
|
42
|
+
* Optional lazy-load data source. When provided, children are fetched
|
|
43
|
+
* on demand when the user expands an item. If `items` is empty, root
|
|
44
|
+
* items are also fetched on first render.
|
|
45
|
+
*/
|
|
46
|
+
dataSource?: RichTreeViewDataSource;
|
|
47
|
+
/** Returns the unique string ID for an item. Defaults to `item.id`. */
|
|
48
|
+
getItemId: (item: RichTreeItem) => string;
|
|
49
|
+
/** Returns the display label for an item. Defaults to `item.label`. */
|
|
50
|
+
getItemLabel: (item: RichTreeItem) => string;
|
|
51
|
+
/** Returns the children array for an item. Defaults to `item.children`. */
|
|
52
|
+
getItemChildren: (item: RichTreeItem) => RichTreeItem[] | undefined;
|
|
53
|
+
/** Returns `true` if the given item should be disabled. */
|
|
54
|
+
isItemDisabled: (item: RichTreeItem) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* When `true`, disabled items can receive keyboard focus.
|
|
57
|
+
* When `false` (default), keyboard navigation skips disabled items.
|
|
58
|
+
*/
|
|
59
|
+
disabledItemsFocusable: boolean;
|
|
60
|
+
/** Callback invoked when a tree item is clicked or activated via keyboard. */
|
|
61
|
+
onItemClick?: (itemId: string) => void;
|
|
62
|
+
/**
|
|
63
|
+
* What interaction triggers expand/collapse.
|
|
64
|
+
* - `'content'` (default): clicking anywhere on the item row
|
|
65
|
+
* - `'iconContainer'`: clicking only the expand/collapse icon button
|
|
66
|
+
*/
|
|
67
|
+
expansionTrigger: 'content' | 'iconContainer';
|
|
68
|
+
/**
|
|
69
|
+
* **Controlled mode.** The set of item IDs that should be expanded.
|
|
70
|
+
* You must update this via `onExpandedItemsChange` to apply user changes.
|
|
71
|
+
*/
|
|
72
|
+
expandedItems?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* **Uncontrolled mode.** Item IDs to expand on initial mount.
|
|
75
|
+
*/
|
|
76
|
+
defaultExpandedItems: string[];
|
|
77
|
+
/** Callback fired when the user toggles an item's expansion. */
|
|
78
|
+
onExpandedItemsChange?: (itemIds: string[]) => void;
|
|
79
|
+
/**
|
|
80
|
+
* When `true`, enables drag-and-drop reordering of items.
|
|
81
|
+
*/
|
|
82
|
+
itemsReordering: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Function that determines if a specific item can be reordered.
|
|
85
|
+
* Receives the item ID and should return `true` if reorderable.
|
|
86
|
+
*/
|
|
87
|
+
isItemReorderable?: (itemId: string) => boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Function that determines if an item can be moved to a specific target position.
|
|
90
|
+
* Receives context about the move and should return `true` if allowed.
|
|
91
|
+
*/
|
|
92
|
+
canMoveItemToNewPosition?: (params: {
|
|
93
|
+
itemId: string;
|
|
94
|
+
targetId: string;
|
|
95
|
+
position: 'before' | 'after' | 'inside';
|
|
96
|
+
}) => boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Whether to use a drag handle icon for reordering.
|
|
99
|
+
* - `false` (default): Dragging from anywhere on the row triggers reordering.
|
|
100
|
+
* - `true`: Only dragging from the handle icon triggers reordering.
|
|
101
|
+
*/
|
|
102
|
+
itemsReorderingHandle: boolean;
|
|
103
|
+
/** Fired when an item's position changes via reordering. */
|
|
104
|
+
onItemPositionChange?: (params: {
|
|
105
|
+
itemId: string;
|
|
106
|
+
newParentId: string | null;
|
|
107
|
+
newIndex: number;
|
|
108
|
+
}) => void;
|
|
109
|
+
/** Tracks expanded IDs in uncontrolled mode. */
|
|
110
|
+
private _internalExpandedItems;
|
|
111
|
+
/** Prevents `defaultExpandedItems` from being re-applied on subsequent item changes. */
|
|
112
|
+
private _expansionInitialized;
|
|
113
|
+
/** Stores imperative disabled overrides from `setIsItemDisabled()`. */
|
|
114
|
+
private _disabledOverrides;
|
|
115
|
+
/** Lazily loaded children keyed by parent ID (`null` = root). */
|
|
116
|
+
private _lazyChildren;
|
|
117
|
+
/** IDs currently being fetched. */
|
|
118
|
+
private _loading;
|
|
119
|
+
/**
|
|
120
|
+
* Current ordered state of items when reordering is active.
|
|
121
|
+
* Initialized from `items` on first drag.
|
|
122
|
+
*/
|
|
123
|
+
private _orderedItems;
|
|
124
|
+
/** ID of the item currently being dragged. */
|
|
125
|
+
private _draggedItemId;
|
|
126
|
+
/** ID of the item being dragged over. */
|
|
127
|
+
private _dropTargetId;
|
|
128
|
+
/** Visual indicator of where the item will be dropped. */
|
|
129
|
+
private _dropPosition;
|
|
130
|
+
private get _isControlled();
|
|
131
|
+
connectedCallback(): void;
|
|
132
|
+
disconnectedCallback(): void;
|
|
133
|
+
protected willUpdate(_changedProperties: PropertyValues): void;
|
|
134
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
135
|
+
private _loadChildren;
|
|
136
|
+
private _getEffectiveDisabled;
|
|
137
|
+
private _findItemById;
|
|
138
|
+
private _getEffectiveItems;
|
|
139
|
+
private _cloneItemsTree;
|
|
140
|
+
/** Find an item and its parent list/index within a tree structure. */
|
|
141
|
+
private _findItemAndParentInTree;
|
|
142
|
+
/**
|
|
143
|
+
* FIX #2: Replaced the broken _isDescendantOf() with _isAncestorOf().
|
|
144
|
+
*
|
|
145
|
+
* Old code checked if `parentId` had `childId` as a DIRECT child only,
|
|
146
|
+
* and the call-site had the arguments backwards (checking if the dragged
|
|
147
|
+
* item is a descendant of the target, instead of the other way around).
|
|
148
|
+
*
|
|
149
|
+
* New code: returns true if `ancestorId` is an ancestor of `targetId`
|
|
150
|
+
* anywhere in the subtree (deep, recursive check).
|
|
151
|
+
*/
|
|
152
|
+
private _isAncestorOf;
|
|
153
|
+
/** Items live in shadow DOM, so we query from shadowRoot. */
|
|
154
|
+
private _getAllItems;
|
|
155
|
+
private _getVisibleItems;
|
|
156
|
+
/**
|
|
157
|
+
* An item is visible if no ancestor flint-tree-item is collapsed.
|
|
158
|
+
* Traversal stops at null (shadow DOM root has no parentElement).
|
|
159
|
+
*/
|
|
160
|
+
private _isVisible;
|
|
161
|
+
private _getFocusableItems;
|
|
162
|
+
private _itemHasChildren;
|
|
163
|
+
private _initExpansion;
|
|
164
|
+
private _syncExpansion;
|
|
165
|
+
private _handleToggle;
|
|
166
|
+
private _initRovingTabindex;
|
|
167
|
+
private _focusItem;
|
|
168
|
+
/** Maintains roving tabindex as focus moves within the tree. */
|
|
169
|
+
private _handleFocusIn;
|
|
170
|
+
/** Handles the `flint-tree-item-toggle` event from the expand icon button. */
|
|
171
|
+
private _handleFlintToggle;
|
|
172
|
+
/** Handles `flint-tree-item-click` (row click). Also triggers expansion in content mode. */
|
|
173
|
+
private _handleItemClick;
|
|
174
|
+
private _handleKeydown;
|
|
175
|
+
/**
|
|
176
|
+
* Returns the data item with the given ID, or `null` if not found.
|
|
177
|
+
* Performs a depth-first search through the items tree.
|
|
178
|
+
*/
|
|
179
|
+
getItem(id: string): RichTreeItem | null;
|
|
180
|
+
/**
|
|
181
|
+
* Returns the DOM element for the tree item with the given ID, or `null`.
|
|
182
|
+
*/
|
|
183
|
+
getItemDOMElement(id: string): FlintTreeItem | null;
|
|
184
|
+
/**
|
|
185
|
+
* Returns the current items tree. Returns the reordered tree if reordering is active.
|
|
186
|
+
*/
|
|
187
|
+
getItemTree(): RichTreeItem[];
|
|
188
|
+
/**
|
|
189
|
+
* Returns the ordered child IDs for an item, or root items if null.
|
|
190
|
+
*/
|
|
191
|
+
getItemOrderedChildrenIds(itemId: string | null): string[];
|
|
192
|
+
/**
|
|
193
|
+
* Imperatively toggle the disabled state of an item by ID.
|
|
194
|
+
* Overrides the `isItemDisabled` prop result for that specific item.
|
|
195
|
+
*/
|
|
196
|
+
setIsItemDisabled(id: string, disabled: boolean): void;
|
|
197
|
+
private _renderItem;
|
|
198
|
+
render(): TemplateResult<1>;
|
|
199
|
+
private _getTreeItemFromEvent;
|
|
200
|
+
private _handleDragStart;
|
|
201
|
+
private _handleDragOver;
|
|
202
|
+
private _handleDragEnd;
|
|
203
|
+
private _handleDrop;
|
|
204
|
+
private _clearDropTarget;
|
|
205
|
+
private _updateItemDropStates;
|
|
206
|
+
private _moveItem;
|
|
207
|
+
}
|
|
208
|
+
declare global {
|
|
209
|
+
interface HTMLElementTagNameMap {
|
|
210
|
+
'flint-rich-tree-view': FlintRichTreeView;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
//# sourceMappingURL=flint-rich-tree-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flint-rich-tree-view.d.ts","sourceRoot":"","sources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rB;IAEF,OAAO,CAAC,cAAc,CAOpB;IAEF,OAAO,CAAC,WAAW,CAejB;IAEF,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,SAAS;CA2DpB;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,sBAAsB,EAAE,iBAAiB,CAAC;KAC7C;CACJ"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
+
import type { FlintTreeItem } from './flint-tree-item.js';
|
|
3
|
+
/**
|
|
4
|
+
* A simple tree-view container that manages keyboard navigation, focus,
|
|
5
|
+
* and item selection/expansion for nested `flint-tree-item` elements.
|
|
6
|
+
*
|
|
7
|
+
* **Controlled expansion** — provide `expandedItems` and update it via
|
|
8
|
+
* `onExpandedItemsChange`:
|
|
9
|
+
* ```js
|
|
10
|
+
* tree.expandedItems = ['item-1'];
|
|
11
|
+
* tree.onExpandedItemsChange = (ids) => { tree.expandedItems = ids; };
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* **Uncontrolled expansion** — set `defaultExpandedItems` once at mount:
|
|
15
|
+
* ```js
|
|
16
|
+
* tree.defaultExpandedItems = ['item-1', 'item-2'];
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @slot - Place `flint-tree-item` elements here.
|
|
20
|
+
*
|
|
21
|
+
* @fires flint-tree-view-item-click - When a tree item is activated (detail: { itemId })
|
|
22
|
+
* @fires flint-tree-view-expanded-items-change - When the expanded set changes (detail: { expandedItems })
|
|
23
|
+
*/
|
|
24
|
+
export declare class FlintSimpleTreeView extends LitElement {
|
|
25
|
+
static styles: import("lit").CSSResult;
|
|
26
|
+
/**
|
|
27
|
+
* When `true`, disabled items can receive keyboard focus.
|
|
28
|
+
* When `false` (default), keyboard navigation skips disabled items.
|
|
29
|
+
*/
|
|
30
|
+
disabledItemsFocusable: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Callback invoked when a tree item is clicked or activated via keyboard.
|
|
33
|
+
* Receives the `itemId` of the activated item.
|
|
34
|
+
*/
|
|
35
|
+
onItemClick?: (itemId: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* **Controlled mode.** The set of item IDs that should be expanded.
|
|
38
|
+
* When set, the component uses this as the source of truth.
|
|
39
|
+
* You must update this prop (via `onExpandedItemsChange`) to apply user changes.
|
|
40
|
+
* Set to `undefined` to switch back to uncontrolled mode.
|
|
41
|
+
*/
|
|
42
|
+
expandedItems?: string[];
|
|
43
|
+
/**
|
|
44
|
+
* **Uncontrolled mode.** Item IDs to expand on initial mount.
|
|
45
|
+
* Ignored once the component has mounted. Has no effect in controlled mode.
|
|
46
|
+
*/
|
|
47
|
+
defaultExpandedItems: string[];
|
|
48
|
+
/**
|
|
49
|
+
* Callback fired when the user toggles an item's expansion.
|
|
50
|
+
* Receives the full new array of expanded item IDs.
|
|
51
|
+
* In controlled mode, update `expandedItems` with the received value.
|
|
52
|
+
*/
|
|
53
|
+
onExpandedItemsChange?: (itemIds: string[]) => void;
|
|
54
|
+
/**
|
|
55
|
+
* What interaction triggers expand/collapse.
|
|
56
|
+
* - `'content'` (default): clicking anywhere on the item row
|
|
57
|
+
* - `'iconContainer'`: clicking only the expand/collapse icon button
|
|
58
|
+
*/
|
|
59
|
+
expansionTrigger: 'content' | 'iconContainer';
|
|
60
|
+
/** Tracks expanded IDs in uncontrolled mode. */
|
|
61
|
+
private _internalExpandedItems;
|
|
62
|
+
/** Prevents `defaultExpandedItems` from being re-applied on slot re-renders. */
|
|
63
|
+
private _expansionInitialized;
|
|
64
|
+
private get _isControlled();
|
|
65
|
+
connectedCallback(): void;
|
|
66
|
+
disconnectedCallback(): void;
|
|
67
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
68
|
+
private _getAllItems;
|
|
69
|
+
/** Returns all items that are currently visible (no collapsed ancestor). */
|
|
70
|
+
private _getVisibleItems;
|
|
71
|
+
private _isVisible;
|
|
72
|
+
/** Visible items that can receive focus based on `disabledItemsFocusable`. */
|
|
73
|
+
private _getFocusableItems;
|
|
74
|
+
private _itemHasChildren;
|
|
75
|
+
/**
|
|
76
|
+
* Runs once on first slot population.
|
|
77
|
+
* Seeds `_internalExpandedItems` from `defaultExpandedItems` in uncontrolled mode.
|
|
78
|
+
*/
|
|
79
|
+
private _initExpansion;
|
|
80
|
+
/**
|
|
81
|
+
* Reconciles every item's `expanded` prop with the current expanded set
|
|
82
|
+
* (controlled: `expandedItems`; uncontrolled: `_internalExpandedItems`).
|
|
83
|
+
*/
|
|
84
|
+
private _syncExpansion;
|
|
85
|
+
/**
|
|
86
|
+
* Central expansion dispatcher.
|
|
87
|
+
* In controlled mode: fires callbacks but resets to the controlled state.
|
|
88
|
+
* In uncontrolled mode: updates internal tracking and syncs items.
|
|
89
|
+
*/
|
|
90
|
+
private _handleToggle;
|
|
91
|
+
private _initRovingTabindex;
|
|
92
|
+
private _focusItem;
|
|
93
|
+
private _handleFocusIn;
|
|
94
|
+
/** Handles the `flint-tree-item-toggle` event from the expand icon button. */
|
|
95
|
+
private _handleFlintToggle;
|
|
96
|
+
/** Handles `flint-tree-item-click` (row click). Also triggers expansion in content mode. */
|
|
97
|
+
private _handleItemClick;
|
|
98
|
+
private _handleKeydown;
|
|
99
|
+
/**
|
|
100
|
+
* Returns the DOM element for the tree item with the given `itemId`,
|
|
101
|
+
* or `null` if not found.
|
|
102
|
+
*/
|
|
103
|
+
getItemDOMElement(itemId: string): FlintTreeItem | null;
|
|
104
|
+
private _onSlotChange;
|
|
105
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
106
|
+
}
|
|
107
|
+
declare global {
|
|
108
|
+
interface HTMLElementTagNameMap {
|
|
109
|
+
'flint-simple-tree-view': FlintSimpleTreeView;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=flint-simple-tree-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3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,UAAU;IAQlB,OAAO,CAAC,cAAc;IAQtB,8EAA8E;IAC9E,OAAO,CAAC,kBAAkB;IAM1B,4FAA4F;IAC5F,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,cAAc,CA6FpB;IAIF;;;OAGG;IACH,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI;IAOvD,OAAO,CAAC,aAAa;IAMrB,MAAM;CAOT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,wBAAwB,EAAE,mBAAmB,CAAC;KACjD;CACJ"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { LitElement, type PropertyValues } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A single item inside a `flint-simple-tree-view` or `flint-rich-tree-view`.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Place child `flint-tree-item` elements here to create a nested tree.
|
|
6
|
+
*
|
|
7
|
+
* @fires flint-tree-item-click - Fired when the item is clicked (detail: { itemId })
|
|
8
|
+
* @fires flint-tree-item-toggle - Fired when expanded state changes (detail: { itemId, expanded })
|
|
9
|
+
*/
|
|
10
|
+
export declare class FlintTreeItem extends LitElement {
|
|
11
|
+
static styles: import("lit").CSSResult;
|
|
12
|
+
/** Unique identifier for this item within the tree */
|
|
13
|
+
itemId: string;
|
|
14
|
+
/** Label text displayed for this item */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Whether this item is disabled (non-interactive) */
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/** Whether this item's children are visible */
|
|
19
|
+
expanded: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* When `true`, forces the expand button to render even if no `flint-tree-item`
|
|
22
|
+
* children are currently in the slot. Used by `flint-rich-tree-view` for lazy
|
|
23
|
+
* loading so items known to have children show the toggle before data is fetched.
|
|
24
|
+
*/
|
|
25
|
+
hasChildren: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* FIX: Removed the Lit @property declaration for `draggable`.
|
|
28
|
+
* Declaring it as a Lit property shadows the native HTMLElement.draggable,
|
|
29
|
+
* meaning the browser never sees draggable="true" on the host and won't
|
|
30
|
+
* initiate a drag. We now forward draggable state directly to the inner
|
|
31
|
+
* .item-row div via the `_isDraggable` state, keeping the host's native
|
|
32
|
+
* draggable untouched (it stays false, which is fine — the row fires the
|
|
33
|
+
* dragstart which bubbles up through the shadow root to the tree view).
|
|
34
|
+
*/
|
|
35
|
+
private _isDraggable;
|
|
36
|
+
/**
|
|
37
|
+
* Called by flint-rich-tree-view to set drag enabled state.
|
|
38
|
+
* Uses a method + @state instead of a @property to avoid clobbering
|
|
39
|
+
* the native `draggable` attribute on the host element.
|
|
40
|
+
*
|
|
41
|
+
* @param value - Whether this item is draggable at all
|
|
42
|
+
* @param handleOnly - When true, only the drag handle icon initiates a drag,
|
|
43
|
+
* not the whole row. The handle div gets draggable="true"
|
|
44
|
+
* and the row stays non-draggable.
|
|
45
|
+
*/
|
|
46
|
+
setDraggable(value: boolean, handleOnly?: boolean): void;
|
|
47
|
+
private _handleOnly;
|
|
48
|
+
/** Visual drop position indicator — reflected so CSS :host selectors match */
|
|
49
|
+
dropPosition: 'before' | 'after' | 'inside' | null;
|
|
50
|
+
/** Whether to show a dedicated drag handle icon */
|
|
51
|
+
showDragHandle: boolean;
|
|
52
|
+
private _hasSlottedChildren;
|
|
53
|
+
connectedCallback(): void;
|
|
54
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
55
|
+
private _onSlotChange;
|
|
56
|
+
private _toggleExpand;
|
|
57
|
+
private _handleRowClick;
|
|
58
|
+
/** Computed indentation level based on nested depth */
|
|
59
|
+
private get _level();
|
|
60
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
61
|
+
}
|
|
62
|
+
declare global {
|
|
63
|
+
interface HTMLElementTagNameMap {
|
|
64
|
+
'flint-tree-item': FlintTreeItem;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=flint-tree-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flint-tree-item.d.ts","sourceRoot":"","sources":["../../src/tree-view/flint-tree-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKhF;;;;;;;GAOG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,0BAA+B;IAE5C,sDAAsD;IAEtD,MAAM,SAAM;IAEZ,yCAAyC;IAEzC,KAAK,SAAM;IAEX,sDAAsD;IAEtD,QAAQ,UAAS;IAEjB,+CAA+C;IAE/C,QAAQ,UAAS;IAEjB;;;;OAIG;IAEH,WAAW,UAAS;IAEpB;;;;;;;;OAQG;IACM,OAAO,CAAC,YAAY,CAAS;IAEtC;;;;;;;;;OASG;IACH,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,UAAQ;IAKtC,OAAO,CAAC,WAAW,CAAS;IAErC,8EAA8E;IAE9E,YAAY,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAQ;IAE1D,mDAAmD;IAEnD,cAAc,UAAS;IAEd,OAAO,CAAC,mBAAmB,CAAS;IAE7C,iBAAiB;IAQjB,SAAS,CAAC,OAAO,CAAC,kBAAkB,EAAE,cAAc;IAUpD,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,eAAe;IASvB,uDAAuD;IACvD,OAAO,KAAK,MAAM,GASjB;IAED,MAAM;CAqDP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Typography component for displaying text with consistent theme styles.
|
|
4
|
+
*
|
|
5
|
+
* @slot - The text content.
|
|
6
|
+
*/
|
|
7
|
+
export declare class FlintTypography extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/**
|
|
10
|
+
* Variant of the typography.
|
|
11
|
+
* @default 'body1'
|
|
12
|
+
*/
|
|
13
|
+
variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline' | 'inherit';
|
|
14
|
+
/**
|
|
15
|
+
* The color of the text.
|
|
16
|
+
* @default 'textPrimary'
|
|
17
|
+
*/
|
|
18
|
+
color: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info' | 'textPrimary' | 'textSecondary' | 'inherit';
|
|
19
|
+
/** Override the rendered HTML tag. */
|
|
20
|
+
component?: string;
|
|
21
|
+
/** Text alignment. */
|
|
22
|
+
align: 'left' | 'center' | 'right' | 'justify';
|
|
23
|
+
/** If true, text is truncated with an ellipsis. */
|
|
24
|
+
noWrap: boolean;
|
|
25
|
+
/** If true, adds a bottom margin. */
|
|
26
|
+
gutterBottom: boolean;
|
|
27
|
+
/** If true, adds paragraph margin bottom. */
|
|
28
|
+
paragraph: boolean;
|
|
29
|
+
private _literalTag;
|
|
30
|
+
render(): import("lit-html").TemplateResult;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'flint-typography': FlintTypography;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=flint-typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flint-typography.d.ts","sourceRoot":"","sources":["../../src/typography/flint-typography.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAK5C;;;;GAIG;AACH,qBACa,eAAgB,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,0BAAiC;IAE9C;;;OAGG;IACwC,OAAO,EAC5C,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GACvC,WAAW,GAAG,WAAW,GACzB,OAAO,GAAG,OAAO,GACjB,SAAS,GAAG,UAAU,GACtB,SAAS,CAAW;IAE1B;;;OAGG;IACwC,KAAK,EAC1C,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAClE,aAAa,GAAG,eAAe,GAAG,SAAS,CAAiB;IAElE,sCAAsC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IAE/C,sBAAsB;IACqB,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAU;IAEnG,mDAAmD;IACP,MAAM,UAAS;IAE3D,qCAAqC;IACO,YAAY,UAAS;IAEjE,6CAA6C;IACD,SAAS,UAAS;IAE9D,OAAO,CAAC,WAAW;IAqBnB,MAAM;CAKT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,kBAAkB,EAAE,eAAe,CAAC;KACvC;CACJ"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Makes content accessible to assistive devices (screen readers) without
|
|
4
|
+
* displaying it visually on screen.
|
|
5
|
+
*
|
|
6
|
+
* Content becomes visible when something inside receives keyboard focus,
|
|
7
|
+
* so sighted keyboard users can still see where focus has landed. To suppress
|
|
8
|
+
* this reveal (e.g. for inline annotations that should never appear visually),
|
|
9
|
+
* add the `not-focusable` attribute.
|
|
10
|
+
*
|
|
11
|
+
* @prop {boolean} notFocusable - When true, disables the focus-reveal behaviour.
|
|
12
|
+
* Useful for pure SR-only text (e.g. "opens in a new window") that should
|
|
13
|
+
* never become visible, even when a containing element is focused.
|
|
14
|
+
*
|
|
15
|
+
* @slot - The content to be visually hidden.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <!-- Skip navigation link (reveals on keyboard focus) -->
|
|
19
|
+
* <flint-visually-hidden>
|
|
20
|
+
* <a href="#main">Skip to main content</a>
|
|
21
|
+
* </flint-visually-hidden>
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <!-- Pure SR-only annotation — never reveals visually -->
|
|
25
|
+
* <a href="/report" target="_blank">
|
|
26
|
+
* Annual Report
|
|
27
|
+
* <flint-visually-hidden not-focusable>opens in a new tab</flint-visually-hidden>
|
|
28
|
+
* </a>
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* <!-- Supplemental screen-reader-only label -->
|
|
32
|
+
* <a href="/about">
|
|
33
|
+
* About
|
|
34
|
+
* <flint-visually-hidden>our company</flint-visually-hidden>
|
|
35
|
+
* </a>
|
|
36
|
+
*/
|
|
37
|
+
export declare class FlintVisuallyHidden extends LitElement {
|
|
38
|
+
static styles: import("lit").CSSResult;
|
|
39
|
+
/**
|
|
40
|
+
* When `true`, the focus-reveal behaviour is disabled.
|
|
41
|
+
* The content stays hidden even if a focusable child receives keyboard focus.
|
|
42
|
+
* Set the `not-focusable` attribute (no value) to activate this mode.
|
|
43
|
+
*/
|
|
44
|
+
notFocusable: boolean;
|
|
45
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
46
|
+
}
|
|
47
|
+
declare global {
|
|
48
|
+
interface HTMLElementTagNameMap {
|
|
49
|
+
'flint-visually-hidden': FlintVisuallyHidden;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=flint-visually-hidden.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flint-visually-hidden.d.ts","sourceRoot":"","sources":["../../src/visually-hidden/flint-visually-hidden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAIlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,qBACa,mBAAoB,SAAQ,UAAU;IAC/C,MAAM,CAAC,MAAM,0BAAqB;IAElC;;;;OAIG;IAEH,YAAY,UAAS;IAErB,MAAM;CAGT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,uBAAuB,EAAE,mBAAmB,CAAC;KAChD;CACJ"}
|