@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,87 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { t } from "./form-associated-EGIhyHHt.js";
|
|
3
|
+
import { LitElement as n, html as r, unsafeCSS as i } from "lit";
|
|
4
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
5
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
6
|
+
//#region src/input/flint-input.css?inline
|
|
7
|
+
var c = ":host{font-family:var(--flint-font-family);display:block}.input-wrapper{flex-direction:column;gap:6px;display:flex}label{color:var(--flint-label-color);font-size:14px;font-weight:500}input{box-sizing:border-box;border-radius:var(--flint-input-border-radius);border:1px solid var(--flint-input-border-color);background-color:var(--flint-input-bg);width:100%;color:var(--flint-text-color);outline:none;padding:10px 14px;font-family:inherit;font-size:14px;transition:border-color .2s,box-shadow .2s}:host([size=sm]) input{padding:6px 10px;font-size:13px}:host([size=lg]) input{padding:12px 16px;font-size:16px}input::placeholder{color:var(--flint-input-placeholder-color)}input:hover:not(:disabled):not(.error-input){border-color:var(--flint-input-border-hover-color)}input:focus-visible{border-color:var(--flint-primary-color);box-shadow:0 0 0 3px var(--flint-primary-focus-ring)}input[aria-invalid=true]{border-color:var(--flint-error-color)}input[aria-invalid=true]:focus-visible{box-shadow:0 0 0 3px var(--flint-error-focus-ring)}input:disabled{background-color:var(--flint-input-disabled-bg);color:var(--flint-input-disabled-color);cursor:not-allowed;opacity:1}input[readonly]{background-color:var(--flint-input-readonly-bg);cursor:default}.help-text{color:var(--flint-help-text-color);margin:0;font-size:12px}.error-text{color:var(--flint-error-color)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = 0, u = class extends t(n) {
|
|
8
|
+
constructor(...e) {
|
|
9
|
+
super(...e), this._inputId = `flint-input-${++l}`, this.label = "", this.value = "", this.type = "text", this.placeholder = "", this.helpText = "", this.error = !1, this.errorMessage = "", this.disabled = !1, this.required = !1, this.readonly = !1, this.name = "", this.autocomplete = "", this.size = "default";
|
|
10
|
+
}
|
|
11
|
+
static {
|
|
12
|
+
this.styles = i(c);
|
|
13
|
+
}
|
|
14
|
+
get inputElement() {
|
|
15
|
+
return this.shadowRoot.querySelector("input");
|
|
16
|
+
}
|
|
17
|
+
formResetCallback() {
|
|
18
|
+
this.value = "", this._updateFormValue();
|
|
19
|
+
}
|
|
20
|
+
_updateFormValue() {
|
|
21
|
+
this._initFormValue(this.value || null), this._initFormValidity(this.required, !this.value, "Please fill out this field.");
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
let e = this.error || !!this.errorMessage, t = e && this.errorMessage || this.helpText ? `${this._inputId}-desc` : void 0;
|
|
25
|
+
return r`
|
|
26
|
+
<div class="input-wrapper" part="wrapper">
|
|
27
|
+
${this.label ? r`<label for=${this._inputId} part="label">${this.label}</label>` : ""}
|
|
28
|
+
|
|
29
|
+
<input
|
|
30
|
+
id=${this._inputId}
|
|
31
|
+
part="input"
|
|
32
|
+
.type=${this.type}
|
|
33
|
+
.value=${this.value}
|
|
34
|
+
.placeholder=${this.placeholder}
|
|
35
|
+
?disabled=${this.disabled}
|
|
36
|
+
?readonly=${this.readonly}
|
|
37
|
+
?required=${this.required}
|
|
38
|
+
aria-required=${this.required ? "true" : "false"}
|
|
39
|
+
aria-invalid=${e ? "true" : "false"}
|
|
40
|
+
aria-describedby=${t ?? ""}
|
|
41
|
+
name=${this.name}
|
|
42
|
+
autocomplete=${this.autocomplete}
|
|
43
|
+
class=${s({ "error-input": e })}
|
|
44
|
+
@input=${this._handleInput}
|
|
45
|
+
@change=${this._handleChange}
|
|
46
|
+
/>
|
|
47
|
+
|
|
48
|
+
${e && this.errorMessage ? r`<p id=${t} class="help-text error-text" part="error-text" role="alert">${this.errorMessage}</p>` : this.helpText ? r`<p id=${t} class="help-text" part="help-text">${this.helpText}</p>` : ""}
|
|
49
|
+
</div>
|
|
50
|
+
`;
|
|
51
|
+
}
|
|
52
|
+
_handleInput(e) {
|
|
53
|
+
this.value = e.target.value, this._updateFormValue(), this.dispatchEvent(new CustomEvent("flint-input-input", {
|
|
54
|
+
detail: { value: this.value },
|
|
55
|
+
bubbles: !0,
|
|
56
|
+
composed: !0
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
_handleChange(e) {
|
|
60
|
+
this.value = e.target.value, this._updateFormValue(), this.dispatchEvent(new CustomEvent("flint-input-change", {
|
|
61
|
+
detail: { value: this.value },
|
|
62
|
+
bubbles: !0,
|
|
63
|
+
composed: !0
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
e([o({ type: String })], u.prototype, "label", void 0), e([o({ type: String })], u.prototype, "value", void 0), e([o({ type: String })], u.prototype, "type", void 0), e([o({ type: String })], u.prototype, "placeholder", void 0), e([o({
|
|
68
|
+
type: String,
|
|
69
|
+
attribute: "help-text"
|
|
70
|
+
})], u.prototype, "helpText", void 0), e([o({ type: Boolean })], u.prototype, "error", void 0), e([o({
|
|
71
|
+
type: String,
|
|
72
|
+
attribute: "error-message"
|
|
73
|
+
})], u.prototype, "errorMessage", void 0), e([o({
|
|
74
|
+
type: Boolean,
|
|
75
|
+
reflect: !0
|
|
76
|
+
})], u.prototype, "disabled", void 0), e([o({
|
|
77
|
+
type: Boolean,
|
|
78
|
+
reflect: !0
|
|
79
|
+
})], u.prototype, "required", void 0), e([o({
|
|
80
|
+
type: Boolean,
|
|
81
|
+
reflect: !0
|
|
82
|
+
})], u.prototype, "readonly", void 0), e([o({ type: String })], u.prototype, "name", void 0), e([o({ type: String })], u.prototype, "autocomplete", void 0), e([o({
|
|
83
|
+
type: String,
|
|
84
|
+
reflect: !0
|
|
85
|
+
})], u.prototype, "size", void 0), u = e([a("flint-input")], u);
|
|
86
|
+
//#endregion
|
|
87
|
+
export { u as t };
|
|
@@ -0,0 +1,203 @@
|
|
|
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, query as s } from "lit/decorators.js";
|
|
4
|
+
//#region src/input-otp/flint-input-otp-group.css?inline
|
|
5
|
+
var c = ":host{align-items:center;display:inline-flex}", l = ":host{color:var(--flint-text-color,#111827);align-items:center;padding:0 6px;display:inline-flex}.bar{opacity:.4;background:currentColor;border-radius:1px;width:8px;height:2px}", u = ":host{width:var(--flint-otp-slot-width,40px);height:var(--flint-otp-slot-height,48px);font-size:var(--flint-otp-slot-font-size,1.25rem);font-family:var(--flint-font-family);color:var(--flint-text-color);background:var(--flint-input-bg);border:1px solid var(--flint-input-border-color);cursor:text;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;margin-left:-1px;font-weight:500;transition:border-color .15s,box-shadow .15s;display:inline-flex;position:relative}:host(:first-child){border-radius:var(--flint-otp-slot-radius,6px) 0 0 var(--flint-otp-slot-radius,6px);margin-left:0}:host(:last-child){border-radius:0 var(--flint-otp-slot-radius,6px) var(--flint-otp-slot-radius,6px) 0}:host([active]){z-index:1;border-color:var(--flint-primary-color);box-shadow:0 0 0 2px var(--flint-primary-focus-ring)}:host([invalid]){border-color:var(--flint-error-color)}:host([invalid][active]){border-color:var(--flint-error-color);box-shadow:0 0 0 2px var(--flint-error-focus-ring)}.cursor{background:var(--flint-text-color);border-radius:1px;width:2px;height:1.2em;animation:1.2s step-end infinite otp-blink}@keyframes otp-blink{0%,to{opacity:1}50%{opacity:0}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", d = ":host{align-items:center;gap:var(--flint-otp-gap,8px);cursor:text;font-family:var(--flint-font-family,system-ui, sans-serif);display:inline-flex;position:relative}:host([disabled]){opacity:.5;cursor:not-allowed;pointer-events:none}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.hidden-input{opacity:0;pointer-events:none;border:none;outline:none;width:1px;height:1px;margin:0;padding:0;position:absolute;top:0;left:0}", f, p = class extends t {
|
|
6
|
+
static {
|
|
7
|
+
this.styles = i(c);
|
|
8
|
+
}
|
|
9
|
+
render() {
|
|
10
|
+
return n`<slot></slot>`;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
p = e([a("flint-input-otp-group")], p);
|
|
14
|
+
var m = class extends t {
|
|
15
|
+
static {
|
|
16
|
+
this.styles = i(l);
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return n`<div class="bar"></div>`;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
m = e([a("flint-input-otp-separator")], m);
|
|
23
|
+
var h = class extends t {
|
|
24
|
+
constructor(...e) {
|
|
25
|
+
super(...e), this.index = 0, this.char = "", this.active = !1, this.invalid = !1;
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
this.styles = i(u);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return this.char ? n`${this.char}` : this.active ? n`<div class="cursor"></div>` : n``;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
e([o({ type: Number })], h.prototype, "index", void 0), e([o()], h.prototype, "char", void 0), e([o({
|
|
35
|
+
type: Boolean,
|
|
36
|
+
reflect: !0
|
|
37
|
+
})], h.prototype, "active", void 0), e([o({
|
|
38
|
+
type: Boolean,
|
|
39
|
+
reflect: !0
|
|
40
|
+
})], h.prototype, "invalid", void 0), h = e([a("flint-input-otp-slot")], h);
|
|
41
|
+
var g = class extends t {
|
|
42
|
+
static {
|
|
43
|
+
f = this;
|
|
44
|
+
}
|
|
45
|
+
static {
|
|
46
|
+
this.styles = i(d);
|
|
47
|
+
}
|
|
48
|
+
static {
|
|
49
|
+
this._uidCounter = 0;
|
|
50
|
+
}
|
|
51
|
+
constructor() {
|
|
52
|
+
super(), this.value = "", this.defaultValue = "", this.maxLength = 6, this.pattern = "", this.disabled = !1, this.label = "One-time password", this.description = "", this._internalValue = "", this._focused = !1, this._cursorIndex = 0, this._firstUpdate = !0, this._handleClick = (e) => {
|
|
53
|
+
if (this.disabled) return;
|
|
54
|
+
let t = e.target.closest("flint-input-otp-slot");
|
|
55
|
+
this._hiddenInput?.focus(), t && (this._cursorIndex = Math.min(t.index, this._internalValue.length), this._syncSlots());
|
|
56
|
+
}, this._descId = `flint-input-otp-desc-${f._uidCounter++}`, this.addEventListener("click", this._handleClick);
|
|
57
|
+
}
|
|
58
|
+
connectedCallback() {
|
|
59
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "group");
|
|
60
|
+
}
|
|
61
|
+
disconnectedCallback() {
|
|
62
|
+
super.disconnectedCallback(), this.removeEventListener("click", this._handleClick);
|
|
63
|
+
}
|
|
64
|
+
willUpdate(e) {
|
|
65
|
+
if (this._firstUpdate) {
|
|
66
|
+
this._firstUpdate = !1, this.defaultValue && !this.value ? (this._internalValue = this.defaultValue.slice(0, this.maxLength), this.value = this._internalValue) : this._internalValue = this.value.slice(0, this.maxLength), this._cursorIndex = Math.min(this._internalValue.length, this.maxLength - 1);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
e.has("value") && this.value !== this._internalValue && (this._internalValue = this.value.slice(0, this.maxLength), this._cursorIndex = Math.min(this._cursorIndex, Math.max(0, this._internalValue.length)));
|
|
70
|
+
}
|
|
71
|
+
updated(e) {
|
|
72
|
+
(e.has("value") || e.has("maxLength")) && this._syncSlots();
|
|
73
|
+
}
|
|
74
|
+
_getAllSlots() {
|
|
75
|
+
return Array.from(this.querySelectorAll("flint-input-otp-slot"));
|
|
76
|
+
}
|
|
77
|
+
_syncSlots() {
|
|
78
|
+
let e = this._getAllSlots(), t = this._internalValue.length, n = this._focused ? this._cursorIndex : -1;
|
|
79
|
+
for (let r of e) {
|
|
80
|
+
let e = r.index;
|
|
81
|
+
r.char = e < t ? this._internalValue[e] : "", r.active = e === n;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
_filterByPattern(e) {
|
|
85
|
+
if (!this.pattern) return e;
|
|
86
|
+
let t = new RegExp(this.pattern);
|
|
87
|
+
return e.split("").filter((e) => t.test(e)).join("");
|
|
88
|
+
}
|
|
89
|
+
_commit(e) {
|
|
90
|
+
this._internalValue = e, this.value = e, this._hiddenInput.value = e, this.dispatchEvent(new CustomEvent("flint-otp-change", {
|
|
91
|
+
detail: { value: e },
|
|
92
|
+
bubbles: !0,
|
|
93
|
+
composed: !0
|
|
94
|
+
})), e.length === this.maxLength && this.dispatchEvent(new CustomEvent("flint-otp-complete", {
|
|
95
|
+
detail: { value: e },
|
|
96
|
+
bubbles: !0,
|
|
97
|
+
composed: !0
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
_insertChar(e) {
|
|
101
|
+
if (this.pattern && !new RegExp(this.pattern).test(e)) return;
|
|
102
|
+
let t = this._cursorIndex, n = this._internalValue, r;
|
|
103
|
+
r = t < n.length ? n.slice(0, t) + e + n.slice(t + 1) : n + e, this._commit(r), this._cursorIndex = Math.min(t + 1, this.maxLength - 1), this._syncSlots();
|
|
104
|
+
}
|
|
105
|
+
_deleteBackward() {
|
|
106
|
+
if (this._internalValue.length === 0) return;
|
|
107
|
+
let e = this._cursorIndex;
|
|
108
|
+
if (e === 0) return;
|
|
109
|
+
let t = this._internalValue, n = t.slice(0, e - 1) + t.slice(e);
|
|
110
|
+
this._commit(n), this._cursorIndex = e - 1, this._syncSlots();
|
|
111
|
+
}
|
|
112
|
+
_deleteForward() {
|
|
113
|
+
let e = this._cursorIndex, t = this._internalValue;
|
|
114
|
+
if (e >= t.length) return;
|
|
115
|
+
let n = t.slice(0, e) + t.slice(e + 1);
|
|
116
|
+
this._commit(n), this._syncSlots();
|
|
117
|
+
}
|
|
118
|
+
_moveCursor(e) {
|
|
119
|
+
let t = Math.min(this._internalValue.length, this.maxLength - 1);
|
|
120
|
+
this._cursorIndex = Math.max(0, Math.min(this._cursorIndex + e, t)), this._syncSlots();
|
|
121
|
+
}
|
|
122
|
+
_handleKeydown(e) {
|
|
123
|
+
if (!(e.key === "Tab" || e.metaKey || e.ctrlKey)) {
|
|
124
|
+
if (e.key === "ArrowLeft") {
|
|
125
|
+
e.preventDefault(), this._moveCursor(-1);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (e.key === "ArrowRight") {
|
|
129
|
+
e.preventDefault(), this._moveCursor(1);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (e.key === "Home") {
|
|
133
|
+
e.preventDefault(), this._cursorIndex = 0, this._syncSlots();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (e.key === "End") {
|
|
137
|
+
e.preventDefault(), this._cursorIndex = Math.min(this._internalValue.length, this.maxLength - 1), this._syncSlots();
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
if (e.key === "Backspace") {
|
|
141
|
+
e.preventDefault(), this._deleteBackward();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
if (e.key === "Delete") {
|
|
145
|
+
e.preventDefault(), this._deleteForward();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
e.key.length === 1 && (e.preventDefault(), this._insertChar(e.key));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
_handlePaste(e) {
|
|
152
|
+
e.preventDefault();
|
|
153
|
+
let t = e.clipboardData?.getData("text") ?? "", n = this._filterByPattern(t).slice(0, this.maxLength);
|
|
154
|
+
this._commit(n), this._cursorIndex = Math.min(n.length, this.maxLength - 1), this._syncSlots();
|
|
155
|
+
}
|
|
156
|
+
_handleFocus() {
|
|
157
|
+
this._focused = !0, this._cursorIndex = Math.min(this._internalValue.length, this.maxLength - 1), this._syncSlots();
|
|
158
|
+
}
|
|
159
|
+
_handleBlur() {
|
|
160
|
+
this._focused = !1, this._syncSlots();
|
|
161
|
+
}
|
|
162
|
+
_handleSlotChange() {
|
|
163
|
+
this._syncSlots();
|
|
164
|
+
}
|
|
165
|
+
get _computedInputMode() {
|
|
166
|
+
if (!this.pattern) return "numeric";
|
|
167
|
+
try {
|
|
168
|
+
return new RegExp(this.pattern).test("a") ? "text" : "numeric";
|
|
169
|
+
} catch {
|
|
170
|
+
return "text";
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
render() {
|
|
174
|
+
return n`
|
|
175
|
+
<input
|
|
176
|
+
class="hidden-input"
|
|
177
|
+
type="text"
|
|
178
|
+
autocomplete="one-time-code"
|
|
179
|
+
aria-label=${this.label}
|
|
180
|
+
aria-describedby=${this.description ? this._descId : r}
|
|
181
|
+
.inputMode=${this._computedInputMode}
|
|
182
|
+
.maxLength=${this.maxLength}
|
|
183
|
+
.value=${this._internalValue}
|
|
184
|
+
?disabled=${this.disabled}
|
|
185
|
+
@keydown=${this._handleKeydown}
|
|
186
|
+
@paste=${this._handlePaste}
|
|
187
|
+
@focus=${this._handleFocus}
|
|
188
|
+
@blur=${this._handleBlur}
|
|
189
|
+
/>
|
|
190
|
+
${this.description ? n`<span id=${this._descId} class="sr-only">${this.description}</span>` : r}
|
|
191
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
192
|
+
`;
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
e([o({ reflect: !0 })], g.prototype, "value", void 0), e([o({ attribute: "default-value" })], g.prototype, "defaultValue", void 0), e([o({
|
|
196
|
+
type: Number,
|
|
197
|
+
attribute: "max-length"
|
|
198
|
+
})], g.prototype, "maxLength", void 0), e([o()], g.prototype, "pattern", void 0), e([o({
|
|
199
|
+
type: Boolean,
|
|
200
|
+
reflect: !0
|
|
201
|
+
})], g.prototype, "disabled", void 0), e([o({ type: String })], g.prototype, "label", void 0), e([o({ type: String })], g.prototype, "description", void 0), e([s(".hidden-input")], g.prototype, "_hiddenInput", void 0), g = f = e([a("flint-input-otp")], g);
|
|
202
|
+
//#endregion
|
|
203
|
+
export { h as i, p as n, m as r, g as t };
|
|
@@ -0,0 +1,114 @@
|
|
|
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/item/flint-item-title.css?inline
|
|
6
|
+
var s = ":host{color:var(--flint-text-color);font-size:.875rem;font-weight:500;line-height:1.4;font-family:var(--flint-font-family);display:block}", c = ":host{color:var(--flint-text-color-muted);font-size:.8125rem;line-height:1.5;font-family:var(--flint-font-family);display:block}", l = ":host{flex-shrink:0;justify-content:center;align-items:center;display:flex}.media{justify-content:center;align-items:center;display:flex}.media--icon{background:var(--flint-item-media-icon-bg,var(--flint-surface-2));width:40px;height:40px;color:var(--flint-item-media-icon-color,var(--flint-text-color-muted));border-radius:8px}.media--image{border-radius:6px;flex-shrink:0;width:40px;height:40px;overflow:hidden}::slotted(svg),::slotted([data-icon]){width:20px;height:20px}::slotted(img){object-fit:cover;width:100%;height:100%;display:block}", u = ":host{flex-direction:column;flex:auto;gap:2px;min-width:0;display:flex}", d = ":host{flex-shrink:0;align-items:center;gap:8px;margin-left:auto;display:flex}", f = ":host{flex:0 0 calc(100% + 2 * var(--flint-item-padding,16px));margin-left:calc(-1 * var(--flint-item-padding,16px));margin-right:calc(-1 * var(--flint-item-padding,16px));margin-top:calc(-1 * var(--flint-item-padding,16px));margin-bottom:0;line-height:0;display:block;overflow:hidden}::slotted(img){object-fit:cover;width:100%;display:block}", p = ":host{flex:0 0 calc(100% + 2 * var(--flint-item-padding,16px));margin-left:calc(-1 * var(--flint-item-padding,16px));margin-right:calc(-1 * var(--flint-item-padding,16px));margin-bottom:calc(-1 * var(--flint-item-padding,16px));padding:10px var(--flint-item-padding,16px);border-top:1px solid var(--flint-border-color);background:var(--flint-item-footer-bg,transparent);box-sizing:border-box;color:var(--flint-text-color-muted);font-size:.8125rem;font-family:var(--flint-font-family);margin-top:0;display:block}", m = ":host{background:var(--flint-border-color);height:1px;display:block}", h = ":host{gap:var(--flint-item-group-gap,4px);flex-direction:column;display:flex}", g = ":host{--flint-item-padding:16px;--flint-item-gap:12px;align-items:center;gap:var(--flint-item-gap);padding:var(--flint-item-padding);box-sizing:border-box;font-family:var(--flint-font-family);border-radius:8px;flex-wrap:wrap;display:flex;overflow:hidden}:host([size=sm]){--flint-item-padding:12px;--flint-item-gap:8px}:host([size=xs]){--flint-item-padding:8px;--flint-item-gap:6px}:host([variant=outline]){border:1px solid var(--flint-border-color)}:host([variant=muted]){background:var(--flint-muted-bg,var(--flint-muted-background))}", _ = class extends t {
|
|
7
|
+
static {
|
|
8
|
+
this.styles = r(s);
|
|
9
|
+
}
|
|
10
|
+
render() {
|
|
11
|
+
return n`<slot></slot>`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
_ = e([i("flint-item-title")], _);
|
|
15
|
+
var v = class extends t {
|
|
16
|
+
static {
|
|
17
|
+
this.styles = r(c);
|
|
18
|
+
}
|
|
19
|
+
render() {
|
|
20
|
+
return n`<slot></slot>`;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
v = e([i("flint-item-description")], v);
|
|
24
|
+
var y = class extends t {
|
|
25
|
+
constructor(...e) {
|
|
26
|
+
super(...e), this.variant = "default";
|
|
27
|
+
}
|
|
28
|
+
static {
|
|
29
|
+
this.styles = r(l);
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return n`
|
|
33
|
+
<div class=${o({
|
|
34
|
+
media: !0,
|
|
35
|
+
"media--icon": this.variant === "icon",
|
|
36
|
+
"media--image": this.variant === "image"
|
|
37
|
+
})}>
|
|
38
|
+
<slot></slot>
|
|
39
|
+
</div>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
e([a({ reflect: !0 })], y.prototype, "variant", void 0), y = e([i("flint-item-media")], y);
|
|
44
|
+
var b = class extends t {
|
|
45
|
+
static {
|
|
46
|
+
this.styles = r(u);
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return n`<slot></slot>`;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
b = e([i("flint-item-content")], b);
|
|
53
|
+
var x = class extends t {
|
|
54
|
+
static {
|
|
55
|
+
this.styles = r(d);
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
return n`<slot></slot>`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
x = e([i("flint-item-actions")], x);
|
|
62
|
+
var S = class extends t {
|
|
63
|
+
static {
|
|
64
|
+
this.styles = r(f);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return n`<slot></slot>`;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
S = e([i("flint-item-header")], S);
|
|
71
|
+
var C = class extends t {
|
|
72
|
+
static {
|
|
73
|
+
this.styles = r(p);
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return n`<slot></slot>`;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
C = e([i("flint-item-footer")], C);
|
|
80
|
+
var w = class extends t {
|
|
81
|
+
static {
|
|
82
|
+
this.styles = r(m);
|
|
83
|
+
}
|
|
84
|
+
connectedCallback() {
|
|
85
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "separator"), this.hasAttribute("aria-orientation") || this.setAttribute("aria-orientation", "horizontal");
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
return n``;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
w = e([i("flint-item-separator")], w);
|
|
92
|
+
var T = class extends t {
|
|
93
|
+
static {
|
|
94
|
+
this.styles = r(h);
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
return n`<slot></slot>`;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
T = e([i("flint-item-group")], T);
|
|
101
|
+
var E = class extends t {
|
|
102
|
+
constructor(...e) {
|
|
103
|
+
super(...e), this.variant = "default", this.size = "default";
|
|
104
|
+
}
|
|
105
|
+
static {
|
|
106
|
+
this.styles = r(g);
|
|
107
|
+
}
|
|
108
|
+
render() {
|
|
109
|
+
return n`<slot></slot>`;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
e([a({ reflect: !0 })], E.prototype, "variant", void 0), e([a({ reflect: !0 })], E.prototype, "size", void 0), E = e([i("flint-item")], E);
|
|
113
|
+
//#endregion
|
|
114
|
+
export { C as a, y as c, v as i, w as l, x as n, T as o, b as r, S as s, E as t, _ as u };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
4
|
+
//#region src/kbd/flint-kbd.css?inline
|
|
5
|
+
var s = ":host{justify-content:center;align-items:center;display:inline-flex}kbd{font-family:var(--flint-kbd-font-family,flint-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);color:var(--flint-kbd-color,var(--flint-label-color));background:var(--flint-kbd-bg,var(--flint-surface-2));border:1px solid var(--flint-kbd-border-color,var(--flint-border-color));border-radius:var(--flint-kbd-radius,var(--flint-border-radius-sm));box-shadow:0 1px 0 0 var(--flint-kbd-shadow-color,var(--flint-input-border-color));white-space:nowrap;-webkit-user-select:none;user-select:none;border-bottom-width:2px;justify-content:center;align-items:center;padding:2px 6px;font-size:.8125rem;font-weight:500;line-height:1;display:inline-flex}:host([size=sm]) kbd{padding:1px 4px;font-size:.6875rem}:host([size=lg]) kbd{padding:4px 10px;font-size:.9375rem}:host([variant=flat]) kbd{box-shadow:none;border-bottom-width:1px}", c = ":host{align-items:center;gap:var(--flint-kbd-group-gap,4px);display:inline-flex}", l = class extends t {
|
|
6
|
+
constructor(...e) {
|
|
7
|
+
super(...e), this.size = "default", this.variant = "raised", this.label = "";
|
|
8
|
+
}
|
|
9
|
+
static {
|
|
10
|
+
this.styles = i(s);
|
|
11
|
+
}
|
|
12
|
+
render() {
|
|
13
|
+
return n`
|
|
14
|
+
<kbd aria-label=${this.label || r}>
|
|
15
|
+
<slot></slot>
|
|
16
|
+
</kbd>
|
|
17
|
+
`;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
e([o({ reflect: !0 })], l.prototype, "size", void 0), e([o({ reflect: !0 })], l.prototype, "variant", void 0), e([o({ reflect: !0 })], l.prototype, "label", void 0), l = e([a("flint-kbd")], l);
|
|
21
|
+
var u = class extends t {
|
|
22
|
+
static {
|
|
23
|
+
this.styles = i(c);
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return n`<slot></slot>`;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
u = e([a("flint-kbd-group")], u);
|
|
30
|
+
//#endregion
|
|
31
|
+
export { u as n, l as t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
4
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/progress/flint-linear-progress.css?inline
|
|
6
|
+
var c = ":host{--flint-linear-progress-height:4px;--flint-linear-progress-color:var(--flint-primary-color);--flint-linear-progress-bg:var(--flint-primary-color-light);width:100%;display:block}.root{height:var(--flint-linear-progress-height);background-color:var(--flint-linear-progress-bg);border-radius:calc(var(--flint-linear-progress-height) / 2);position:relative;overflow:hidden}.bar{transform-origin:0;background-color:var(--flint-linear-progress-color);border-radius:inherit;width:100%;transition:transform .4s linear;position:absolute;top:0;bottom:0;left:0}.indeterminate .bar1{width:auto;animation:2.1s cubic-bezier(.65,.815,.735,.395) infinite indeterminate1}.indeterminate .bar2{width:auto;animation:2.1s cubic-bezier(.165,.84,.44,1) 1.15s infinite indeterminate2}@keyframes indeterminate1{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes indeterminate2{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l, u = class extends t {
|
|
7
|
+
static {
|
|
8
|
+
l = this;
|
|
9
|
+
}
|
|
10
|
+
constructor(...e) {
|
|
11
|
+
super(...e), this.variant = "indeterminate", this.value = 0, this.height = 4, this.color = "primary", this.label = "";
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.styles = i(c);
|
|
15
|
+
}
|
|
16
|
+
static {
|
|
17
|
+
this._colorMap = {
|
|
18
|
+
primary: "var(--flint-primary-color, #2563eb)",
|
|
19
|
+
success: "var(--flint-success-color, #15803d)",
|
|
20
|
+
error: "var(--flint-error-color, #dc2626)",
|
|
21
|
+
warning: "var(--flint-warning-color, #92400e)"
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
get _safeValue() {
|
|
25
|
+
return Math.min(100, Math.max(0, this.value));
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
let e = this.variant === "determinate", t = l._colorMap[this.color] ?? l._colorMap.primary, i = [`--flint-linear-progress-height: ${this.height}px`, `--flint-linear-progress-color: ${t}`].join("; ");
|
|
29
|
+
return n`
|
|
30
|
+
<div
|
|
31
|
+
class="root ${s({
|
|
32
|
+
determinate: e,
|
|
33
|
+
indeterminate: !e
|
|
34
|
+
})}"
|
|
35
|
+
role="progressbar"
|
|
36
|
+
aria-valuemin="0"
|
|
37
|
+
aria-valuemax="100"
|
|
38
|
+
aria-valuenow="${e ? this._safeValue : r}"
|
|
39
|
+
aria-label="${this.label || "Progress"}"
|
|
40
|
+
style="${i}"
|
|
41
|
+
>
|
|
42
|
+
${e ? n`
|
|
43
|
+
<div class="bar" style="transform: scaleX(${this._safeValue / 100})"></div>
|
|
44
|
+
` : n`
|
|
45
|
+
<div class="bar bar1"></div>
|
|
46
|
+
<div class="bar bar2"></div>
|
|
47
|
+
`}
|
|
48
|
+
</div>
|
|
49
|
+
`;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
e([o({
|
|
53
|
+
type: String,
|
|
54
|
+
reflect: !0
|
|
55
|
+
})], u.prototype, "variant", void 0), e([o({
|
|
56
|
+
type: Number,
|
|
57
|
+
reflect: !0
|
|
58
|
+
})], u.prototype, "value", void 0), e([o({ type: Number })], u.prototype, "height", void 0), e([o({
|
|
59
|
+
type: String,
|
|
60
|
+
reflect: !0
|
|
61
|
+
})], u.prototype, "color", void 0), e([o({ type: String })], u.prototype, "label", void 0), u = l = e([a("flint-linear-progress")], u);
|
|
62
|
+
//#endregion
|
|
63
|
+
export { u as t };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, nothing as r, unsafeCSS as i } from "lit";
|
|
3
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined as s } from "lit/directives/if-defined.js";
|
|
5
|
+
//#region src/link/flint-link.css?inline
|
|
6
|
+
var c = ":host{--flint-link-color:var(--flint-primary-color);--flint-link-color-hover:var(--flint-primary-color-hover);--flint-link-color-visited:var(--flint-secondary-color);display:inline}a{color:var(--flint-link-color);font-family:var(--flint-font-family);font-size:inherit;font-weight:inherit;line-height:inherit;cursor:pointer;transition:color .15s,opacity .15s;display:inline}:host([color=inherit]) a{color:inherit}:host([color=primary]) a{color:var(--flint-primary-color)}:host([color=secondary]) a{color:var(--flint-secondary-color)}:host([color=success]) a{color:var(--flint-success-color)}:host([color=error]) a{color:var(--flint-error-color)}:host([color=warning]) a{color:var(--flint-warning-color)}:host([color=info]) a{color:var(--flint-info-icon-color)}:host([color=textPrimary]) a{color:var(--flint-text-color)}:host([color=textSecondary]) a{color:var(--flint-text-color-muted)}:host([underline=none]) a,:host([underline=hover]) a{text-decoration:none}:host([underline=hover]) a:hover,:host([underline=always]) a,:host([underline=always]) a:hover,a{text-decoration:underline}a:hover{opacity:.8}a:visited{color:var(--flint-link-color-visited)}:host([color=inherit]) a:visited{color:inherit}:host([variant=h1]) a{letter-spacing:-1.5px;font-size:6rem;font-weight:300;line-height:1.167}:host([variant=h2]) a{letter-spacing:-.5px;font-size:3.75rem;font-weight:300;line-height:1.2}:host([variant=h3]) a{font-size:3rem;font-weight:400;line-height:1.167}:host([variant=h4]) a{letter-spacing:.25px;font-size:2.125rem;font-weight:400;line-height:1.235}:host([variant=h5]) a{font-size:1.5rem;font-weight:400;line-height:1.334}:host([variant=h6]) a{letter-spacing:.15px;font-size:1.25rem;font-weight:500;line-height:1.6}:host([variant=subtitle1]) a{letter-spacing:.15px;font-size:1rem;font-weight:400;line-height:1.75}:host([variant=subtitle2]) a{letter-spacing:.1px;font-size:.875rem;font-weight:500;line-height:1.57}:host([variant=body1]) a{letter-spacing:.15px;font-size:1rem;font-weight:400;line-height:1.5}:host([variant=body2]) a{letter-spacing:.15px;font-size:.875rem;font-weight:400;line-height:1.43}:host([variant=caption]) a{letter-spacing:.4px;font-size:.75rem;font-weight:400;line-height:1.66}:host([variant=overline]) a{letter-spacing:1px;text-transform:uppercase;font-size:.75rem;font-weight:400;line-height:2.66}:host([disabled]) a{opacity:.38;cursor:not-allowed;pointer-events:none}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.href = "", this.target = "_self", this.rel = "", this.color = "primary", this.underline = "always", this.variant = "inherit", this.disabled = !1;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = i(c);
|
|
12
|
+
}
|
|
13
|
+
_computedRel() {
|
|
14
|
+
if (this.target === "_blank") {
|
|
15
|
+
let e = this.rel || "", t = new Set(e.split(" ").filter(Boolean));
|
|
16
|
+
return t.add("noopener"), t.add("noreferrer"), Array.from(t).join(" ");
|
|
17
|
+
}
|
|
18
|
+
return this.rel || void 0;
|
|
19
|
+
}
|
|
20
|
+
_handleClick(e) {
|
|
21
|
+
this.disabled && e.preventDefault();
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return n`
|
|
25
|
+
<a
|
|
26
|
+
class="link"
|
|
27
|
+
href=${s(this.disabled ? void 0 : this.href || void 0)}
|
|
28
|
+
target=${s(this.target === "_self" ? void 0 : this.target)}
|
|
29
|
+
rel=${s(this._computedRel())}
|
|
30
|
+
aria-label=${s(this.label)}
|
|
31
|
+
download=${s(this.download)}
|
|
32
|
+
aria-disabled=${this.disabled ? "true" : r}
|
|
33
|
+
tabindex=${this.disabled ? "-1" : "0"}
|
|
34
|
+
@click=${this._handleClick}
|
|
35
|
+
>
|
|
36
|
+
<slot></slot>
|
|
37
|
+
</a>
|
|
38
|
+
`;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
e([o({ type: String })], l.prototype, "href", void 0), e([o({ type: String })], l.prototype, "target", void 0), e([o({ type: String })], l.prototype, "rel", void 0), e([o({
|
|
42
|
+
type: String,
|
|
43
|
+
reflect: !0
|
|
44
|
+
})], l.prototype, "color", void 0), e([o({
|
|
45
|
+
type: String,
|
|
46
|
+
reflect: !0
|
|
47
|
+
})], l.prototype, "underline", void 0), e([o({
|
|
48
|
+
type: String,
|
|
49
|
+
reflect: !0
|
|
50
|
+
})], l.prototype, "variant", void 0), e([o({
|
|
51
|
+
type: Boolean,
|
|
52
|
+
reflect: !0
|
|
53
|
+
})], l.prototype, "disabled", void 0), e([o({ type: String })], l.prototype, "download", void 0), e([o({ type: String })], l.prototype, "label", void 0), l = e([a("flint-link")], l);
|
|
54
|
+
//#endregion
|
|
55
|
+
export { l as t };
|