@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,61 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
4
|
+
//#region src/toggle/flint-toggle.css?inline
|
|
5
|
+
var s = ":host{font-family:var(--flint-font-family);display:inline-flex}:host([disabled]){cursor:not-allowed;pointer-events:none}.toggle{border-radius:var(--flint-toggle-border-radius,var(--flint-border-radius-md));padding:var(--flint-toggle-padding-y,.5rem) var(--flint-toggle-padding-x,.75rem);min-width:var(--flint-toggle-min-width,2.25rem);min-height:var(--flint-toggle-min-height,2.25rem);font-size:var(--flint-toggle-font-size,.875rem);color:var(--flint-toggle-color,var(--flint-text-color));background-color:var(--flint-toggle-bg,transparent);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;box-sizing:border-box;border:1px solid #0000;justify-content:center;align-items:center;gap:.5rem;font-family:inherit;font-weight:500;line-height:1;text-decoration:none;transition:background-color .15s,color .15s,border-color .15s;display:inline-flex}.toggle:hover:not([disabled]){background-color:var(--flint-toggle-bg-hover,var(--flint-muted-background));color:var(--flint-toggle-color-hover,var(--flint-text-color))}.toggle[aria-pressed=true]{background-color:var(--flint-toggle-bg-pressed,var(--flint-primary-color-light));color:var(--flint-toggle-color-pressed,var(--flint-primary-color))}.toggle[aria-pressed=true]:hover:not([disabled]){background-color:var(--flint-toggle-bg-pressed-hover,var(--flint-primary-color-light-hover))}.toggle[disabled]{opacity:.5;cursor:not-allowed;pointer-events:none}.toggle:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:2px}:host([size=sm]) .toggle{padding:var(--flint-toggle-padding-y-sm,.375rem) var(--flint-toggle-padding-x-sm,.625rem);min-width:2rem;min-height:2rem;font-size:.8125rem}:host([size=lg]) .toggle{padding:var(--flint-toggle-padding-y-lg,.625rem) var(--flint-toggle-padding-x-lg,1rem);min-width:2.75rem;min-height:2.75rem;font-size:1rem}:host([variant=outline]) .toggle{border-color:var(--flint-toggle-border-color,var(--flint-border-color));background-color:var(--flint-toggle-bg,var(--flint-surface-1))}:host([variant=outline]) .toggle:hover:not([disabled]){background-color:var(--flint-toggle-bg-hover,var(--flint-muted-background));border-color:var(--flint-toggle-border-color,var(--flint-border-color))}:host([variant=outline]) .toggle[aria-pressed=true]{background-color:var(--flint-toggle-bg-pressed,var(--flint-primary-color-light));color:var(--flint-toggle-color-pressed,var(--flint-primary-color));border-color:var(--flint-toggle-border-pressed-color,var(--flint-primary-color-light-hover))}:host([variant=outline]) .toggle[aria-pressed=true]:hover:not([disabled]){background-color:var(--flint-toggle-bg-pressed-hover,var(--flint-primary-color-light-hover))}:host([dir=rtl]) .toggle{direction:rtl}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.pressed = !1, this.disabled = !1, this.variant = "default", this.size = "default", this.dir = "ltr", this.defaultPressed = !1, this.ariaLabel = null, this._firstUpdate = !0;
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = i(s);
|
|
11
|
+
}
|
|
12
|
+
willUpdate(e) {
|
|
13
|
+
super.willUpdate(e), this._firstUpdate && (this._firstUpdate = !1, this.defaultPressed && (this.pressed = !0));
|
|
14
|
+
}
|
|
15
|
+
_handleClick() {
|
|
16
|
+
this.disabled || (this.pressed = !this.pressed, this.dispatchEvent(new CustomEvent("flint-toggle-change", {
|
|
17
|
+
detail: { pressed: this.pressed },
|
|
18
|
+
bubbles: !0,
|
|
19
|
+
composed: !0
|
|
20
|
+
})));
|
|
21
|
+
}
|
|
22
|
+
_handleKeydown(e) {
|
|
23
|
+
(e.key === " " || e.key === "Enter") && (e.preventDefault(), this._handleClick());
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return n`
|
|
27
|
+
<button
|
|
28
|
+
class="toggle"
|
|
29
|
+
type="button"
|
|
30
|
+
aria-pressed=${this.pressed ? "true" : "false"}
|
|
31
|
+
aria-label=${this.ariaLabel || r}
|
|
32
|
+
?disabled=${this.disabled}
|
|
33
|
+
@click=${this._handleClick}
|
|
34
|
+
@keydown=${this._handleKeydown}
|
|
35
|
+
>
|
|
36
|
+
<slot></slot>
|
|
37
|
+
</button>
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
e([o({
|
|
42
|
+
type: Boolean,
|
|
43
|
+
reflect: !0
|
|
44
|
+
})], c.prototype, "pressed", void 0), e([o({
|
|
45
|
+
type: Boolean,
|
|
46
|
+
reflect: !0
|
|
47
|
+
})], c.prototype, "disabled", void 0), e([o({
|
|
48
|
+
type: String,
|
|
49
|
+
reflect: !0
|
|
50
|
+
})], c.prototype, "variant", void 0), e([o({
|
|
51
|
+
type: String,
|
|
52
|
+
reflect: !0
|
|
53
|
+
})], c.prototype, "size", void 0), e([o({
|
|
54
|
+
type: String,
|
|
55
|
+
reflect: !0
|
|
56
|
+
})], c.prototype, "dir", void 0), e([o({
|
|
57
|
+
type: Boolean,
|
|
58
|
+
attribute: "default-pressed"
|
|
59
|
+
})], c.prototype, "defaultPressed", void 0), e([o({ attribute: "aria-label" })], c.prototype, "ariaLabel", void 0), c = e([a("flint-toggle")], c);
|
|
60
|
+
//#endregion
|
|
61
|
+
export { c as t };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a } from "lit/decorators.js";
|
|
4
|
+
import { classMap as o } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/button/flint-toggle-button.css?inline
|
|
6
|
+
var s = ":host{display:inline-block}button{font-family:var(--flint-font-family);font-weight:500;font-size:var(--flint-toggle-button-font-size,14px);padding:var(--flint-toggle-button-padding,8px 16px);border:1px solid var(--flint-input-border-color);background-color:var(--flint-surface-1);color:var(--flint-text-color);cursor:pointer;justify-content:center;align-items:center;gap:var(--flint-toggle-button-gap,8px);border-radius:var(--flint-toggle-button-border-radius,var(--flint-border-radius-md));outline:none;line-height:1;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;display:inline-flex}button:hover:not(:disabled){background-color:var(--flint-hover-color)}button.selected{background-color:var(--flint-toggle-button-selected-bg,var(--flint-active-color));color:var(--flint-toggle-button-selected-color,var(--flint-primary-color));border-color:var(--flint-toggle-button-selected-border-color,var(--flint-primary-color));z-index:1}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible{box-shadow:0 0 0 2px var(--flint-primary-color);z-index:2}:host([size=sm]) button{gap:4px;padding:4px 10px;font-size:12px}:host([size=lg]) button{gap:10px;padding:12px 20px;font-size:16px}:host([data-first]) button,:host([data-last]) button,:host([data-first][data-last]) button{border-radius:0}:host([data-first]) button{border-top-left-radius:var(--flint-border-radius-md);border-bottom-left-radius:var(--flint-border-radius-md)}:host([data-last]) button{border-top-right-radius:var(--flint-border-radius-md);border-bottom-right-radius:var(--flint-border-radius-md)}:host([data-first][data-last]) button{border-radius:var(--flint-border-radius-md)}:host([data-last]:not([data-first])) button,:host(:not([data-first]):not([data-last])) button{margin-left:-1px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.selected = !1, this.disabled = !1, this.value = "", this.size = "md";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
_handleClick() {
|
|
14
|
+
this.disabled || this.dispatchEvent(new CustomEvent("flint-toggle-button-change", {
|
|
15
|
+
detail: {
|
|
16
|
+
value: this.value,
|
|
17
|
+
selected: !this.selected
|
|
18
|
+
},
|
|
19
|
+
bubbles: !0,
|
|
20
|
+
composed: !0
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return n`
|
|
25
|
+
<button
|
|
26
|
+
type="button"
|
|
27
|
+
class=${o({ selected: this.selected })}
|
|
28
|
+
?disabled=${this.disabled}
|
|
29
|
+
@click=${this._handleClick}
|
|
30
|
+
aria-pressed=${this.selected}
|
|
31
|
+
>
|
|
32
|
+
<slot></slot>
|
|
33
|
+
</button>
|
|
34
|
+
`;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
e([a({
|
|
38
|
+
type: Boolean,
|
|
39
|
+
reflect: !0
|
|
40
|
+
})], c.prototype, "selected", void 0), e([a({
|
|
41
|
+
type: Boolean,
|
|
42
|
+
reflect: !0
|
|
43
|
+
})], c.prototype, "disabled", void 0), e([a({ type: String })], c.prototype, "value", void 0), e([a({
|
|
44
|
+
type: String,
|
|
45
|
+
reflect: !0
|
|
46
|
+
})], c.prototype, "size", void 0), c = e([i("flint-toggle-button")], c);
|
|
47
|
+
//#endregion
|
|
48
|
+
export { c as t };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a } from "lit/decorators.js";
|
|
4
|
+
//#region src/button/flint-toggle-button-group.css?inline
|
|
5
|
+
var o = ":host{vertical-align:middle;display:inline-flex}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.value = "", this.exclusive = !0;
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
super.connectedCallback(), this.addEventListener("flint-toggle-button-change", this._handleToggleClick), this._updateChildren();
|
|
14
|
+
}
|
|
15
|
+
disconnectedCallback() {
|
|
16
|
+
super.disconnectedCallback(), this.removeEventListener("flint-toggle-button-change", this._handleToggleClick);
|
|
17
|
+
}
|
|
18
|
+
_handleToggleClick(e) {
|
|
19
|
+
let { value: t, selected: n } = e.detail;
|
|
20
|
+
if (this.exclusive) this.value = n ? t : "";
|
|
21
|
+
else {
|
|
22
|
+
let e = Array.isArray(this.value) ? [...this.value] : this.value ? [this.value] : [];
|
|
23
|
+
if (n) e.includes(t) || e.push(t);
|
|
24
|
+
else {
|
|
25
|
+
let n = e.indexOf(t);
|
|
26
|
+
n > -1 && e.splice(n, 1);
|
|
27
|
+
}
|
|
28
|
+
this.value = e;
|
|
29
|
+
}
|
|
30
|
+
this._updateChildren(), this.dispatchEvent(new CustomEvent("flint-toggle-button-group-change", {
|
|
31
|
+
detail: { value: this.value },
|
|
32
|
+
bubbles: !0,
|
|
33
|
+
composed: !0
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
_updateChildren() {
|
|
37
|
+
let e = Array.from(this.querySelectorAll("flint-toggle-button"));
|
|
38
|
+
e.forEach((t, n) => {
|
|
39
|
+
let r = t;
|
|
40
|
+
r.selected = this.exclusive ? this.value === r.value : Array.isArray(this.value) && this.value.includes(r.value), n === 0 ? r.setAttribute("data-first", "") : r.removeAttribute("data-first"), n === e.length - 1 ? r.setAttribute("data-last", "") : r.removeAttribute("data-last");
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
updated(e) {
|
|
44
|
+
e.has("value") && this._updateChildren();
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
return n`<slot @slotchange=${this._updateChildren}></slot>`;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
e([a({ type: String })], s.prototype, "value", void 0), e([a({ type: Boolean })], s.prototype, "exclusive", void 0), s = e([i("flint-toggle-button-group")], s);
|
|
51
|
+
//#endregion
|
|
52
|
+
export { s as t };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o, state as s } from "lit/decorators.js";
|
|
4
|
+
import { classMap as c } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/tooltip/flint-tooltip.css?inline
|
|
6
|
+
var l = ":host{display:inline-block;position:relative}.tooltip-container{display:inline-block}.tooltip-popup{background-color:var(--flint-tooltip-bg);color:var(--flint-tooltip-color);border-radius:var(--flint-border-radius-sm);font-size:.75rem;font-family:var(--flint-font-family);max-width:var(--flint-tooltip-max-width,300px);white-space:nowrap;overflow-wrap:break-word;z-index:1000;opacity:0;visibility:hidden;pointer-events:none;box-shadow:var(--flint-shadow-sm);padding:4px 8px;line-height:1.4;transition:opacity .2s,visibility .2s,transform .2s;position:absolute}.tooltip-popup.top{margin-bottom:8px;bottom:100%;left:50%;transform:translate(-50%)translateY(0)}.tooltip-popup.top.visible{transform:translate(-50%)translateY(-4px)}.tooltip-popup.bottom{margin-top:8px;top:100%;left:50%;transform:translate(-50%)translateY(0)}.tooltip-popup.bottom.visible{transform:translate(-50%)translateY(4px)}.tooltip-popup.left{margin-right:8px;top:50%;right:100%;transform:translateY(-50%)translate(0)}.tooltip-popup.left.visible{transform:translateY(-50%)translate(-4px)}.tooltip-popup.right{margin-left:8px;top:50%;left:100%;transform:translateY(-50%)translate(0)}.tooltip-popup.right.visible{transform:translateY(-50%)translate(4px)}.tooltip-popup.visible{opacity:1;visibility:visible}.arrow{border-style:solid;width:0;height:0;position:absolute}.tooltip-popup.top .arrow{border-width:5px 5px 0;border-color:var(--flint-tooltip-bg) transparent transparent transparent;top:100%;left:50%;transform:translate(-50%)}.tooltip-popup.bottom .arrow{border-width:0 5px 5px;border-color:transparent transparent var(--flint-tooltip-bg) transparent;bottom:100%;left:50%;transform:translate(-50%)}.tooltip-popup.left .arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent var(--flint-tooltip-bg);top:50%;left:100%;transform:translateY(-50%)}.tooltip-popup.right .arrow{border-width:5px 5px 5px 0;border-color:transparent var(--flint-tooltip-bg) transparent transparent;top:50%;right:100%;transform:translateY(-50%)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", u = {
|
|
7
|
+
top: "bottom",
|
|
8
|
+
bottom: "top",
|
|
9
|
+
left: "right",
|
|
10
|
+
right: "left"
|
|
11
|
+
}, d = 0, f = class extends t {
|
|
12
|
+
constructor(...e) {
|
|
13
|
+
super(...e), this.label = "", this.placement = "top", this.arrow = !1, this.disabled = !1, this.openDelay = 0, this.closeDelay = 0, this._visible = !1, this._activePlacement = this.placement, this._tooltipId = `flint-tooltip-${d++}`, this._openTimer = null, this._closeTimer = null;
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.styles = i(l);
|
|
17
|
+
}
|
|
18
|
+
disconnectedCallback() {
|
|
19
|
+
super.disconnectedCallback(), this._clearTimers();
|
|
20
|
+
}
|
|
21
|
+
_clearTimers() {
|
|
22
|
+
this._openTimer !== null && (clearTimeout(this._openTimer), this._openTimer = null), this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null);
|
|
23
|
+
}
|
|
24
|
+
_show() {
|
|
25
|
+
if (!(this.disabled || !this.label)) if (this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null), this.openDelay > 0) {
|
|
26
|
+
if (this._openTimer !== null) return;
|
|
27
|
+
this._openTimer = setTimeout(() => {
|
|
28
|
+
this._openTimer = null, this._applyAutoFlip(), this._visible = !0;
|
|
29
|
+
}, this.openDelay);
|
|
30
|
+
} else this._applyAutoFlip(), this._visible = !0;
|
|
31
|
+
}
|
|
32
|
+
_hide() {
|
|
33
|
+
if (this._openTimer !== null && (clearTimeout(this._openTimer), this._openTimer = null), this.closeDelay > 0) {
|
|
34
|
+
if (this._closeTimer !== null) return;
|
|
35
|
+
this._closeTimer = setTimeout(() => {
|
|
36
|
+
this._closeTimer = null, this._visible = !1;
|
|
37
|
+
}, this.closeDelay);
|
|
38
|
+
} else this._visible = !1;
|
|
39
|
+
}
|
|
40
|
+
_handleKeydown(e) {
|
|
41
|
+
e.key === "Escape" && this._visible && (this._clearTimers(), this._visible = !1);
|
|
42
|
+
}
|
|
43
|
+
_applyAutoFlip() {
|
|
44
|
+
let e = this.getBoundingClientRect(), t = this.shadowRoot?.querySelector(".tooltip-popup");
|
|
45
|
+
if (!t) {
|
|
46
|
+
this._activePlacement = this.placement;
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
let n = t.getBoundingClientRect(), r = n.width || 100, i = n.height || 30, a = !0;
|
|
50
|
+
switch (this.placement) {
|
|
51
|
+
case "top":
|
|
52
|
+
a = e.top - i - 8 >= 0;
|
|
53
|
+
break;
|
|
54
|
+
case "bottom":
|
|
55
|
+
a = e.bottom + i + 8 <= window.innerHeight;
|
|
56
|
+
break;
|
|
57
|
+
case "left":
|
|
58
|
+
a = e.left - r - 8 >= 0;
|
|
59
|
+
break;
|
|
60
|
+
case "right":
|
|
61
|
+
a = e.right + r + 8 <= window.innerWidth;
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
this._activePlacement = a ? this.placement : u[this.placement];
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
let e = this._visible ? this._activePlacement : this.placement;
|
|
68
|
+
return n`
|
|
69
|
+
<div
|
|
70
|
+
class="tooltip-container"
|
|
71
|
+
@mouseenter=${this._show}
|
|
72
|
+
@mouseleave=${this._hide}
|
|
73
|
+
@focusin=${this._show}
|
|
74
|
+
@focusout=${this._hide}
|
|
75
|
+
@keydown=${this._handleKeydown}
|
|
76
|
+
>
|
|
77
|
+
<span class="trigger-wrapper" aria-describedby=${this._tooltipId}>
|
|
78
|
+
<slot></slot>
|
|
79
|
+
</span>
|
|
80
|
+
<div
|
|
81
|
+
id=${this._tooltipId}
|
|
82
|
+
role="tooltip"
|
|
83
|
+
aria-hidden=${this._visible ? "false" : "true"}
|
|
84
|
+
class=${c({
|
|
85
|
+
"tooltip-popup": !0,
|
|
86
|
+
[e]: !0,
|
|
87
|
+
visible: this._visible
|
|
88
|
+
})}
|
|
89
|
+
>
|
|
90
|
+
${this.label}
|
|
91
|
+
${this.arrow ? n`<div class="arrow"></div>` : r}
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
`;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
e([o({ type: String })], f.prototype, "label", void 0), e([o({ type: String })], f.prototype, "placement", void 0), e([o({ type: Boolean })], f.prototype, "arrow", void 0), e([o({
|
|
98
|
+
type: Boolean,
|
|
99
|
+
reflect: !0
|
|
100
|
+
})], f.prototype, "disabled", void 0), e([o({
|
|
101
|
+
type: Number,
|
|
102
|
+
attribute: "open-delay"
|
|
103
|
+
})], f.prototype, "openDelay", void 0), e([o({
|
|
104
|
+
type: Number,
|
|
105
|
+
attribute: "close-delay"
|
|
106
|
+
})], f.prototype, "closeDelay", void 0), e([s()], f.prototype, "_visible", void 0), e([s()], f.prototype, "_activePlacement", void 0), f = e([a("flint-tooltip")], f);
|
|
107
|
+
//#endregion
|
|
108
|
+
export { f as t };
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a, state as o } from "lit/decorators.js";
|
|
4
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
5
|
+
import { repeat as c } from "lit/directives/repeat.js";
|
|
6
|
+
//#region src/transfer-list/flint-transfer-list.css?inline
|
|
7
|
+
var l = ":host{--flint-transfer-list-height:300px;--flint-transfer-list-width:200px;font-family:var(--flint-font-family);color:var(--flint-text-color);display:block}:host([disabled]){opacity:.6;cursor:not-allowed}.container{align-items:flex-start;gap:16px;display:flex}.list-wrapper{flex-direction:column;gap:8px;display:flex}.list-header{justify-content:space-between;align-items:center;gap:8px;min-height:24px;display:flex}.list-title{color:var(--flint-text-color-muted);font-size:.875rem;font-weight:600}.list-count{color:var(--flint-text-color-on-primary);background:var(--flint-primary-color);border-radius:999px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:.75rem;font-weight:500;line-height:1;display:flex}.list-search{box-sizing:border-box;width:100%;font-size:.875rem;font-family:var(--flint-font-family);color:var(--flint-text-color);background:var(--flint-surface-2);border:1.5px solid var(--flint-border-color);border-radius:var(--flint-border-radius-md,6px);outline:none;padding:6px 10px;transition:border-color .2s}.list-search:focus{border-color:var(--flint-primary-color);box-shadow:0 0 0 3px var(--flint-primary-focus-ring)}.list-search:disabled{opacity:.5;cursor:not-allowed}.list-box{width:var(--flint-transfer-list-width);height:var(--flint-transfer-list-height);background:var(--flint-surface-1);border:1.5px solid var(--flint-border-color);border-radius:var(--flint-border-radius-lg);box-shadow:var(--flint-shadow-sm);flex-direction:column;display:flex;overflow-y:auto}.list-item{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:10px 12px;transition:background-color .2s;display:flex}:host([disabled]) .list-item{cursor:not-allowed}.list-item:hover{background-color:var(--flint-hover-color)}.list-item.selected{background-color:var(--flint-primary-color-light)}.checkbox{border:2px solid var(--flint-border-color);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;transition:all .2s;display:flex}.list-item.selected .checkbox{background-color:var(--flint-primary-color);border-color:var(--flint-primary-color)}.check-icon{color:var(--flint-text-color-on-primary);opacity:0;transition:all .2s;transform:scale(.5)}.list-item.selected .check-icon{opacity:1;transform:scale(1)}.item-label{font-size:.9375rem}.actions{flex-direction:column;gap:12px;padding-top:32px;display:flex}.action-button{border:1.5px solid var(--flint-border-color);background:var(--flint-surface-1);cursor:pointer;width:40px;height:40px;color:var(--flint-text-color);border-radius:8px;justify-content:center;align-items:center;transition:all .2s;display:flex}.action-button:hover:not(:disabled){border-color:var(--flint-primary-color);color:var(--flint-primary-color);box-shadow:var(--flint-shadow-md);transform:translateY(-1px)}.action-button:active:not(:disabled){transform:translateY(0)}.action-button:disabled{opacity:.4;cursor:not-allowed;background-color:var(--flint-surface-2)}.list-box::-webkit-scrollbar{width:6px}.list-box::-webkit-scrollbar-track{background:0 0}.list-box::-webkit-scrollbar-thumb{background:var(--flint-border-color);border-radius:3px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", u = class extends t {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.options = [], this.value = [], this.defaultValue = [], this.leftTitle = "Options", this.rightTitle = "Selected", this.disabled = !1, this.searchable = !1, this.leftChecked = [], this.rightChecked = [], this._leftSearch = "", this._rightSearch = "", this._firstUpdate = !0;
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = r(l);
|
|
13
|
+
}
|
|
14
|
+
willUpdate(e) {
|
|
15
|
+
this._firstUpdate && (this._firstUpdate = !1, this.defaultValue.length > 0 && this.value.length === 0 && (this.value = [...this.defaultValue]));
|
|
16
|
+
}
|
|
17
|
+
_toggleChecked(e, t) {
|
|
18
|
+
this.disabled || (t === "left" ? this.leftChecked.indexOf(e) > -1 ? this.leftChecked = this.leftChecked.filter((t) => t !== e) : this.leftChecked = [...this.leftChecked, e] : this.rightChecked.indexOf(e) > -1 ? this.rightChecked = this.rightChecked.filter((t) => t !== e) : this.rightChecked = [...this.rightChecked, e]);
|
|
19
|
+
}
|
|
20
|
+
_handleItemKeydown(e, t, n) {
|
|
21
|
+
(e.key === " " || e.key === "Enter") && (e.preventDefault(), this._toggleChecked(t, n));
|
|
22
|
+
}
|
|
23
|
+
_moveRight() {
|
|
24
|
+
this.disabled || (this.value = [...this.value, ...this.leftChecked], this.leftChecked = [], this._dispatchChange());
|
|
25
|
+
}
|
|
26
|
+
_moveLeft() {
|
|
27
|
+
this.disabled || (this.value = this.value.filter((e) => !this.rightChecked.includes(e)), this.rightChecked = [], this._dispatchChange());
|
|
28
|
+
}
|
|
29
|
+
_moveAllRight() {
|
|
30
|
+
this.disabled || (this.value = this.options.map((e) => e.value), this.leftChecked = [], this.rightChecked = [], this._dispatchChange());
|
|
31
|
+
}
|
|
32
|
+
_moveAllLeft() {
|
|
33
|
+
this.disabled || (this.value = [], this.leftChecked = [], this.rightChecked = [], this._dispatchChange());
|
|
34
|
+
}
|
|
35
|
+
_dispatchChange() {
|
|
36
|
+
this.dispatchEvent(new CustomEvent("change", {
|
|
37
|
+
detail: { value: this.value },
|
|
38
|
+
bubbles: !0,
|
|
39
|
+
composed: !0
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
render() {
|
|
43
|
+
let e = this.options.filter((e) => !this.value.includes(e.value)), t = this.options.filter((e) => this.value.includes(e.value)), r = this.searchable ? e.filter((e) => e.label.toLowerCase().includes(this._leftSearch.toLowerCase())) : e, i = this.searchable ? t.filter((e) => e.label.toLowerCase().includes(this._rightSearch.toLowerCase())) : t;
|
|
44
|
+
return n`
|
|
45
|
+
<div class="container">
|
|
46
|
+
<!-- Left List -->
|
|
47
|
+
<div class="list-wrapper">
|
|
48
|
+
<div class="list-header">
|
|
49
|
+
<span class="list-title">${this.leftTitle}</span>
|
|
50
|
+
<span class="list-count">${e.length}</span>
|
|
51
|
+
</div>
|
|
52
|
+
${this.searchable ? n`
|
|
53
|
+
<input
|
|
54
|
+
class="list-search"
|
|
55
|
+
type="text"
|
|
56
|
+
placeholder="Search..."
|
|
57
|
+
.value=${this._leftSearch}
|
|
58
|
+
@input=${(e) => {
|
|
59
|
+
this._leftSearch = e.target.value;
|
|
60
|
+
}}
|
|
61
|
+
?disabled=${this.disabled}
|
|
62
|
+
/>
|
|
63
|
+
` : ""}
|
|
64
|
+
<div class="list-box" role="listbox" aria-label="${this.leftTitle}" aria-multiselectable="true">
|
|
65
|
+
${c(r, (e) => e.value, (e) => n`
|
|
66
|
+
<div
|
|
67
|
+
class="list-item ${s({ selected: this.leftChecked.includes(e.value) })}"
|
|
68
|
+
role="option"
|
|
69
|
+
tabindex="0"
|
|
70
|
+
aria-selected=${this.leftChecked.includes(e.value) ? "true" : "false"}
|
|
71
|
+
@click=${() => this._toggleChecked(e.value, "left")}
|
|
72
|
+
@keydown=${(t) => this._handleItemKeydown(t, e.value, "left")}
|
|
73
|
+
>
|
|
74
|
+
<div class="checkbox">
|
|
75
|
+
<svg class="check-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4">
|
|
76
|
+
<path d="M20 6L9 17l-5-5"/>
|
|
77
|
+
</svg>
|
|
78
|
+
</div>
|
|
79
|
+
<span class="item-label">${e.label}</span>
|
|
80
|
+
</div>
|
|
81
|
+
`)}
|
|
82
|
+
</div>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<!-- Action Buttons -->
|
|
86
|
+
<div class="actions">
|
|
87
|
+
<button class="action-button" title="Move all right" aria-label="Move all right"
|
|
88
|
+
?disabled=${this.disabled || e.length === 0} @click=${this._moveAllRight}>
|
|
89
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
90
|
+
<path d="M13 17l5-5-5-5M6 17l5-5-5-5"/>
|
|
91
|
+
</svg>
|
|
92
|
+
</button>
|
|
93
|
+
<button
|
|
94
|
+
class="action-button"
|
|
95
|
+
title="Move selected right"
|
|
96
|
+
aria-label="Move selected right"
|
|
97
|
+
?disabled=${this.disabled || this.leftChecked.length === 0}
|
|
98
|
+
@click=${this._moveRight}
|
|
99
|
+
>
|
|
100
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
101
|
+
<path d="M9 18l6-6-6-6"/>
|
|
102
|
+
</svg>
|
|
103
|
+
</button>
|
|
104
|
+
<button
|
|
105
|
+
class="action-button"
|
|
106
|
+
title="Move selected left"
|
|
107
|
+
aria-label="Move selected left"
|
|
108
|
+
?disabled=${this.disabled || this.rightChecked.length === 0}
|
|
109
|
+
@click=${this._moveLeft}
|
|
110
|
+
>
|
|
111
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
112
|
+
<path d="M15 18l-6-6 6-6"/>
|
|
113
|
+
</svg>
|
|
114
|
+
</button>
|
|
115
|
+
<button class="action-button" title="Move all left" aria-label="Move all left"
|
|
116
|
+
?disabled=${this.disabled || t.length === 0} @click=${this._moveAllLeft}>
|
|
117
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
118
|
+
<path d="M11 17l-5-5 5-5M18 17l-5-5 5-5"/>
|
|
119
|
+
</svg>
|
|
120
|
+
</button>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
<!-- Right List -->
|
|
124
|
+
<div class="list-wrapper">
|
|
125
|
+
<div class="list-header">
|
|
126
|
+
<span class="list-title">${this.rightTitle}</span>
|
|
127
|
+
<span class="list-count">${t.length}</span>
|
|
128
|
+
</div>
|
|
129
|
+
${this.searchable ? n`
|
|
130
|
+
<input
|
|
131
|
+
class="list-search"
|
|
132
|
+
type="text"
|
|
133
|
+
placeholder="Search..."
|
|
134
|
+
.value=${this._rightSearch}
|
|
135
|
+
@input=${(e) => {
|
|
136
|
+
this._rightSearch = e.target.value;
|
|
137
|
+
}}
|
|
138
|
+
?disabled=${this.disabled}
|
|
139
|
+
/>
|
|
140
|
+
` : ""}
|
|
141
|
+
<div class="list-box" role="listbox" aria-label="${this.rightTitle}" aria-multiselectable="true">
|
|
142
|
+
${c(i, (e) => e.value, (e) => n`
|
|
143
|
+
<div
|
|
144
|
+
class="list-item ${s({ selected: this.rightChecked.includes(e.value) })}"
|
|
145
|
+
role="option"
|
|
146
|
+
tabindex="0"
|
|
147
|
+
aria-selected=${this.rightChecked.includes(e.value) ? "true" : "false"}
|
|
148
|
+
@click=${() => this._toggleChecked(e.value, "right")}
|
|
149
|
+
@keydown=${(t) => this._handleItemKeydown(t, e.value, "right")}
|
|
150
|
+
>
|
|
151
|
+
<div class="checkbox">
|
|
152
|
+
<svg class="check-icon" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4">
|
|
153
|
+
<path d="M20 6L9 17l-5-5"/>
|
|
154
|
+
</svg>
|
|
155
|
+
</div>
|
|
156
|
+
<span class="item-label">${e.label}</span>
|
|
157
|
+
</div>
|
|
158
|
+
`)}
|
|
159
|
+
</div>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
`;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
e([a({ type: Array })], u.prototype, "options", void 0), e([a({ type: Array })], u.prototype, "value", void 0), e([a({
|
|
166
|
+
type: Array,
|
|
167
|
+
attribute: "default-value"
|
|
168
|
+
})], u.prototype, "defaultValue", void 0), e([a({ type: String })], u.prototype, "leftTitle", void 0), e([a({ type: String })], u.prototype, "rightTitle", void 0), e([a({
|
|
169
|
+
type: Boolean,
|
|
170
|
+
reflect: !0
|
|
171
|
+
})], u.prototype, "disabled", void 0), e([a({ type: Boolean })], u.prototype, "searchable", void 0), e([o()], u.prototype, "leftChecked", void 0), e([o()], u.prototype, "rightChecked", void 0), e([o()], u.prototype, "_leftSearch", void 0), e([o()], u.prototype, "_rightSearch", void 0), u = e([i("flint-transfer-list")], u);
|
|
172
|
+
//#endregion
|
|
173
|
+
export { u as t };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o, state as s } from "lit/decorators.js";
|
|
4
|
+
import { classMap as c } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/tree-view/flint-tree-item.css?inline
|
|
6
|
+
var l = ":host{font-family:var(--flint-font-family);outline:none;display:block}:host(:focus-visible) .item-row{outline:2px solid var(--flint-primary-color);outline-offset:-2px}.item-row{border-radius:var(--flint-border-radius-sm);cursor:pointer;-webkit-user-select:none;user-select:none;min-height:36px;color:var(--flint-text-color);align-items:center;padding-right:8px;font-size:14px;transition:background-color .15s;display:flex;position:relative}:host(:not([disabled])) .item-row:hover{background-color:var(--flint-hover-color)}:host([disabled]) .item-row{opacity:.38;cursor:default}.expand-btn{cursor:pointer;width:28px;min-width:28px;height:28px;color:inherit;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:transform .2s,background-color .15s;display:flex}.expand-btn:hover{background-color:var(--flint-active-color)}.expand-btn.expanded{transform:rotate(90deg)}.expand-placeholder{width:28px;min-width:28px}.item-label{flex:1;line-height:1.5}.children-container{display:block}.children-container[hidden]{display:none!important}.item-row.is-draggable{cursor:grab}.item-row.is-draggable:active{cursor:grabbing}:host([drop-position=before]) .item-row:before{content:\"\";background-color:var(--flint-primary-color);z-index:10;border-radius:2px;height:2px;position:absolute;top:0;left:0;right:0}:host([drop-position=after]) .item-row:after{content:\"\";background-color:var(--flint-primary-color);z-index:10;border-radius:2px;height:2px;position:absolute;bottom:0;left:0;right:0}:host([drop-position=inside]) .item-row{background-color:var(--flint-primary-color-light);outline:2px solid var(--flint-primary-color);outline-offset:-2px}:host([dragging]){opacity:.4}.drag-handle{cursor:grab;width:24px;height:24px;color:var(--flint-text-color-muted);flex-shrink:0;justify-content:center;align-items:center;margin-right:4px;display:flex}.drag-handle:active{cursor:grabbing}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", u = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.itemId = "", this.label = "", this.disabled = !1, this.expanded = !1, this.hasChildren = !1, this._isDraggable = !1, this._handleOnly = !1, this.dropPosition = null, this.showDragHandle = !1, this._hasSlottedChildren = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = i(l);
|
|
12
|
+
}
|
|
13
|
+
setDraggable(e, t = !1) {
|
|
14
|
+
this._isDraggable = e, this._handleOnly = t;
|
|
15
|
+
}
|
|
16
|
+
connectedCallback() {
|
|
17
|
+
super.connectedCallback(), this.setAttribute("role", "treeitem"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "-1");
|
|
18
|
+
}
|
|
19
|
+
updated(e) {
|
|
20
|
+
super.updated(e), this._hasSlottedChildren || this.hasChildren ? this.setAttribute("aria-expanded", String(this.expanded)) : this.removeAttribute("aria-expanded"), this.setAttribute("aria-disabled", String(this.disabled));
|
|
21
|
+
}
|
|
22
|
+
_onSlotChange(e) {
|
|
23
|
+
let t = e.target.assignedElements({ flatten: !0 }).some((e) => e.tagName === "FLINT-TREE-ITEM");
|
|
24
|
+
t !== this._hasSlottedChildren && (this._hasSlottedChildren = t);
|
|
25
|
+
}
|
|
26
|
+
_toggleExpand(e) {
|
|
27
|
+
e.stopPropagation(), !this.disabled && this.dispatchEvent(new CustomEvent("flint-tree-item-toggle", {
|
|
28
|
+
detail: {
|
|
29
|
+
itemId: this.itemId,
|
|
30
|
+
expanded: !this.expanded
|
|
31
|
+
},
|
|
32
|
+
bubbles: !0,
|
|
33
|
+
composed: !0
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
_handleRowClick() {
|
|
37
|
+
this.disabled || this.dispatchEvent(new CustomEvent("flint-tree-item-click", {
|
|
38
|
+
detail: { itemId: this.itemId },
|
|
39
|
+
bubbles: !0,
|
|
40
|
+
composed: !0
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
get _level() {
|
|
44
|
+
let e = 0, t = this.parentElement;
|
|
45
|
+
for (; t;) {
|
|
46
|
+
if (t.tagName === "FLINT-TREE-ITEM") e++;
|
|
47
|
+
else if (t.tagName === "FLINT-SIMPLE-TREE-VIEW") break;
|
|
48
|
+
t = t.parentElement;
|
|
49
|
+
}
|
|
50
|
+
return e;
|
|
51
|
+
}
|
|
52
|
+
render() {
|
|
53
|
+
let e = this._level * 24 + 8, t = this._hasSlottedChildren || this.hasChildren;
|
|
54
|
+
return n`
|
|
55
|
+
<div
|
|
56
|
+
class=${c({
|
|
57
|
+
"item-row": !0,
|
|
58
|
+
"is-draggable": this._isDraggable && !this._handleOnly
|
|
59
|
+
})}
|
|
60
|
+
style="padding-left: ${e}px"
|
|
61
|
+
draggable=${this._isDraggable && !this._handleOnly ? "true" : "false"}
|
|
62
|
+
@click=${this._handleRowClick}
|
|
63
|
+
>
|
|
64
|
+
${this.showDragHandle ? n`
|
|
65
|
+
<div
|
|
66
|
+
class="drag-handle"
|
|
67
|
+
data-drag-handle="true"
|
|
68
|
+
draggable=${this._handleOnly ? "true" : "false"}
|
|
69
|
+
>
|
|
70
|
+
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
71
|
+
<circle cx="9" cy="5" r="1" fill="currentColor"/>
|
|
72
|
+
<circle cx="9" cy="12" r="1" fill="currentColor"/>
|
|
73
|
+
<circle cx="9" cy="19" r="1" fill="currentColor"/>
|
|
74
|
+
<circle cx="15" cy="5" r="1" fill="currentColor"/>
|
|
75
|
+
<circle cx="15" cy="12" r="1" fill="currentColor"/>
|
|
76
|
+
<circle cx="15" cy="19" r="1" fill="currentColor"/>
|
|
77
|
+
</svg>
|
|
78
|
+
</div>
|
|
79
|
+
` : r}
|
|
80
|
+
|
|
81
|
+
${t ? n`
|
|
82
|
+
<button
|
|
83
|
+
class=${c({
|
|
84
|
+
"expand-btn": !0,
|
|
85
|
+
expanded: this.expanded
|
|
86
|
+
})}
|
|
87
|
+
tabindex="-1"
|
|
88
|
+
aria-hidden="true"
|
|
89
|
+
@click=${this._toggleExpand}
|
|
90
|
+
>
|
|
91
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" aria-hidden="true">
|
|
92
|
+
<path d="M3 1.5L7 5 3 8.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
93
|
+
</svg>
|
|
94
|
+
</button>
|
|
95
|
+
` : n`<span class="expand-placeholder"></span>`}
|
|
96
|
+
|
|
97
|
+
<span class="item-label">${this.label}</span>
|
|
98
|
+
${this.label ? r : n`<slot name="label"></slot>`}
|
|
99
|
+
</div>
|
|
100
|
+
|
|
101
|
+
<div class="children-container" ?hidden=${!this.expanded} role="group">
|
|
102
|
+
<slot @slotchange=${this._onSlotChange}></slot>
|
|
103
|
+
</div>
|
|
104
|
+
`;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
e([o({
|
|
108
|
+
type: String,
|
|
109
|
+
attribute: "item-id",
|
|
110
|
+
reflect: !0
|
|
111
|
+
})], u.prototype, "itemId", void 0), e([o({ type: String })], u.prototype, "label", void 0), e([o({
|
|
112
|
+
type: Boolean,
|
|
113
|
+
reflect: !0
|
|
114
|
+
})], u.prototype, "disabled", void 0), e([o({
|
|
115
|
+
type: Boolean,
|
|
116
|
+
reflect: !0
|
|
117
|
+
})], u.prototype, "expanded", void 0), e([o({
|
|
118
|
+
type: Boolean,
|
|
119
|
+
attribute: "has-children",
|
|
120
|
+
reflect: !0
|
|
121
|
+
})], u.prototype, "hasChildren", void 0), e([s()], u.prototype, "_isDraggable", void 0), e([s()], u.prototype, "_handleOnly", void 0), e([o({
|
|
122
|
+
type: String,
|
|
123
|
+
attribute: "drop-position",
|
|
124
|
+
reflect: !0
|
|
125
|
+
})], u.prototype, "dropPosition", void 0), e([o({
|
|
126
|
+
type: Boolean,
|
|
127
|
+
attribute: "show-drag-handle"
|
|
128
|
+
})], u.prototype, "showDragHandle", void 0), e([s()], u.prototype, "_hasSlottedChildren", void 0), u = e([a("flint-tree-item")], u);
|
|
129
|
+
//#endregion
|
|
130
|
+
export { u as t };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, unsafeCSS as n } from "lit";
|
|
3
|
+
import { customElement as r, property as i } from "lit/decorators.js";
|
|
4
|
+
import { html as a, literal as o } from "lit/static-html.js";
|
|
5
|
+
//#region src/typography/flint-typography.css?inline
|
|
6
|
+
var s = ":host{font-family:var(--flint-font-family);color:var(--flint-text-color);display:block}.typography{margin:0;padding:0}.h1{letter-spacing:-1.5px;font-size:6rem;font-weight:300;line-height:1.167}.h2{letter-spacing:-.5px;font-size:3.75rem;font-weight:300;line-height:1.2}.h3{font-size:3rem;font-weight:400;line-height:1.167}.h4{letter-spacing:.25px;font-size:2.125rem;font-weight:400;line-height:1.235}.h5{font-size:1.5rem;font-weight:400;line-height:1.334}.h6{letter-spacing:.15px;font-size:1.25rem;font-weight:500;line-height:1.6}.subtitle1{letter-spacing:.15px;font-size:1rem;font-weight:400;line-height:1.75}.subtitle2{letter-spacing:.1px;font-size:.875rem;font-weight:500;line-height:1.57}.body1{letter-spacing:.15px;font-size:1rem;font-weight:400;line-height:1.5}.body2{letter-spacing:.15px;font-size:.875rem;font-weight:400;line-height:1.43}.caption{letter-spacing:.4px;font-size:.75rem;font-weight:400;line-height:1.66}.overline{letter-spacing:1px;text-transform:uppercase;font-size:.75rem;font-weight:400;line-height:2.66}:host([color=primary]) .typography{color:var(--flint-primary-color)}:host([color=secondary]) .typography{color:var(--flint-secondary-color)}:host([color=success]) .typography{color:var(--flint-success-color)}:host([color=error]) .typography{color:var(--flint-error-color)}:host([color=warning]) .typography{color:var(--flint-warning-color)}:host([color=info]) .typography{color:var(--flint-info-icon-color)}:host([color=textPrimary]) .typography{color:var(--flint-text-color)}:host([color=textSecondary]) .typography{color:var(--flint-text-color-muted)}:host([color=inherit]) .typography{color:inherit}:host([align=left]) .typography{text-align:left}:host([align=center]) .typography{text-align:center}:host([align=right]) .typography{text-align:right}:host([align=justify]) .typography{text-align:justify}:host([noWrap]) .typography{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host([gutterBottom]) .typography{margin-bottom:.35em}:host([paragraph]) .typography{margin-bottom:16px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.variant = "body1", this.color = "textPrimary", this.align = "left", this.noWrap = !1, this.gutterBottom = !1, this.paragraph = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = n(s);
|
|
12
|
+
}
|
|
13
|
+
_literalTag() {
|
|
14
|
+
let e = this.component;
|
|
15
|
+
return e ? {
|
|
16
|
+
h1: o`h1`,
|
|
17
|
+
h2: o`h2`,
|
|
18
|
+
h3: o`h3`,
|
|
19
|
+
h4: o`h4`,
|
|
20
|
+
h5: o`h5`,
|
|
21
|
+
h6: o`h6`,
|
|
22
|
+
p: o`p`,
|
|
23
|
+
span: o`span`,
|
|
24
|
+
div: o`div`
|
|
25
|
+
}[e] ?? o`p` : {
|
|
26
|
+
h1: o`h1`,
|
|
27
|
+
h2: o`h2`,
|
|
28
|
+
h3: o`h3`,
|
|
29
|
+
h4: o`h4`,
|
|
30
|
+
h5: o`h5`,
|
|
31
|
+
h6: o`h6`,
|
|
32
|
+
subtitle1: o`h6`,
|
|
33
|
+
subtitle2: o`h6`,
|
|
34
|
+
body1: o`p`,
|
|
35
|
+
body2: o`p`,
|
|
36
|
+
caption: o`span`,
|
|
37
|
+
overline: o`span`,
|
|
38
|
+
inherit: o`p`
|
|
39
|
+
}[this.variant] ?? o`p`;
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
let e = this._literalTag();
|
|
43
|
+
return a`<${e} class="${`typography ${this.variant === "inherit" ? "" : this.variant}`}"><slot></slot></${e}>`;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
e([i({
|
|
47
|
+
type: String,
|
|
48
|
+
reflect: !0
|
|
49
|
+
})], c.prototype, "variant", void 0), e([i({
|
|
50
|
+
type: String,
|
|
51
|
+
reflect: !0
|
|
52
|
+
})], c.prototype, "color", void 0), e([i({ type: String })], c.prototype, "component", void 0), e([i({
|
|
53
|
+
type: String,
|
|
54
|
+
reflect: !0
|
|
55
|
+
})], c.prototype, "align", void 0), e([i({
|
|
56
|
+
type: Boolean,
|
|
57
|
+
reflect: !0
|
|
58
|
+
})], c.prototype, "noWrap", void 0), e([i({
|
|
59
|
+
type: Boolean,
|
|
60
|
+
reflect: !0
|
|
61
|
+
})], c.prototype, "gutterBottom", void 0), e([i({
|
|
62
|
+
type: Boolean,
|
|
63
|
+
reflect: !0
|
|
64
|
+
})], c.prototype, "paragraph", void 0), c = e([r("flint-typography")], c);
|
|
65
|
+
//#endregion
|
|
66
|
+
export { c as t };
|