@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,60 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, unsafeCSS as n } from "lit";
|
|
3
|
+
import { customElement as r, property as i } from "lit/decorators.js";
|
|
4
|
+
import { styleMap as a } from "lit/directives/style-map.js";
|
|
5
|
+
import { html as o, unsafeStatic as s } from "lit/static-html.js";
|
|
6
|
+
//#region src/box/flint-box.css?inline
|
|
7
|
+
var c = ":host{background-color:var(--flint-box-bg,transparent);color:var(--flint-box-color,inherit);border:var(--flint-box-border,none);border-radius:var(--flint-box-border-radius,0);box-shadow:var(--flint-box-shadow,none);padding:var(--flint-box-padding,0);display:block}", l = new Set([
|
|
8
|
+
"div",
|
|
9
|
+
"span",
|
|
10
|
+
"section",
|
|
11
|
+
"article",
|
|
12
|
+
"header",
|
|
13
|
+
"footer",
|
|
14
|
+
"main",
|
|
15
|
+
"aside",
|
|
16
|
+
"nav",
|
|
17
|
+
"ul",
|
|
18
|
+
"ol",
|
|
19
|
+
"li",
|
|
20
|
+
"p",
|
|
21
|
+
"form",
|
|
22
|
+
"fieldset",
|
|
23
|
+
"label",
|
|
24
|
+
"figure",
|
|
25
|
+
"figcaption",
|
|
26
|
+
"address",
|
|
27
|
+
"blockquote",
|
|
28
|
+
"details",
|
|
29
|
+
"summary",
|
|
30
|
+
"dialog"
|
|
31
|
+
]), u = class extends t {
|
|
32
|
+
constructor(...e) {
|
|
33
|
+
super(...e), this.component = "div", this._safeTag = "div";
|
|
34
|
+
}
|
|
35
|
+
static {
|
|
36
|
+
this.styles = n(c);
|
|
37
|
+
}
|
|
38
|
+
willUpdate(e) {
|
|
39
|
+
e.has("component") && (l.has(this.component) ? this._safeTag = this.component : (this._safeTag = "div", this.dispatchEvent(new CustomEvent("flint-box-warning", {
|
|
40
|
+
bubbles: !0,
|
|
41
|
+
composed: !0,
|
|
42
|
+
detail: { message: `Unknown component tag "${this.component}", falling back to "div".` }
|
|
43
|
+
}))));
|
|
44
|
+
}
|
|
45
|
+
_getStyles() {
|
|
46
|
+
let e = {};
|
|
47
|
+
return this.m && (e.margin = this.m), this.mx && (e.marginLeft = this.mx, e.marginRight = this.mx), this.my && (e.marginTop = this.my, e.marginBottom = this.my), this.mt && (e.marginTop = this.mt), this.mr && (e.marginRight = this.mr), this.mb && (e.marginBottom = this.mb), this.ml && (e.marginLeft = this.ml), this.p && (e.padding = this.p), this.px && (e.paddingLeft = this.px, e.paddingRight = this.px), this.py && (e.paddingTop = this.py, e.paddingBottom = this.py), this.pt && (e.paddingTop = this.pt), this.pr && (e.paddingRight = this.pr), this.pb && (e.paddingBottom = this.pb), this.pl && (e.paddingLeft = this.pl), this.display && (e.display = this.display), this.flexDirection && (e.flexDirection = this.flexDirection), this.alignItems && (e.alignItems = this.alignItems), this.justifyContent && (e.justifyContent = this.justifyContent), this.flexWrap && (e.flexWrap = this.flexWrap), this.flexBasis && (e.flexBasis = this.flexBasis), this.flexGrow && (e.flexGrow = this.flexGrow), this.flexShrink && (e.flexShrink = this.flexShrink), this.gap && (e.gap = this.gap), this.bgcolor && (e.backgroundColor = this.bgcolor === "primary" ? "var(--flint-primary-color)" : this.bgcolor === "secondary" ? "var(--flint-secondary-color)" : this.bgcolor), this.color && (e.color = this.color === "primary" ? "var(--flint-primary-color)" : this.color === "secondary" ? "var(--flint-secondary-color)" : this.color), this.border && (e.border = this.border), this.borderRadius && (e.borderRadius = this.borderRadius), this.boxShadow && (e.boxShadow = this.boxShadow), this.width && (e.width = this.width), this.height && (e.height = this.height), e;
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
let e = s(this._safeTag);
|
|
51
|
+
return o`
|
|
52
|
+
<${e} style=${a(this._getStyles())}>
|
|
53
|
+
<slot></slot>
|
|
54
|
+
</${e}>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
e([i({ type: String })], u.prototype, "component", void 0), e([i({ type: String })], u.prototype, "m", void 0), e([i({ type: String })], u.prototype, "mt", void 0), e([i({ type: String })], u.prototype, "mr", void 0), e([i({ type: String })], u.prototype, "mb", void 0), e([i({ type: String })], u.prototype, "ml", void 0), e([i({ type: String })], u.prototype, "mx", void 0), e([i({ type: String })], u.prototype, "my", void 0), e([i({ type: String })], u.prototype, "p", void 0), e([i({ type: String })], u.prototype, "pt", void 0), e([i({ type: String })], u.prototype, "pr", void 0), e([i({ type: String })], u.prototype, "pb", void 0), e([i({ type: String })], u.prototype, "pl", void 0), e([i({ type: String })], u.prototype, "px", void 0), e([i({ type: String })], u.prototype, "py", void 0), e([i({ type: String })], u.prototype, "display", void 0), e([i({ type: String })], u.prototype, "flexDirection", void 0), e([i({ type: String })], u.prototype, "alignItems", void 0), e([i({ type: String })], u.prototype, "justifyContent", void 0), e([i({ type: String })], u.prototype, "flexWrap", void 0), e([i({ type: String })], u.prototype, "flexBasis", void 0), e([i({ type: String })], u.prototype, "flexGrow", void 0), e([i({ type: String })], u.prototype, "flexShrink", void 0), e([i({ type: String })], u.prototype, "gap", void 0), e([i({ type: String })], u.prototype, "bgcolor", void 0), e([i({ type: String })], u.prototype, "color", void 0), e([i({ type: String })], u.prototype, "border", void 0), e([i({ type: String })], u.prototype, "borderRadius", void 0), e([i({ type: String })], u.prototype, "boxShadow", void 0), e([i({ type: String })], u.prototype, "width", void 0), e([i({ type: String })], u.prototype, "height", void 0), u = e([r("flint-box")], u);
|
|
59
|
+
//#endregion
|
|
60
|
+
export { u as t };
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
//#region src/breadcrumbs/flint-breadcrumbs.css?inline
|
|
5
|
+
var c = ":host{display:block}.breadcrumbs-ol{flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none;display:flex}.breadcrumb-li{align-items:center;display:flex}.separator{-webkit-user-select:none;user-select:none;margin-left:var(--flint-breadcrumb-separator-margin,8px);margin-right:var(--flint-breadcrumb-separator-margin,8px);color:var(--flint-breadcrumb-color,var(--flint-text-color-muted));display:flex}::slotted(*){font-family:var(--flint-font-family);font-size:var(--flint-breadcrumb-font-size,.875rem);color:var(--flint-breadcrumb-color,var(--flint-text-color-muted));text-decoration:none;transition:color .2s}::slotted(a:hover){color:var(--flint-breadcrumb-color-active,var(--flint-text-color));text-decoration:underline}::slotted([aria-current=page]),::slotted(.active){color:var(--flint-breadcrumb-color-active,var(--flint-text-color));pointer-events:none;font-weight:500}.collapsed-button{background:var(--flint-breadcrumb-collapsed-bg,var(--flint-hover-color));border-radius:var(--flint-breadcrumb-collapsed-radius,var(--flint-border-radius-md));cursor:pointer;font-size:var(--flint-breadcrumb-font-size,.875rem);color:var(--flint-breadcrumb-color,var(--flint-text-color-muted));border:none;justify-content:center;align-items:center;padding:2px 8px;line-height:1.5;transition:background-color .2s;display:flex}.collapsed-button:hover{background-color:var(--flint-breadcrumb-collapsed-hover-bg,var(--flint-active-color))}.collapsed-button:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:2px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.maxItems = 8, this.itemsBefore = 1, this.itemsAfter = 1, this.separator = "/", this._expanded = !1, this._itemsCount = 0, this._separatorNode = null;
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = i(c);
|
|
11
|
+
}
|
|
12
|
+
_handleSlotChange() {
|
|
13
|
+
let e = Array.from(this.children).filter((e) => !e.slot || e.slot.startsWith("breadcrumb-item-"));
|
|
14
|
+
e.forEach((e, t) => {
|
|
15
|
+
let n = `breadcrumb-item-${t}`;
|
|
16
|
+
e.getAttribute("slot") !== n && e.setAttribute("slot", n);
|
|
17
|
+
}), this._itemsCount = e.length;
|
|
18
|
+
}
|
|
19
|
+
_handleSeparatorSlotChange(e) {
|
|
20
|
+
let t = e.target.assignedNodes({ flatten: !0 });
|
|
21
|
+
this._separatorNode = t.length > 0 ? t[0].cloneNode(!0) : null;
|
|
22
|
+
}
|
|
23
|
+
_renderSeparator() {
|
|
24
|
+
return n`
|
|
25
|
+
<span class="separator" aria-hidden="true">
|
|
26
|
+
${this._separatorNode ? this._separatorNode.cloneNode(!0) : this.separator}
|
|
27
|
+
</span>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
_renderItem(e, t) {
|
|
31
|
+
return n`
|
|
32
|
+
<li class="breadcrumb-li" aria-current=${t ? "page" : r}>
|
|
33
|
+
<slot name="breadcrumb-item-${e}"></slot>
|
|
34
|
+
${t ? "" : this._renderSeparator()}
|
|
35
|
+
</li>
|
|
36
|
+
`;
|
|
37
|
+
}
|
|
38
|
+
_renderCollapsed() {
|
|
39
|
+
let e = this._itemsCount;
|
|
40
|
+
if (e === 0) return n``;
|
|
41
|
+
if (e <= this.maxItems || this._expanded) return Array.from({ length: e }).map((t, n) => this._renderItem(n, n === e - 1));
|
|
42
|
+
let t = Math.min(this.itemsBefore, e), r = Math.min(this.itemsAfter, e - t);
|
|
43
|
+
if (t + r >= e) return Array.from({ length: e }).map((t, n) => this._renderItem(n, n === e - 1));
|
|
44
|
+
let i = Array.from({ length: t }).map((e, t) => t), a = Array.from({ length: r }).map((t, n) => e - r + n);
|
|
45
|
+
return n`
|
|
46
|
+
${i.map((e) => this._renderItem(e, !1))}
|
|
47
|
+
<li class="breadcrumb-li">
|
|
48
|
+
<button class="collapsed-button" @click=${() => {
|
|
49
|
+
this._expanded = !0;
|
|
50
|
+
}} aria-label="Show all breadcrumbs">
|
|
51
|
+
…
|
|
52
|
+
</button>
|
|
53
|
+
${this._renderSeparator()}
|
|
54
|
+
</li>
|
|
55
|
+
${a.map((e, t) => this._renderItem(e, t === a.length - 1))}
|
|
56
|
+
`;
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
return n`
|
|
60
|
+
<nav aria-label="breadcrumb">
|
|
61
|
+
<ol class="breadcrumbs-ol">
|
|
62
|
+
${this._renderCollapsed()}
|
|
63
|
+
</ol>
|
|
64
|
+
</nav>
|
|
65
|
+
<div style="display: none" aria-hidden="true">
|
|
66
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
67
|
+
<slot name="separator" @slotchange=${this._handleSeparatorSlotChange}></slot>
|
|
68
|
+
</div>
|
|
69
|
+
`;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
e([o({
|
|
73
|
+
type: Number,
|
|
74
|
+
attribute: "max-items"
|
|
75
|
+
})], l.prototype, "maxItems", void 0), e([o({
|
|
76
|
+
type: Number,
|
|
77
|
+
attribute: "items-before"
|
|
78
|
+
})], l.prototype, "itemsBefore", void 0), e([o({
|
|
79
|
+
type: Number,
|
|
80
|
+
attribute: "items-after"
|
|
81
|
+
})], l.prototype, "itemsAfter", void 0), e([o({ type: String })], l.prototype, "separator", void 0), e([s()], l.prototype, "_expanded", void 0), e([s()], l.prototype, "_itemsCount", void 0), e([s()], l.prototype, "_separatorNode", void 0), l = e([a("flint-breadcrumbs")], l);
|
|
82
|
+
//#endregion
|
|
83
|
+
export { l 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/button/flint-button.css?inline
|
|
6
|
+
var s = ":host{display:inline-block}:host([full-width]){display:block}button{font-family:var(--flint-font-family);border-radius:var(--flint-button-border-radius,var(--flint-border-radius-md));cursor:pointer;width:100%;box-shadow:var(--flint-shadow-sm);border:none;justify-content:center;align-items:center;gap:8px;font-weight:600;transition:all .2s;display:inline-flex}.primary{background-color:var(--flint-primary-color);color:var(--flint-text-color-on-primary)}.primary:hover{background-color:var(--flint-primary-color-hover)}.primary:active{background-color:var(--flint-primary-color-active)}.secondary{background-color:var(--flint-surface-1);color:var(--flint-text-color);border:1px solid var(--flint-input-border-color)}.secondary:hover{background-color:var(--flint-hover-color)}.secondary:active{background-color:var(--flint-active-color)}.destructive{background-color:var(--flint-destructive-color);color:var(--flint-text-color-on-primary)}.destructive:hover{background-color:var(--flint-destructive-color-hover)}.destructive:active{background-color:var(--flint-destructive-color-active)}.small{padding:6px 12px;font-size:14px}.medium{padding:10px 16px;font-size:14px}.large{padding:14px 20px;font-size:16px}button:disabled{opacity:.6;cursor:not-allowed}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.variant = "primary", this.size = "medium", this.disabled = !1, this.fullWidth = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return n`
|
|
15
|
+
<button
|
|
16
|
+
type="button"
|
|
17
|
+
class=${o({
|
|
18
|
+
primary: this.variant === "primary",
|
|
19
|
+
secondary: this.variant === "secondary",
|
|
20
|
+
destructive: this.variant === "destructive",
|
|
21
|
+
small: this.size === "small",
|
|
22
|
+
medium: this.size === "medium",
|
|
23
|
+
large: this.size === "large"
|
|
24
|
+
})}
|
|
25
|
+
?disabled=${this.disabled}
|
|
26
|
+
part="button"
|
|
27
|
+
>
|
|
28
|
+
<slot></slot>
|
|
29
|
+
</button>
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
e([a({ type: String })], c.prototype, "variant", void 0), e([a({ type: String })], c.prototype, "size", void 0), e([a({ type: Boolean })], c.prototype, "disabled", void 0), e([a({
|
|
34
|
+
type: Boolean,
|
|
35
|
+
reflect: !0,
|
|
36
|
+
attribute: "full-width"
|
|
37
|
+
})], c.prototype, "fullWidth", void 0), c = e([i("flint-button")], c);
|
|
38
|
+
//#endregion
|
|
39
|
+
export { c as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
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 } from "lit/decorators.js";
|
|
4
|
+
//#region src/button/flint-button-group.css?inline
|
|
5
|
+
var a = ":host{border-radius:var(--flint-border-radius-md,6px);display:inline-flex}::slotted(flint-button){position:relative}::slotted(flint-button:hover),::slotted(flint-button:focus-within),::slotted(flint-button:active){z-index:1}::slotted(flint-button:not(:first-child)){margin-left:-1px}::slotted(flint-button){--flint-button-border-radius:0}::slotted(flint-button:first-child){--flint-button-border-radius:var(--flint-border-radius-md,6px) 0 0 var(--flint-border-radius-md,6px)}::slotted(flint-button:last-child){--flint-button-border-radius:0 var(--flint-border-radius-md,6px) var(--flint-border-radius-md,6px) 0}::slotted(flint-button:first-child:last-child){--flint-button-border-radius:var(--flint-border-radius-md,6px)}", o = class extends t {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = r(a);
|
|
8
|
+
}
|
|
9
|
+
connectedCallback() {
|
|
10
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "group");
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return n`
|
|
14
|
+
<slot></slot>
|
|
15
|
+
`;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
o = e([i("flint-button-group")], o);
|
|
19
|
+
//#endregion
|
|
20
|
+
export { o as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
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/card/flint-card.css?inline
|
|
6
|
+
var s = ":host{font-family:Inter,sans-serif;display:block}.card{background:var(--flint-card-background);border-radius:var(--flint-card-border-radius);box-shadow:var(--flint-card-shadow);border:1px solid var(--flint-card-border-color);padding:var(--flint-card-padding,0);flex-direction:column;transition:box-shadow .3s,border-color .3s;display:flex;overflow:hidden}.card.interactive:hover{box-shadow:var(--flint-card-shadow-hover);cursor:pointer}.card.variant-outlined{box-shadow:none;border:1px solid var(--flint-card-border-color)}.card.variant-flat{box-shadow:none;background:var(--flint-card-background-flat);border:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.variant = "elevated", this.interactive = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return n`
|
|
15
|
+
<div class=${o({
|
|
16
|
+
card: !0,
|
|
17
|
+
[`variant-${this.variant}`]: !0,
|
|
18
|
+
interactive: this.interactive
|
|
19
|
+
})} part="card">
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</div>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
e([a({
|
|
26
|
+
type: String,
|
|
27
|
+
reflect: !0
|
|
28
|
+
})], c.prototype, "variant", void 0), e([a({
|
|
29
|
+
type: Boolean,
|
|
30
|
+
reflect: !0
|
|
31
|
+
})], c.prototype, "interactive", void 0), c = e([i("flint-card")], c);
|
|
32
|
+
//#endregion
|
|
33
|
+
export { c as t };
|
|
@@ -0,0 +1,22 @@
|
|
|
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 } from "lit/decorators.js";
|
|
4
|
+
//#region src/card/flint-card-action-area.css?inline
|
|
5
|
+
var a = ":host{cursor:pointer;width:100%;display:block;position:relative}.action-area{transition:background-color .2s}.action-area:hover{background-color:var(--flint-card-action-area-hover,var(--flint-hover-color))}.action-area:active{background-color:var(--flint-card-action-area-active,var(--flint-active-color))}.action-area:focus-visible{outline:2px solid var(--flint-card-action-area-focus-ring,var(--flint-primary-color));outline-offset:-2px}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", o = class extends t {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = r(a);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return n`
|
|
11
|
+
<div class="action-area" part="action-area" @keydown=${this._handleKeyDown} tabindex="0" role="button">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
_handleKeyDown(e) {
|
|
17
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.click());
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
o = e([i("flint-card-action-area")], o);
|
|
21
|
+
//#endregion
|
|
22
|
+
export { o as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
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 } from "lit/decorators.js";
|
|
4
|
+
//#region src/card/flint-card-actions.css?inline
|
|
5
|
+
var a = ":host{padding:var(--flint-card-actions-padding,8px 16px);align-items:center;gap:8px;display:flex}", o = class extends t {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = r(a);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return n`
|
|
11
|
+
<slot></slot>
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
o = e([i("flint-card-actions")], o);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { o as t };
|
|
@@ -0,0 +1,17 @@
|
|
|
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 } from "lit/decorators.js";
|
|
4
|
+
//#region src/card/flint-card-content.css?inline
|
|
5
|
+
var a = ":host{padding:var(--flint-card-content-padding,16px 24px);font-size:var(--flint-card-content-size,1rem);color:var(--flint-text-color-muted);line-height:1.5;display:block}", o = class extends t {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = r(a);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return n`
|
|
11
|
+
<slot></slot>
|
|
12
|
+
`;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
o = e([i("flint-card-content")], o);
|
|
16
|
+
//#endregion
|
|
17
|
+
export { o as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
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/card/flint-card-header.css?inline
|
|
5
|
+
var o = ":host{padding:var(--flint-card-header-padding,16px 24px);display:block}.header{align-items:center;gap:16px;display:flex}.content{flex:auto}.title{font-size:var(--flint-card-title-size,1.25rem);color:var(--flint-text-color);margin:0;font-weight:700;line-height:1.4}.subtitle{font-size:var(--flint-card-subtitle-size,.875rem);color:var(--flint-text-color-muted);margin:4px 0 0;font-weight:500}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.title = "", this.subtitle = "";
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return n`
|
|
14
|
+
<div class="header" part="header">
|
|
15
|
+
<slot name="avatar"></slot>
|
|
16
|
+
<div class="content" part="content">
|
|
17
|
+
${this.title ? n`<h3 class="title" part="title">${this.title}</h3>` : ""}
|
|
18
|
+
${this.subtitle ? n`<p class="subtitle" part="subtitle">${this.subtitle}</p>` : ""}
|
|
19
|
+
<slot></slot>
|
|
20
|
+
</div>
|
|
21
|
+
<slot name="action"></slot>
|
|
22
|
+
</div>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
e([a({ type: String })], s.prototype, "title", void 0), e([a({ type: String })], s.prototype, "subtitle", void 0), s = e([i("flint-card-header")], s);
|
|
27
|
+
//#endregion
|
|
28
|
+
export { s as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
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/card/flint-card-media.css?inline
|
|
5
|
+
var o = ":host{width:100%;display:block;overflow:hidden}.media{width:100%;height:var(--flint-card-media-height,200px);background-position:50%;background-repeat:no-repeat;background-size:cover}img{object-fit:cover;width:100%;height:100%;display:block}", s = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.image = "", this.alt = "", this.height = "";
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = r(o);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
if (this.image) {
|
|
14
|
+
let e = this.height ? isNaN(Number(this.height)) ? this.height : `${this.height}px` : "";
|
|
15
|
+
return n`
|
|
16
|
+
<div class="media" part="media" style=${e ? `height: ${e}` : ""}>
|
|
17
|
+
<img src="${this.image}" alt="${this.alt}" part="img" loading="lazy" />
|
|
18
|
+
</div>
|
|
19
|
+
`;
|
|
20
|
+
}
|
|
21
|
+
return n`<slot></slot>`;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
e([a({ type: String })], s.prototype, "image", void 0), e([a({ type: String })], s.prototype, "alt", void 0), e([a({ type: String })], s.prototype, "height", void 0), s = e([i("flint-card-media")], s);
|
|
25
|
+
//#endregion
|
|
26
|
+
export { s as t };
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, css as n, html as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
4
|
+
//#region src/carousel/flint-carousel-content.css?inline
|
|
5
|
+
var s = ":host{width:100%;display:block;overflow:hidden}.track{gap:var(--flint-carousel-gap,0px);will-change:transform;height:100%;transition:transform var(--flint-carousel-duration,.35s) var(--flint-carousel-ease,cubic-bezier(.25, .1, .25, 1));flex-wrap:nowrap;display:flex}:host([orientation=vertical]){height:var(--flint-carousel-height,320px)}:host([orientation=vertical]) .track{flex-direction:column}::slotted(flint-carousel-item){flex:0 0 calc((100% - (var(--flint-carousel-items-per-view,1) - 1) * var(--flint-carousel-gap,0px)) / var(--flint-carousel-items-per-view,1));min-width:0;min-height:0}:host([orientation=vertical]) ::slotted(flint-carousel-item){flex:0 0 calc((var(--flint-carousel-height,320px) - (var(--flint-carousel-items-per-view,1) - 1) * var(--flint-carousel-gap,0px)) / var(--flint-carousel-items-per-view,1));min-height:0}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", c = ":host{flex-shrink:0;min-width:0;display:block}.item{width:100%;height:100%}", l = ":host{display:block;position:relative}.carousel{outline:none;width:100%;position:relative}.carousel:focus-visible{outline:2px solid var(--flint-primary-color);outline-offset:4px;border-radius:var(--flint-border-radius-md)}", u = n`
|
|
6
|
+
:host {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
}
|
|
9
|
+
button {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
width: var(--flint-carousel-nav-button-size, 36px);
|
|
14
|
+
height: var(--flint-carousel-nav-button-size, 36px);
|
|
15
|
+
border-radius: 50%;
|
|
16
|
+
border: 1px solid var(--flint-border-color, #e5e7eb);
|
|
17
|
+
background: var(--flint-surface-background, #ffffff);
|
|
18
|
+
color: var(--flint-text-color, #111827);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: 0;
|
|
21
|
+
transition: background 0.2s, border-color 0.2s;
|
|
22
|
+
box-shadow: var(--flint-shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
|
|
23
|
+
}
|
|
24
|
+
button:hover:not(:disabled) {
|
|
25
|
+
background: var(--flint-surface-background-flat, #f3f4f6);
|
|
26
|
+
border-color: var(--flint-input-border-color, #d1d5db);
|
|
27
|
+
}
|
|
28
|
+
button:focus-visible {
|
|
29
|
+
outline: 2px solid var(--flint-primary-color, #2563eb);
|
|
30
|
+
outline-offset: 2px;
|
|
31
|
+
}
|
|
32
|
+
button:disabled {
|
|
33
|
+
opacity: 0.4;
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
}
|
|
37
|
+
`, d = class extends t {
|
|
38
|
+
constructor(...e) {
|
|
39
|
+
super(...e), this.index = 0, this.itemsPerView = 1, this.orientation = "horizontal";
|
|
40
|
+
}
|
|
41
|
+
static {
|
|
42
|
+
this.styles = i(s);
|
|
43
|
+
}
|
|
44
|
+
updated(e) {
|
|
45
|
+
e.has("itemsPerView") && this.style.setProperty("--flint-carousel-items-per-view", String(this.itemsPerView));
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
let e = `calc((100% + var(--flint-carousel-gap, 0px)) / ${this.itemsPerView})`, t = `calc(-${this.index} * ${e})`;
|
|
49
|
+
return r`
|
|
50
|
+
<div
|
|
51
|
+
class="track"
|
|
52
|
+
style="transform: ${this.orientation === "vertical" ? `translateY(${t})` : `translateX(${t})`}"
|
|
53
|
+
aria-live="polite"
|
|
54
|
+
aria-atomic="false"
|
|
55
|
+
>
|
|
56
|
+
<slot></slot>
|
|
57
|
+
</div>
|
|
58
|
+
`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
e([o({ type: Number })], d.prototype, "index", void 0), e([o({
|
|
62
|
+
type: Number,
|
|
63
|
+
attribute: "items-per-view"
|
|
64
|
+
})], d.prototype, "itemsPerView", void 0), e([o({ reflect: !0 })], d.prototype, "orientation", void 0), d = e([a("flint-carousel-content")], d);
|
|
65
|
+
var f = class extends t {
|
|
66
|
+
static {
|
|
67
|
+
this.styles = i(c);
|
|
68
|
+
}
|
|
69
|
+
render() {
|
|
70
|
+
return r`
|
|
71
|
+
<div class="item" role="group" aria-roledescription="slide">
|
|
72
|
+
<slot></slot>
|
|
73
|
+
</div>
|
|
74
|
+
`;
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
f = e([a("flint-carousel-item")], f);
|
|
78
|
+
var p = class extends t {
|
|
79
|
+
constructor(...e) {
|
|
80
|
+
super(...e), this.disabled = !1, this.orientation = "horizontal", this._handleClick = () => {
|
|
81
|
+
this.closest("flint-carousel")?.previous();
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static {
|
|
85
|
+
this.styles = u;
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
let e = this.orientation === "vertical" ? r`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="18 15 12 9 6 15"></polyline></svg>` : r`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 18 9 12 15 6"></polyline></svg>`;
|
|
89
|
+
return r`
|
|
90
|
+
<button
|
|
91
|
+
type="button"
|
|
92
|
+
part="button"
|
|
93
|
+
?disabled=${this.disabled}
|
|
94
|
+
aria-label="Go to previous slide"
|
|
95
|
+
@click=${this._handleClick}
|
|
96
|
+
>
|
|
97
|
+
<slot>${e}</slot>
|
|
98
|
+
</button>
|
|
99
|
+
`;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
e([o({
|
|
103
|
+
type: Boolean,
|
|
104
|
+
reflect: !0
|
|
105
|
+
})], p.prototype, "disabled", void 0), e([o({ reflect: !0 })], p.prototype, "orientation", void 0), p = e([a("flint-carousel-previous")], p);
|
|
106
|
+
var m = class extends t {
|
|
107
|
+
constructor(...e) {
|
|
108
|
+
super(...e), this.disabled = !1, this.orientation = "horizontal", this._handleClick = () => {
|
|
109
|
+
this.closest("flint-carousel")?.next();
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
static {
|
|
113
|
+
this.styles = u;
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
let e = this.orientation === "vertical" ? r`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"></polyline></svg>` : r`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>`;
|
|
117
|
+
return r`
|
|
118
|
+
<button
|
|
119
|
+
type="button"
|
|
120
|
+
part="button"
|
|
121
|
+
?disabled=${this.disabled}
|
|
122
|
+
aria-label="Go to next slide"
|
|
123
|
+
@click=${this._handleClick}
|
|
124
|
+
>
|
|
125
|
+
<slot>${e}</slot>
|
|
126
|
+
</button>
|
|
127
|
+
`;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
e([o({
|
|
131
|
+
type: Boolean,
|
|
132
|
+
reflect: !0
|
|
133
|
+
})], m.prototype, "disabled", void 0), e([o({ reflect: !0 })], m.prototype, "orientation", void 0), m = e([a("flint-carousel-next")], m);
|
|
134
|
+
var h = class extends t {
|
|
135
|
+
constructor(...e) {
|
|
136
|
+
super(...e), this.loop = !1, this.orientation = "horizontal", this.autoplay = 0, this.itemsPerView = 1, this.label = "Carousel", this._currentIndex = 0, this._total = 0, this._observer = null, this._autoplayTimer = null, this._handleKeydown = (e) => {
|
|
137
|
+
let t = this.orientation === "vertical", n = t ? "ArrowUp" : "ArrowLeft", r = t ? "ArrowDown" : "ArrowRight";
|
|
138
|
+
e.key === n ? (e.preventDefault(), this.previous()) : e.key === r && (e.preventDefault(), this.next());
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
static {
|
|
142
|
+
this.styles = i(l);
|
|
143
|
+
}
|
|
144
|
+
connectedCallback() {
|
|
145
|
+
super.connectedCallback();
|
|
146
|
+
}
|
|
147
|
+
disconnectedCallback() {
|
|
148
|
+
super.disconnectedCallback(), this._observer?.disconnect(), this._observer = null, this._stopAutoplay();
|
|
149
|
+
}
|
|
150
|
+
firstUpdated() {
|
|
151
|
+
this._countItems(), this._syncNavigation();
|
|
152
|
+
let e = this.querySelector("flint-carousel-content");
|
|
153
|
+
e && (this._observer = new MutationObserver(() => {
|
|
154
|
+
this._countItems(), this._syncNavigation();
|
|
155
|
+
}), this._observer.observe(e, { childList: !0 })), this.autoplay > 0 && this._startAutoplay();
|
|
156
|
+
}
|
|
157
|
+
updated(e) {
|
|
158
|
+
e.has("autoplay") && (this._stopAutoplay(), this.autoplay > 0 && this._startAutoplay()), (e.has("orientation") || e.has("loop") || e.has("itemsPerView")) && this._syncNavigation();
|
|
159
|
+
}
|
|
160
|
+
_countItems() {
|
|
161
|
+
let e = this.querySelector("flint-carousel-content"), t = e ? e.querySelectorAll("flint-carousel-item").length : 0;
|
|
162
|
+
t !== this._total && (this._total = t, this._currentIndex = Math.min(this._currentIndex, Math.max(0, t - 1)));
|
|
163
|
+
}
|
|
164
|
+
_syncNavigation() {
|
|
165
|
+
let e = this.querySelector("flint-carousel-content"), t = this.querySelector("flint-carousel-previous"), n = this.querySelector("flint-carousel-next"), r = Math.max(0, this._total - this.itemsPerView);
|
|
166
|
+
e && (e.index = this._currentIndex, e.orientation = this.orientation, e.itemsPerView = this.itemsPerView), t && (t.disabled = !this.loop && this._currentIndex === 0, t.orientation = this.orientation), n && (n.disabled = !this.loop && (this._total === 0 || this._currentIndex >= r), n.orientation = this.orientation);
|
|
167
|
+
}
|
|
168
|
+
_fireChange() {
|
|
169
|
+
this.dispatchEvent(new CustomEvent("flint-carousel-change", {
|
|
170
|
+
detail: {
|
|
171
|
+
index: this._currentIndex,
|
|
172
|
+
total: this._total
|
|
173
|
+
},
|
|
174
|
+
bubbles: !0,
|
|
175
|
+
composed: !0
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
178
|
+
next() {
|
|
179
|
+
if (this._total === 0) return;
|
|
180
|
+
let e = Math.max(0, this._total - this.itemsPerView);
|
|
181
|
+
!this.loop && this._currentIndex >= e || (this._currentIndex = this.loop ? (this._currentIndex + 1) % this._total : this._currentIndex + 1, this._syncNavigation(), this._fireChange());
|
|
182
|
+
}
|
|
183
|
+
previous() {
|
|
184
|
+
this._total !== 0 && (!this.loop && this._currentIndex <= 0 || (this._currentIndex = this.loop ? (this._currentIndex - 1 + this._total) % this._total : this._currentIndex - 1, this._syncNavigation(), this._fireChange()));
|
|
185
|
+
}
|
|
186
|
+
goTo(e) {
|
|
187
|
+
e < 0 || e >= this._total || e === this._currentIndex || (this._currentIndex = e, this._syncNavigation(), this._fireChange());
|
|
188
|
+
}
|
|
189
|
+
get currentIndex() {
|
|
190
|
+
return this._currentIndex;
|
|
191
|
+
}
|
|
192
|
+
get total() {
|
|
193
|
+
return this._total;
|
|
194
|
+
}
|
|
195
|
+
_startAutoplay() {
|
|
196
|
+
this._stopAutoplay(), this._autoplayTimer = setInterval(() => {
|
|
197
|
+
let e = Math.max(0, this._total - this.itemsPerView);
|
|
198
|
+
this.loop || this._currentIndex < e ? this.next() : this._stopAutoplay();
|
|
199
|
+
}, this.autoplay);
|
|
200
|
+
}
|
|
201
|
+
_stopAutoplay() {
|
|
202
|
+
this._autoplayTimer !== null && (clearInterval(this._autoplayTimer), this._autoplayTimer = null);
|
|
203
|
+
}
|
|
204
|
+
render() {
|
|
205
|
+
return r`
|
|
206
|
+
<div
|
|
207
|
+
class="carousel"
|
|
208
|
+
role="region"
|
|
209
|
+
aria-roledescription="carousel"
|
|
210
|
+
aria-label="${this.label}"
|
|
211
|
+
tabindex="0"
|
|
212
|
+
@keydown=${this._handleKeydown}
|
|
213
|
+
>
|
|
214
|
+
<slot></slot>
|
|
215
|
+
</div>
|
|
216
|
+
`;
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
e([o({ type: Boolean })], h.prototype, "loop", void 0), e([o({ reflect: !0 })], h.prototype, "orientation", void 0), e([o({ type: Number })], h.prototype, "autoplay", void 0), e([o({
|
|
220
|
+
type: Number,
|
|
221
|
+
attribute: "items-per-view"
|
|
222
|
+
})], h.prototype, "itemsPerView", void 0), e([o()], h.prototype, "label", void 0), h = e([a("flint-carousel")], h);
|
|
223
|
+
//#endregion
|
|
224
|
+
export { p as a, m as i, d as n, f as r, h as t };
|