@finsweet/webflow-apps-utils 1.0.1
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/README.md +45 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/router/Link.svelte +166 -0
- package/dist/router/Link.svelte.d.ts +26 -0
- package/dist/router/README.md +397 -0
- package/dist/router/Route.svelte +82 -0
- package/dist/router/Route.svelte.d.ts +24 -0
- package/dist/router/Router.svelte +71 -0
- package/dist/router/Router.svelte.d.ts +20 -0
- package/dist/router/hooks.svelte.d.ts +77 -0
- package/dist/router/hooks.svelte.js +148 -0
- package/dist/router/index.svelte.d.ts +107 -0
- package/dist/router/index.svelte.js +400 -0
- package/dist/stores/breakpoints.d.ts +10 -0
- package/dist/stores/breakpoints.js +2 -0
- package/dist/stores/componentInjectErrors.d.ts +1 -0
- package/dist/stores/componentInjectErrors.js +2 -0
- package/dist/stores/forms.d.ts +110 -0
- package/dist/stores/forms.js +307 -0
- package/dist/stores/globalStore.d.ts +10 -0
- package/dist/stores/globalStore.js +10 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/stores/index.js +7 -0
- package/dist/stores/router.d.ts +4 -0
- package/dist/stores/router.js +5 -0
- package/dist/stores/showConfirmActionModal.d.ts +1 -0
- package/dist/stores/showConfirmActionModal.js +2 -0
- package/dist/stores/siteInfo.d.ts +13 -0
- package/dist/stores/siteInfo.js +2 -0
- package/dist/types/auth.d.ts +40 -0
- package/dist/types/auth.js +1 -0
- package/dist/types/customCode.d.ts +16 -0
- package/dist/types/customCode.js +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.js +5 -0
- package/dist/types/license.d.ts +5 -0
- package/dist/types/license.js +1 -0
- package/dist/types/webflow.d.ts +125 -0
- package/dist/types/webflow.js +1 -0
- package/dist/types/window.d.ts +14 -0
- package/dist/types/window.js +1 -0
- package/dist/ui/components/ButtonGroup.svelte +106 -0
- package/dist/ui/components/ButtonGroup.svelte.d.ts +28 -0
- package/dist/ui/components/Checkbox.svelte +94 -0
- package/dist/ui/components/Checkbox.svelte.d.ts +36 -0
- package/dist/ui/components/Copy.svelte +329 -0
- package/dist/ui/components/Copy.svelte.d.ts +35 -0
- package/dist/ui/components/CustomModal.svelte +192 -0
- package/dist/ui/components/CustomModal.svelte.d.ts +45 -0
- package/dist/ui/components/DisableInEditMode.svelte +66 -0
- package/dist/ui/components/DisableInEditMode.svelte.d.ts +33 -0
- package/dist/ui/components/Divider.svelte +31 -0
- package/dist/ui/components/Divider.svelte.d.ts +31 -0
- package/dist/ui/components/Header.svelte +30 -0
- package/dist/ui/components/Header.svelte.d.ts +20 -0
- package/dist/ui/components/Iframe.svelte +89 -0
- package/dist/ui/components/Iframe.svelte.d.ts +40 -0
- package/dist/ui/components/ImageUpload.svelte +213 -0
- package/dist/ui/components/ImageUpload.svelte.d.ts +42 -0
- package/dist/ui/components/InjectComponent.svelte +297 -0
- package/dist/ui/components/InjectComponent.svelte.d.ts +27 -0
- package/dist/ui/components/Loader.svelte +68 -0
- package/dist/ui/components/Loader.svelte.d.ts +24 -0
- package/dist/ui/components/LoadingScreen.svelte +71 -0
- package/dist/ui/components/LoadingScreen.svelte.d.ts +26 -0
- package/dist/ui/components/Modal.svelte +139 -0
- package/dist/ui/components/Modal.svelte.d.ts +42 -0
- package/dist/ui/components/Navbar.svelte +132 -0
- package/dist/ui/components/Navbar.svelte.d.ts +29 -0
- package/dist/ui/components/NoSettingsNeeded.svelte +31 -0
- package/dist/ui/components/NoSettingsNeeded.svelte.d.ts +18 -0
- package/dist/ui/components/Notification.svelte +193 -0
- package/dist/ui/components/Notification.svelte.d.ts +64 -0
- package/dist/ui/components/PlusMinusButton.svelte +91 -0
- package/dist/ui/components/PlusMinusButton.svelte.d.ts +22 -0
- package/dist/ui/components/PreviewBar.svelte +40 -0
- package/dist/ui/components/PreviewBar.svelte.d.ts +20 -0
- package/dist/ui/components/ScrollableContent.svelte +18 -0
- package/dist/ui/components/ScrollableContent.svelte.d.ts +31 -0
- package/dist/ui/components/Section.svelte +97 -0
- package/dist/ui/components/Section.svelte.d.ts +50 -0
- package/dist/ui/components/SelectBodyOrDivBlock.svelte +26 -0
- package/dist/ui/components/SelectBodyOrDivBlock.svelte.d.ts +26 -0
- package/dist/ui/components/Spacer.svelte +9 -0
- package/dist/ui/components/Spacer.svelte.d.ts +22 -0
- package/dist/ui/components/SpinnerPlusMinus.svelte +75 -0
- package/dist/ui/components/SpinnerPlusMinus.svelte.d.ts +23 -0
- package/dist/ui/components/SpinnerUpDown.svelte +194 -0
- package/dist/ui/components/SpinnerUpDown.svelte.d.ts +31 -0
- package/dist/ui/components/Tabs.svelte +71 -0
- package/dist/ui/components/Tabs.svelte.d.ts +26 -0
- package/dist/ui/components/ToggleItem.svelte +29 -0
- package/dist/ui/components/ToggleItem.svelte.d.ts +28 -0
- package/dist/ui/components/ToggleList.svelte +57 -0
- package/dist/ui/components/ToggleList.svelte.d.ts +39 -0
- package/dist/ui/components/breakpoints/BreakpointItem.svelte +84 -0
- package/dist/ui/components/breakpoints/BreakpointItem.svelte.d.ts +37 -0
- package/dist/ui/components/breakpoints/breakpointOptions.d.ts +12 -0
- package/dist/ui/components/breakpoints/breakpointOptions.js +38 -0
- package/dist/ui/components/breakpoints/index.d.ts +3 -0
- package/dist/ui/components/breakpoints/index.js +3 -0
- package/dist/ui/components/button/Button.stories.svelte +275 -0
- package/dist/ui/components/button/Button.stories.svelte.d.ts +27 -0
- package/dist/ui/components/button/Button.svelte +389 -0
- package/dist/ui/components/button/Button.svelte.d.ts +84 -0
- package/dist/ui/components/button/index.d.ts +2 -0
- package/dist/ui/components/button/index.js +1 -0
- package/dist/ui/components/button/types.d.ts +23 -0
- package/dist/ui/components/button/types.js +1 -0
- package/dist/ui/components/buttons/FooterButton.svelte +277 -0
- package/dist/ui/components/buttons/FooterButton.svelte.d.ts +10 -0
- package/dist/ui/components/buttons/index.d.ts +5 -0
- package/dist/ui/components/buttons/index.js +5 -0
- package/dist/ui/components/buttons/types.d.ts +28 -0
- package/dist/ui/components/buttons/types.js +1 -0
- package/dist/ui/components/clickable/Clickable.stories.svelte +213 -0
- package/dist/ui/components/clickable/Clickable.stories.svelte.d.ts +27 -0
- package/dist/ui/components/clickable/Clickable.svelte +93 -0
- package/dist/ui/components/clickable/Clickable.svelte.d.ts +4 -0
- package/dist/ui/components/clickable/index.d.ts +2 -0
- package/dist/ui/components/clickable/index.js +1 -0
- package/dist/ui/components/clickable/types.d.ts +17 -0
- package/dist/ui/components/clickable/types.js +1 -0
- package/dist/ui/components/index.d.ts +46 -0
- package/dist/ui/components/index.js +46 -0
- package/dist/ui/components/input/Input.stories.d.ts +109 -0
- package/dist/ui/components/input/Input.stories.js +337 -0
- package/dist/ui/components/input/Input.svelte +422 -0
- package/dist/ui/components/input/Input.svelte.d.ts +4 -0
- package/dist/ui/components/input/index.d.ts +2 -0
- package/dist/ui/components/input/index.js +1 -0
- package/dist/ui/components/input/types.d.ts +109 -0
- package/dist/ui/components/input/types.js +1 -0
- package/dist/ui/components/layout/ExampleLayout.svelte +538 -0
- package/dist/ui/components/layout/ExampleLayout.svelte.d.ts +3 -0
- package/dist/ui/components/layout/Layout.stories.svelte +24 -0
- package/dist/ui/components/layout/Layout.stories.svelte.d.ts +18 -0
- package/dist/ui/components/layout/Layout.svelte +551 -0
- package/dist/ui/components/layout/Layout.svelte.d.ts +30 -0
- package/dist/ui/components/layout/common/EditModeMessage.svelte +59 -0
- package/dist/ui/components/layout/common/EditModeMessage.svelte.d.ts +3 -0
- package/dist/ui/components/layout/common/index.d.ts +1 -0
- package/dist/ui/components/layout/common/index.js +1 -0
- package/dist/ui/components/layout/index.d.ts +3 -0
- package/dist/ui/components/layout/index.js +2 -0
- package/dist/ui/components/layout/types.d.ts +59 -0
- package/dist/ui/components/layout/types.js +1 -0
- package/dist/ui/components/select/Select.stories.d.ts +94 -0
- package/dist/ui/components/select/Select.stories.js +396 -0
- package/dist/ui/components/select/Select.svelte +705 -0
- package/dist/ui/components/select/Select.svelte.d.ts +11 -0
- package/dist/ui/components/select/index.d.ts +2 -0
- package/dist/ui/components/select/index.js +1 -0
- package/dist/ui/components/select/types.d.ts +94 -0
- package/dist/ui/components/select/types.js +1 -0
- package/dist/ui/components/switch/Switch.stories.d.ts +58 -0
- package/dist/ui/components/switch/Switch.stories.js +198 -0
- package/dist/ui/components/switch/Switch.svelte +220 -0
- package/dist/ui/components/switch/Switch.svelte.d.ts +4 -0
- package/dist/ui/components/switch/index.d.ts +2 -0
- package/dist/ui/components/switch/index.js +1 -0
- package/dist/ui/components/switch/types.d.ts +47 -0
- package/dist/ui/components/switch/types.js +1 -0
- package/dist/ui/components/text/README.md +73 -0
- package/dist/ui/components/text/Text.stories.svelte +203 -0
- package/dist/ui/components/text/Text.stories.svelte.d.ts +27 -0
- package/dist/ui/components/text/Text.svelte +778 -0
- package/dist/ui/components/text/Text.svelte.d.ts +8 -0
- package/dist/ui/components/text/index.d.ts +3 -0
- package/dist/ui/components/text/index.js +2 -0
- package/dist/ui/components/text/types.d.ts +46 -0
- package/dist/ui/components/text/types.js +1 -0
- package/dist/ui/components/tooltip/Tooltip.stories.svelte +128 -0
- package/dist/ui/components/tooltip/Tooltip.stories.svelte.d.ts +27 -0
- package/dist/ui/components/tooltip/Tooltip.svelte +463 -0
- package/dist/ui/components/tooltip/Tooltip.svelte.d.ts +7 -0
- package/dist/ui/components/tooltip/index.d.ts +2 -0
- package/dist/ui/components/tooltip/index.js +1 -0
- package/dist/ui/components/tooltip/types.d.ts +114 -0
- package/dist/ui/components/tooltip/types.js +1 -0
- package/dist/ui/icons/AccordionDownArrow.svelte +8 -0
- package/dist/ui/icons/AccordionDownArrow.svelte.d.ts +26 -0
- package/dist/ui/icons/AccordionUpArrow.svelte +8 -0
- package/dist/ui/icons/AccordionUpArrow.svelte.d.ts +26 -0
- package/dist/ui/icons/AccountIcon.svelte +14 -0
- package/dist/ui/icons/AccountIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ArrowIcon.svelte +6 -0
- package/dist/ui/icons/ArrowIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BackIcon.svelte +8 -0
- package/dist/ui/icons/BackIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BodyIcon.svelte +8 -0
- package/dist/ui/icons/BodyIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BookmarkIcon.svelte +13 -0
- package/dist/ui/icons/BookmarkIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BoxAddIcon.svelte +8 -0
- package/dist/ui/icons/BoxAddIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BrushIcon.svelte +10 -0
- package/dist/ui/icons/BrushIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BuilderEditIcon.svelte +12 -0
- package/dist/ui/icons/BuilderEditIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/BuilderIcon.svelte +14 -0
- package/dist/ui/icons/BuilderIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CMSIcon.svelte +8 -0
- package/dist/ui/icons/CMSIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckCircleIcon.svelte +8 -0
- package/dist/ui/icons/CheckCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckCircleOutlinedIcon.svelte +15 -0
- package/dist/ui/icons/CheckCircleOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckIcon.svelte +9 -0
- package/dist/ui/icons/CheckIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CheckboxCheckedIcon.svelte +15 -0
- package/dist/ui/icons/CheckboxCheckedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ChevronIcon.svelte +8 -0
- package/dist/ui/icons/ChevronIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ChevronRightIcon.svelte +8 -0
- package/dist/ui/icons/ChevronRightIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CircleIcon.svelte +3 -0
- package/dist/ui/icons/CircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CloseCircleIcon.svelte +6 -0
- package/dist/ui/icons/CloseCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CloseIcon.svelte +8 -0
- package/dist/ui/icons/CloseIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CodeIcon.svelte +8 -0
- package/dist/ui/icons/CodeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ComponentsIcon.svelte +7 -0
- package/dist/ui/icons/ComponentsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CookieIcon.svelte +15 -0
- package/dist/ui/icons/CookieIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/CopyIcon.svelte +19 -0
- package/dist/ui/icons/CopyIcon.svelte.d.ts +20 -0
- package/dist/ui/icons/CrossIcon.svelte +4 -0
- package/dist/ui/icons/CrossIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/DOMElement.svelte +19 -0
- package/dist/ui/icons/DOMElement.svelte.d.ts +28 -0
- package/dist/ui/icons/DeleteIcon.svelte +8 -0
- package/dist/ui/icons/DeleteIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/DeleteOutlinedIcon.svelte +8 -0
- package/dist/ui/icons/DeleteOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/Desktop.svelte +19 -0
- package/dist/ui/icons/Desktop.svelte.d.ts +21 -0
- package/dist/ui/icons/DesktopWithStar.svelte +21 -0
- package/dist/ui/icons/DesktopWithStar.svelte.d.ts +21 -0
- package/dist/ui/icons/DivBlock.svelte +14 -0
- package/dist/ui/icons/DivBlock.svelte.d.ts +28 -0
- package/dist/ui/icons/EditIcon.svelte +15 -0
- package/dist/ui/icons/EditIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ExpertIcon.svelte +16 -0
- package/dist/ui/icons/ExpertIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/EyeCancelIcon.svelte +12 -0
- package/dist/ui/icons/EyeCancelIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/EyeIcon.svelte +12 -0
- package/dist/ui/icons/EyeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FavouriteIcon.svelte +6 -0
- package/dist/ui/icons/FavouriteIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FileUploadIcon.svelte +18 -0
- package/dist/ui/icons/FileUploadIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FilterIcon.svelte +8 -0
- package/dist/ui/icons/FilterIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FinsweetLibraryIcon.svelte +21 -0
- package/dist/ui/icons/FinsweetLibraryIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FinsweetLogoIcon.svelte +20 -0
- package/dist/ui/icons/FinsweetLogoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FolderIcon.svelte +6 -0
- package/dist/ui/icons/FolderIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FolderOutlinedIcon.svelte +8 -0
- package/dist/ui/icons/FolderOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FolderPlusIcon.svelte +10 -0
- package/dist/ui/icons/FolderPlusIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/FreeComponentIcon.svelte +8 -0
- package/dist/ui/icons/FreeComponentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/GlobeIcon.svelte +14 -0
- package/dist/ui/icons/GlobeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HandPointUpIcon.svelte +9 -0
- package/dist/ui/icons/HandPointUpIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HeartIcon.svelte +8 -0
- package/dist/ui/icons/HeartIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HeartIconOutlined.svelte +8 -0
- package/dist/ui/icons/HeartIconOutlined.svelte.d.ts +26 -0
- package/dist/ui/icons/HelpAltIcon.svelte +23 -0
- package/dist/ui/icons/HelpAltIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HelpIcon.svelte +16 -0
- package/dist/ui/icons/HelpIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/HomeIcon.svelte +8 -0
- package/dist/ui/icons/HomeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/InfoIcon.svelte +14 -0
- package/dist/ui/icons/InfoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ListIcon.svelte +18 -0
- package/dist/ui/icons/ListIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/LockIcon.svelte +13 -0
- package/dist/ui/icons/LockIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/MessageIcon.svelte +10 -0
- package/dist/ui/icons/MessageIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/MobileLandscape.svelte +20 -0
- package/dist/ui/icons/MobileLandscape.svelte.d.ts +21 -0
- package/dist/ui/icons/MobilePortrait.svelte +20 -0
- package/dist/ui/icons/MobilePortrait.svelte.d.ts +21 -0
- package/dist/ui/icons/NavigatorIcon.svelte +8 -0
- package/dist/ui/icons/NavigatorIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/OpenBookIcon.svelte +8 -0
- package/dist/ui/icons/OpenBookIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageDraftIcon.svelte +8 -0
- package/dist/ui/icons/PageDraftIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageIcon.svelte +9 -0
- package/dist/ui/icons/PageIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageLockedIcon.svelte +8 -0
- package/dist/ui/icons/PageLockedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageOutlinedIcon.svelte +8 -0
- package/dist/ui/icons/PageOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PageSectionIcon.svelte +10 -0
- package/dist/ui/icons/PageSectionIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/Pencil.svelte +12 -0
- package/dist/ui/icons/Pencil.svelte.d.ts +20 -0
- package/dist/ui/icons/PencilOutlinedIcon.svelte +15 -0
- package/dist/ui/icons/PencilOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PinIcon.svelte +8 -0
- package/dist/ui/icons/PinIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PlayIcon.svelte +8 -0
- package/dist/ui/icons/PlayIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PlusIcon.svelte +8 -0
- package/dist/ui/icons/PlusIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PreviewEyeIcon.svelte +12 -0
- package/dist/ui/icons/PreviewEyeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ProfileIcon.svelte +12 -0
- package/dist/ui/icons/ProfileIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PublishCancelIcon.svelte +8 -0
- package/dist/ui/icons/PublishCancelIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/PublishIcon.svelte +12 -0
- package/dist/ui/icons/PublishIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/RefreshIcon.svelte +10 -0
- package/dist/ui/icons/RefreshIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/RepairIcon.svelte +10 -0
- package/dist/ui/icons/RepairIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SaveIcon.svelte +14 -0
- package/dist/ui/icons/SaveIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SearchIcon.svelte +8 -0
- package/dist/ui/icons/SearchIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SelectIcon.svelte +7 -0
- package/dist/ui/icons/SelectIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SettingsIcon.svelte +8 -0
- package/dist/ui/icons/SettingsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SidebarToggleIcon.svelte +28 -0
- package/dist/ui/icons/SidebarToggleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SliderAppIcon.svelte +14 -0
- package/dist/ui/icons/SliderAppIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SquareCheckIcon.svelte +3 -0
- package/dist/ui/icons/SquareCheckIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/StarIcon.svelte +6 -0
- package/dist/ui/icons/StarIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/StarOutlinedIcon.svelte +6 -0
- package/dist/ui/icons/StarOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/StaticContentIcon.svelte +8 -0
- package/dist/ui/icons/StaticContentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/SubtractIcon.svelte +9 -0
- package/dist/ui/icons/SubtractIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TabNewIcon.svelte +6 -0
- package/dist/ui/icons/TabNewIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TableAppIcon.svelte +19 -0
- package/dist/ui/icons/TableAppIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/Tablet.svelte +20 -0
- package/dist/ui/icons/Tablet.svelte.d.ts +21 -0
- package/dist/ui/icons/TabletPreview.svelte +20 -0
- package/dist/ui/icons/TabletPreview.svelte.d.ts +21 -0
- package/dist/ui/icons/TabsIcon.svelte +17 -0
- package/dist/ui/icons/TabsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ThreeDotsIcon.svelte +14 -0
- package/dist/ui/icons/ThreeDotsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TimesIcon.svelte +4 -0
- package/dist/ui/icons/TimesIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/ToolTipInfoCircleIcon.svelte +11 -0
- package/dist/ui/icons/ToolTipInfoCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TooltipInfoCircleFilled.svelte +13 -0
- package/dist/ui/icons/TooltipInfoCircleFilled.svelte.d.ts +26 -0
- package/dist/ui/icons/TooltipInfoSquaredIcon.svelte +16 -0
- package/dist/ui/icons/TooltipInfoSquaredIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TriangleDownIcon.svelte +7 -0
- package/dist/ui/icons/TriangleDownIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/TriangleDownIconToggle.svelte +21 -0
- package/dist/ui/icons/TriangleDownIconToggle.svelte.d.ts +20 -0
- package/dist/ui/icons/UndoIcon.svelte +6 -0
- package/dist/ui/icons/UndoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/UploadFileIcon.svelte +10 -0
- package/dist/ui/icons/UploadFileIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningCircleIcon.svelte +7 -0
- package/dist/ui/icons/WarningCircleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningCircleOutlineIcon.svelte +14 -0
- package/dist/ui/icons/WarningCircleOutlineIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningTriangleIcon.svelte +6 -0
- package/dist/ui/icons/WarningTriangleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WarningTriangleOutlineIcon.svelte +14 -0
- package/dist/ui/icons/WarningTriangleOutlineIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WebflowComponentIcon.svelte +14 -0
- package/dist/ui/icons/WebflowComponentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WebflowComponentOutlinedIcon.svelte +10 -0
- package/dist/ui/icons/WebflowComponentOutlinedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WebflowInsightsIcon.svelte +6 -0
- package/dist/ui/icons/WebflowInsightsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/WizedLogoIcon.svelte +39 -0
- package/dist/ui/icons/WizedLogoIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/XL.svelte +19 -0
- package/dist/ui/icons/XL.svelte.d.ts +21 -0
- package/dist/ui/icons/XXL.svelte +19 -0
- package/dist/ui/icons/XXL.svelte.d.ts +21 -0
- package/dist/ui/icons/XXXL.svelte +19 -0
- package/dist/ui/icons/XXXL.svelte.d.ts +21 -0
- package/dist/ui/icons/apps/FsConsentIcon.svelte +22 -0
- package/dist/ui/icons/apps/FsConsentIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsCursorIcon.svelte +12 -0
- package/dist/ui/icons/apps/FsCursorIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsExampleIcon.svelte +10 -0
- package/dist/ui/icons/apps/FsExampleIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsInstagramFeedIcon.svelte +27 -0
- package/dist/ui/icons/apps/FsInstagramFeedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsMarqueeIcon.svelte +13 -0
- package/dist/ui/icons/apps/FsMarqueeIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsNumberCountIcon.svelte +46 -0
- package/dist/ui/icons/apps/FsNumberCountIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsSliderIcon.svelte +13 -0
- package/dist/ui/icons/apps/FsSliderIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsTablesIcon.svelte +19 -0
- package/dist/ui/icons/apps/FsTablesIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsTabsIcon.svelte +24 -0
- package/dist/ui/icons/apps/FsTabsIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsTooltipIcon.svelte +12 -0
- package/dist/ui/icons/apps/FsTooltipIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/FsYouTubeFeedIcon.svelte +43 -0
- package/dist/ui/icons/apps/FsYouTubeFeedIcon.svelte.d.ts +26 -0
- package/dist/ui/icons/apps/index.d.ts +15 -0
- package/dist/ui/icons/apps/index.js +15 -0
- package/dist/ui/icons/index.d.ts +120 -0
- package/dist/ui/icons/index.js +120 -0
- package/dist/ui/index.css +494 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +2 -0
- package/dist/utils/api/checkIfAppModeIsDesign.d.ts +5 -0
- package/dist/utils/api/checkIfAppModeIsDesign.js +20 -0
- package/dist/utils/api/clipboard/handlePaste.d.ts +46 -0
- package/dist/utils/api/clipboard/handlePaste.js +53 -0
- package/dist/utils/api/clipboard/index.d.ts +1 -0
- package/dist/utils/api/clipboard/index.js +1 -0
- package/dist/utils/api/copyPaste/index.d.ts +18 -0
- package/dist/utils/api/copyPaste/index.js +1 -0
- package/dist/utils/api/getAllAssets.d.ts +12 -0
- package/dist/utils/api/getAllAssets.js +21 -0
- package/dist/utils/api/getFinsweetComponentsEnvironment.d.ts +9 -0
- package/dist/utils/api/getFinsweetComponentsEnvironment.js +70 -0
- package/dist/utils/api/index.d.ts +6 -0
- package/dist/utils/api/index.js +6 -0
- package/dist/utils/api/insertWithXSCP.d.ts +5 -0
- package/dist/utils/api/insertWithXSCP.js +13 -0
- package/dist/utils/auth/crossWindowLogin.d.ts +2 -0
- package/dist/utils/auth/crossWindowLogin.js +49 -0
- package/dist/utils/auth/index.d.ts +61 -0
- package/dist/utils/auth/index.js +196 -0
- package/dist/utils/browser-storage/index.d.ts +2 -0
- package/dist/utils/browser-storage/index.js +2 -0
- package/dist/utils/browser-storage/localStorage.d.ts +24 -0
- package/dist/utils/browser-storage/localStorage.js +56 -0
- package/dist/utils/browser-storage/sessionStorage.d.ts +24 -0
- package/dist/utils/browser-storage/sessionStorage.js +56 -0
- package/dist/utils/constants.d.ts +61 -0
- package/dist/utils/constants.js +73 -0
- package/dist/utils/custom-code/api.d.ts +17 -0
- package/dist/utils/custom-code/api.js +41 -0
- package/dist/utils/custom-code/index.d.ts +1 -0
- package/dist/utils/custom-code/index.js +1 -0
- package/dist/utils/helpers/cleanupTooltipMessage.d.ts +5 -0
- package/dist/utils/helpers/cleanupTooltipMessage.js +25 -0
- package/dist/utils/helpers/goto.d.ts +7 -0
- package/dist/utils/helpers/goto.js +35 -0
- package/dist/utils/helpers/index.d.ts +5 -0
- package/dist/utils/helpers/index.js +5 -0
- package/dist/utils/helpers/noop.d.ts +4 -0
- package/dist/utils/helpers/noop.js +7 -0
- package/dist/utils/helpers/numbers.d.ts +27 -0
- package/dist/utils/helpers/numbers.js +61 -0
- package/dist/utils/helpers/objectsToModuleExports.d.ts +9 -0
- package/dist/utils/helpers/objectsToModuleExports.js +13 -0
- package/dist/utils/helpers/trimText.d.ts +15 -0
- package/dist/utils/helpers/trimText.js +33 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/logger/index.d.ts +19 -0
- package/dist/utils/logger/index.js +41 -0
- package/dist/utils/webflow-canvas/attributes/getAllWebflowElementAttributes.d.ts +6 -0
- package/dist/utils/webflow-canvas/attributes/getAllWebflowElementAttributes.js +19 -0
- package/dist/utils/webflow-canvas/attributes/getInstanceNamesFromObject.d.ts +8 -0
- package/dist/utils/webflow-canvas/attributes/getInstanceNamesFromObject.js +21 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementAttribute.d.ts +7 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementAttribute.js +25 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementTextContent.d.ts +6 -0
- package/dist/utils/webflow-canvas/attributes/getWebflowElementTextContent.js +26 -0
- package/dist/utils/webflow-canvas/attributes/index.d.ts +7 -0
- package/dist/utils/webflow-canvas/attributes/index.js +7 -0
- package/dist/utils/webflow-canvas/attributes/removeWebflowElementAttribute.d.ts +7 -0
- package/dist/utils/webflow-canvas/attributes/removeWebflowElementAttribute.js +37 -0
- package/dist/utils/webflow-canvas/attributes/setStyles.d.ts +10 -0
- package/dist/utils/webflow-canvas/attributes/setStyles.js +36 -0
- package/dist/utils/webflow-canvas/attributes/setWebflowElementAttribute.d.ts +11 -0
- package/dist/utils/webflow-canvas/attributes/setWebflowElementAttribute.js +61 -0
- package/dist/utils/webflow-canvas/findInstanceElement.d.ts +32 -0
- package/dist/utils/webflow-canvas/findInstanceElement.js +144 -0
- package/dist/utils/webflow-canvas/getAllPages.d.ts +29 -0
- package/dist/utils/webflow-canvas/getAllPages.js +93 -0
- package/dist/utils/webflow-canvas/getSiteStagingUrl.d.ts +7 -0
- package/dist/utils/webflow-canvas/getSiteStagingUrl.js +14 -0
- package/dist/utils/webflow-canvas/index.d.ts +3 -0
- package/dist/utils/webflow-canvas/index.js +3 -0
- package/package.json +107 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { WarningTriangleOutlineIcon } from '../icons';
|
|
3
|
+
import { Loader, Text } from '.';
|
|
4
|
+
|
|
5
|
+
export let message = '';
|
|
6
|
+
export let position: 'fixed' | 'absolute' = 'fixed';
|
|
7
|
+
export let active = false;
|
|
8
|
+
export let error = false;
|
|
9
|
+
export let raw = false;
|
|
10
|
+
export let backgroundColor = 'rgba(30, 30, 30, 0.96)';
|
|
11
|
+
export let spinnerSize = 50;
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
{#if active}
|
|
15
|
+
<div class="loading-screen" style="position:{position}; background-color: {backgroundColor};">
|
|
16
|
+
<div class="loading-info {error ? 'error' : ''}">
|
|
17
|
+
{#if error}
|
|
18
|
+
<WarningTriangleOutlineIcon />
|
|
19
|
+
<Text fontSize="20px" fontWeight="600" label="Oops! That was unexpected." />
|
|
20
|
+
{:else}
|
|
21
|
+
<Loader size={spinnerSize} />
|
|
22
|
+
{/if}
|
|
23
|
+
<Text {raw} label={message} />
|
|
24
|
+
{#if error}
|
|
25
|
+
<a href="https://forum.finsweet.com/c/finsweet-components" target="_blank" class="support">
|
|
26
|
+
<Text fontWeight="600" label="Click here to open Issue" />
|
|
27
|
+
</a>
|
|
28
|
+
{/if}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
{/if}
|
|
32
|
+
|
|
33
|
+
<style>
|
|
34
|
+
.loading-screen {
|
|
35
|
+
top: 0;
|
|
36
|
+
bottom: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
z-index: 99999999;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
height: 100%;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.loading-info.error :global(svg) {
|
|
47
|
+
width: 40px;
|
|
48
|
+
height: 40px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.loading-info {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
gap: 10px;
|
|
57
|
+
color: var(--actionSecondaryText);
|
|
58
|
+
text-align: center;
|
|
59
|
+
font-family: Inter;
|
|
60
|
+
font-size: 11.5px;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
line-height: 16px;
|
|
64
|
+
letter-spacing: -0.115px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
a {
|
|
68
|
+
color: var(--actionSecondaryText);
|
|
69
|
+
text-decoration: none;
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const LoadingScreen: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
message?: string;
|
|
16
|
+
position?: "fixed" | "absolute";
|
|
17
|
+
active?: boolean;
|
|
18
|
+
error?: boolean;
|
|
19
|
+
raw?: boolean;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
spinnerSize?: number;
|
|
22
|
+
}, {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
}, {}, {}, string>;
|
|
25
|
+
type LoadingScreen = InstanceType<typeof LoadingScreen>;
|
|
26
|
+
export default LoadingScreen;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
NOTE: There is a custom Modal that uses DIVs only, checkout ./CustomModal.svelte
|
|
3
|
+
This CustomModal was made with the purpose of overcoming the z-index property of dialog element
|
|
4
|
+
It uses the same APIs made available as this
|
|
5
|
+
-->
|
|
6
|
+
<script lang="ts">
|
|
7
|
+
import { onMount } from 'svelte';
|
|
8
|
+
|
|
9
|
+
import { CloseIcon } from '../icons';
|
|
10
|
+
|
|
11
|
+
// Example Use: https://svelte.dev/examples/modal
|
|
12
|
+
export let showModal: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* If true, the header bar will not be shown.
|
|
15
|
+
*/
|
|
16
|
+
export let showHeader: boolean = true;
|
|
17
|
+
export let padding: string = 'var(--padding-regular)';
|
|
18
|
+
let dialog: HTMLDialogElement;
|
|
19
|
+
let button: HTMLButtonElement;
|
|
20
|
+
|
|
21
|
+
onMount(() => {
|
|
22
|
+
button.focus();
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
$: {
|
|
26
|
+
if (dialog) {
|
|
27
|
+
if (showModal) {
|
|
28
|
+
dialog.showModal();
|
|
29
|
+
} else {
|
|
30
|
+
dialog.close();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Handles the keydown event on the dialog element.
|
|
37
|
+
* @param event
|
|
38
|
+
*/
|
|
39
|
+
const handleKeyDown = (e: KeyboardEvent) => {
|
|
40
|
+
if (e.key === 'Escape') dialog.close();
|
|
41
|
+
};
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<dialog
|
|
45
|
+
bind:this={dialog}
|
|
46
|
+
on:close={() => {
|
|
47
|
+
showModal = false;
|
|
48
|
+
}}
|
|
49
|
+
on:click|self={() => dialog.close()}
|
|
50
|
+
on:keydown|self={handleKeyDown}
|
|
51
|
+
>
|
|
52
|
+
<div
|
|
53
|
+
on:click|stopPropagation
|
|
54
|
+
on:keydown|stopPropagation
|
|
55
|
+
tabindex="0"
|
|
56
|
+
role="button"
|
|
57
|
+
style="padding:{padding};"
|
|
58
|
+
>
|
|
59
|
+
<div class="header-bar" style="display: {showHeader ? 'flex' : 'none'}">
|
|
60
|
+
<slot class="flex-grow" name="header" />
|
|
61
|
+
<button on:click={() => dialog.close()} bind:this={button}><CloseIcon /></button>
|
|
62
|
+
</div>
|
|
63
|
+
<slot />
|
|
64
|
+
</div>
|
|
65
|
+
</dialog>
|
|
66
|
+
|
|
67
|
+
<style>
|
|
68
|
+
dialog {
|
|
69
|
+
max-width: 42em;
|
|
70
|
+
border-radius: var(--border-radius);
|
|
71
|
+
border: none;
|
|
72
|
+
padding: 0;
|
|
73
|
+
background: var(--background1);
|
|
74
|
+
color: var(--text1);
|
|
75
|
+
}
|
|
76
|
+
dialog::backdrop {
|
|
77
|
+
z-index: 9999990;
|
|
78
|
+
background: rgba(0, 0, 0, 0.4);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
dialog[open] {
|
|
82
|
+
animation: zoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
83
|
+
}
|
|
84
|
+
@keyframes zoom {
|
|
85
|
+
from {
|
|
86
|
+
transform: scale(0.95);
|
|
87
|
+
}
|
|
88
|
+
to {
|
|
89
|
+
transform: scale(1);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
dialog[open]::backdrop {
|
|
93
|
+
animation: fade 0.2s ease-out;
|
|
94
|
+
}
|
|
95
|
+
@keyframes fade {
|
|
96
|
+
from {
|
|
97
|
+
opacity: 0;
|
|
98
|
+
}
|
|
99
|
+
to {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
button {
|
|
104
|
+
border: none;
|
|
105
|
+
cursor: default;
|
|
106
|
+
user-select: none;
|
|
107
|
+
width: 24px;
|
|
108
|
+
padding: 0px 4px;
|
|
109
|
+
font-family: inherit;
|
|
110
|
+
font-size: inherit;
|
|
111
|
+
position: relative;
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
height: 24px;
|
|
116
|
+
border-radius: 4px;
|
|
117
|
+
color: rgb(171, 171, 171);
|
|
118
|
+
background: transparent;
|
|
119
|
+
box-sizing: border-box;
|
|
120
|
+
box-shadow: none;
|
|
121
|
+
align-self: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
button:hover {
|
|
125
|
+
color: var(--text1);
|
|
126
|
+
background: var(--hoverColor);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.header-bar {
|
|
130
|
+
display: flex;
|
|
131
|
+
align-items: center;
|
|
132
|
+
justify-content: space-between;
|
|
133
|
+
padding-bottom: var(--padding-small);
|
|
134
|
+
border-bottom: 1px solid var(--border1);
|
|
135
|
+
gap: 4px;
|
|
136
|
+
width: 100%;
|
|
137
|
+
margin-bottom: var(--padding-regular);
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
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 Modal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
20
|
+
showModal: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If true, the header bar will not be shown.
|
|
23
|
+
*/ showHeader?: boolean;
|
|
24
|
+
padding?: string;
|
|
25
|
+
}, {
|
|
26
|
+
header: {
|
|
27
|
+
class: string;
|
|
28
|
+
};
|
|
29
|
+
default: {};
|
|
30
|
+
}>, {
|
|
31
|
+
click: MouseEvent;
|
|
32
|
+
keydown: KeyboardEvent;
|
|
33
|
+
} & {
|
|
34
|
+
[evt: string]: CustomEvent<any>;
|
|
35
|
+
}, {
|
|
36
|
+
header: {
|
|
37
|
+
class: string;
|
|
38
|
+
};
|
|
39
|
+
default: {};
|
|
40
|
+
}, {}, string>;
|
|
41
|
+
type Modal = InstanceType<typeof Modal>;
|
|
42
|
+
export default Modal;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { type Component } from 'svelte';
|
|
3
|
+
|
|
4
|
+
import { routerStore } from '../../stores';
|
|
5
|
+
|
|
6
|
+
interface NavLink {
|
|
7
|
+
title: string;
|
|
8
|
+
link: string;
|
|
9
|
+
key: string;
|
|
10
|
+
icon: Component;
|
|
11
|
+
alignRight?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
showTitle?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export let items: NavLink[] = [];
|
|
17
|
+
|
|
18
|
+
let leftMenus: NavLink[] = [];
|
|
19
|
+
let rightMenus: NavLink[] = [];
|
|
20
|
+
|
|
21
|
+
$: {
|
|
22
|
+
leftMenus = items.filter((item) => !item.alignRight);
|
|
23
|
+
rightMenus = items.filter((item) => item.alignRight);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the current path matches the link.
|
|
28
|
+
*/
|
|
29
|
+
const isPathMatching = (curr: string): boolean => {
|
|
30
|
+
const current = $routerStore?.url?.pathname;
|
|
31
|
+
const link = new URL(curr, $routerStore?.url?.origin).pathname;
|
|
32
|
+
|
|
33
|
+
return current === link;
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<nav class="navbar">
|
|
38
|
+
{#each [leftMenus, rightMenus] as menus, index (index)}
|
|
39
|
+
<div class={index === 0 ? 'left' : 'right'} role="tablist">
|
|
40
|
+
{#each menus as item, index (index)}
|
|
41
|
+
{@const matches = isPathMatching(item?.link)}
|
|
42
|
+
<a
|
|
43
|
+
role="tab"
|
|
44
|
+
href={item.link}
|
|
45
|
+
title={item.title}
|
|
46
|
+
class:active={matches}
|
|
47
|
+
class:disabled={item.disabled}
|
|
48
|
+
on:click={() => {
|
|
49
|
+
routerStore.update((state) => {
|
|
50
|
+
return {
|
|
51
|
+
...state,
|
|
52
|
+
url: new URL(item.link, state?.url?.origin)
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}}
|
|
56
|
+
aria-label="Opens {item.title} tab."
|
|
57
|
+
>
|
|
58
|
+
<svelte:component this={item.icon} />
|
|
59
|
+
{#if item.showTitle}
|
|
60
|
+
<span>{item.title}</span>
|
|
61
|
+
{/if}
|
|
62
|
+
</a>
|
|
63
|
+
{/each}
|
|
64
|
+
</div>
|
|
65
|
+
{/each}
|
|
66
|
+
</nav>
|
|
67
|
+
|
|
68
|
+
<style>
|
|
69
|
+
.navbar {
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
align-self: stretch;
|
|
74
|
+
background: var(--background1, #1e1e1e);
|
|
75
|
+
padding: 0px var(--spacing-8, 8px);
|
|
76
|
+
border-bottom: 1px solid var(--border1, rgba(255, 255, 255, 0.13));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.navbar .left {
|
|
80
|
+
display: flex;
|
|
81
|
+
width: max-content;
|
|
82
|
+
align-items: flex-start;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.left,
|
|
86
|
+
.right {
|
|
87
|
+
gap: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.navbar a {
|
|
91
|
+
display: flex;
|
|
92
|
+
padding: var(--spacing-12, 12px) 4px;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: var(--space-space-1, 4px);
|
|
96
|
+
color: var(--text1, #f5f5f5);
|
|
97
|
+
text-decoration: none;
|
|
98
|
+
text-align: center;
|
|
99
|
+
font-family: Inter;
|
|
100
|
+
font-size: 11.5px;
|
|
101
|
+
font-style: normal;
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
line-height: 16px;
|
|
104
|
+
letter-spacing: -0.115px;
|
|
105
|
+
margin-bottom: -1px;
|
|
106
|
+
border-bottom: 1px solid var(--background5); /* prevents annoying layout shift on hover*/
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.navbar .right {
|
|
110
|
+
display: flex;
|
|
111
|
+
width: max-content;
|
|
112
|
+
align-items: flex-end;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.navbar a.active {
|
|
116
|
+
border-bottom: 1px solid var(--text1, #f5f5f5);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.navbar a.disabled {
|
|
120
|
+
opacity: 0.75;
|
|
121
|
+
cursor: not-allowed;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.navbar a :global(svg) {
|
|
125
|
+
width: 16px;
|
|
126
|
+
height: 16px;
|
|
127
|
+
}
|
|
128
|
+
.navbar a:hover:not(.active) {
|
|
129
|
+
/* background-color: var(--hoverColor); */
|
|
130
|
+
border-bottom: 1px solid var(--text1, #f5f5f5);
|
|
131
|
+
}
|
|
132
|
+
</style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Component } from '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;
|
|
12
|
+
};
|
|
13
|
+
z_$$bindings?: Bindings;
|
|
14
|
+
}
|
|
15
|
+
declare const Navbar: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
items?: {
|
|
17
|
+
title: string;
|
|
18
|
+
link: string;
|
|
19
|
+
key: string;
|
|
20
|
+
icon: Component;
|
|
21
|
+
alignRight?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
showTitle?: boolean;
|
|
24
|
+
}[];
|
|
25
|
+
}, {
|
|
26
|
+
[evt: string]: CustomEvent<any>;
|
|
27
|
+
}, {}, {}, string>;
|
|
28
|
+
type Navbar = InstanceType<typeof Navbar>;
|
|
29
|
+
export default Navbar;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import PinIcon from '../icons/PinIcon.svelte';
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<div class="no-settings-wrap">
|
|
6
|
+
<h2 class="heading">Script settings</h2>
|
|
7
|
+
<div class="no-settings-card">
|
|
8
|
+
<PinIcon />
|
|
9
|
+
<p>No script settings needed</p>
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<style>
|
|
14
|
+
.heading {
|
|
15
|
+
margin-bottom: var(--padding-regular);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.no-settings-wrap {
|
|
19
|
+
padding: var(--padding-regular);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.no-settings-card {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
background: var(--background2);
|
|
28
|
+
border-radius: var(--border-radius);
|
|
29
|
+
padding: var(--padding-large);
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -0,0 +1,18 @@
|
|
|
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: {
|
|
6
|
+
$$events?: Events;
|
|
7
|
+
$$slots?: Slots;
|
|
8
|
+
}): Exports & {
|
|
9
|
+
$set?: any;
|
|
10
|
+
$on?: any;
|
|
11
|
+
};
|
|
12
|
+
z_$$bindings?: Bindings;
|
|
13
|
+
}
|
|
14
|
+
declare const NoSettingsNeeded: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type NoSettingsNeeded = InstanceType<typeof NoSettingsNeeded>;
|
|
18
|
+
export default NoSettingsNeeded;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Component } from 'svelte';
|
|
3
|
+
|
|
4
|
+
import { TimesIcon, WarningCircleOutlineIcon } from '../icons';
|
|
5
|
+
import { Text } from '.';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The class name to apply to the notification.
|
|
9
|
+
*/
|
|
10
|
+
export let className = '';
|
|
11
|
+
/**
|
|
12
|
+
* The message to display.
|
|
13
|
+
*/
|
|
14
|
+
export let message = '';
|
|
15
|
+
/**
|
|
16
|
+
* The link to navigate to.
|
|
17
|
+
*/
|
|
18
|
+
export let link = '';
|
|
19
|
+
/**
|
|
20
|
+
* The title of the notification.
|
|
21
|
+
*/
|
|
22
|
+
export let title = '';
|
|
23
|
+
/**
|
|
24
|
+
* Title font weight
|
|
25
|
+
*/
|
|
26
|
+
export let titleFontWeight = 600;
|
|
27
|
+
/**
|
|
28
|
+
* The title of the link.
|
|
29
|
+
*/
|
|
30
|
+
export let linkTitle = '';
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show the close icon.
|
|
33
|
+
*/
|
|
34
|
+
export let closeIcon = true;
|
|
35
|
+
/**
|
|
36
|
+
* The icon to display.
|
|
37
|
+
*/
|
|
38
|
+
export let defaultIcon: Component = WarningCircleOutlineIcon;
|
|
39
|
+
/**
|
|
40
|
+
* The icon to display for the link.
|
|
41
|
+
*/
|
|
42
|
+
export let linkIcon: Component | null = null;
|
|
43
|
+
/**
|
|
44
|
+
* The type of notification. Defaults to 'warning'.
|
|
45
|
+
* You can pass a color string to use a custom color.
|
|
46
|
+
*/
|
|
47
|
+
export let type: 'warning' | 'error' | string = 'warning';
|
|
48
|
+
/**
|
|
49
|
+
* Whether to show the richtext message
|
|
50
|
+
*/
|
|
51
|
+
export let richtextMessage = false;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to show the richtext title
|
|
54
|
+
*/
|
|
55
|
+
export let richTextTitle = false;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to show the border left
|
|
58
|
+
*/
|
|
59
|
+
export let borderLeft = true;
|
|
60
|
+
|
|
61
|
+
let colors: {
|
|
62
|
+
icon: string;
|
|
63
|
+
border: string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
$: {
|
|
67
|
+
if (type === 'warning') {
|
|
68
|
+
colors = {
|
|
69
|
+
icon: '#FFD301',
|
|
70
|
+
border: 'var(--yellowBorder)'
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (type === 'error') {
|
|
75
|
+
colors = {
|
|
76
|
+
icon: '#FF8A8A',
|
|
77
|
+
border: 'var(--redBorder)'
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (type === 'success') {
|
|
82
|
+
colors = {
|
|
83
|
+
icon: '#63D489',
|
|
84
|
+
border: 'var(--greenIcon)'
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (type !== 'warning' && type !== 'error' && type !== 'success') {
|
|
89
|
+
// accept string as color code
|
|
90
|
+
colors = {
|
|
91
|
+
icon: type,
|
|
92
|
+
border: type
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<div
|
|
99
|
+
class="wrapper {className}"
|
|
100
|
+
style={!borderLeft ? '' : `border-left: 2px solid ${colors.border};`}
|
|
101
|
+
>
|
|
102
|
+
<span style="color:{colors.icon};">
|
|
103
|
+
<svelte:component this={defaultIcon} />
|
|
104
|
+
</span>
|
|
105
|
+
<div class="content">
|
|
106
|
+
{#if title}
|
|
107
|
+
<Text
|
|
108
|
+
label={title}
|
|
109
|
+
fontSize="normal"
|
|
110
|
+
fontWeight={titleFontWeight.toString()}
|
|
111
|
+
raw={richTextTitle}
|
|
112
|
+
/>
|
|
113
|
+
{/if}
|
|
114
|
+
<div class="message">
|
|
115
|
+
{#if message}
|
|
116
|
+
<Text label={message} fontColor="var(--text2)" raw={richtextMessage} />
|
|
117
|
+
{/if}
|
|
118
|
+
|
|
119
|
+
{#if link && linkTitle}
|
|
120
|
+
<a href={link} class="link" target="_blank"
|
|
121
|
+
><span>{linkTitle}</span>
|
|
122
|
+
<svelte:component this={linkIcon} />
|
|
123
|
+
</a>
|
|
124
|
+
{/if}
|
|
125
|
+
</div>
|
|
126
|
+
<slot name="actions" />
|
|
127
|
+
</div>
|
|
128
|
+
<div
|
|
129
|
+
style={!closeIcon ? 'display:none;' : ''}
|
|
130
|
+
on:click
|
|
131
|
+
on:keydown={() => {}}
|
|
132
|
+
tabindex="0"
|
|
133
|
+
role="button"
|
|
134
|
+
aria-label="Close"
|
|
135
|
+
class="close-icon"
|
|
136
|
+
>
|
|
137
|
+
<TimesIcon />
|
|
138
|
+
</div>
|
|
139
|
+
</div>
|
|
140
|
+
|
|
141
|
+
<style>
|
|
142
|
+
.content {
|
|
143
|
+
display: flex;
|
|
144
|
+
padding-right: var(--spacing-24, 24px);
|
|
145
|
+
flex-direction: column;
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
gap: 4px;
|
|
148
|
+
flex: 1 0 0;
|
|
149
|
+
}
|
|
150
|
+
.close-icon {
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
}
|
|
153
|
+
.link :global(svg) {
|
|
154
|
+
color: var(--blue-blue-text, #8ac2ff);
|
|
155
|
+
}
|
|
156
|
+
.link {
|
|
157
|
+
color: var(--blue-blue-text, #8ac2ff);
|
|
158
|
+
font-family: Inter;
|
|
159
|
+
font-size: 11px;
|
|
160
|
+
font-style: normal;
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
line-height: 16px;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
display: flex;
|
|
166
|
+
justify-content: center;
|
|
167
|
+
align-items: center;
|
|
168
|
+
width: max-content;
|
|
169
|
+
}
|
|
170
|
+
.wrapper {
|
|
171
|
+
display: flex;
|
|
172
|
+
padding: 8px;
|
|
173
|
+
align-items: flex-start;
|
|
174
|
+
gap: 8px;
|
|
175
|
+
align-self: stretch;
|
|
176
|
+
border-radius: 4px;
|
|
177
|
+
background: var(--background-background-3, #363636);
|
|
178
|
+
}
|
|
179
|
+
.message {
|
|
180
|
+
color: var(--text-text-2, #bdbdbd);
|
|
181
|
+
font-family: Inter;
|
|
182
|
+
font-size: 11px;
|
|
183
|
+
font-style: normal;
|
|
184
|
+
font-weight: 400;
|
|
185
|
+
line-height: 16px;
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
align-items: flex-start;
|
|
190
|
+
gap: 4px;
|
|
191
|
+
align-self: stretch;
|
|
192
|
+
}
|
|
193
|
+
</style>
|