@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,9 @@
|
|
|
1
|
+
//#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
|
|
2
|
+
function e(e, t, n, r) {
|
|
3
|
+
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
4
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
|
5
|
+
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
6
|
+
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as t };
|
|
@@ -0,0 +1,104 @@
|
|
|
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/accordion/flint-accordion.css?inline
|
|
5
|
+
var o = ":host{border-top:1px solid var(--flint-border-color);background-color:var(--flint-surface-1);color:var(--flint-text-color);transition:margin .15s cubic-bezier(.4,0,.2,1);display:block}:host(:first-of-type){border-top-left-radius:var(--flint-border-radius-md);border-top-right-radius:var(--flint-border-radius-md);border-top:none}:host(:last-of-type){border-bottom-left-radius:var(--flint-border-radius-md);border-bottom-right-radius:var(--flint-border-radius-md)}:host([expanded]){box-shadow:var(--flint-shadow-md);border-top:none;margin:16px 0}:host([expanded]:first-of-type){margin-top:0}:host([expanded]:last-of-type){margin-bottom:0}.accordion-container{flex-direction:column;display:flex}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", s = ":host{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;min-height:48px;padding:0 16px;transition:min-height .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1);display:flex}:host(:focus-visible){outline:2px solid var(--flint-primary-color);outline-offset:-2px}:host(:hover){background-color:var(--flint-hover-color)}:host([expanded]){min-height:64px}:host([disabled]){cursor:default;opacity:.5;pointer-events:none}.content{font-family:var(--flint-font-family);flex-grow:1;margin:12px 0;font-weight:500;display:flex}.expand-icon{color:var(--flint-text-color-muted);border-radius:50%;padding:8px;transition:transform .15s cubic-bezier(.4,0,.2,1);display:flex}:host([expanded]) .expand-icon{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = ":host{grid-template-rows:0fr;transition:grid-template-rows .15s cubic-bezier(.4,0,.2,1);display:grid;overflow:hidden}:host([expanded]){grid-template-rows:1fr}.details-inner{min-height:0}.content{font-family:var(--flint-font-family);color:var(--flint-text-color);padding:8px 16px 16px;font-size:.875rem}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = ":host{border-top:1px solid var(--flint-border-color);justify-content:flex-end;gap:8px;padding:8px 16px 16px;display:none}:host([expanded]){display:flex}", u = 0, d = class extends t {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = r(o);
|
|
8
|
+
}
|
|
9
|
+
updated(e) {
|
|
10
|
+
(e.has("expanded") || e.has("disabled")) && this.querySelectorAll("flint-accordion-summary, flint-accordion-details, flint-accordion-actions").forEach((e) => {
|
|
11
|
+
this.expanded ? e.setAttribute("expanded", "") : e.removeAttribute("expanded"), this.disabled ? e.setAttribute("disabled", "") : e.removeAttribute("disabled");
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
constructor() {
|
|
15
|
+
super(), this.expanded = !1, this.disabled = !1, this._uid = `flint-accordion-${++u}`, this._handleToggle = () => {
|
|
16
|
+
this.disabled || (this.expanded = !this.expanded, this.dispatchEvent(new CustomEvent("flint-accordion-change", {
|
|
17
|
+
detail: { expanded: this.expanded },
|
|
18
|
+
bubbles: !0,
|
|
19
|
+
composed: !0
|
|
20
|
+
})));
|
|
21
|
+
}, this.addEventListener("flint-accordion-toggle", this._handleToggle);
|
|
22
|
+
}
|
|
23
|
+
disconnectedCallback() {
|
|
24
|
+
super.disconnectedCallback(), this.removeEventListener("flint-accordion-toggle", this._handleToggle);
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return n`
|
|
28
|
+
<div class="accordion-container" role="region" aria-labelledby=${this._uid + "-summary"}>
|
|
29
|
+
<slot></slot>
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
e([a({
|
|
35
|
+
type: Boolean,
|
|
36
|
+
reflect: !0
|
|
37
|
+
})], d.prototype, "expanded", void 0), e([a({
|
|
38
|
+
type: Boolean,
|
|
39
|
+
reflect: !0
|
|
40
|
+
})], d.prototype, "disabled", void 0), d = e([i("flint-accordion")], d);
|
|
41
|
+
var f = class extends t {
|
|
42
|
+
static {
|
|
43
|
+
this.styles = r(s);
|
|
44
|
+
}
|
|
45
|
+
constructor() {
|
|
46
|
+
super(), this._handleActivate = () => {
|
|
47
|
+
this.dispatchEvent(new CustomEvent("flint-accordion-toggle", {
|
|
48
|
+
bubbles: !0,
|
|
49
|
+
composed: !0
|
|
50
|
+
}));
|
|
51
|
+
}, this._handleKeyDown = (e) => {
|
|
52
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._handleActivate());
|
|
53
|
+
}, this.addEventListener("click", this._handleActivate), this.addEventListener("keydown", this._handleKeyDown);
|
|
54
|
+
}
|
|
55
|
+
disconnectedCallback() {
|
|
56
|
+
super.disconnectedCallback(), this.removeEventListener("click", this._handleActivate), this.removeEventListener("keydown", this._handleKeyDown);
|
|
57
|
+
}
|
|
58
|
+
connectedCallback() {
|
|
59
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "button"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0");
|
|
60
|
+
let e = this.closest("flint-accordion");
|
|
61
|
+
e && !this.hasAttribute("id") && this.setAttribute("id", e._uid + "-summary");
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return n`
|
|
65
|
+
<div class="content">
|
|
66
|
+
<slot></slot>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="expand-icon">
|
|
69
|
+
<slot name="expandIcon">
|
|
70
|
+
<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
71
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
72
|
+
</svg>
|
|
73
|
+
</slot>
|
|
74
|
+
</div>
|
|
75
|
+
`;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
f = e([i("flint-accordion-summary")], f);
|
|
79
|
+
var p = class extends t {
|
|
80
|
+
static {
|
|
81
|
+
this.styles = r(c);
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
return n`
|
|
85
|
+
<div class="details-inner">
|
|
86
|
+
<div class="content">
|
|
87
|
+
<slot></slot>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
`;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
p = e([i("flint-accordion-details")], p);
|
|
94
|
+
var m = class extends t {
|
|
95
|
+
static {
|
|
96
|
+
this.styles = r(l);
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return n`<slot></slot>`;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
m = e([i("flint-accordion-actions")], m);
|
|
103
|
+
//#endregion
|
|
104
|
+
export { f as i, m as n, p as r, d as t };
|
|
@@ -0,0 +1,59 @@
|
|
|
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/alert/flint-alert.css?inline
|
|
6
|
+
var s = ":host{width:100%;font-family:var(--flint-font-family);margin-bottom:1rem;display:block}.alert{border-radius:var(--flint-border-radius-md);box-sizing:border-box;border:1px solid #0000;align-items:flex-start;gap:12px;padding:12px 16px;animation:.3s ease-out fadeIn;display:flex;position:relative}@keyframes fadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.info{background-color:var(--flint-info-bg);border-color:var(--flint-info-border-color);color:var(--flint-info-text-color)}.info .icon{color:var(--flint-info-icon-color)}.success{background-color:var(--flint-success-bg);border-color:var(--flint-success-border-color);color:var(--flint-success-text-color)}.success .icon{color:var(--flint-success-icon-color)}.warning{background-color:var(--flint-warning-bg);border-color:var(--flint-warning-border-color);color:var(--flint-warning-text-color)}.warning .icon{color:var(--flint-warning-icon-color)}.error{background-color:var(--flint-error-bg);border-color:var(--flint-error-border-color);color:var(--flint-error-text-color)}.error .icon{color:var(--flint-error-icon-color)}.icon{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:20px;margin-top:2px;display:flex}.content{flex-grow:1}.title{margin-bottom:2px;font-size:.875rem;font-weight:600}.message{font-size:.875rem;line-height:1.5}.close-button{cursor:pointer;color:currentColor;opacity:.6;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin-top:-6px;margin-right:-10px;padding:6px;transition:all .2s;display:flex}.close-button:hover{opacity:1;background-color:var(--flint-active-color)}.close-button:active{transform:scale(.92)}.icon svg,.close-button svg{width:100%;height:100%}@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.severity = "info", this.title = "", this.dismissible = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
disconnectedCallback() {
|
|
14
|
+
super.disconnectedCallback(), clearTimeout(this._closeTimer);
|
|
15
|
+
}
|
|
16
|
+
_handleClose() {
|
|
17
|
+
this.dispatchEvent(new CustomEvent("flint-alert-close", {
|
|
18
|
+
bubbles: !0,
|
|
19
|
+
composed: !0,
|
|
20
|
+
detail: { severity: this.severity }
|
|
21
|
+
})), this.style.opacity = "0", this.style.transform = "translateY(-4px)", this.style.transition = "opacity 0.2s ease, transform 0.2s ease", this._closeTimer = setTimeout(() => {
|
|
22
|
+
this.remove();
|
|
23
|
+
}, 200);
|
|
24
|
+
}
|
|
25
|
+
_getIcon() {
|
|
26
|
+
switch (this.severity) {
|
|
27
|
+
case "success": return n`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>`;
|
|
28
|
+
case "warning": return n`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>`;
|
|
29
|
+
case "error": return n`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line></svg>`;
|
|
30
|
+
default: return n`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return n`
|
|
35
|
+
<div class="alert ${o({ [this.severity]: !0 })}" role="alert">
|
|
36
|
+
<div class="icon">
|
|
37
|
+
<slot name="icon">${this._getIcon()}</slot>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="content">
|
|
40
|
+
${this.title ? n`<div class="title">${this.title}</div>` : ""}
|
|
41
|
+
<div class="message">
|
|
42
|
+
<slot></slot>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
${this.dismissible ? n`
|
|
46
|
+
<button class="close-button" @click=${this._handleClose} aria-label="Close">
|
|
47
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" style="width: 16px; height: 16px;">
|
|
48
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
49
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
50
|
+
</svg>
|
|
51
|
+
</button>
|
|
52
|
+
` : ""}
|
|
53
|
+
</div>
|
|
54
|
+
`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
e([a({ type: String })], c.prototype, "severity", void 0), e([a({ type: String })], c.prototype, "title", void 0), e([a({ type: Boolean })], c.prototype, "dismissible", void 0), c = e([i("flint-alert")], c);
|
|
58
|
+
//#endregion
|
|
59
|
+
export { c as t };
|
|
@@ -0,0 +1,39 @@
|
|
|
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/app-bar/flint-app-bar.css?inline
|
|
6
|
+
var s = ":host{--flint-app-bar-height:64px;--flint-app-bar-bg:var(--flint-primary-color);--flint-app-bar-color:var(--flint-text-color-on-primary);--flint-app-bar-shadow:var(--flint-shadow-md);z-index:1100;display:block;position:relative}:host([position=fixed]){position:fixed;top:0;left:0;right:0}:host([position=absolute]){position:absolute;top:0;left:0;right:0}:host([position=sticky]){position:sticky;top:0}header{box-sizing:border-box;width:100%;height:var(--flint-app-bar-height);background-color:var(--flint-app-bar-bg);color:var(--flint-app-bar-color);box-shadow:var(--flint-app-bar-shadow);align-items:center;padding:0 16px;display:flex;position:relative}header.variant-outlined{background-color:var(--flint-surface-1);color:var(--flint-text-color);border-bottom:1px solid var(--flint-border-color);box-shadow:none}.title{min-width:0;font-family:var(--flint-font-family);white-space:nowrap;text-overflow:ellipsis;flex-grow:1;margin:0 16px;font-size:1.25rem;font-weight:500;overflow:hidden}.left-section,.right-section{flex-shrink:0;align-items:center;gap:8px;display:flex}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.title = "", this.position = "static", this.variant = "regular";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return n`
|
|
15
|
+
<header class="${o({ "variant-outlined": this.variant === "outlined" })}">
|
|
16
|
+
<div class="left-section">
|
|
17
|
+
<slot name="navigation"></slot>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div class="title">
|
|
21
|
+
${this.title}<slot name="title"></slot>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div class="right-section">
|
|
25
|
+
<slot name="actions"></slot>
|
|
26
|
+
</div>
|
|
27
|
+
</header>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
e([a({ type: String })], c.prototype, "title", void 0), e([a({
|
|
32
|
+
type: String,
|
|
33
|
+
reflect: !0
|
|
34
|
+
})], c.prototype, "position", void 0), e([a({
|
|
35
|
+
type: String,
|
|
36
|
+
reflect: !0
|
|
37
|
+
})], c.prototype, "variant", void 0), c = e([i("flint-app-bar")], c);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { c as t };
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
//#region src/autocomplete/flint-autocomplete.css?inline
|
|
6
|
+
var c = ":host{font-family:var(--flint-font-family);width:100%;display:inline-block;position:relative}.input-wrapper{position:relative}input{border:1px solid var(--flint-input-border-color);border-radius:var(--flint-input-border-radius);box-sizing:border-box;width:100%;color:var(--flint-text-color);background:var(--flint-input-bg);outline:none;padding:8px 12px;font-family:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s}input:focus{border-color:var(--flint-primary-color);box-shadow:0 0 0 1px var(--flint-primary-color)}input:disabled{background-color:var(--flint-input-disabled-bg);color:var(--flint-text-color-subtle);cursor:not-allowed}.dropdown{max-height:var(--flint-autocomplete-dropdown-max-height,250px);background:var(--flint-surface-1);border:1px solid var(--flint-input-border-color);border-radius:var(--flint-input-border-radius);z-index:var(--flint-autocomplete-z-index,10);margin-top:4px;display:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.dropdown.open{display:block}.option{padding:var(--flint-autocomplete-option-padding,10px 12px);cursor:pointer;color:var(--flint-text-color);font-size:14px;transition:background-color .15s}.option:hover,.option.active{background-color:var(--flint-hover-color)}.no-options{padding:var(--flint-autocomplete-option-padding,10px 12px);color:var(--flint-text-color-muted);font-size:14px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.options = [], this.freeSolo = !1, this.disabled = !1, this.value = "", this.placeholder = "", this._isOpen = !1, this._inputValue = "", this._filteredOptions = [], this._activeIndex = -1, this._handleOutsideClick = (e) => {
|
|
9
|
+
if (!this.contains(e.target) && (this._isOpen = !1, this._activeIndex = -1, !this.freeSolo)) {
|
|
10
|
+
let e = this.options.find((e) => e.value === this.value);
|
|
11
|
+
this._inputValue = e ? e.label : "";
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
static {
|
|
16
|
+
this.styles = r(c);
|
|
17
|
+
}
|
|
18
|
+
connectedCallback() {
|
|
19
|
+
super.connectedCallback(), this._inputValue = this.value, document.addEventListener("click", this._handleOutsideClick);
|
|
20
|
+
}
|
|
21
|
+
disconnectedCallback() {
|
|
22
|
+
super.disconnectedCallback(), document.removeEventListener("click", this._handleOutsideClick);
|
|
23
|
+
}
|
|
24
|
+
willUpdate(e) {
|
|
25
|
+
if (e.has("options") && (this._filterOptions(), this._activeIndex = -1), e.has("value") && !e.has("_inputValue")) {
|
|
26
|
+
let e = this.options.find((e) => e.value === this.value);
|
|
27
|
+
e ? this._inputValue = e.label : this.freeSolo ? this._inputValue = this.value : this._inputValue = "";
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
_handleInput(e) {
|
|
31
|
+
this._inputValue = e.target.value, this._activeIndex = -1, this.freeSolo && (this.value = this._inputValue, this.dispatchEvent(new CustomEvent("flint-autocomplete-change", { detail: {
|
|
32
|
+
value: this.value,
|
|
33
|
+
label: this.value
|
|
34
|
+
} }))), this._filterOptions(), this._isOpen = !0;
|
|
35
|
+
}
|
|
36
|
+
_filterOptions() {
|
|
37
|
+
let e = this._inputValue.toLowerCase();
|
|
38
|
+
this._filteredOptions = this.options.filter((t) => t.label.toLowerCase().includes(e));
|
|
39
|
+
}
|
|
40
|
+
_handleFocus() {
|
|
41
|
+
this.disabled || (this._filterOptions(), this._isOpen = !0, this._activeIndex = -1);
|
|
42
|
+
}
|
|
43
|
+
_handleKeyDown(e) {
|
|
44
|
+
let t = this._filteredOptions.length;
|
|
45
|
+
if (!this._isOpen) {
|
|
46
|
+
(e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), this._filterOptions(), this._isOpen = !0, this._activeIndex = e.key === "ArrowDown" ? 0 : t - 1);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
switch (e.key) {
|
|
50
|
+
case "ArrowDown":
|
|
51
|
+
e.preventDefault(), this._activeIndex = Math.min(this._activeIndex + 1, t - 1), this._scrollActiveIntoView();
|
|
52
|
+
break;
|
|
53
|
+
case "ArrowUp":
|
|
54
|
+
e.preventDefault(), this._activeIndex = Math.max(this._activeIndex - 1, -1), this._scrollActiveIntoView();
|
|
55
|
+
break;
|
|
56
|
+
case "Enter":
|
|
57
|
+
this._activeIndex >= 0 && this._filteredOptions[this._activeIndex] && (e.preventDefault(), this._selectOption(this._filteredOptions[this._activeIndex]));
|
|
58
|
+
break;
|
|
59
|
+
case "Escape":
|
|
60
|
+
if (e.preventDefault(), this._isOpen = !1, this._activeIndex = -1, !this.freeSolo) {
|
|
61
|
+
let e = this.options.find((e) => e.value === this.value);
|
|
62
|
+
this._inputValue = e ? e.label : "";
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
case "Tab":
|
|
66
|
+
this._isOpen = !1, this._activeIndex = -1;
|
|
67
|
+
break;
|
|
68
|
+
default: break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
_scrollActiveIntoView() {
|
|
72
|
+
this.updateComplete.then(() => {
|
|
73
|
+
if (this._activeIndex < 0) return;
|
|
74
|
+
let e = this.shadowRoot?.querySelectorAll(".option")?.[this._activeIndex];
|
|
75
|
+
e && typeof e.scrollIntoView == "function" && e.scrollIntoView({ block: "nearest" });
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
_selectOption(e) {
|
|
79
|
+
this.value = e.value, this._inputValue = e.label, this._isOpen = !1, this._activeIndex = -1, this.dispatchEvent(new CustomEvent("flint-autocomplete-change", { detail: {
|
|
80
|
+
value: e.value,
|
|
81
|
+
label: e.label
|
|
82
|
+
} }));
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
let e = this._isOpen && (this._filteredOptions.length > 0 || !this.freeSolo);
|
|
86
|
+
return n`
|
|
87
|
+
<div class="input-wrapper">
|
|
88
|
+
<input
|
|
89
|
+
type="text"
|
|
90
|
+
role="combobox"
|
|
91
|
+
aria-expanded=${e ? "true" : "false"}
|
|
92
|
+
aria-autocomplete="list"
|
|
93
|
+
aria-haspopup="listbox"
|
|
94
|
+
aria-activedescendant=${this._activeIndex >= 0 ? `option-${this._activeIndex}` : ""}
|
|
95
|
+
.value=${this._inputValue}
|
|
96
|
+
placeholder=${this.placeholder}
|
|
97
|
+
?disabled=${this.disabled}
|
|
98
|
+
@input=${this._handleInput}
|
|
99
|
+
@focus=${this._handleFocus}
|
|
100
|
+
@keydown=${this._handleKeyDown}
|
|
101
|
+
/>
|
|
102
|
+
<div
|
|
103
|
+
role="listbox"
|
|
104
|
+
class=${s({
|
|
105
|
+
dropdown: !0,
|
|
106
|
+
open: e
|
|
107
|
+
})}
|
|
108
|
+
>
|
|
109
|
+
${this._filteredOptions.length > 0 ? this._filteredOptions.map((e, t) => n`
|
|
110
|
+
<div
|
|
111
|
+
id="option-${t}"
|
|
112
|
+
role="option"
|
|
113
|
+
aria-selected=${t === this._activeIndex ? "true" : "false"}
|
|
114
|
+
class=${s({
|
|
115
|
+
option: !0,
|
|
116
|
+
active: t === this._activeIndex
|
|
117
|
+
})}
|
|
118
|
+
@mousedown=${(e) => e.preventDefault()}
|
|
119
|
+
@click=${() => this._selectOption(e)}
|
|
120
|
+
>
|
|
121
|
+
${e.label}
|
|
122
|
+
</div>
|
|
123
|
+
`) : n`<div class="no-options">No options</div>`}
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
`;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
e([a({ type: Array })], l.prototype, "options", void 0), e([a({ type: Boolean })], l.prototype, "freeSolo", void 0), e([a({ type: Boolean })], l.prototype, "disabled", void 0), e([a({ type: String })], l.prototype, "value", void 0), e([a({ type: String })], l.prototype, "placeholder", void 0), e([o()], l.prototype, "_isOpen", void 0), e([o()], l.prototype, "_inputValue", void 0), e([o()], l.prototype, "_filteredOptions", void 0), e([o()], l.prototype, "_activeIndex", void 0), l = e([i("flint-autocomplete")], l);
|
|
130
|
+
//#endregion
|
|
131
|
+
export { l as t };
|
|
@@ -0,0 +1,40 @@
|
|
|
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/avatar/flint-avatar.css?inline
|
|
6
|
+
var l = ":host{vertical-align:middle;line-height:1;display:inline-block}.avatar{width:var(--flint-avatar-size,40px);height:var(--flint-avatar-size,40px);font-family:var(--flint-font-family);font-size:calc(var(--flint-avatar-size,40px) / 2.5);-webkit-user-select:none;user-select:none;background-color:var(--flint-avatar-bg,var(--flint-surface-3));color:var(--flint-avatar-color,var(--flint-text-color-muted));border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-weight:600;transition:all .2s;display:flex;position:relative;overflow:hidden}.avatar.square{border-radius:0}.avatar.rounded{border-radius:var(--flint-border-radius-md)}img{object-fit:cover;width:100%;height:100%;display:block}.initials{text-transform:uppercase}:host([size=small]){--flint-avatar-size:32px}:host([size=medium]){--flint-avatar-size:40px}:host([size=large]){--flint-avatar-size:56px}:host([size=xlarge]){--flint-avatar-size:80px}.avatar.loading{background:linear-gradient(90deg, var(--flint-surface-2) 25%, var(--flint-surface-3) 50%, var(--flint-surface-2) 75%);background-size:200% 100%;animation:1.5s infinite loading}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}@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.src = "", this.alt = "", this.initials = "", this.variant = "circle", this.size = "medium", this._hasError = !1, this._isLoading = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = i(l);
|
|
12
|
+
}
|
|
13
|
+
willUpdate(e) {
|
|
14
|
+
e.has("src") && (this._hasError = !1, this._isLoading = !!this.src);
|
|
15
|
+
}
|
|
16
|
+
_handleError() {
|
|
17
|
+
this._hasError = !0, this._isLoading = !1;
|
|
18
|
+
}
|
|
19
|
+
_handleLoad() {
|
|
20
|
+
this._isLoading = !1;
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return n`
|
|
24
|
+
<div class=${c({
|
|
25
|
+
avatar: !0,
|
|
26
|
+
square: this.variant === "square",
|
|
27
|
+
rounded: this.variant === "rounded",
|
|
28
|
+
loading: this._isLoading
|
|
29
|
+
})} part="base" role="img" aria-label=${this.alt || this.initials || "avatar"}>
|
|
30
|
+
${this.src && !this._hasError ? n`<img src=${this.src} alt=${this.alt} @error=${this._handleError} @load=${this._handleLoad} style=${this._isLoading ? "display:none" : r} part="image" />` : this.initials ? n`<span class="initials" part="initials">${this.initials.substring(0, 2)}</span>` : n`<slot><svg width="60%" height="60%" viewBox="0 0 24 24" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg></slot>`}
|
|
31
|
+
</div>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
e([o({ type: String })], u.prototype, "src", void 0), e([o({ type: String })], u.prototype, "alt", void 0), e([o({ type: String })], u.prototype, "initials", void 0), e([o({ type: String })], u.prototype, "variant", void 0), e([o({
|
|
36
|
+
type: String,
|
|
37
|
+
reflect: !0
|
|
38
|
+
})], u.prototype, "size", void 0), e([s()], u.prototype, "_hasError", void 0), e([s()], u.prototype, "_isLoading", void 0), u = e([a("flint-avatar")], u);
|
|
39
|
+
//#endregion
|
|
40
|
+
export { u as t };
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/backdrop/flint-backdrop.css?inline
|
|
6
|
+
var c = ":host{--flint-backdrop-color:#00000080;--flint-backdrop-z-index:1200;display:block}.backdrop{position:var(--flint-backdrop-position,fixed);background-color:var(--flint-backdrop-color);z-index:var(--flint-backdrop-z-index);-webkit-tap-highlight-color:transparent;opacity:0;visibility:hidden;justify-content:center;align-items:center;transition:opacity .3s cubic-bezier(.4,0,.2,1),visibility .3s;display:flex;inset:0}:host([container]){--flint-backdrop-position:absolute}.backdrop.open{opacity:1;visibility:visible}.backdrop.invisible{background-color:#0000}.content{z-index:calc(var(--flint-backdrop-z-index) + 1)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.open = !1, this.invisible = !1, this.container = !1, this._boundKeydown = this._handleKeydown.bind(this);
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = i(c);
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
super.connectedCallback(), document.addEventListener("keydown", this._boundKeydown);
|
|
15
|
+
}
|
|
16
|
+
disconnectedCallback() {
|
|
17
|
+
super.disconnectedCallback(), document.removeEventListener("keydown", this._boundKeydown);
|
|
18
|
+
}
|
|
19
|
+
_handleKeydown(e) {
|
|
20
|
+
e.key === "Escape" && this.open && this.dispatchEvent(new CustomEvent("flint-backdrop-close", {
|
|
21
|
+
bubbles: !0,
|
|
22
|
+
composed: !0
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
_handleClick(e) {
|
|
26
|
+
e.target === e.currentTarget && this.dispatchEvent(new CustomEvent("flint-backdrop-close", {
|
|
27
|
+
bubbles: !0,
|
|
28
|
+
composed: !0
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return n`
|
|
33
|
+
<div
|
|
34
|
+
class="${s({
|
|
35
|
+
backdrop: !0,
|
|
36
|
+
open: this.open,
|
|
37
|
+
invisible: this.invisible
|
|
38
|
+
})}"
|
|
39
|
+
@click="${this._handleClick}"
|
|
40
|
+
role="presentation"
|
|
41
|
+
aria-hidden="${this.open ? r : "true"}"
|
|
42
|
+
>
|
|
43
|
+
<div class="content">
|
|
44
|
+
<slot></slot>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
e([o({
|
|
51
|
+
type: Boolean,
|
|
52
|
+
reflect: !0
|
|
53
|
+
})], l.prototype, "open", void 0), e([o({ type: Boolean })], l.prototype, "invisible", void 0), e([o({
|
|
54
|
+
type: Boolean,
|
|
55
|
+
reflect: !0
|
|
56
|
+
})], l.prototype, "container", void 0), l = e([a("flint-backdrop")], l);
|
|
57
|
+
//#endregion
|
|
58
|
+
export { l as t };
|
|
@@ -0,0 +1,38 @@
|
|
|
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/badge/flint-badge.css?inline
|
|
6
|
+
var s = ":host{vertical-align:middle;flex-shrink:0;display:inline-flex;position:relative}.badge{box-sizing:border-box;font-family:var(--flint-font-family);z-index:1;background-color:var(--flint-badge-background,var(--flint-primary-color));min-width:20px;height:20px;color:var(--flint-badge-color,var(--flint-text-color-on-primary));transform-origin:100% 0;border:2px solid var(--flint-surface-1);border-radius:10px;flex-wrap:wrap;place-content:center;align-items:center;padding:0 6px;font-size:.75rem;font-weight:600;line-height:1;transition:transform .2s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;top:0;right:0;transform:scale(1)translate(50%,-50%)}.badge.hidden{transform:scale(0)translate(50%,-50%)}.badge.dot{border-radius:4px;min-width:8px;height:8px;padding:0}.primary{background-color:var(--flint-primary-color)}.secondary{background-color:var(--flint-secondary-color)}.error{background-color:var(--flint-error-color);color:var(--flint-text-color-on-primary)}.success{background-color:var(--flint-success-color);color:var(--flint-text-color-on-primary)}.warning{background-color:var(--flint-warning-color);color:var(--flint-text-color-on-primary)}@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.content = "", this.dot = !1, this.invisible = !1, this.variant = "primary", this.max = 99;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
get _displayContent() {
|
|
14
|
+
if (this.dot) return "";
|
|
15
|
+
let e = Number(this.content);
|
|
16
|
+
return !isNaN(e) && e > this.max ? `${this.max}+` : this.content;
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
let e = !this.invisible && (this.dot || this.content !== "");
|
|
20
|
+
return n`
|
|
21
|
+
<slot></slot>
|
|
22
|
+
<span
|
|
23
|
+
class="badge ${o({
|
|
24
|
+
hidden: !e,
|
|
25
|
+
dot: this.dot,
|
|
26
|
+
[this.variant]: !0
|
|
27
|
+
})}"
|
|
28
|
+
role="status"
|
|
29
|
+
aria-hidden="${e ? "false" : "true"}"
|
|
30
|
+
>
|
|
31
|
+
${this._displayContent}
|
|
32
|
+
</span>
|
|
33
|
+
`;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
e([a({ type: String })], c.prototype, "content", void 0), e([a({ type: Boolean })], c.prototype, "dot", void 0), e([a({ type: Boolean })], c.prototype, "invisible", void 0), e([a({ type: String })], c.prototype, "variant", void 0), e([a({ type: Number })], c.prototype, "max", void 0), c = e([i("flint-badge")], c);
|
|
37
|
+
//#endregion
|
|
38
|
+
export { c as t };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { t } from "./flint-bottom-navigation-action-CW0ZUZlF.js";
|
|
3
|
+
import { LitElement as n, html as r, unsafeCSS as i } from "lit";
|
|
4
|
+
import { customElement as a, property as o, queryAssignedElements as s } from "lit/decorators.js";
|
|
5
|
+
//#region src/bottom-navigation/flint-bottom-navigation.css?inline
|
|
6
|
+
var c = ":host{background-color:var(--flint-surface-1);height:56px;box-shadow:var(--flint-shadow-lg);justify-content:center;width:100%;display:flex;position:relative}.container{flex:1;max-width:100%;display:flex}", l = class extends n {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.showLabels = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = i(c);
|
|
12
|
+
}
|
|
13
|
+
updated(e) {
|
|
14
|
+
(e.has("value") || e.has("showLabels")) && this._updateActions();
|
|
15
|
+
}
|
|
16
|
+
_handleSlotChange() {
|
|
17
|
+
this._updateActions();
|
|
18
|
+
}
|
|
19
|
+
_updateActions() {
|
|
20
|
+
let e = this._actions.length, t = this.showLabels || e <= 3;
|
|
21
|
+
this._actions.forEach((e) => {
|
|
22
|
+
e.active = e.value === this.value, e.showLabel = t || e.active;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
_handleActionChange(e) {
|
|
26
|
+
let n = e.composedPath().find((e) => e instanceof t);
|
|
27
|
+
!n || n.value === this.value || (this.value = n.value, this.dispatchEvent(new CustomEvent("flint-bottom-navigation-change", {
|
|
28
|
+
detail: { value: n.value },
|
|
29
|
+
bubbles: !0,
|
|
30
|
+
composed: !0
|
|
31
|
+
})));
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
return r`
|
|
35
|
+
<div class="container" role="tablist" @click=${this._handleActionChange}>
|
|
36
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
37
|
+
</div>
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
e([o()], l.prototype, "value", void 0), e([o({
|
|
42
|
+
type: Boolean,
|
|
43
|
+
attribute: "show-labels"
|
|
44
|
+
})], l.prototype, "showLabels", void 0), e([s({ selector: "flint-bottom-navigation-action" })], l.prototype, "_actions", void 0), l = e([a("flint-bottom-navigation")], l);
|
|
45
|
+
//#endregion
|
|
46
|
+
export { l as t };
|
|
@@ -0,0 +1,44 @@
|
|
|
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/bottom-navigation/flint-bottom-navigation-action.css?inline
|
|
6
|
+
var s = ":host{color:var(--flint-text-color-muted);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;flex:1;justify-content:center;align-items:center;min-width:80px;max-width:168px;padding:6px 12px 8px;transition:color .25s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1);display:flex}:host(:hover){background-color:var(--flint-hover-color)}:host([active]){color:var(--flint-primary-color);padding-top:8px}.icon-container{justify-content:center;align-items:center;height:24px;margin-bottom:2px;transition:transform .25s cubic-bezier(.4,0,.2,1);display:flex}:host([active]) .icon-container{transform:scale(1.1)}.label{font-family:var(--flint-font-family);opacity:1;font-size:.75rem;transition:font-size .25s cubic-bezier(.4,0,.2,1),opacity .25s cubic-bezier(.4,0,.2,1)}:host([active]) .label{font-size:.875rem}.label.hidden{opacity:0;pointer-events:none;font-size:0}@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.label = "", this.active = !1, this.showLabel = !0, this._handleKeydown = (e) => {
|
|
9
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.click());
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.styles = r(s);
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "tab"), this.hasAttribute("tabindex") || (this.tabIndex = 0), this.addEventListener("keydown", this._handleKeydown);
|
|
17
|
+
}
|
|
18
|
+
disconnectedCallback() {
|
|
19
|
+
super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeydown);
|
|
20
|
+
}
|
|
21
|
+
updated(e) {
|
|
22
|
+
e.has("active") && this.setAttribute("aria-selected", String(this.active));
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
return n`
|
|
26
|
+
<div class="icon-container" aria-hidden="true">
|
|
27
|
+
<slot name="icon"></slot>
|
|
28
|
+
<slot></slot>
|
|
29
|
+
</div>
|
|
30
|
+
<span class="${o({
|
|
31
|
+
label: !0,
|
|
32
|
+
hidden: !this.showLabel
|
|
33
|
+
})}">
|
|
34
|
+
${this.label}
|
|
35
|
+
</span>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
e([a({ type: String })], c.prototype, "label", void 0), e([a()], c.prototype, "value", void 0), e([a({
|
|
40
|
+
type: Boolean,
|
|
41
|
+
reflect: !0
|
|
42
|
+
})], c.prototype, "active", void 0), e([a({ type: Boolean })], c.prototype, "showLabel", void 0), c = e([i("flint-bottom-navigation-action")], c);
|
|
43
|
+
//#endregion
|
|
44
|
+
export { c as t };
|