@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,314 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { EMPTY_RANGE as t, isoToDate as n } from "../date-range-picker/date-range-helpers.js";
|
|
3
|
+
import { LitElement as r, html as i, nothing as a, unsafeCSS as o } from "lit";
|
|
4
|
+
import { customElement as s, property as c, state as l } from "lit/decorators.js";
|
|
5
|
+
import { classMap as u } from "lit/directives/class-map.js";
|
|
6
|
+
//#region src/date-range-picker/flint-single-input-date-range-field.css?inline
|
|
7
|
+
var d = ":host{font-family:var(--flint-font-family);display:inline-block}.field-label{letter-spacing:.01em;color:var(--flint-text-color-muted);margin-bottom:5px;font-size:.75rem;font-weight:500;transition:color .15s;display:block}:host([error]) .field-label{color:var(--flint-error-color)}.field-label.focused{color:var(--flint-primary-color)}.field-container{background:var(--flint-input-bg);border:1.5px solid var(--flint-border-color);border-radius:var(--flint-border-radius-md);cursor:text;box-sizing:border-box;align-items:center;gap:4px;min-width:300px;height:44px;padding:0 10px;transition:border-color .15s,box-shadow .15s;display:inline-flex}.field-container.focused{border-color:var(--flint-primary-color);box-shadow:0 0 0 3px var(--flint-primary-focus-ring)}:host([error]) .field-container{border-color:var(--flint-error-color)}:host([error]) .field-container.focused{box-shadow:0 0 0 3px var(--flint-error-focus-ring)}:host([disabled]) .field-container{background:var(--flint-input-disabled-bg);border-color:var(--flint-border-color);cursor:not-allowed}:host([readonly]) .field-container{cursor:default}.segments{outline:none;flex:1;align-items:center;gap:1px;min-height:100%;display:flex}.segment{font-variant-numeric:tabular-nums;color:var(--flint-text-color);cursor:text;-webkit-user-select:none;user-select:none;border-radius:4px;justify-content:center;align-items:center;min-width:2ch;padding:2px 3px;font-size:.9375rem;line-height:1;transition:background .1s;display:inline-flex}.segment.placeholder{color:var(--flint-text-color-muted)}.segment.active{background:var(--flint-primary-color);color:var(--flint-text-color-on-primary);border-radius:3px}.segment-year{min-width:4ch}:host([disabled]) .segment{color:var(--flint-text-color-muted)}:host([disabled]) .segment.active{background:var(--flint-border-color);color:var(--flint-text-color-muted)}.separator{color:var(--flint-text-color-muted);pointer-events:none;padding:0 1px;font-size:.9375rem;line-height:1}.range-dash{color:var(--flint-text-color-muted);pointer-events:none;-webkit-user-select:none;user-select:none;padding:0 6px;font-size:.9375rem}.field-actions{align-items:center;gap:2px;margin-left:auto;display:flex}.icon-btn{cursor:pointer;width:24px;height:24px;color:var(--flint-text-color-muted);background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:.875rem;transition:background .12s,color .12s;display:flex}.icon-btn:hover{background:var(--flint-hover-color)}:host([disabled]) .icon-btn{pointer-events:none;opacity:0}.helper{color:var(--flint-text-color-muted);margin-top:5px;font-size:.75rem;display:block}:host([error]) .helper{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}}", f = [
|
|
8
|
+
"start-month",
|
|
9
|
+
"start-day",
|
|
10
|
+
"start-year",
|
|
11
|
+
"end-month",
|
|
12
|
+
"end-day",
|
|
13
|
+
"end-year"
|
|
14
|
+
];
|
|
15
|
+
function p(e, t, n) {
|
|
16
|
+
return Math.min(Math.max(e, t), n);
|
|
17
|
+
}
|
|
18
|
+
function m(e, t) {
|
|
19
|
+
return e < 1 || e > 12 ? 31 : new Date(t || 2e3, e, 0).getDate();
|
|
20
|
+
}
|
|
21
|
+
var h = class extends r {
|
|
22
|
+
constructor(...e) {
|
|
23
|
+
super(...e), this.value = [...t], this.label = "", this.name = "", this.min = "", this.max = "", this.disabled = !1, this.readonly = !1, this.error = !1, this.helperText = "", this._sm = null, this._sd = null, this._sy = null, this._em = null, this._ed = null, this._ey = null, this._active = null, this._focused = !1, this._buf = "";
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.styles = o(d);
|
|
27
|
+
}
|
|
28
|
+
willUpdate(e) {
|
|
29
|
+
if (e.has("value")) {
|
|
30
|
+
let [e, t] = this.value;
|
|
31
|
+
if (e) {
|
|
32
|
+
let t = n(e);
|
|
33
|
+
t && (this._sm = t.getMonth() + 1, this._sd = t.getDate(), this._sy = t.getFullYear());
|
|
34
|
+
} else this._sm = null, this._sd = null, this._sy = null;
|
|
35
|
+
if (t) {
|
|
36
|
+
let e = n(t);
|
|
37
|
+
e && (this._em = e.getMonth() + 1, this._ed = e.getDate(), this._ey = e.getFullYear());
|
|
38
|
+
} else this._em = null, this._ed = null, this._ey = null;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
setRange(e) {
|
|
42
|
+
this.value = e, this.requestUpdate("value", null);
|
|
43
|
+
}
|
|
44
|
+
clear() {
|
|
45
|
+
this._sm = null, this._sd = null, this._sy = null, this._em = null, this._ed = null, this._ey = null, this._buf = "", this.value = [...t], this.dispatchEvent(new CustomEvent("flint-date-range-picker-clear", {
|
|
46
|
+
bubbles: !0,
|
|
47
|
+
composed: !0
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
_canGoNext() {
|
|
51
|
+
return this._active ? f.indexOf(this._active) < f.length - 1 : !0;
|
|
52
|
+
}
|
|
53
|
+
_canGoPrev() {
|
|
54
|
+
return this._active ? f.indexOf(this._active) > 0 : !1;
|
|
55
|
+
}
|
|
56
|
+
_commitPartialBuffer() {
|
|
57
|
+
if (!this._buf || !this._active) return;
|
|
58
|
+
let e = parseInt(this._buf);
|
|
59
|
+
if (isNaN(e)) return;
|
|
60
|
+
let t = this._active;
|
|
61
|
+
if (t === "start-month" || t === "end-month") e >= 1 && e <= 12 && this._setMonthSeg(t, e);
|
|
62
|
+
else if (t === "start-day") {
|
|
63
|
+
let t = m(this._sm ?? 1, this._sy ?? 2e3);
|
|
64
|
+
e >= 1 && e <= t && (this._sd = e);
|
|
65
|
+
} else if (t === "end-day") {
|
|
66
|
+
let t = m(this._em ?? 1, this._ey ?? 2e3);
|
|
67
|
+
e >= 1 && e <= t && (this._ed = e);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
_setMonthSeg(e, t) {
|
|
71
|
+
e === "start-month" ? this._sm = t : this._em = t;
|
|
72
|
+
}
|
|
73
|
+
_setActive(e) {
|
|
74
|
+
this.disabled || (this._commitPartialBuffer(), this._active = e, this._buf = "");
|
|
75
|
+
}
|
|
76
|
+
_nextSegment() {
|
|
77
|
+
if (!this._active) {
|
|
78
|
+
this._setActive(f[0]);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
let e = f.indexOf(this._active);
|
|
82
|
+
e < f.length - 1 && this._setActive(f[e + 1]);
|
|
83
|
+
}
|
|
84
|
+
_prevSegment() {
|
|
85
|
+
if (!this._active) return;
|
|
86
|
+
let e = f.indexOf(this._active);
|
|
87
|
+
e > 0 && this._setActive(f[e - 1]);
|
|
88
|
+
}
|
|
89
|
+
_handleDigit(e) {
|
|
90
|
+
this._active || this._setActive(f[0]);
|
|
91
|
+
let t = this._active, n = this._buf + String(e);
|
|
92
|
+
if (t === "start-month" || t === "end-month") if (n.length === 1) e >= 2 && e <= 9 ? (this._setMonthSeg(t, e), this._buf = "", this._nextSegment()) : this._buf = n;
|
|
93
|
+
else {
|
|
94
|
+
let r = parseInt(n);
|
|
95
|
+
r >= 1 && r <= 12 ? (this._setMonthSeg(t, r), this._buf = "", this._nextSegment()) : (this._buf = String(e), e >= 2 && e <= 9 && (this._setMonthSeg(t, e), this._buf = "", this._nextSegment()));
|
|
96
|
+
}
|
|
97
|
+
else if (t === "start-day" || t === "end-day") {
|
|
98
|
+
let r = m(t === "start-day" ? this._sm ?? 1 : this._em ?? 1, t === "start-day" ? this._sy ?? 2e3 : this._ey ?? 2e3);
|
|
99
|
+
if (n.length === 1) e >= 4 && e <= 9 ? (t === "start-day" ? this._sd = e : this._ed = e, this._buf = "", this._nextSegment()) : this._buf = n;
|
|
100
|
+
else {
|
|
101
|
+
let i = parseInt(n);
|
|
102
|
+
i >= 1 && i <= r ? (t === "start-day" ? this._sd = i : this._ed = i, this._buf = "", this._nextSegment()) : (this._buf = String(e), e >= 4 && e <= 9 && (t === "start-day" ? this._sd = e : this._ed = e, this._buf = "", this._nextSegment()));
|
|
103
|
+
}
|
|
104
|
+
} else if ((t === "start-year" || t === "end-year") && (this._buf = n.slice(-4), this._buf.length === 4)) {
|
|
105
|
+
let e = parseInt(this._buf);
|
|
106
|
+
t === "start-year" ? this._sy = e : this._ey = e, this._buf = "", this._checkAndEmit(), this._nextSegment();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
_adjust(e) {
|
|
110
|
+
let t = this._active;
|
|
111
|
+
if (t) {
|
|
112
|
+
if (this._buf = "", t === "start-month") this._sm = p((this._sm ?? (e > 0 ? 0 : 13)) + e, 1, 12);
|
|
113
|
+
else if (t === "end-month") this._em = p((this._em ?? (e > 0 ? 0 : 13)) + e, 1, 12);
|
|
114
|
+
else if (t === "start-day") {
|
|
115
|
+
let t = m(this._sm ?? 1, this._sy ?? 2e3);
|
|
116
|
+
this._sd = p((this._sd ?? (e > 0 ? 0 : t + 1)) + e, 1, t);
|
|
117
|
+
} else if (t === "end-day") {
|
|
118
|
+
let t = m(this._em ?? 1, this._ey ?? 2e3);
|
|
119
|
+
this._ed = p((this._ed ?? (e > 0 ? 0 : t + 1)) + e, 1, t);
|
|
120
|
+
} else t === "start-year" ? this._sy = p((this._sy ?? (/* @__PURE__ */ new Date()).getFullYear()) + e, 1, 9999) : t === "end-year" && (this._ey = p((this._ey ?? (/* @__PURE__ */ new Date()).getFullYear()) + e, 1, 9999));
|
|
121
|
+
this._checkAndEmit();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
_checkAndEmit() {
|
|
125
|
+
let e = [this._sm !== null && this._sd !== null && this._sy !== null ? `${String(this._sy).padStart(4, "0")}-${String(this._sm).padStart(2, "0")}-${String(this._sd).padStart(2, "0")}` : "", this._em !== null && this._ed !== null && this._ey !== null ? `${String(this._ey).padStart(4, "0")}-${String(this._em).padStart(2, "0")}-${String(this._ed).padStart(2, "0")}` : ""], [t, n] = this.value;
|
|
126
|
+
(e[0] !== t || e[1] !== n) && (this.value = e, this.dispatchEvent(new CustomEvent("flint-date-range-picker-change", {
|
|
127
|
+
detail: { value: e },
|
|
128
|
+
bubbles: !0,
|
|
129
|
+
composed: !0
|
|
130
|
+
})));
|
|
131
|
+
}
|
|
132
|
+
_handleKeyDown(e) {
|
|
133
|
+
if (!(this.disabled || this.readonly)) {
|
|
134
|
+
if (e.key >= "0" && e.key <= "9") {
|
|
135
|
+
e.preventDefault(), e.stopPropagation(), this._active || this._setActive(f[0]), this._handleDigit(parseInt(e.key));
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
switch (e.key) {
|
|
139
|
+
case "ArrowLeft":
|
|
140
|
+
e.preventDefault(), e.stopPropagation(), this._prevSegment();
|
|
141
|
+
break;
|
|
142
|
+
case "ArrowRight":
|
|
143
|
+
case "/":
|
|
144
|
+
e.preventDefault(), e.stopPropagation(), this._nextSegment();
|
|
145
|
+
break;
|
|
146
|
+
case "ArrowUp":
|
|
147
|
+
e.preventDefault(), e.stopPropagation(), this._active || this._setActive(f[0]), this._adjust(1);
|
|
148
|
+
break;
|
|
149
|
+
case "ArrowDown":
|
|
150
|
+
e.preventDefault(), e.stopPropagation(), this._active || this._setActive(f[0]), this._adjust(-1);
|
|
151
|
+
break;
|
|
152
|
+
case "Tab":
|
|
153
|
+
!e.shiftKey && this._canGoNext() ? (e.preventDefault(), e.stopPropagation(), this._nextSegment()) : e.shiftKey && this._canGoPrev() && (e.preventDefault(), e.stopPropagation(), this._prevSegment());
|
|
154
|
+
break;
|
|
155
|
+
case "Backspace":
|
|
156
|
+
case "Delete":
|
|
157
|
+
switch (e.preventDefault(), e.stopPropagation(), this._buf = "", this._active) {
|
|
158
|
+
case "start-month":
|
|
159
|
+
this._sm = null;
|
|
160
|
+
break;
|
|
161
|
+
case "start-day":
|
|
162
|
+
this._sd = null;
|
|
163
|
+
break;
|
|
164
|
+
case "start-year":
|
|
165
|
+
this._sy = null;
|
|
166
|
+
break;
|
|
167
|
+
case "end-month":
|
|
168
|
+
this._em = null;
|
|
169
|
+
break;
|
|
170
|
+
case "end-day":
|
|
171
|
+
this._ed = null;
|
|
172
|
+
break;
|
|
173
|
+
case "end-year":
|
|
174
|
+
this._ey = null;
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
break;
|
|
178
|
+
case "Escape":
|
|
179
|
+
e.preventDefault(), e.stopPropagation(), this.clear();
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
_handleFocus() {
|
|
185
|
+
this._focused = !0, this._active || this._setActive(f[0]);
|
|
186
|
+
}
|
|
187
|
+
_handleBlur(e) {
|
|
188
|
+
this.shadowRoot?.contains(e.relatedTarget) || (this._focused = !1, this._active = null, this._buf = "");
|
|
189
|
+
}
|
|
190
|
+
_segText(e) {
|
|
191
|
+
let t = this._active === e && !this.disabled, n = e === "start-month" ? this._sm : this._em, r = e === "start-day" ? this._sd : this._ed, i = e === "start-year" ? this._sy : this._ey;
|
|
192
|
+
return e === "start-month" || e === "end-month" ? t && this._buf ? {
|
|
193
|
+
text: this._buf.padEnd(2, "_"),
|
|
194
|
+
isPlaceholder: !1
|
|
195
|
+
} : n === null ? {
|
|
196
|
+
text: "MM",
|
|
197
|
+
isPlaceholder: !0
|
|
198
|
+
} : {
|
|
199
|
+
text: String(n).padStart(2, "0"),
|
|
200
|
+
isPlaceholder: !1
|
|
201
|
+
} : e === "start-day" || e === "end-day" ? t && this._buf ? {
|
|
202
|
+
text: this._buf.padEnd(2, "_"),
|
|
203
|
+
isPlaceholder: !1
|
|
204
|
+
} : r === null ? {
|
|
205
|
+
text: "DD",
|
|
206
|
+
isPlaceholder: !0
|
|
207
|
+
} : {
|
|
208
|
+
text: String(r).padStart(2, "0"),
|
|
209
|
+
isPlaceholder: !1
|
|
210
|
+
} : t && this._buf ? {
|
|
211
|
+
text: this._buf.padEnd(4, "_"),
|
|
212
|
+
isPlaceholder: !1
|
|
213
|
+
} : i === null ? {
|
|
214
|
+
text: "YYYY",
|
|
215
|
+
isPlaceholder: !0
|
|
216
|
+
} : {
|
|
217
|
+
text: String(i).padStart(4, "0"),
|
|
218
|
+
isPlaceholder: !1
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
_hasAnyValue() {
|
|
222
|
+
return [
|
|
223
|
+
this._sm,
|
|
224
|
+
this._sd,
|
|
225
|
+
this._sy,
|
|
226
|
+
this._em,
|
|
227
|
+
this._ed,
|
|
228
|
+
this._ey
|
|
229
|
+
].some((e) => e !== null);
|
|
230
|
+
}
|
|
231
|
+
_renderSeg(e) {
|
|
232
|
+
let { text: t, isPlaceholder: n } = this._segText(e), r = e === "start-year" || e === "end-year";
|
|
233
|
+
return i`<span
|
|
234
|
+
class=${u({
|
|
235
|
+
segment: !0,
|
|
236
|
+
active: this._active === e,
|
|
237
|
+
placeholder: n,
|
|
238
|
+
"segment-year": r
|
|
239
|
+
})}
|
|
240
|
+
@click=${(t) => {
|
|
241
|
+
t.stopPropagation(), this._setActive(e), (this.shadowRoot?.querySelector(".segments"))?.focus();
|
|
242
|
+
}}
|
|
243
|
+
>${t}</span>`;
|
|
244
|
+
}
|
|
245
|
+
render() {
|
|
246
|
+
let e = u({
|
|
247
|
+
"field-label": !0,
|
|
248
|
+
focused: this._focused
|
|
249
|
+
}), t = u({
|
|
250
|
+
"field-container": !0,
|
|
251
|
+
focused: this._focused
|
|
252
|
+
});
|
|
253
|
+
return i`
|
|
254
|
+
${this.label ? i`<label class=${e}>${this.label}</label>` : a}
|
|
255
|
+
|
|
256
|
+
<div class=${t}>
|
|
257
|
+
<div
|
|
258
|
+
class="segments"
|
|
259
|
+
role="group"
|
|
260
|
+
aria-label=${this.label || "Date range"}
|
|
261
|
+
tabindex=${this.disabled ? -1 : 0}
|
|
262
|
+
@keydown=${this._handleKeyDown}
|
|
263
|
+
@focus=${this._handleFocus}
|
|
264
|
+
@blur=${this._handleBlur}
|
|
265
|
+
>
|
|
266
|
+
${this._renderSeg("start-month")}
|
|
267
|
+
<span class="separator">/</span>
|
|
268
|
+
${this._renderSeg("start-day")}
|
|
269
|
+
<span class="separator">/</span>
|
|
270
|
+
${this._renderSeg("start-year")}
|
|
271
|
+
|
|
272
|
+
<span class="range-dash">–</span>
|
|
273
|
+
|
|
274
|
+
${this._renderSeg("end-month")}
|
|
275
|
+
<span class="separator">/</span>
|
|
276
|
+
${this._renderSeg("end-day")}
|
|
277
|
+
<span class="separator">/</span>
|
|
278
|
+
${this._renderSeg("end-year")}
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<div class="field-actions">
|
|
282
|
+
${this._hasAnyValue() && !this.disabled && !this.readonly ? i`
|
|
283
|
+
<button class="icon-btn" aria-label="Clear range" tabindex="-1"
|
|
284
|
+
@click=${(e) => {
|
|
285
|
+
e.stopPropagation(), this.clear();
|
|
286
|
+
}}>✕</button>
|
|
287
|
+
` : a}
|
|
288
|
+
</div>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
${this.helperText ? i`<small class="helper">${this.helperText}</small>` : a}
|
|
292
|
+
|
|
293
|
+
${this.name ? i`
|
|
294
|
+
<input type="hidden" name="${this.name}-start" .value=${this.value[0]}>
|
|
295
|
+
<input type="hidden" name="${this.name}-end" .value=${this.value[1]}>
|
|
296
|
+
` : a}
|
|
297
|
+
`;
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
e([c({ type: Array })], h.prototype, "value", void 0), e([c({ type: String })], h.prototype, "label", void 0), e([c({ type: String })], h.prototype, "name", void 0), e([c({ type: String })], h.prototype, "min", void 0), e([c({ type: String })], h.prototype, "max", void 0), e([c({
|
|
301
|
+
type: Boolean,
|
|
302
|
+
reflect: !0
|
|
303
|
+
})], h.prototype, "disabled", void 0), e([c({
|
|
304
|
+
type: Boolean,
|
|
305
|
+
reflect: !0
|
|
306
|
+
})], h.prototype, "readonly", void 0), e([c({
|
|
307
|
+
type: Boolean,
|
|
308
|
+
reflect: !0
|
|
309
|
+
})], h.prototype, "error", void 0), e([c({
|
|
310
|
+
type: String,
|
|
311
|
+
attribute: "helper-text"
|
|
312
|
+
})], h.prototype, "helperText", void 0), e([l()], h.prototype, "_sm", void 0), e([l()], h.prototype, "_sd", void 0), e([l()], h.prototype, "_sy", void 0), e([l()], h.prototype, "_em", void 0), e([l()], h.prototype, "_ed", void 0), e([l()], h.prototype, "_ey", void 0), e([l()], h.prototype, "_active", void 0), e([l()], h.prototype, "_focused", void 0), e([l()], h.prototype, "_buf", void 0), h = e([s("flint-single-input-date-range-field")], h);
|
|
313
|
+
//#endregion
|
|
314
|
+
export { h as t };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a } from "lit/decorators.js";
|
|
4
|
+
import { styleMap as o } from "lit/directives/style-map.js";
|
|
5
|
+
//#region src/skeleton/flint-skeleton.css?inline
|
|
6
|
+
var s = ":host{display:block}.skeleton{background-color:var(--flint-skeleton-bg,var(--flint-surface-3,#0000001c));display:block;position:relative;overflow:hidden}@media (prefers-color-scheme:dark){.skeleton{background-color:var(--flint-skeleton-bg-dark,#ffffff21)}}:host([dark]) .skeleton{background-color:var(--flint-skeleton-bg-dark,#ffffff21)}.skeleton.pulse{animation:pulse var(--flint-skeleton-animation-duration,1.5s) ease-in-out .5s infinite}.skeleton.wave:after{content:\"\";background:linear-gradient(90deg, transparent, var(--flint-skeleton-wave-color,#fff6), transparent);animation:wave var(--flint-skeleton-animation-duration,1.6s) linear infinite;position:absolute;inset:0;transform:translate(-100%)}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes wave{0%{transform:translate(-100%)}to{transform:translate(100%)}}.text{border-radius:var(--flint-border-radius-sm)}.circular{border-radius:50%}.rectangular{border-radius:var(--flint-border-radius-md)}.rounded{border-radius:var(--flint-border-radius-lg)}@media (prefers-reduced-motion:reduce){.skeleton.pulse{animation:none}.skeleton.wave:after{display:none}}", c = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.dark = !1, this.animation = "pulse", this.variant = "text", this.width = "", this.height = "", this.label = "Loading...";
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(s);
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "status"), this._syncLabel();
|
|
15
|
+
}
|
|
16
|
+
updated(e) {
|
|
17
|
+
e.has("label") && this._syncLabel();
|
|
18
|
+
}
|
|
19
|
+
_syncLabel() {
|
|
20
|
+
this.label ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label");
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
let e = this.variant === "text", t = this.animation === "none" ? "" : this.animation, r = {
|
|
24
|
+
display: "block",
|
|
25
|
+
backgroundColor: "var(--flint-skeleton-bg, var(--flint-surface-3, rgba(0, 0, 0, 0.11)))",
|
|
26
|
+
position: "relative",
|
|
27
|
+
overflow: "hidden",
|
|
28
|
+
width: this.width || (e ? "100%" : ""),
|
|
29
|
+
height: this.height || (e ? "0.8em" : ""),
|
|
30
|
+
marginTop: e ? "0.3em" : "",
|
|
31
|
+
marginBottom: e ? "0.3em" : ""
|
|
32
|
+
};
|
|
33
|
+
return n`
|
|
34
|
+
<span
|
|
35
|
+
part="skeleton"
|
|
36
|
+
class="skeleton ${t} ${this.variant}"
|
|
37
|
+
style=${o(r)}
|
|
38
|
+
aria-hidden="true"
|
|
39
|
+
></span>
|
|
40
|
+
`;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
e([a({
|
|
44
|
+
type: Boolean,
|
|
45
|
+
reflect: !0
|
|
46
|
+
})], c.prototype, "dark", void 0), e([a({
|
|
47
|
+
type: String,
|
|
48
|
+
reflect: !0
|
|
49
|
+
})], c.prototype, "animation", void 0), e([a({
|
|
50
|
+
type: String,
|
|
51
|
+
reflect: !0
|
|
52
|
+
})], c.prototype, "variant", void 0), e([a({ type: String })], c.prototype, "width", void 0), e([a({ type: String })], c.prototype, "height", void 0), e([a({ type: String })], c.prototype, "label", void 0), c = e([i("flint-skeleton")], c);
|
|
53
|
+
//#endregion
|
|
54
|
+
export { c as t };
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
import { styleMap as c } from "lit/directives/style-map.js";
|
|
7
|
+
//#region src/slider/flint-slider.css?inline
|
|
8
|
+
var l = ":host{font-family:var(--flint-font-family);color:var(--flint-text-color);--_track-height:6px;--_thumb-size:20px;--_font-size:14px;padding:12px 0;display:block}:host([size=sm]){--_track-height:4px;--_thumb-size:14px;--_font-size:12px}:host([size=lg]){--_track-height:8px;--_thumb-size:24px;--_font-size:16px}:host([vertical]){height:var(--flint-slider-vertical-height,200px);padding:0 12px;display:inline-flex}.slider-wrapper{flex-direction:column;gap:8px;display:flex}.slider-wrapper.vertical{flex-direction:column-reverse;justify-content:flex-end;align-items:center;gap:12px;width:100%;height:100%}.label-row{font-size:var(--_font-size);justify-content:space-between;align-items:center;font-weight:500;display:flex}.label-row.vertical{flex-direction:column;flex-shrink:0;align-items:center;gap:2px}.value-display{color:var(--flint-primary-color);font-weight:600}.track-container{flex:1;justify-content:center;align-items:center;width:100%;display:flex}.track-container.vertical{flex:1;justify-content:center;align-items:center;width:auto;height:100%;min-height:0;display:flex}input[type=range]{appearance:none;width:100%;height:var(--_track-height);background:var(--flint-input-border-color);cursor:pointer;border-radius:3px;outline:none;margin:10px 0;transition:all .2s}input[type=range].vertical{writing-mode:vertical-lr;width:var(--_track-height);appearance:slider-vertical;direction:rtl;height:100%;margin:0}@supports not (appearance:slider-vertical){input[type=range].vertical{writing-mode:vertical-lr;width:var(--_track-height);direction:rtl;height:100%;margin:0}}input[type=range]:disabled{cursor:not-allowed;opacity:.5}input[type=range]::-webkit-slider-thumb{appearance:none;width:var(--_thumb-size);height:var(--_thumb-size);background:var(--flint-surface-1);border:2px solid var(--flint-primary-color);box-shadow:var(--flint-shadow-sm);cursor:pointer;border-radius:50%;transition:transform .1s,box-shadow .1s}input[type=range]::-moz-range-thumb{width:calc(var(--_thumb-size) - 2px);height:calc(var(--_thumb-size) - 2px);background:var(--flint-surface-1);border:2px solid var(--flint-primary-color);box-shadow:var(--flint-shadow-sm);cursor:pointer;border-radius:50%}input[type=range]::-moz-range-progress{background:var(--flint-primary-color);height:var(--_track-height);border-radius:3px}input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--flint-primary-color);outline-offset:4px}input[type=range]:not(:disabled):hover::-webkit-slider-thumb{box-shadow:var(--flint-shadow-md);transform:scale(1.1)}input[type=range]:active::-webkit-slider-thumb{transform:scale(.95)}.disabled-label{color:var(--flint-text-color-muted)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", u = class extends t(n) {
|
|
9
|
+
constructor(...e) {
|
|
10
|
+
super(...e), this.value = 50, this.defaultValue = void 0, this.min = 0, this.max = 100, this.step = 1, this.disabled = !1, this.label = "", this.showValue = !1, this.vertical = !1, this.size = "md", this.name = "", this.formatValue = void 0;
|
|
11
|
+
}
|
|
12
|
+
static {
|
|
13
|
+
this.styles = i(l);
|
|
14
|
+
}
|
|
15
|
+
get _safeMin() {
|
|
16
|
+
return this.min < this.max ? this.min : 0;
|
|
17
|
+
}
|
|
18
|
+
get _safeMax() {
|
|
19
|
+
return this.max > this.min ? this.max : this._safeMin + 100;
|
|
20
|
+
}
|
|
21
|
+
get _safeValue() {
|
|
22
|
+
return Math.min(this._safeMax, Math.max(this._safeMin, this.value));
|
|
23
|
+
}
|
|
24
|
+
willUpdate(e) {
|
|
25
|
+
this._firstUpdate && this.defaultValue !== void 0 && (this.value = this.defaultValue), this._firstUpdate = !1, (e.has("value") || e.has("name")) && this._initFormValue(this._safeValue.toString());
|
|
26
|
+
}
|
|
27
|
+
_handleInput(e) {
|
|
28
|
+
let t = e.target;
|
|
29
|
+
this.value = Number(t.value), this.dispatchEvent(new CustomEvent("flint-slider-change", {
|
|
30
|
+
detail: { value: this.value },
|
|
31
|
+
bubbles: !0,
|
|
32
|
+
composed: !0
|
|
33
|
+
}));
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
let e = this._safeValue, t = this._safeMin, n = this._safeMax, i = (e - t) / (n - t) * 100, a = this.formatValue ? this.formatValue(e) : String(e), o = this.vertical ? { background: `linear-gradient(to left, var(--flint-primary-color, #2563eb) 0%, var(--flint-primary-color, #2563eb) ${i}%, var(--flint-input-border-color, #d1d5db) ${i}%, var(--flint-input-border-color, #d1d5db) 100%)` } : { background: `linear-gradient(to right, var(--flint-primary-color, #2563eb) 0%, var(--flint-primary-color, #2563eb) ${i}%, var(--flint-input-border-color, #d1d5db) ${i}%, var(--flint-input-border-color, #d1d5db) 100%)` }, l = {
|
|
37
|
+
"slider-wrapper": !0,
|
|
38
|
+
vertical: this.vertical
|
|
39
|
+
}, u = {
|
|
40
|
+
"label-row": !0,
|
|
41
|
+
vertical: this.vertical
|
|
42
|
+
}, d = {
|
|
43
|
+
"track-container": !0,
|
|
44
|
+
vertical: this.vertical
|
|
45
|
+
}, f = { vertical: this.vertical }, p = "slider-input";
|
|
46
|
+
return r`
|
|
47
|
+
<div class=${s(l)}>
|
|
48
|
+
<div class=${s(u)}>
|
|
49
|
+
${this.label ? r`<label
|
|
50
|
+
for=${p}
|
|
51
|
+
class=${s({ "disabled-label": this.disabled })}
|
|
52
|
+
>${this.label}</label>` : ""}
|
|
53
|
+
${this.showValue ? r`<span class="value-display">${a}</span>` : ""}
|
|
54
|
+
</div>
|
|
55
|
+
<div class=${s(d)}>
|
|
56
|
+
<input
|
|
57
|
+
id=${p}
|
|
58
|
+
type="range"
|
|
59
|
+
class=${s(f)}
|
|
60
|
+
.min=${t.toString()}
|
|
61
|
+
.max=${n.toString()}
|
|
62
|
+
.step=${this.step.toString()}
|
|
63
|
+
.value=${e.toString()}
|
|
64
|
+
?disabled=${this.disabled}
|
|
65
|
+
aria-disabled=${this.disabled ? "true" : "false"}
|
|
66
|
+
@input=${this._handleInput}
|
|
67
|
+
style=${c(o)}
|
|
68
|
+
aria-label=${this.label || "Slider"}
|
|
69
|
+
aria-orientation=${this.vertical ? "vertical" : "horizontal"}
|
|
70
|
+
aria-valuemin=${t}
|
|
71
|
+
aria-valuemax=${n}
|
|
72
|
+
aria-valuenow=${e}
|
|
73
|
+
aria-valuetext=${this.formatValue ? a : ""}
|
|
74
|
+
>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
`;
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
e([o({ type: Number })], u.prototype, "value", void 0), e([o({
|
|
81
|
+
type: Number,
|
|
82
|
+
attribute: "default-value"
|
|
83
|
+
})], u.prototype, "defaultValue", void 0), e([o({ type: Number })], u.prototype, "min", void 0), e([o({ type: Number })], u.prototype, "max", void 0), e([o({ type: Number })], u.prototype, "step", void 0), e([o({
|
|
84
|
+
type: Boolean,
|
|
85
|
+
reflect: !0
|
|
86
|
+
})], u.prototype, "disabled", void 0), e([o({ type: String })], u.prototype, "label", void 0), e([o({
|
|
87
|
+
type: Boolean,
|
|
88
|
+
attribute: "show-value"
|
|
89
|
+
})], u.prototype, "showValue", void 0), e([o({
|
|
90
|
+
type: Boolean,
|
|
91
|
+
reflect: !0
|
|
92
|
+
})], u.prototype, "vertical", void 0), e([o({
|
|
93
|
+
type: String,
|
|
94
|
+
reflect: !0
|
|
95
|
+
})], u.prototype, "size", void 0), e([o({ type: String })], u.prototype, "name", void 0), e([o({ attribute: !1 })], u.prototype, "formatValue", void 0), u = e([a("flint-slider")], u);
|
|
96
|
+
//#endregion
|
|
97
|
+
export { u as t };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { t as e } from "./decorate-DPS9PT8d.js";
|
|
2
|
+
import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
3
|
+
import { customElement as i, property as a, state as o } from "lit/decorators.js";
|
|
4
|
+
import { classMap as s } from "lit/directives/class-map.js";
|
|
5
|
+
//#region src/snackbar/flint-snackbar.css?inline
|
|
6
|
+
var c = ":host{pointer-events:none;z-index:var(--flint-snackbar-z-index,1400);justify-content:center;align-items:center;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:fixed}:host([anchor-origin*=bottom]){bottom:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=top]){top:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=left]){left:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=right]){right:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=center]){left:50%;transform:translate(-50%)}.snackbar{background-color:var(--flint-snackbar-bg,#313131);color:var(--flint-snackbar-color,#fff);font-family:var(--flint-font-family);letter-spacing:.01071em;border-radius:var(--flint-border-radius-md);box-shadow:var(--flint-shadow-lg);min-width:var(--flint-snackbar-min-width,288px);max-width:var(--flint-snackbar-max-width,560px);pointer-events:auto;opacity:0;visibility:hidden;align-items:center;padding:6px 16px;font-size:.875rem;line-height:1.43;transition:opacity .225s cubic-bezier(.4,0,.2,1),transform .15s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.85)}.snackbar.open{opacity:1;visibility:visible;transform:scale(1)}:host([variant=info]) .snackbar{background-color:var(--flint-snackbar-bg-info,#0288d1)}:host([variant=success]) .snackbar{background-color:var(--flint-snackbar-bg-success,#2e7d32)}:host([variant=warning]) .snackbar{background-color:var(--flint-snackbar-bg-warning,#ed6c02)}:host([variant=error]) .snackbar{background-color:var(--flint-snackbar-bg-error,#d32f2f)}.message{flex-grow:1;padding:8px 0}.action{align-items:center;margin-left:8px;margin-right:-8px;padding-left:16px;display:flex}.action.hidden{display:none}.close-btn{color:inherit;cursor:pointer;opacity:.8;background:0 0;border:none;border-radius:2px;align-items:center;margin-left:8px;margin-right:-8px;padding:4px 8px;line-height:0;display:flex}.close-btn:hover{opacity:1}::slotted(flint-alert){width:100%;min-width:288px;margin-bottom:0!important}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
7
|
+
constructor(...e) {
|
|
8
|
+
super(...e), this.open = !1, this.message = "", this.autoHideDuration = 5e3, this.anchorOrigin = "bottom-center", this.pauseOnHover = !0, this.closable = !1, this.variant = "default", this._hasAction = !1, this._timer = null, this._remainingTime = 0, this._timerStartedAt = 0;
|
|
9
|
+
}
|
|
10
|
+
static {
|
|
11
|
+
this.styles = r(c);
|
|
12
|
+
}
|
|
13
|
+
updated(e) {
|
|
14
|
+
e.has("open") && (this.open ? (this._remainingTime = this.autoHideDuration, this._startTimer(this._remainingTime), this.dispatchEvent(new CustomEvent("flint-snackbar-open", {
|
|
15
|
+
bubbles: !0,
|
|
16
|
+
composed: !0
|
|
17
|
+
}))) : (this._clearTimer(), this.dispatchEvent(new CustomEvent("flint-snackbar-close", {
|
|
18
|
+
bubbles: !0,
|
|
19
|
+
composed: !0
|
|
20
|
+
}))));
|
|
21
|
+
}
|
|
22
|
+
disconnectedCallback() {
|
|
23
|
+
super.disconnectedCallback(), this._clearTimer();
|
|
24
|
+
}
|
|
25
|
+
_startTimer(e) {
|
|
26
|
+
this._clearTimer(), e > 0 && (this._timerStartedAt = Date.now(), this._timer = setTimeout(() => this.close(), e));
|
|
27
|
+
}
|
|
28
|
+
_clearTimer() {
|
|
29
|
+
this._timer &&= (clearTimeout(this._timer), null);
|
|
30
|
+
}
|
|
31
|
+
_handleMouseEnter() {
|
|
32
|
+
if (!this.pauseOnHover || !this.open || this._timer === null) return;
|
|
33
|
+
let e = Date.now() - this._timerStartedAt;
|
|
34
|
+
this._remainingTime = Math.max(0, this._remainingTime - e), this._clearTimer();
|
|
35
|
+
}
|
|
36
|
+
_handleMouseLeave() {
|
|
37
|
+
!this.pauseOnHover || !this.open || this._startTimer(this._remainingTime);
|
|
38
|
+
}
|
|
39
|
+
_handleActionSlotChange(e) {
|
|
40
|
+
this._hasAction = e.target.assignedNodes({ flatten: !0 }).length > 0;
|
|
41
|
+
}
|
|
42
|
+
close() {
|
|
43
|
+
this.open = !1;
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
let e = {
|
|
47
|
+
snackbar: !0,
|
|
48
|
+
open: this.open
|
|
49
|
+
}, t = {
|
|
50
|
+
action: !0,
|
|
51
|
+
hidden: !this._hasAction
|
|
52
|
+
};
|
|
53
|
+
return n`
|
|
54
|
+
<div
|
|
55
|
+
class=${s(e)}
|
|
56
|
+
part="snackbar"
|
|
57
|
+
role="status"
|
|
58
|
+
aria-live="polite"
|
|
59
|
+
aria-atomic="true"
|
|
60
|
+
@mouseenter=${this._handleMouseEnter}
|
|
61
|
+
@mouseleave=${this._handleMouseLeave}
|
|
62
|
+
>
|
|
63
|
+
<div class="message">
|
|
64
|
+
<slot>${this.message}</slot>
|
|
65
|
+
</div>
|
|
66
|
+
<div class=${s(t)}>
|
|
67
|
+
<slot name="action" @slotchange=${this._handleActionSlotChange}></slot>
|
|
68
|
+
</div>
|
|
69
|
+
${this.closable ? n`
|
|
70
|
+
<button class="close-btn" aria-label="Close" @click=${() => this.close()}>
|
|
71
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
72
|
+
<line x1="18" y1="6" x2="6" y2="18"></line>
|
|
73
|
+
<line x1="6" y1="6" x2="18" y2="18"></line>
|
|
74
|
+
</svg>
|
|
75
|
+
</button>
|
|
76
|
+
` : ""}
|
|
77
|
+
</div>
|
|
78
|
+
`;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
e([a({
|
|
82
|
+
type: Boolean,
|
|
83
|
+
reflect: !0
|
|
84
|
+
})], l.prototype, "open", void 0), e([a({ type: String })], l.prototype, "message", void 0), e([a({
|
|
85
|
+
type: Number,
|
|
86
|
+
attribute: "auto-hide-duration"
|
|
87
|
+
})], l.prototype, "autoHideDuration", void 0), e([a({
|
|
88
|
+
type: String,
|
|
89
|
+
attribute: "anchor-origin",
|
|
90
|
+
reflect: !0
|
|
91
|
+
})], l.prototype, "anchorOrigin", void 0), e([a({
|
|
92
|
+
type: Boolean,
|
|
93
|
+
attribute: "pause-on-hover"
|
|
94
|
+
})], l.prototype, "pauseOnHover", void 0), e([a({
|
|
95
|
+
type: Boolean,
|
|
96
|
+
reflect: !0
|
|
97
|
+
})], l.prototype, "closable", void 0), e([a({
|
|
98
|
+
type: String,
|
|
99
|
+
reflect: !0
|
|
100
|
+
})], l.prototype, "variant", void 0), e([o()], l.prototype, "_hasAction", void 0), l = e([i("flint-snackbar")], l);
|
|
101
|
+
//#endregion
|
|
102
|
+
export { l as t };
|