@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,68 @@
|
|
|
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 { ifDefined as o } from "lit/directives/if-defined.js";
|
|
5
|
+
//#region src/format-number/flint-format-number.css?inline
|
|
6
|
+
var s = ":host{display:inline}span{font:inherit;color:var(--flint-format-number-color,inherit);font-size:var(--flint-format-number-font-size,inherit);font-weight:var(--flint-format-number-font-weight,inherit);font-family:var(--flint-format-number-font-family,inherit)}span[data-sign=negative]{color:var(--flint-format-number-negative-color,var(--flint-format-number-color,inherit))}span[data-sign=positive]{color:var(--flint-format-number-positive-color,var(--flint-format-number-color,inherit))}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.value = 0, this.type = "decimal", this.noGrouping = !1, this.currency = "USD", this.currencyDisplay = "symbol", this.notation = "standard", this.compactDisplay = "short", this.signDisplay = "auto", this.unit = "", this.unitDisplay = "short", this.minimumIntegerDigits = void 0, this.minimumFractionDigits = void 0, this.maximumFractionDigits = void 0, this.minimumSignificantDigits = void 0, this.maximumSignificantDigits = void 0, this.lang = "";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
get formattedValue() {
|
|
14
|
+
return this._format();
|
|
15
|
+
}
|
|
16
|
+
_sign() {
|
|
17
|
+
if (!(isNaN(this.value) || !isFinite(this.value))) return this.value < 0 ? "negative" : this.value > 0 ? "positive" : "zero";
|
|
18
|
+
}
|
|
19
|
+
_format() {
|
|
20
|
+
let e = { style: this.type };
|
|
21
|
+
this.noGrouping && (e.useGrouping = !1), e.notation = this.notation, this.notation === "compact" && (e.compactDisplay = this.compactDisplay), this.signDisplay !== "auto" && (e.signDisplay = this.signDisplay), this.type === "currency" && (e.currency = this.currency, e.currencyDisplay = this.currencyDisplay), this.type === "unit" && this.unit && (e.unit = this.unit, e.unitDisplay = this.unitDisplay), this.minimumSignificantDigits !== void 0 || this.maximumSignificantDigits !== void 0 ? (this.minimumSignificantDigits !== void 0 && (e.minimumSignificantDigits = this.minimumSignificantDigits), this.maximumSignificantDigits !== void 0 && (e.maximumSignificantDigits = this.maximumSignificantDigits)) : (this.minimumIntegerDigits !== void 0 && (e.minimumIntegerDigits = this.minimumIntegerDigits), this.minimumFractionDigits !== void 0 && (e.minimumFractionDigits = this.minimumFractionDigits), this.maximumFractionDigits !== void 0 && (e.maximumFractionDigits = this.maximumFractionDigits));
|
|
22
|
+
let t = this.lang || document.documentElement.lang || navigator.language || "en";
|
|
23
|
+
try {
|
|
24
|
+
return new Intl.NumberFormat(t, e).format(this.value);
|
|
25
|
+
} catch {
|
|
26
|
+
return String(this.value);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
return n`<span data-sign=${o(this._sign())}>${this._format()}</span>`;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
e([a({ type: Number })], c.prototype, "value", void 0), e([a({ type: String })], c.prototype, "type", void 0), e([a({
|
|
34
|
+
type: Boolean,
|
|
35
|
+
attribute: "no-grouping"
|
|
36
|
+
})], c.prototype, "noGrouping", void 0), e([a({ type: String })], c.prototype, "currency", void 0), e([a({
|
|
37
|
+
type: String,
|
|
38
|
+
attribute: "currency-display"
|
|
39
|
+
})], c.prototype, "currencyDisplay", void 0), e([a({ type: String })], c.prototype, "notation", void 0), e([a({
|
|
40
|
+
type: String,
|
|
41
|
+
attribute: "compact-display"
|
|
42
|
+
})], c.prototype, "compactDisplay", void 0), e([a({
|
|
43
|
+
type: String,
|
|
44
|
+
attribute: "sign-display"
|
|
45
|
+
})], c.prototype, "signDisplay", void 0), e([a({ type: String })], c.prototype, "unit", void 0), e([a({
|
|
46
|
+
type: String,
|
|
47
|
+
attribute: "unit-display"
|
|
48
|
+
})], c.prototype, "unitDisplay", void 0), e([a({
|
|
49
|
+
type: Number,
|
|
50
|
+
attribute: "minimum-integer-digits"
|
|
51
|
+
})], c.prototype, "minimumIntegerDigits", void 0), e([a({
|
|
52
|
+
type: Number,
|
|
53
|
+
attribute: "minimum-fraction-digits"
|
|
54
|
+
})], c.prototype, "minimumFractionDigits", void 0), e([a({
|
|
55
|
+
type: Number,
|
|
56
|
+
attribute: "maximum-fraction-digits"
|
|
57
|
+
})], c.prototype, "maximumFractionDigits", void 0), e([a({
|
|
58
|
+
type: Number,
|
|
59
|
+
attribute: "minimum-significant-digits"
|
|
60
|
+
})], c.prototype, "minimumSignificantDigits", void 0), e([a({
|
|
61
|
+
type: Number,
|
|
62
|
+
attribute: "maximum-significant-digits"
|
|
63
|
+
})], c.prototype, "maximumSignificantDigits", void 0), e([a({
|
|
64
|
+
attribute: "lang",
|
|
65
|
+
reflect: !0
|
|
66
|
+
})], c.prototype, "lang", void 0), c = e([i("flint-format-number")], c);
|
|
67
|
+
//#endregion
|
|
68
|
+
export { c as t };
|
|
@@ -0,0 +1,177 @@
|
|
|
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 { styleMap as c } from "lit/directives/style-map.js";
|
|
6
|
+
//#region src/grid/flint-grid.css?inline
|
|
7
|
+
var l = ":host{display:block}.grid-wrapper{box-sizing:border-box;display:block}.grid-wrapper.container{flex-wrap:wrap;width:100%;display:flex}.direction-row{flex-direction:row}.direction-row-reverse{flex-direction:row-reverse}.direction-column{flex-direction:column}.direction-column-reverse{flex-direction:column-reverse}.wrap-nowrap{flex-wrap:nowrap}.wrap-wrap-reverse{flex-wrap:wrap-reverse}.grid-item{box-sizing:border-box;margin:0}", u = class extends t {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this.container = !1, this.direction = "row", this.wrap = "wrap", this.columns = 12, this.spacing = 0, this._currentWidth = typeof window < "u" ? window.innerWidth : 1200, this._onResize = () => {
|
|
10
|
+
this._currentWidth = window.innerWidth;
|
|
11
|
+
}, this._breakpointCache = {};
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.styles = r(l);
|
|
15
|
+
}
|
|
16
|
+
_getBreakpointValue(e, t) {
|
|
17
|
+
if (this._breakpointCache[e] !== void 0) return this._breakpointCache[e];
|
|
18
|
+
if (typeof window < "u") {
|
|
19
|
+
let t = getComputedStyle(document.documentElement).getPropertyValue(`--flint-breakpoint-${e}`);
|
|
20
|
+
if (t && t.trim()) return this._breakpointCache[e] = parseInt(t, 10), this._breakpointCache[e];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
}
|
|
24
|
+
connectedCallback() {
|
|
25
|
+
super.connectedCallback(), typeof window < "u" && (window.addEventListener("resize", this._onResize), this._currentWidth = window.innerWidth);
|
|
26
|
+
}
|
|
27
|
+
disconnectedCallback() {
|
|
28
|
+
super.disconnectedCallback(), typeof window < "u" && window.removeEventListener("resize", this._onResize);
|
|
29
|
+
}
|
|
30
|
+
_getBreakpoint() {
|
|
31
|
+
let e = this._currentWidth;
|
|
32
|
+
return e >= this._getBreakpointValue("xl", 1536) ? "xl" : e >= this._getBreakpointValue("lg", 1200) ? "lg" : e >= this._getBreakpointValue("md", 900) ? "md" : e >= this._getBreakpointValue("sm", 600) ? "sm" : "xs";
|
|
33
|
+
}
|
|
34
|
+
_getEffectiveSize(e) {
|
|
35
|
+
let t = [
|
|
36
|
+
"xs",
|
|
37
|
+
"sm",
|
|
38
|
+
"md",
|
|
39
|
+
"lg",
|
|
40
|
+
"xl"
|
|
41
|
+
], n = t.indexOf(e);
|
|
42
|
+
for (let e = n; e >= 0; e--) {
|
|
43
|
+
let n = this[t[e]];
|
|
44
|
+
if (n !== void 0) return typeof n == "string" && !isNaN(Number(n)) && n.trim() !== "" ? Number(n) : n === "true" ? !0 : n === "false" ? !1 : n;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
_getEffectiveOffset(e) {
|
|
48
|
+
if (!this.offset) return;
|
|
49
|
+
let t = [
|
|
50
|
+
"xs",
|
|
51
|
+
"sm",
|
|
52
|
+
"md",
|
|
53
|
+
"lg",
|
|
54
|
+
"xl"
|
|
55
|
+
], n = t.indexOf(e);
|
|
56
|
+
for (let e = n; e >= 0; e--) {
|
|
57
|
+
let n = this.offset[t[e]];
|
|
58
|
+
if (n !== void 0) return typeof n == "string" && !isNaN(Number(n)) && n.trim() !== "" ? Number(n) : n;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
_resolveResponsive(e, t) {
|
|
62
|
+
if (typeof e == "object" && e) {
|
|
63
|
+
let n = [
|
|
64
|
+
"xs",
|
|
65
|
+
"sm",
|
|
66
|
+
"md",
|
|
67
|
+
"lg",
|
|
68
|
+
"xl"
|
|
69
|
+
], r = n.indexOf(t);
|
|
70
|
+
for (let t = r; t >= 0; t--) {
|
|
71
|
+
let r = e[n[t]];
|
|
72
|
+
if (r !== void 0) return r;
|
|
73
|
+
}
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
76
|
+
return typeof e == "string" && !isNaN(Number(e)) && e.trim() !== "" ? Number(e) : e;
|
|
77
|
+
}
|
|
78
|
+
_resolveResponsiveOrder(e, t) {
|
|
79
|
+
if (typeof e == "object" && e) {
|
|
80
|
+
let n = [
|
|
81
|
+
"xs",
|
|
82
|
+
"sm",
|
|
83
|
+
"md",
|
|
84
|
+
"lg",
|
|
85
|
+
"xl"
|
|
86
|
+
], r = n.indexOf(t);
|
|
87
|
+
for (let t = r; t >= 0; t--) {
|
|
88
|
+
let r = e[n[t]];
|
|
89
|
+
if (r !== void 0) return r;
|
|
90
|
+
}
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
return e;
|
|
94
|
+
}
|
|
95
|
+
_toPx(e) {
|
|
96
|
+
return typeof e == "number" ? `${e * 8}px` : e;
|
|
97
|
+
}
|
|
98
|
+
_getSpacingStyles(e) {
|
|
99
|
+
if (!this.container) return {};
|
|
100
|
+
let t = this._resolveResponsive(this.spacing, e), n = this.rowSpacing === void 0 ? t : this._resolveResponsive(this.rowSpacing, e), r = this.columnSpacing === void 0 ? t : this._resolveResponsive(this.columnSpacing, e);
|
|
101
|
+
return { gap: `${this._toPx(n)} ${this._toPx(r)}` };
|
|
102
|
+
}
|
|
103
|
+
_getEffectiveColumns() {
|
|
104
|
+
if (this.container) return this.columns;
|
|
105
|
+
let e = getComputedStyle(this).getPropertyValue("--flint-grid-columns").trim();
|
|
106
|
+
return e && !isNaN(Number(e)) ? Number(e) : this.columns;
|
|
107
|
+
}
|
|
108
|
+
_getItemStyles(e) {
|
|
109
|
+
let t = this.xs !== void 0 || this.sm !== void 0 || this.md !== void 0 || this.lg !== void 0 || this.xl !== void 0, n = !!this.offset, r = this.order !== void 0;
|
|
110
|
+
if (!t && !n && !r) return {};
|
|
111
|
+
let i = this._getEffectiveSize(e), a = this._getEffectiveOffset(e), o = this._getEffectiveColumns(), s = {};
|
|
112
|
+
if (i === !0) s["flex-grow"] = "1", s["flex-basis"] = "0%", s["max-width"] = "100%";
|
|
113
|
+
else if (i === "auto") s["flex-grow"] = "0", s["flex-basis"] = "auto", s.width = "auto", s["max-width"] = "none";
|
|
114
|
+
else if (typeof i == "number") {
|
|
115
|
+
let e = i / o * 100;
|
|
116
|
+
s["flex-grow"] = "0", s["flex-basis"] = `calc(${e}% - var(--flint-grid-column-gap, 0px) * ${(o - i) / o})`, s["max-width"] = `calc(${e}% - var(--flint-grid-column-gap, 0px) * ${(o - i) / o})`;
|
|
117
|
+
} else this.container || (s["flex-grow"] = "0", s["flex-basis"] = "auto", s.width = "100%");
|
|
118
|
+
if (a === "auto" ? s["margin-left"] = "auto" : typeof a == "number" && (s["margin-left"] = `${a / o * 100}%`), this.order !== void 0) {
|
|
119
|
+
let t = this._resolveResponsiveOrder(this.order, e);
|
|
120
|
+
t !== void 0 && (s.order = String(t));
|
|
121
|
+
}
|
|
122
|
+
return s;
|
|
123
|
+
}
|
|
124
|
+
updated(e) {
|
|
125
|
+
super.updated(e), this._applyItemStyles();
|
|
126
|
+
}
|
|
127
|
+
_applyItemStyles() {
|
|
128
|
+
let e = this._getBreakpoint(), t = this._getItemStyles(e);
|
|
129
|
+
if (this.style.flexGrow = "", this.style.flexBasis = "", this.style.maxWidth = "", this.style.width = "", this.style.marginLeft = "", this.style.order = "", Object.entries(t).forEach(([e, t]) => {
|
|
130
|
+
this.style.setProperty(e, t);
|
|
131
|
+
}), this.container) {
|
|
132
|
+
let t = this._getSpacingStyles(e);
|
|
133
|
+
if (t.gap) {
|
|
134
|
+
let e = t.gap.split(" "), n = e.length === 2 ? e[1] : e[0];
|
|
135
|
+
this.style.setProperty("--flint-grid-column-gap", n);
|
|
136
|
+
}
|
|
137
|
+
this.style.setProperty("--flint-grid-columns", String(this.columns));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
render() {
|
|
141
|
+
let e = this._getBreakpoint(), t = {
|
|
142
|
+
...this._getSpacingStyles(e),
|
|
143
|
+
"align-items": this.alignItems || "",
|
|
144
|
+
"justify-content": this.justifyContent || ""
|
|
145
|
+
};
|
|
146
|
+
return n`
|
|
147
|
+
<div class=${s({
|
|
148
|
+
"grid-wrapper": !0,
|
|
149
|
+
container: this.container,
|
|
150
|
+
[`direction-${this.direction}`]: this.container,
|
|
151
|
+
[`wrap-${this.wrap}`]: this.container && this.wrap !== "wrap"
|
|
152
|
+
})} style=${c(t)}>
|
|
153
|
+
<slot></slot>
|
|
154
|
+
</div>
|
|
155
|
+
`;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
e([a({
|
|
159
|
+
type: Boolean,
|
|
160
|
+
reflect: !0
|
|
161
|
+
})], u.prototype, "container", void 0), e([a({
|
|
162
|
+
type: String,
|
|
163
|
+
reflect: !0
|
|
164
|
+
})], u.prototype, "direction", void 0), e([a({
|
|
165
|
+
type: String,
|
|
166
|
+
reflect: !0
|
|
167
|
+
})], u.prototype, "wrap", void 0), e([a({
|
|
168
|
+
type: String,
|
|
169
|
+
attribute: "align-items",
|
|
170
|
+
reflect: !0
|
|
171
|
+
})], u.prototype, "alignItems", void 0), e([a({
|
|
172
|
+
type: String,
|
|
173
|
+
attribute: "justify-content",
|
|
174
|
+
reflect: !0
|
|
175
|
+
})], u.prototype, "justifyContent", void 0), e([a({ type: Number })], u.prototype, "columns", void 0), e([a({ type: Object })], u.prototype, "spacing", void 0), e([a({ type: Object })], u.prototype, "rowSpacing", void 0), e([a({ type: Object })], u.prototype, "columnSpacing", void 0), e([a()], u.prototype, "xs", void 0), e([a()], u.prototype, "sm", void 0), e([a()], u.prototype, "md", void 0), e([a()], u.prototype, "lg", void 0), e([a()], u.prototype, "xl", void 0), e([a({ type: Object })], u.prototype, "offset", void 0), e([a({ type: Object })], u.prototype, "order", void 0), e([o()], u.prototype, "_currentWidth", void 0), u = e([i("flint-grid")], u);
|
|
176
|
+
//#endregion
|
|
177
|
+
export { u as t };
|
|
@@ -0,0 +1,125 @@
|
|
|
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/hover-card/flint-hover-card-trigger.css?inline
|
|
5
|
+
var o = ":host{display:inline-block}", s = ":host{z-index:var(--flint-hovercard-z-index,1000);opacity:0;visibility:hidden;transition:opacity var(--flint-hovercard-duration,.15s) ease, visibility var(--flint-hovercard-duration,.15s) ease;pointer-events:none;display:block;position:absolute}:host([open]){opacity:1;visibility:visible;pointer-events:auto}.card{background:var(--flint-hovercard-bg,var(--flint-surface-1));border:1px solid var(--flint-hovercard-border-color,var(--flint-border-color));border-radius:var(--flint-hovercard-radius,8px);box-shadow:var(--flint-hovercard-shadow,0 4px 16px #0000001f);padding:var(--flint-hovercard-padding,16px);min-width:var(--flint-hovercard-min-width,200px);font-family:var(--flint-font-family);font-size:var(--flint-hovercard-font-size,.875rem);color:var(--flint-hovercard-color,var(--flint-text-color));line-height:1.5}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = ":host{display:inline-block;position:relative}", l = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this._handleMouseEnter = () => this._getRoot()?.handleTriggerEnter(), this._handleMouseLeave = () => this._getRoot()?.handleTriggerLeave(), this._handleFocusIn = () => this._getRoot()?.handleTriggerEnter(), this._handleFocusOut = () => this._getRoot()?.handleTriggerLeave();
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
_getRoot() {
|
|
13
|
+
return this.closest("flint-hover-card");
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return n`
|
|
17
|
+
<div
|
|
18
|
+
@mouseenter=${this._handleMouseEnter}
|
|
19
|
+
@mouseleave=${this._handleMouseLeave}
|
|
20
|
+
@focusin=${this._handleFocusIn}
|
|
21
|
+
@focusout=${this._handleFocusOut}
|
|
22
|
+
>
|
|
23
|
+
<slot></slot>
|
|
24
|
+
</div>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
l = e([i("flint-hover-card-trigger")], l);
|
|
29
|
+
var u = class extends t {
|
|
30
|
+
constructor(...e) {
|
|
31
|
+
super(...e), this.side = "bottom", this.align = "center", this.open = !1, this._handleMouseEnter = () => this._getRoot()?.handleContentEnter(), this._handleMouseLeave = () => this._getRoot()?.handleContentLeave();
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.styles = r(s);
|
|
35
|
+
}
|
|
36
|
+
_getRoot() {
|
|
37
|
+
return this.closest("flint-hover-card");
|
|
38
|
+
}
|
|
39
|
+
firstUpdated() {
|
|
40
|
+
this._applyPosition();
|
|
41
|
+
}
|
|
42
|
+
updated(e) {
|
|
43
|
+
(e.has("side") || e.has("align")) && this._applyPosition();
|
|
44
|
+
}
|
|
45
|
+
_applyPosition() {
|
|
46
|
+
let { side: e, align: t } = this, n = "var(--flint-hovercard-offset, 8px)";
|
|
47
|
+
this.style.removeProperty("top"), this.style.removeProperty("bottom"), this.style.removeProperty("left"), this.style.removeProperty("right"), this.style.removeProperty("transform"), e === "bottom" || e === "top" ? (this.style.setProperty(e === "bottom" ? "top" : "bottom", `calc(100% + ${n})`), t === "start" ? this.style.setProperty("left", "0") : t === "end" ? this.style.setProperty("right", "0") : (this.style.setProperty("left", "50%"), this.style.setProperty("transform", "translateX(-50%)"))) : (this.style.setProperty(e === "right" ? "left" : "right", `calc(100% + ${n})`), t === "start" ? this.style.setProperty("top", "0") : t === "end" ? this.style.setProperty("bottom", "0") : (this.style.setProperty("top", "50%"), this.style.setProperty("transform", "translateY(-50%)")));
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return n`
|
|
51
|
+
<div
|
|
52
|
+
class="card"
|
|
53
|
+
@mouseenter=${this._handleMouseEnter}
|
|
54
|
+
@mouseleave=${this._handleMouseLeave}
|
|
55
|
+
>
|
|
56
|
+
<slot></slot>
|
|
57
|
+
</div>
|
|
58
|
+
`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
e([a({
|
|
62
|
+
type: String,
|
|
63
|
+
reflect: !0
|
|
64
|
+
})], u.prototype, "side", void 0), e([a({
|
|
65
|
+
type: String,
|
|
66
|
+
reflect: !0
|
|
67
|
+
})], u.prototype, "align", void 0), e([a({
|
|
68
|
+
type: Boolean,
|
|
69
|
+
reflect: !0
|
|
70
|
+
})], u.prototype, "open", void 0), u = e([i("flint-hover-card-content")], u);
|
|
71
|
+
var d = class extends t {
|
|
72
|
+
constructor(...e) {
|
|
73
|
+
super(...e), this.openDelay = 700, this.closeDelay = 300, this._isOpen = !1, this._openTimer = null, this._closeTimer = null;
|
|
74
|
+
}
|
|
75
|
+
static {
|
|
76
|
+
this.styles = r(c);
|
|
77
|
+
}
|
|
78
|
+
get isOpen() {
|
|
79
|
+
return this._isOpen;
|
|
80
|
+
}
|
|
81
|
+
handleTriggerEnter() {
|
|
82
|
+
this._cancelClose(), this._isOpen || (this._openTimer = setTimeout(() => this._setOpen(!0), this.openDelay));
|
|
83
|
+
}
|
|
84
|
+
handleTriggerLeave() {
|
|
85
|
+
this._cancelOpen(), this._cancelClose(), this._closeTimer = setTimeout(() => this._setOpen(!1), this.closeDelay);
|
|
86
|
+
}
|
|
87
|
+
handleContentEnter() {
|
|
88
|
+
this._cancelClose();
|
|
89
|
+
}
|
|
90
|
+
handleContentLeave() {
|
|
91
|
+
this._cancelClose(), this._closeTimer = setTimeout(() => this._setOpen(!1), this.closeDelay);
|
|
92
|
+
}
|
|
93
|
+
_cancelOpen() {
|
|
94
|
+
this._openTimer !== null && (clearTimeout(this._openTimer), this._openTimer = null);
|
|
95
|
+
}
|
|
96
|
+
_cancelClose() {
|
|
97
|
+
this._closeTimer !== null && (clearTimeout(this._closeTimer), this._closeTimer = null);
|
|
98
|
+
}
|
|
99
|
+
_setOpen(e) {
|
|
100
|
+
this._isOpen !== e && (this._isOpen = e, this._syncChildren(), this.dispatchEvent(new CustomEvent(e ? "flint-hover-card-open" : "flint-hover-card-close", {
|
|
101
|
+
bubbles: !0,
|
|
102
|
+
composed: !0
|
|
103
|
+
})));
|
|
104
|
+
}
|
|
105
|
+
_syncChildren() {
|
|
106
|
+
this.querySelectorAll("flint-hover-card-content").forEach((e) => {
|
|
107
|
+
e.closest("flint-hover-card") === this && (e.open = this._isOpen);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
disconnectedCallback() {
|
|
111
|
+
super.disconnectedCallback(), this._cancelOpen(), this._cancelClose();
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
return n`<slot @slotchange=${() => this._syncChildren()}></slot>`;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
e([a({
|
|
118
|
+
type: Number,
|
|
119
|
+
attribute: "open-delay"
|
|
120
|
+
})], d.prototype, "openDelay", void 0), e([a({
|
|
121
|
+
type: Number,
|
|
122
|
+
attribute: "close-delay"
|
|
123
|
+
})], d.prototype, "closeDelay", void 0), d = e([i("flint-hover-card")], d);
|
|
124
|
+
//#endregion
|
|
125
|
+
export { u as n, l as r, d as t };
|
|
@@ -0,0 +1,116 @@
|
|
|
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/image-comparer/flint-image-comparer.css?inline
|
|
5
|
+
var o = ":host{-webkit-user-select:none;user-select:none;touch-action:none;border-radius:var(--flint-image-comparer-border-radius,var(--flint-border-radius-md));aspect-ratio:var(--flint-image-comparer-aspect-ratio,16 / 9);display:block;position:relative;overflow:hidden}.base{width:100%;height:100%;position:relative;overflow:hidden}.before,.after{position:absolute;inset:0;overflow:hidden}.after ::slotted(img),.after ::slotted(svg),.before ::slotted(img),.before ::slotted(svg){object-fit:cover;pointer-events:none;width:100%;max-width:none;height:100%;display:block}.before{z-index:1}.divider{z-index:2;height:100%;width:var(--flint-image-comparer-divider-width,2px);background:var(--flint-image-comparer-divider-color,var(--flint-color-white));pointer-events:none;position:absolute;top:0;transform:translate(-50%);box-shadow:0 0 4px #0000004d}.handle{z-index:3;width:var(--flint-image-comparer-handle-size,40px);height:var(--flint-image-comparer-handle-size,40px);border-radius:var(--flint-border-radius-full);background:var(--flint-image-comparer-handle-bg,var(--flint-color-white));border:2px solid var(--flint-image-comparer-handle-border-color,#00000026);box-shadow:var(--flint-shadow-md);cursor:ew-resize;outline:none;justify-content:center;align-items:center;transition:box-shadow .15s;display:flex;position:absolute;top:50%;transform:translate(-50%,-50%)}.handle:focus-visible{box-shadow:var(--flint-shadow-md), 0 0 0 3px var(--flint-primary-focus-ring)}.handle:hover{box-shadow:var(--flint-shadow-lg)}.handle svg{width:20px;height:20px;color:var(--flint-image-comparer-handle-icon-color,var(--flint-text-color-muted));flex-shrink:0}:host([disabled]){opacity:.5;pointer-events:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.position = 50, this.disabled = !1, this._dragging = !1, this._onPointerDown = (e) => {
|
|
8
|
+
this.disabled || (e.preventDefault(), this._dragging = !0, this.setPointerCapture(e.pointerId), this._setPosition(this._getPositionFromPointer(e)), this.shadowRoot?.querySelector(".handle")?.focus(), this.addEventListener("pointermove", this._onPointerMove), this.addEventListener("pointerup", this._onPointerUp), this.addEventListener("pointercancel", this._onPointerUp));
|
|
9
|
+
}, this._onPointerMove = (e) => {
|
|
10
|
+
if (this._dragging) {
|
|
11
|
+
if (e.buttons === 0) {
|
|
12
|
+
this._stopDrag();
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this._setPosition(this._getPositionFromPointer(e));
|
|
16
|
+
}
|
|
17
|
+
}, this._onPointerUp = (e) => {
|
|
18
|
+
this.releasePointerCapture(e.pointerId), this._stopDrag();
|
|
19
|
+
}, this._onKeyDown = (e) => {
|
|
20
|
+
if (this.disabled) return;
|
|
21
|
+
let t = e.shiftKey ? 10 : 1, n = !0;
|
|
22
|
+
switch (e.key) {
|
|
23
|
+
case "ArrowLeft":
|
|
24
|
+
this._setPosition(this.position - t);
|
|
25
|
+
break;
|
|
26
|
+
case "ArrowRight":
|
|
27
|
+
this._setPosition(this.position + t);
|
|
28
|
+
break;
|
|
29
|
+
case "Home":
|
|
30
|
+
this._setPosition(0);
|
|
31
|
+
break;
|
|
32
|
+
case "End":
|
|
33
|
+
this._setPosition(100);
|
|
34
|
+
break;
|
|
35
|
+
default: n = !1;
|
|
36
|
+
}
|
|
37
|
+
n && (e.preventDefault(), e.stopPropagation());
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static {
|
|
41
|
+
this.styles = r(o);
|
|
42
|
+
}
|
|
43
|
+
connectedCallback() {
|
|
44
|
+
super.connectedCallback(), this.addEventListener("pointerdown", this._onPointerDown), this.addEventListener("keydown", this._onKeyDown);
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
super.disconnectedCallback(), this.removeEventListener("pointerdown", this._onPointerDown), this.removeEventListener("keydown", this._onKeyDown), this._stopDrag();
|
|
48
|
+
}
|
|
49
|
+
_clamp(e) {
|
|
50
|
+
return Math.min(100, Math.max(0, e));
|
|
51
|
+
}
|
|
52
|
+
_setPosition(e) {
|
|
53
|
+
let t = this._clamp(e);
|
|
54
|
+
t !== this.position && (this.position = t, this.dispatchEvent(new CustomEvent("flint-image-comparer-change", {
|
|
55
|
+
detail: { position: t },
|
|
56
|
+
bubbles: !0,
|
|
57
|
+
composed: !0
|
|
58
|
+
})));
|
|
59
|
+
}
|
|
60
|
+
_getPositionFromPointer(e) {
|
|
61
|
+
let t = this.getBoundingClientRect();
|
|
62
|
+
return (e.clientX - t.left) / t.width * 100;
|
|
63
|
+
}
|
|
64
|
+
_stopDrag() {
|
|
65
|
+
this._dragging = !1, this.removeEventListener("pointermove", this._onPointerMove), this.removeEventListener("pointerup", this._onPointerUp), this.removeEventListener("pointercancel", this._onPointerUp);
|
|
66
|
+
}
|
|
67
|
+
render() {
|
|
68
|
+
let e = this._clamp(this.position);
|
|
69
|
+
return n`
|
|
70
|
+
<div class="base" part="base">
|
|
71
|
+
<div class="after" part="after">
|
|
72
|
+
<slot name="after"></slot>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
<div
|
|
76
|
+
class="before"
|
|
77
|
+
part="before"
|
|
78
|
+
style="clip-path: inset(0 ${100 - e}% 0 0)"
|
|
79
|
+
>
|
|
80
|
+
<slot name="before"></slot>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div
|
|
84
|
+
class="divider"
|
|
85
|
+
part="divider"
|
|
86
|
+
style="left: ${e}%"
|
|
87
|
+
></div>
|
|
88
|
+
|
|
89
|
+
<div
|
|
90
|
+
class="handle"
|
|
91
|
+
part="handle"
|
|
92
|
+
role="slider"
|
|
93
|
+
tabindex="${this.disabled ? -1 : 0}"
|
|
94
|
+
aria-label="Image comparison slider"
|
|
95
|
+
aria-valuemin="0"
|
|
96
|
+
aria-valuemax="100"
|
|
97
|
+
aria-valuenow="${e}"
|
|
98
|
+
aria-disabled="${this.disabled ? "true" : "false"}"
|
|
99
|
+
style="left: ${e}%"
|
|
100
|
+
>
|
|
101
|
+
<slot name="handle">
|
|
102
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
103
|
+
<path d="M15 18l6-6-6-6M9 6l-6 6 6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>
|
|
104
|
+
</svg>
|
|
105
|
+
</slot>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
e([a({ type: Number })], s.prototype, "position", void 0), e([a({
|
|
112
|
+
type: Boolean,
|
|
113
|
+
reflect: !0
|
|
114
|
+
})], s.prototype, "disabled", void 0), s = e([i("flint-image-comparer")], s);
|
|
115
|
+
//#endregion
|
|
116
|
+
export { s as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { styleMap as o } from "lit/directives/style-map.js";
|
|
5
|
+
//#region src/image-list/flint-image-list.css?inline
|
|
6
|
+
var s = ":host{display:block}.image-list{box-sizing:border-box;display:grid;overflow:hidden}.variant-standard,.variant-quilted,.variant-woven{grid-auto-rows:var(--flint-image-list-row-height,164px)}.variant-masonry{display:block}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.variant = "standard", this.cols = 3, this.gap = 4, this.rowHeight = 164, this.autoRows = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
let e = this.variant === "masonry", t = {};
|
|
15
|
+
return e ? (t["column-count"] = String(this.cols), t["column-gap"] = `${this.gap}px`) : (t["grid-template-columns"] = `repeat(${this.cols}, 1fr)`, t.gap = `${this.gap}px`, t["--flint-image-list-row-height"] = `${this.rowHeight}px`, t["grid-auto-rows"] = this.autoRows ? "auto" : `${this.rowHeight}px`), t["--flint-image-list-gap"] = `${this.gap}px`, n`
|
|
16
|
+
<ul class="image-list variant-${this.variant}" style="${o(t)}" role="list">
|
|
17
|
+
<slot></slot>
|
|
18
|
+
</ul>
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
e([a({ type: String })], c.prototype, "variant", void 0), e([a({ type: Number })], c.prototype, "cols", void 0), e([a({ type: Number })], c.prototype, "gap", void 0), e([a({ type: Number })], c.prototype, "rowHeight", void 0), e([a({ type: Boolean })], c.prototype, "autoRows", void 0), c = e([i("flint-image-list")], c);
|
|
23
|
+
//#endregion
|
|
24
|
+
export { c as t };
|
|
@@ -0,0 +1,41 @@
|
|
|
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/image-list/flint-image-list-item.css?inline
|
|
5
|
+
var o = ":host{display:block;position:relative;overflow:hidden}:host([bar-position=below]){flex-direction:column;display:flex;overflow:visible}:host(.masonry){break-inside:avoid;margin-bottom:var(--flint-image-list-gap,4px)}.item-wrapper{width:100%;height:100%;position:relative;overflow:hidden}:host([bar-position=below]) .item-wrapper{flex:auto;overflow:hidden}:host(.masonry) .item-wrapper{height:auto}::slotted(img){object-fit:var(--flint-image-fit,cover);width:100%;height:100%;display:block}:host(.masonry) ::slotted(img){height:auto}::slotted(flint-image-list-item-bar){position:absolute;bottom:0;left:0;right:0}::slotted(flint-image-list-item-bar[position=top]){top:0;bottom:auto}:host([bar-position=below]) ::slotted(flint-image-list-item-bar){position:static}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.rows = 1, this.cols = 1, this.barPosition = "overlay", this.weave = "odd", this.aspectRatio = "auto", this.fit = "cover";
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
super.connectedCallback(), this._applyHostStyles();
|
|
14
|
+
}
|
|
15
|
+
updated(e) {
|
|
16
|
+
super.updated(e), this._applyHostStyles();
|
|
17
|
+
}
|
|
18
|
+
_applyHostStyles() {
|
|
19
|
+
let e = this.closest("flint-image-list")?.getAttribute("variant");
|
|
20
|
+
e === "woven" ? this.style.gridRow = this.weave === "odd" ? "span 2" : "span 1" : this.rows > 1 ? this.style.gridRow = `span ${this.rows}` : this.style.gridRow = "", this.cols > 1 ? this.style.gridColumn = `span ${this.cols}` : this.style.gridColumn = "", e === "masonry" ? this.classList.add("masonry") : this.classList.remove("masonry"), this.style.aspectRatio = this.aspectRatio === "auto" ? "" : this.aspectRatio, this.style.setProperty("--flint-image-fit", this.fit);
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
return n`
|
|
24
|
+
<div class="item-wrapper">
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</div>
|
|
27
|
+
<slot name="bar"></slot>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
e([a({ type: Number })], s.prototype, "rows", void 0), e([a({ type: Number })], s.prototype, "cols", void 0), e([a({
|
|
32
|
+
type: String,
|
|
33
|
+
attribute: "bar-position",
|
|
34
|
+
reflect: !0
|
|
35
|
+
})], s.prototype, "barPosition", void 0), e([a({ type: String })], s.prototype, "weave", void 0), e([a({
|
|
36
|
+
type: String,
|
|
37
|
+
attribute: "aspect-ratio",
|
|
38
|
+
reflect: !0
|
|
39
|
+
})], s.prototype, "aspectRatio", void 0), e([a({ type: String })], s.prototype, "fit", void 0), s = e([i("flint-image-list-item")], s);
|
|
40
|
+
//#endregion
|
|
41
|
+
export { s as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
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/image-list/flint-image-list-item-bar.css?inline
|
|
5
|
+
var o = ":host{box-sizing:border-box;color:var(--flint-image-bar-overlay-text,var(--flint-text-color-on-primary));font-family:var(--flint-font-family);background:linear-gradient(#0000 0%,#0000004d 30%,#000000b3 100%);padding:12px 12px 8px;display:block}:host([position=top]){background:linear-gradient(#000000b3 0%,#0000004d 70%,#0000 100%);padding:8px 12px 12px}:host([position=below]){background:var(--flint-surface-1);color:var(--flint-text-color);border-top:1px solid var(--flint-border-color);padding:8px 12px}.bar-inner{align-items:center;gap:8px;display:flex}.bar-text{flex:1;min-width:0}.bar-title{text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:600;line-height:1.3;overflow:hidden}.bar-subtitle{opacity:.8;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:.75rem;font-weight:400;overflow:hidden}.bar-action{flex-shrink:0;align-items:center;display:flex}::slotted([slot=action]){color:var(--flint-image-bar-overlay-text,var(--flint-text-color-on-primary))}:host([position=below]) ::slotted([slot=action]){color:var(--flint-text-color)}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.position = "bottom";
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return n`
|
|
14
|
+
<div class="bar-inner">
|
|
15
|
+
<div class="bar-text">
|
|
16
|
+
<div class="bar-title"><slot></slot></div>
|
|
17
|
+
<div class="bar-subtitle"><slot name="subtitle"></slot></div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="bar-action">
|
|
20
|
+
<slot name="action"></slot>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
e([a({
|
|
27
|
+
type: String,
|
|
28
|
+
reflect: !0
|
|
29
|
+
})], s.prototype, "position", void 0), s = e([i("flint-image-list-item-bar")], s);
|
|
30
|
+
//#endregion
|
|
31
|
+
export { s as t };
|