@widgetic/design-system 0.5.9 → 0.5.11
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/components/CopyableHeader.svelte +4 -4
- package/dist/components/CopyableHeader.svelte.d.ts +38 -34
- package/dist/components/EmptyState.svelte +3 -4
- package/dist/components/EmptyState.svelte.d.ts +35 -31
- package/dist/components/GenerateLoader.svelte +2 -2
- package/dist/components/GenerateLoader.svelte.d.ts +23 -19
- package/dist/components/PasswordInput.svelte.d.ts +23 -19
- package/dist/components/ThumbHashImage.svelte +40 -30
- package/dist/components/ThumbHashImage.svelte.d.ts +24 -20
- package/dist/components/WScrollArea.svelte.d.ts +36 -25
- package/dist/components/debug-grid/DebugGrid.svelte +16 -3
- package/dist/components/debug-grid/DebugGrid.svelte.d.ts +30 -26
- package/dist/components/ic/browser/BrowserInputController.svelte +19 -56
- package/dist/components/ic/browser/BrowserInputController.svelte.d.ts +31 -26
- package/dist/components/modals/ActionModal.svelte +15 -22
- package/dist/components/modals/ActionModal.svelte.d.ts +47 -36
- package/dist/components/modals/BaseModal.svelte +14 -12
- package/dist/components/modals/BaseModal.svelte.d.ts +36 -32
- package/dist/components/modals/NewItemDialog.svelte +1 -1
- package/dist/components/modals/NewItemDialog.svelte.d.ts +37 -33
- package/dist/components/modals/Portal.svelte +6 -6
- package/dist/components/modals/Portal.svelte.d.ts +32 -21
- package/dist/components/modals/RenameDialog.svelte +6 -56
- package/dist/components/modals/RenameDialog.svelte.d.ts +37 -33
- package/dist/components/modals/modalStore.js +3 -6
- package/dist/components/navigation/Breadcrumbs.svelte +20 -14
- package/dist/components/navigation/Breadcrumbs.svelte.d.ts +32 -28
- package/dist/components/pdf/PDFViewer.svelte +104 -101
- package/dist/components/pdf/PDFViewer.svelte.d.ts +30 -26
- package/dist/components/search-input/SearchInput.svelte +2 -2
- package/dist/components/search-input/SearchInput.svelte.d.ts +44 -40
- package/dist/components/shad-editor/colorpicker.svelte.d.ts +3 -14
- package/dist/components/shad-editor/custom/Extentions/SearchAndReplace.js +2 -1
- package/dist/components/shad-editor/custom/code-extended.svelte +1 -1
- package/dist/components/shad-editor/custom/code-extended.svelte.d.ts +3 -14
- package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
- package/dist/components/shad-editor/custom/image-extended-component.svelte.d.ts +3 -14
- package/dist/components/shad-editor/editor-toolbar.svelte +5 -7
- package/dist/components/shad-editor/editor-toolbar.svelte.d.ts +7 -14
- package/dist/components/shad-editor/icons/block-quote.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/bold.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/buttle-list.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/code.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/highlighter.svelte +5 -7
- package/dist/components/shad-editor/icons/highlighter.svelte.d.ts +8 -14
- package/dist/components/shad-editor/icons/image.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/italic.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/link.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/ordered-list.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/quickcolor.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/redo.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/search-replace.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/strikethrough.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/subscript.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/superscript.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/table.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/task-list.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/text.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/textalign.svelte.d.ts +3 -14
- package/dist/components/shad-editor/icons/textcolor.svelte +5 -7
- package/dist/components/shad-editor/icons/textcolor.svelte.d.ts +7 -14
- package/dist/components/shad-editor/icons/underline.svelte.d.ts +4 -14
- package/dist/components/shad-editor/icons/undo.svelte.d.ts +4 -14
- package/dist/components/shad-editor/shad-editor.svelte +10 -11
- package/dist/components/shad-editor/shad-editor.svelte.d.ts +30 -20
- package/dist/components/toast/ToasterModal.svelte +13 -2
- package/dist/components/toast/ToasterModal.svelte.d.ts +16 -11
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -15
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -15
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +5 -15
- package/dist/components/ui/alert/alert-description.svelte.d.ts +25 -14
- package/dist/components/ui/alert/alert-title.svelte.d.ts +27 -16
- package/dist/components/ui/alert/alert.svelte.d.ts +27 -16
- package/dist/components/ui/badge/badge.svelte +1 -1
- package/dist/components/ui/badge/badge.svelte.d.ts +57 -16
- package/dist/components/ui/breadcrumb/breadcrumb-ellipsis.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-item.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-link.svelte.d.ts +7 -15
- package/dist/components/ui/breadcrumb/breadcrumb-list.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-page.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb-separator.svelte.d.ts +3 -14
- package/dist/components/ui/breadcrumb/breadcrumb.svelte.d.ts +3 -14
- package/dist/components/ui/button/button.svelte.d.ts +120 -21
- package/dist/components/ui/calendar/calendar-cell.svelte +2 -3
- package/dist/components/ui/calendar/calendar-cell.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-day.svelte +2 -3
- package/dist/components/ui/calendar/calendar-day.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid-body.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid-body.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid-head.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid-head.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid-row.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid-row.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-grid.svelte +2 -3
- package/dist/components/ui/calendar/calendar-grid.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-head-cell.svelte +2 -3
- package/dist/components/ui/calendar/calendar-head-cell.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-header.svelte +2 -3
- package/dist/components/ui/calendar/calendar-header.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-heading.svelte +2 -3
- package/dist/components/ui/calendar/calendar-heading.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-months.svelte.d.ts +3 -14
- package/dist/components/ui/calendar/calendar-next-button.svelte +2 -3
- package/dist/components/ui/calendar/calendar-next-button.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar-prev-button.svelte +2 -3
- package/dist/components/ui/calendar/calendar-prev-button.svelte.d.ts +4 -15
- package/dist/components/ui/calendar/calendar.svelte +2 -3
- package/dist/components/ui/calendar/calendar.svelte.d.ts +5 -15
- package/dist/components/ui/card/card-content.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-description.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-footer.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-header.svelte.d.ts +3 -14
- package/dist/components/ui/card/card-title.svelte.d.ts +5 -15
- package/dist/components/ui/card/card.svelte.d.ts +3 -14
- package/dist/components/ui/checkbox/checkbox.svelte +2 -3
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-dialog.svelte.d.ts +7 -20
- package/dist/components/ui/command/command-empty.svelte +2 -3
- package/dist/components/ui/command/command-empty.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-group.svelte.d.ts +6 -16
- package/dist/components/ui/command/command-input.svelte +2 -3
- package/dist/components/ui/command/command-input.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-item.svelte +2 -3
- package/dist/components/ui/command/command-item.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-link-item.svelte +2 -3
- package/dist/components/ui/command/command-link-item.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-list.svelte +2 -3
- package/dist/components/ui/command/command-list.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-separator.svelte +2 -3
- package/dist/components/ui/command/command-separator.svelte.d.ts +4 -15
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +3 -14
- package/dist/components/ui/command/command.svelte +2 -3
- package/dist/components/ui/command/command.svelte.d.ts +4 -15
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +6 -17
- package/dist/components/ui/dialog/dialog-description.svelte +2 -3
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -15
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +3 -14
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +3 -14
- package/dist/components/ui/dialog/dialog-overlay.svelte +2 -3
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -15
- package/dist/components/ui/dialog/dialog-title.svelte +2 -3
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-content.svelte.d.ts +6 -16
- package/dist/components/ui/drawer/drawer-description.svelte +1 -2
- package/dist/components/ui/drawer/drawer-description.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-footer.svelte.d.ts +3 -14
- package/dist/components/ui/drawer/drawer-header.svelte.d.ts +3 -14
- package/dist/components/ui/drawer/drawer-nested.svelte +1 -3
- package/dist/components/ui/drawer/drawer-nested.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-overlay.svelte +1 -2
- package/dist/components/ui/drawer/drawer-overlay.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer-title.svelte +1 -2
- package/dist/components/ui/drawer/drawer-title.svelte.d.ts +4 -15
- package/dist/components/ui/drawer/drawer.svelte +1 -3
- package/dist/components/ui/drawer/drawer.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +5 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +6 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +6 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +6 -16
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +5 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +2 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +2 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +3 -14
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +2 -3
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -15
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +6 -16
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +6 -16
- package/dist/components/ui/input/input.svelte.d.ts +3 -14
- package/dist/components/ui/input-otp/input-otp-group.svelte.d.ts +3 -14
- package/dist/components/ui/input-otp/input-otp-separator.svelte.d.ts +3 -14
- package/dist/components/ui/input-otp/input-otp-slot.svelte +2 -3
- package/dist/components/ui/input-otp/input-otp-slot.svelte.d.ts +13 -15
- package/dist/components/ui/input-otp/input-otp.svelte +2 -3
- package/dist/components/ui/input-otp/input-otp.svelte.d.ts +4 -15
- package/dist/components/ui/label/label.svelte +2 -3
- package/dist/components/ui/label/label.svelte.d.ts +4 -15
- package/dist/components/ui/popover/popover-content.svelte.d.ts +6 -16
- package/dist/components/ui/progress/progress.svelte +2 -3
- package/dist/components/ui/progress/progress.svelte.d.ts +4 -15
- package/dist/components/ui/radio-group/radio-group-item.svelte +2 -3
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -15
- package/dist/components/ui/radio-group/radio-group.svelte +2 -3
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-day.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-day.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-header.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-months.svelte.d.ts +3 -14
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +4 -15
- package/dist/components/ui/range-calendar/range-calendar.svelte +2 -3
- package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +5 -15
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte +1 -2
- package/dist/components/ui/scroll-area/scroll-area-scrollbar.svelte.d.ts +4 -15
- package/dist/components/ui/scroll-area/scroll-area.svelte.d.ts +7 -17
- package/dist/components/ui/select/select-content.svelte.d.ts +5 -15
- package/dist/components/ui/select/select-group-heading.svelte +2 -3
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-item.svelte +2 -3
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-scroll-down-button.svelte +2 -3
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-scroll-up-button.svelte +2 -3
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-separator.svelte +2 -3
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -15
- package/dist/components/ui/select/select-trigger.svelte +2 -3
- package/dist/components/ui/select/select-trigger.svelte.d.ts +4 -15
- package/dist/components/ui/separator/separator.svelte +2 -3
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -15
- package/dist/components/ui/slider/slider.svelte +2 -3
- package/dist/components/ui/slider/slider.svelte.d.ts +4 -15
- package/dist/components/ui/sonner/sonner.svelte +2 -1
- package/dist/components/ui/sonner/sonner.svelte.d.ts +3 -14
- package/dist/components/ui/switch/switch.svelte +2 -3
- package/dist/components/ui/switch/switch.svelte.d.ts +4 -15
- package/dist/components/ui/table/table-body.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-caption.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-cell.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-footer.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-head.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-header.svelte.d.ts +3 -14
- package/dist/components/ui/table/table-row.svelte.d.ts +3 -14
- package/dist/components/ui/table/table.svelte.d.ts +3 -14
- package/dist/components/ui/tabs/tabs-content.svelte +2 -3
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -15
- package/dist/components/ui/tabs/tabs-list.svelte +2 -3
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +4 -15
- package/dist/components/ui/tabs/tabs-trigger.svelte +2 -3
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -15
- package/dist/components/ui/textarea/textarea.svelte.d.ts +3 -14
- package/dist/components/ui/toggle/toggle.svelte +1 -1
- package/dist/components/ui/toggle/toggle.svelte.d.ts +82 -18
- package/dist/components/ui/toggle-group/toggle-group-item.svelte +2 -3
- package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +4 -15
- package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +8 -16
- package/dist/components/ui/tooltip/index.d.ts +2 -1
- package/dist/components/ui/tooltip/index.js +5 -1
- package/dist/components/ui/tooltip/tooltip-content.svelte +1 -2
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +4 -15
- package/dist/components/widget-system/EditableWidget.svelte.d.ts +42 -30
- package/dist/components/widget-system/Moveable.svelte +14 -8
- package/dist/components/widget-system/Moveable.svelte.d.ts +51 -39
- package/dist/fonts/Cousine/Cousine-Bold.woff2 +0 -0
- package/dist/fonts/Cousine/Cousine-Regular.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Black.woff2 +0 -0
- package/dist/fonts/Inter/Inter-BlackItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Bold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-BoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraBold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraLight-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraLightItalic-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Italic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Light-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-LightItalic-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Medium.woff2 +0 -0
- package/dist/fonts/Inter/Inter-MediumItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Regular.woff2 +0 -0
- package/dist/fonts/Inter/Inter-SemiBold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Thin-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ThinItalic-BETA.woff2 +0 -0
- package/dist/fonts/Inter/Inter-italic.var.woff2 +0 -0
- package/dist/fonts/Inter/Inter-upright.var.woff2 +0 -0
- package/dist/fonts/Inter/Inter.var.woff2 +0 -0
- package/dist/fonts/JetBrainsMono/JetBrainsMono-ExtraBold.woff2 +0 -0
- package/dist/icons/Checked.svelte.d.ts +18 -14
- package/dist/icons/CheckerBoardBackground.svelte.d.ts +3 -14
- package/dist/icons/Close.svelte.d.ts +18 -14
- package/dist/icons/Exclamation.svelte.d.ts +22 -19
- package/dist/icons/FileBrowser.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgetic.svelte +1 -1
- package/dist/icons/LogoWidgetic.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgeticGreen.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgeticType.svelte.d.ts +18 -14
- package/dist/icons/LogoWidgeticTypeOld.svelte.d.ts +18 -14
- package/dist/icons/OpacitySliderArrows.svelte.d.ts +3 -14
- package/dist/icons/TestIcon.svelte.d.ts +22 -19
- package/dist/icons/index.js +3 -3
- package/dist/stores/pdfCache.js +58 -38
- package/dist/styles/fonts.css +402 -98
- package/dist/styles/global.css +62 -30
- package/package.json +8 -12
- package/tailwind.config.ts +22 -0
- package/dist/fonts/BLMelody/BLMelody-Bold.woff2 +0 -0
- package/dist/fonts/BLMelody/BLMelody-Medium.woff2 +0 -0
- package/dist/fonts/BLMelody/BLMelody-SemiBold.woff2 +0 -0
- package/dist/fonts/Riegla/Riegla-Bold Italic.otf +0 -0
- package/dist/fonts/Riegla/Riegla-Bold.otf +0 -0
- package/dist/fonts/Riegla/Riegla-Italic.otf +0 -0
- package/dist/fonts/Riegla/Riegla-Regular.otf +0 -0
- package/dist/fonts/Riegla/RieglaMedium-Regular.otf +0 -0
|
@@ -32,8 +32,7 @@ const dispatch = createEventDispatcher();
|
|
|
32
32
|
*/
|
|
33
33
|
// import { toast, Button, Tooltip, Portal } from '@widgetic/design-system/components';
|
|
34
34
|
import { toast, Button, Tooltip, Portal } from './';
|
|
35
|
-
|
|
36
|
-
import { IconCopy, IconHelp } from '../icons';
|
|
35
|
+
import { IconCopy, IconHelp } from '@tabler/icons-svelte';
|
|
37
36
|
|
|
38
37
|
/**
|
|
39
38
|
* COMPONENT PROPS
|
|
@@ -64,6 +63,7 @@ let mouseY = 0;
|
|
|
64
63
|
let showHelpTooltip = false;
|
|
65
64
|
let showCopyTooltip = false;
|
|
66
65
|
let tooltipDebounce = false;
|
|
66
|
+
let contentElement: HTMLDivElement | null = null;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* MOUSE EVENTS HANDLERS
|
|
@@ -115,8 +115,7 @@ async function handleCopyButtonClick(e: MouseEvent) {
|
|
|
115
115
|
showCopyTooltip = false;
|
|
116
116
|
setTooltipDebounce();
|
|
117
117
|
|
|
118
|
-
//
|
|
119
|
-
const contentElement = document.querySelector('.copyable-content-area');
|
|
118
|
+
// Select all text in content element
|
|
120
119
|
if (contentElement) {
|
|
121
120
|
const selection = window.getSelection();
|
|
122
121
|
const range = document.createRange();
|
|
@@ -312,6 +311,7 @@ function showToast(type: 'success' | 'error', message: string, options = {}) {
|
|
|
312
311
|
<div class="px-6 pb-6">
|
|
313
312
|
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
314
313
|
<div
|
|
314
|
+
bind:this={contentElement}
|
|
315
315
|
class="copyable-content-area text-[14px] w-full text-left bg-white relative {monospaceContent ? 'font-mono' : ''}"
|
|
316
316
|
style="
|
|
317
317
|
padding: 16px;
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
helpUrl?: string;
|
|
12
|
-
showHelp?: boolean;
|
|
13
|
-
monospaceContent?: boolean;
|
|
14
|
-
showStandaloneCopyButton?: boolean;
|
|
15
|
-
standaloneCopyButtonText?: string;
|
|
16
|
-
showButtonText?: boolean;
|
|
17
|
-
buttonClass?: string;
|
|
18
|
-
showInternalToast?: boolean;
|
|
19
|
-
headerTextClass?: string;
|
|
20
|
-
headerBackgroundColor?: string;
|
|
21
|
-
contentBorderColor?: string;
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
22
11
|
};
|
|
23
|
-
|
|
24
|
-
copy: CustomEvent<any>;
|
|
25
|
-
copyError: CustomEvent<any>;
|
|
26
|
-
} & {
|
|
27
|
-
[evt: string]: CustomEvent<any>;
|
|
28
|
-
};
|
|
29
|
-
slots: {};
|
|
30
|
-
};
|
|
31
|
-
export type CopyableHeaderProps = typeof __propDef.props;
|
|
32
|
-
export type CopyableHeaderEvents = typeof __propDef.events;
|
|
33
|
-
export type CopyableHeaderSlots = typeof __propDef.slots;
|
|
34
|
-
export default class CopyableHeader extends SvelteComponentTyped<CopyableHeaderProps, CopyableHeaderEvents, CopyableHeaderSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
35
13
|
}
|
|
36
|
-
|
|
14
|
+
declare const CopyableHeader: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
/**
|
|
16
|
+
* COMPONENT PROPS
|
|
17
|
+
*/ class?: string;
|
|
18
|
+
style?: string;
|
|
19
|
+
headerText?: string;
|
|
20
|
+
content?: string;
|
|
21
|
+
helpText?: string;
|
|
22
|
+
helpUrl?: string;
|
|
23
|
+
showHelp?: boolean;
|
|
24
|
+
monospaceContent?: boolean;
|
|
25
|
+
showStandaloneCopyButton?: boolean;
|
|
26
|
+
standaloneCopyButtonText?: string;
|
|
27
|
+
showButtonText?: boolean;
|
|
28
|
+
buttonClass?: string;
|
|
29
|
+
showInternalToast?: boolean;
|
|
30
|
+
headerTextClass?: string;
|
|
31
|
+
headerBackgroundColor?: string;
|
|
32
|
+
contentBorderColor?: string;
|
|
33
|
+
}, {
|
|
34
|
+
copy: CustomEvent<any>;
|
|
35
|
+
copyError: CustomEvent<any>;
|
|
36
|
+
} & {
|
|
37
|
+
[evt: string]: CustomEvent<any>;
|
|
38
|
+
}, {}, {}, string>;
|
|
39
|
+
type CopyableHeader = InstanceType<typeof CopyableHeader>;
|
|
40
|
+
export default CopyableHeader;
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
<script lang="ts">
|
|
14
14
|
import { onMount } from 'svelte';
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
import { IconExclamationCircle } from '../icons';
|
|
16
|
+
import { IconExclamationCircle } from '@tabler/icons-svelte';
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* Component Props
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
});
|
|
75
74
|
</script>
|
|
76
75
|
|
|
77
|
-
<div class="empty-state-container {className ? className + ' ' : ''}w-full" style="height: {height} {style}">
|
|
76
|
+
<div class="empty-state-container {className ? className + ' ' : ''}w-full" style="height: {height}; {style}">
|
|
78
77
|
<div class="empty-state-content" bind:this={contentContainer}>
|
|
79
78
|
{#if shouldShowIcon}
|
|
80
79
|
<div class="icon-container">
|
|
@@ -118,7 +117,7 @@
|
|
|
118
117
|
|
|
119
118
|
/* Icon container to prevent scaling */
|
|
120
119
|
.icon-container {
|
|
121
|
-
shrink: 0;
|
|
120
|
+
flex-shrink: 0;
|
|
122
121
|
width: 24px;
|
|
123
122
|
height: 24px;
|
|
124
123
|
display: flex;
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/ class?: string;
|
|
13
|
-
style?: string;
|
|
14
|
-
message?: string;
|
|
15
|
-
height?: string;
|
|
16
|
-
showIcon?: boolean;
|
|
17
|
-
iconColor?: string;
|
|
18
|
-
textColor?: string;
|
|
19
|
-
icon?: typeof IconExclamationCircle;
|
|
1
|
+
import { IconExclamationCircle } from '@tabler/icons-svelte';
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
20
12
|
};
|
|
21
|
-
|
|
22
|
-
[evt: string]: CustomEvent<any>;
|
|
23
|
-
};
|
|
24
|
-
slots: {
|
|
25
|
-
action: {};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export type EmptyStateProps = typeof __propDef.props;
|
|
29
|
-
export type EmptyStateEvents = typeof __propDef.events;
|
|
30
|
-
export type EmptyStateSlots = typeof __propDef.slots;
|
|
31
|
-
export default class EmptyState extends SvelteComponentTyped<EmptyStateProps, EmptyStateEvents, EmptyStateSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
32
14
|
}
|
|
33
|
-
|
|
15
|
+
declare const EmptyState: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
/**
|
|
17
|
+
* Component Props
|
|
18
|
+
* @prop {string} message - The message to display in the empty state
|
|
19
|
+
* @prop {string} height - The height of the empty state container (default: '50vh')
|
|
20
|
+
* @prop {boolean} showIcon - Whether to show the icon (default: true)
|
|
21
|
+
* @prop {string} iconColor - The color of the icon (default: 'hsl(var(--grey3))')
|
|
22
|
+
* @prop {string} textColor - The color of the text (default: 'hsl(var(--grey3))')
|
|
23
|
+
*/ class?: string;
|
|
24
|
+
style?: string;
|
|
25
|
+
message?: string;
|
|
26
|
+
height?: string;
|
|
27
|
+
showIcon?: boolean;
|
|
28
|
+
iconColor?: string;
|
|
29
|
+
textColor?: string;
|
|
30
|
+
icon?: typeof IconExclamationCircle;
|
|
31
|
+
}, {
|
|
32
|
+
[evt: string]: CustomEvent<any>;
|
|
33
|
+
}, {
|
|
34
|
+
action: {};
|
|
35
|
+
}, {}, string>;
|
|
36
|
+
type EmptyState = InstanceType<typeof EmptyState>;
|
|
37
|
+
export default EmptyState;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
/** Optional secondary line; pass empty string to hide */
|
|
13
13
|
export let subtitle = 'Preview will appear when done.';
|
|
14
14
|
export let size: 'sm' | 'md' | 'lg' = 'md';
|
|
15
|
-
/** Absolute overlay with
|
|
15
|
+
/** Absolute overlay with opaque backdrop so idle placeholders cannot show through */
|
|
16
16
|
export let overlay = false;
|
|
17
17
|
|
|
18
18
|
const hourglassSizeClass: Record<typeof size, string> = {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
<div
|
|
32
32
|
class="wc-generate-loader {overlay
|
|
33
|
-
? 'wc-generate-loader-overlay absolute inset-0 z-30 flex flex-col items-center justify-center bg-white
|
|
33
|
+
? 'wc-generate-loader-overlay absolute inset-0 z-30 flex flex-col items-center justify-center bg-white pointer-events-none'
|
|
34
34
|
: 'wc-generate-loader-inline flex flex-col items-center justify-center text-center'} {className}"
|
|
35
35
|
style={style}
|
|
36
36
|
role="status"
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
10
11
|
};
|
|
11
|
-
|
|
12
|
-
[evt: string]: CustomEvent<any>;
|
|
13
|
-
};
|
|
14
|
-
slots: {};
|
|
15
|
-
};
|
|
16
|
-
export type GenerateLoaderProps = typeof __propDef.props;
|
|
17
|
-
export type GenerateLoaderEvents = typeof __propDef.events;
|
|
18
|
-
export type GenerateLoaderSlots = typeof __propDef.slots;
|
|
19
|
-
export default class GenerateLoader extends SvelteComponentTyped<GenerateLoaderProps, GenerateLoaderEvents, GenerateLoaderSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
20
13
|
}
|
|
21
|
-
|
|
14
|
+
declare const GenerateLoader: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
class?: string;
|
|
16
|
+
style?: string;
|
|
17
|
+
/** Primary status line */ title?: string;
|
|
18
|
+
/** Optional secondary line; pass empty string to hide */ subtitle?: string;
|
|
19
|
+
size?: "sm" | "md" | "lg";
|
|
20
|
+
/** Absolute overlay with opaque backdrop so idle placeholders cannot show through */ overlay?: boolean;
|
|
21
|
+
}, {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
}, {}, {}, string>;
|
|
24
|
+
type GenerateLoader = InstanceType<typeof GenerateLoader>;
|
|
25
|
+
export default GenerateLoader;
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
1
|
import type { FullAutoFill } from 'svelte/elements';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
3
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
4
|
+
$$bindings?: Bindings;
|
|
5
|
+
} & Exports;
|
|
6
|
+
(internal: unknown, props: Props & {
|
|
7
|
+
$$events?: Events;
|
|
8
|
+
$$slots?: Slots;
|
|
9
|
+
}): Exports & {
|
|
10
|
+
$set?: any;
|
|
11
|
+
$on?: any;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
[evt: string]: CustomEvent<any>;
|
|
14
|
-
};
|
|
15
|
-
slots: {};
|
|
16
|
-
};
|
|
17
|
-
export type PasswordInputProps = typeof __propDef.props;
|
|
18
|
-
export type PasswordInputEvents = typeof __propDef.events;
|
|
19
|
-
export type PasswordInputSlots = typeof __propDef.slots;
|
|
20
|
-
export default class PasswordInput extends SvelteComponentTyped<PasswordInputProps, PasswordInputEvents, PasswordInputSlots> {
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
21
14
|
}
|
|
22
|
-
|
|
15
|
+
declare const PasswordInput: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
value?: string | undefined;
|
|
18
|
+
placeholder?: string | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
autocomplete?: FullAutoFill | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
}, {}, {}, string>;
|
|
25
|
+
type PasswordInput = InstanceType<typeof PasswordInput>;
|
|
26
|
+
export default PasswordInput;
|
|
@@ -28,48 +28,56 @@
|
|
|
28
28
|
**/
|
|
29
29
|
|
|
30
30
|
// Convert hex string to base64
|
|
31
|
-
function hexToBase64(hexstring: string) {
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
function hexToBase64(hexstring: string | null | undefined): string {
|
|
32
|
+
if (!hexstring || typeof hexstring !== 'string') return '';
|
|
33
|
+
|
|
34
|
+
// if (showLogs) console.log('ThumbHashImage: Converting hash to base64', {
|
|
35
|
+
// input: hexstring,
|
|
36
|
+
// src,
|
|
37
|
+
// alt
|
|
38
|
+
// });
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
bytes
|
|
40
|
+
try {
|
|
41
|
+
const hex = hexstring.replace(/\s+/g, '');
|
|
42
|
+
if (hex.length === 0 || hex.length % 2 !== 0) return '';
|
|
43
|
+
const bytes = new Uint8Array(hex.length / 2);
|
|
44
|
+
for (let i = 0; i < hex.length; i += 2) {
|
|
45
|
+
bytes[i/2] = parseInt(hex.substring(i, i + 2), 16);
|
|
46
|
+
}
|
|
47
|
+
const result = btoa(String.fromCharCode.apply(null, Array.from(bytes)));
|
|
48
|
+
// if (showLogs) console.log('ThumbHashImage: Base64 conversion result', { result });
|
|
49
|
+
return result;
|
|
50
|
+
} catch (error) {
|
|
51
|
+
console.error('ThumbHashImage: Error converting hex to base64:', error);
|
|
52
|
+
return '';
|
|
42
53
|
}
|
|
43
|
-
const result = btoa(String.fromCharCode.apply(null, Array.from(bytes)));
|
|
44
|
-
if (showLogs) console.log('ThumbHashImage: Base64 conversion result', { result });
|
|
45
|
-
return result;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
$: {
|
|
49
|
-
if (showLogs) console.log('ThumbHashImage: Props updated', {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
});
|
|
57
|
+
// if (showLogs) console.log('ThumbHashImage: Props updated', {
|
|
58
|
+
// src,
|
|
59
|
+
// alt,
|
|
60
|
+
// thumbhash,
|
|
61
|
+
// shouldShowThumbhash,
|
|
62
|
+
// browser,
|
|
63
|
+
// imageLoaded,
|
|
64
|
+
// 'customElements.get("thumb-hash")': browser ? customElements.get('thumb-hash') : undefined
|
|
65
|
+
// });
|
|
58
66
|
base64Hash = hexToBase64(thumbhash);
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
onMount(async () => {
|
|
62
|
-
if (showLogs) console.log('ThumbHashImage: Component mounted', {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
});
|
|
70
|
+
// if (showLogs) console.log('ThumbHashImage: Component mounted', {
|
|
71
|
+
// browser,
|
|
72
|
+
// 'customElements.get("thumb-hash")': browser ? customElements.get('thumb-hash') : undefined
|
|
73
|
+
// });
|
|
66
74
|
|
|
67
75
|
if (browser && !customElements.get('thumb-hash')) {
|
|
68
|
-
if (showLogs) console.log('ThumbHashImage: Initializing ThumbHashElement');
|
|
76
|
+
// if (showLogs) console.log('ThumbHashImage: Initializing ThumbHashElement');
|
|
69
77
|
try {
|
|
70
78
|
const { ThumbHashElement } = await import('@hirasso/thumbhash-custom-element');
|
|
71
79
|
ThumbHashElement.init();
|
|
72
|
-
if (showLogs) console.log('ThumbHashImage: ThumbHashElement initialized successfully');
|
|
80
|
+
// if (showLogs) console.log('ThumbHashImage: ThumbHashElement initialized successfully');
|
|
73
81
|
} catch (error) {
|
|
74
82
|
if (showLogs) console.error('ThumbHashImage: Failed to initialize ThumbHashElement', error);
|
|
75
83
|
}
|
|
@@ -77,7 +85,7 @@
|
|
|
77
85
|
|
|
78
86
|
// Check if image is already cached
|
|
79
87
|
if (imageElement?.complete) {
|
|
80
|
-
if (showLogs) console.log('ThumbHashImage: Image already cached');
|
|
88
|
+
// if (showLogs) console.log('ThumbHashImage: Image already cached');
|
|
81
89
|
imageLoaded = true;
|
|
82
90
|
shouldShowThumbhash = false;
|
|
83
91
|
if (onLoad) onLoad();
|
|
@@ -90,7 +98,7 @@
|
|
|
90
98
|
});
|
|
91
99
|
|
|
92
100
|
function handleImageLoad() {
|
|
93
|
-
if (showLogs) console.log('ThumbHashImage: Image loaded', { src });
|
|
101
|
+
// if (showLogs) console.log('ThumbHashImage: Image loaded', { src });
|
|
94
102
|
imageLoaded = true;
|
|
95
103
|
// Delay removal of thumbhash so that the image fades in over it
|
|
96
104
|
setTimeout(() => {
|
|
@@ -116,6 +124,8 @@
|
|
|
116
124
|
bind:this={imageElement}
|
|
117
125
|
{src}
|
|
118
126
|
{alt}
|
|
127
|
+
loading="lazy"
|
|
128
|
+
decoding="async"
|
|
119
129
|
class="w-full h-full object-cover transition-opacity duration-300"
|
|
120
130
|
class:opacity-0={!imageLoaded}
|
|
121
131
|
class:opacity-100={imageLoaded}
|
|
@@ -1,22 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
[evt: string]: CustomEvent<any>;
|
|
14
|
-
};
|
|
15
|
-
slots: {};
|
|
16
|
-
};
|
|
17
|
-
export type ThumbHashImageProps = typeof __propDef.props;
|
|
18
|
-
export type ThumbHashImageEvents = typeof __propDef.events;
|
|
19
|
-
export type ThumbHashImageSlots = typeof __propDef.slots;
|
|
20
|
-
export default class ThumbHashImage extends SvelteComponentTyped<ThumbHashImageProps, ThumbHashImageEvents, ThumbHashImageSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
21
13
|
}
|
|
22
|
-
|
|
14
|
+
declare const ThumbHashImage: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
src: string;
|
|
16
|
+
alt?: string;
|
|
17
|
+
thumbhash: string;
|
|
18
|
+
class_?: string;
|
|
19
|
+
style?: string;
|
|
20
|
+
roundedCorners?: string;
|
|
21
|
+
onLoad?: (() => void) | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
}, {}, {}, string>;
|
|
25
|
+
type ThumbHashImage = InstanceType<typeof ThumbHashImage>;
|
|
26
|
+
export default ThumbHashImage;
|
|
@@ -1,27 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
scrollHideDelay?: number;
|
|
12
|
-
type?: any;
|
|
13
|
-
element?: HTMLElement | null;
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
};
|
|
18
|
-
slots: {
|
|
19
|
-
default: {};
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export type WScrollAreaProps = typeof __propDef.props;
|
|
23
|
-
export type WScrollAreaEvents = typeof __propDef.events;
|
|
24
|
-
export type WScrollAreaSlots = typeof __propDef.slots;
|
|
25
|
-
export default class WScrollArea extends SvelteComponentTyped<WScrollAreaProps, WScrollAreaEvents, WScrollAreaSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
26
13
|
}
|
|
27
|
-
|
|
14
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
15
|
+
default: any;
|
|
16
|
+
} ? Props extends Record<string, never> ? any : {
|
|
17
|
+
children?: any;
|
|
18
|
+
} : {});
|
|
19
|
+
declare const WScrollArea: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
+
class?: string;
|
|
21
|
+
style?: string;
|
|
22
|
+
viewPortClass?: string;
|
|
23
|
+
orientation?: "horizontal" | "vertical";
|
|
24
|
+
scrollOutside?: boolean;
|
|
25
|
+
scrollbarWidth?: number;
|
|
26
|
+
scrollbarYClasses?: string;
|
|
27
|
+
scrollHideDelay?: number;
|
|
28
|
+
type?: any;
|
|
29
|
+
element?: HTMLElement | null;
|
|
30
|
+
}, {
|
|
31
|
+
default: {};
|
|
32
|
+
}>, {
|
|
33
|
+
[evt: string]: CustomEvent<any>;
|
|
34
|
+
}, {
|
|
35
|
+
default: {};
|
|
36
|
+
}, {}, string>;
|
|
37
|
+
type WScrollArea = InstanceType<typeof WScrollArea>;
|
|
38
|
+
export default WScrollArea;
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
* LIFECYCLE HOOKS
|
|
44
44
|
**/
|
|
45
45
|
onMount(() => {
|
|
46
|
-
if (showLogs) console.log('DebugGrid: Mounted!');
|
|
46
|
+
// if (showLogs) console.log('DebugGrid: Mounted!');
|
|
47
47
|
|
|
48
48
|
// Set mounted to true
|
|
49
49
|
mounted = true;
|
|
@@ -68,10 +68,23 @@
|
|
|
68
68
|
};
|
|
69
69
|
});
|
|
70
70
|
|
|
71
|
+
function isTypingShortcutTarget(event: KeyboardEvent): boolean {
|
|
72
|
+
const target = event.target as HTMLElement | null;
|
|
73
|
+
if (!target) return false;
|
|
74
|
+
const tag = target.tagName;
|
|
75
|
+
return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target.isContentEditable;
|
|
76
|
+
}
|
|
77
|
+
|
|
71
78
|
function handleKeydown(event: KeyboardEvent) {
|
|
72
|
-
//
|
|
79
|
+
// Ctrl/Cmd+Shift+G — Shift+G alone types capital G in text fields
|
|
73
80
|
if (process.env.NODE_ENV !== 'production') {
|
|
74
|
-
if (
|
|
81
|
+
if (
|
|
82
|
+
event.shiftKey
|
|
83
|
+
&& (event.metaKey || event.ctrlKey)
|
|
84
|
+
&& event.key.toLowerCase() === 'g'
|
|
85
|
+
&& !isTypingShortcutTarget(event)
|
|
86
|
+
) {
|
|
87
|
+
event.preventDefault();
|
|
75
88
|
shouldShow = !shouldShow;
|
|
76
89
|
}
|
|
77
90
|
}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
portalTarget?: string;
|
|
12
|
-
columns?: number;
|
|
13
|
-
columnWidth?: number;
|
|
14
|
-
isMobile?: boolean;
|
|
15
|
-
isTablet?: boolean;
|
|
16
|
-
isDesktop?: boolean;
|
|
1
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
2
|
+
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
|
|
3
|
+
$$bindings?: Bindings;
|
|
4
|
+
} & Exports;
|
|
5
|
+
(internal: unknown, props: Props & {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
17
11
|
};
|
|
18
|
-
|
|
19
|
-
[evt: string]: CustomEvent<any>;
|
|
20
|
-
};
|
|
21
|
-
slots: {};
|
|
22
|
-
};
|
|
23
|
-
export type DebugGridProps = typeof __propDef.props;
|
|
24
|
-
export type DebugGridEvents = typeof __propDef.events;
|
|
25
|
-
export type DebugGridSlots = typeof __propDef.slots;
|
|
26
|
-
export default class DebugGrid extends SvelteComponentTyped<DebugGridProps, DebugGridEvents, DebugGridSlots> {
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
27
13
|
}
|
|
28
|
-
|
|
14
|
+
declare const DebugGrid: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
/***
|
|
16
|
+
* COMPONENT PROPS
|
|
17
|
+
**/ class?: string;
|
|
18
|
+
gridClass?: string;
|
|
19
|
+
headerGridClass?: string;
|
|
20
|
+
mainGridClass?: string;
|
|
21
|
+
headerHeight?: string | undefined;
|
|
22
|
+
portalTarget?: string;
|
|
23
|
+
columns?: number;
|
|
24
|
+
columnWidth?: number;
|
|
25
|
+
isMobile?: boolean;
|
|
26
|
+
isTablet?: boolean;
|
|
27
|
+
isDesktop?: boolean;
|
|
28
|
+
}, {
|
|
29
|
+
[evt: string]: CustomEvent<any>;
|
|
30
|
+
}, {}, {}, string>;
|
|
31
|
+
type DebugGrid = InstanceType<typeof DebugGrid>;
|
|
32
|
+
export default DebugGrid;
|