@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,194 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { parseNumericAttribute } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export let value: number = 0;
|
|
5
|
+
export let displayedValue = ''; // Will hold the display value as a string
|
|
6
|
+
export let min = 0;
|
|
7
|
+
export let max = 9999;
|
|
8
|
+
export let step = 1;
|
|
9
|
+
export let id = '';
|
|
10
|
+
export let placeholder = '0';
|
|
11
|
+
export let width = '100%';
|
|
12
|
+
export let disabled = false;
|
|
13
|
+
|
|
14
|
+
import { createEventDispatcher } from 'svelte';
|
|
15
|
+
const dispatch = createEventDispatcher<{
|
|
16
|
+
spinnerChange: number;
|
|
17
|
+
blur: number;
|
|
18
|
+
}>();
|
|
19
|
+
|
|
20
|
+
// This will update the displayedValue when 'value' is externally modified
|
|
21
|
+
$: displayedValue = value !== undefined ? value.toString() : '';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Increment the value by the step amount
|
|
25
|
+
*/
|
|
26
|
+
const increment = () => {
|
|
27
|
+
if (value < max) {
|
|
28
|
+
value = Math.min(max, value + step);
|
|
29
|
+
|
|
30
|
+
dispatch('spinnerChange', value);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Decrement the value by the step amount
|
|
35
|
+
*/
|
|
36
|
+
const decrement = () => {
|
|
37
|
+
if (value > min) {
|
|
38
|
+
value = Math.max(min, value - step);
|
|
39
|
+
dispatch('spinnerChange', value);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Manually update the value when the input is changed
|
|
45
|
+
* @param event
|
|
46
|
+
*/
|
|
47
|
+
const manualUpdate = (event: Event) => {
|
|
48
|
+
const inputElem = event.target as HTMLInputElement;
|
|
49
|
+
let newValue = inputElem.value;
|
|
50
|
+
|
|
51
|
+
if (newValue !== '0') {
|
|
52
|
+
newValue = newValue.replace(/^0+/, ''); // Remove leading zeros
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// If newValue is empty, don't update the value
|
|
56
|
+
if (newValue === '') {
|
|
57
|
+
displayedValue = '';
|
|
58
|
+
inputElem.value = '';
|
|
59
|
+
|
|
60
|
+
dispatch('spinnerChange', value);
|
|
61
|
+
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const numValue = parseNumericAttribute(newValue, 0);
|
|
66
|
+
// Check for NaN and ensure the value is within the min and max bounds
|
|
67
|
+
if (!isNaN(numValue)) {
|
|
68
|
+
value = Math.max(min, Math.min(max, numValue));
|
|
69
|
+
// If value exceeds max, update the displayed value to match max
|
|
70
|
+
if (numValue > max) {
|
|
71
|
+
displayedValue = max.toString();
|
|
72
|
+
inputElem.value = max.toString();
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
// If parsed value is NaN, reset to min
|
|
76
|
+
value = min;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
dispatch('spinnerChange', value);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const blurEvent = (e: Event) => {
|
|
83
|
+
dispatch('blur', value);
|
|
84
|
+
};
|
|
85
|
+
</script>
|
|
86
|
+
|
|
87
|
+
<div class="spinner-container" class:disabled style="width: {width};">
|
|
88
|
+
<input
|
|
89
|
+
{disabled}
|
|
90
|
+
{id}
|
|
91
|
+
type="number"
|
|
92
|
+
{min}
|
|
93
|
+
{max}
|
|
94
|
+
{step}
|
|
95
|
+
bind:value={displayedValue}
|
|
96
|
+
on:input={manualUpdate}
|
|
97
|
+
on:blur={blurEvent}
|
|
98
|
+
{placeholder}
|
|
99
|
+
/>
|
|
100
|
+
<div class="buttons-container">
|
|
101
|
+
<button on:blur={blurEvent} {disabled} class:disabled on:click={increment} class="increment-btn"
|
|
102
|
+
>⌃</button
|
|
103
|
+
>
|
|
104
|
+
<button on:blur={blurEvent} {disabled} class:disabled on:click={decrement} class="decrement-btn"
|
|
105
|
+
>⌃</button
|
|
106
|
+
>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<style>
|
|
111
|
+
input::placeholder {
|
|
112
|
+
color: var(--text2) !important;
|
|
113
|
+
opacity: 1; /* Firefox */
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
input::-ms-input-placeholder {
|
|
117
|
+
/* Edge 12 -18 */
|
|
118
|
+
color: var(--text2) !important;
|
|
119
|
+
}
|
|
120
|
+
.spinner-container {
|
|
121
|
+
display: flex;
|
|
122
|
+
height: 1.5rem;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
border-radius: var(--border-radius);
|
|
125
|
+
border: 1px solid var(--border1, #212121);
|
|
126
|
+
background: var(--background1, #2b2b2b);
|
|
127
|
+
/* input-inner-shadow */
|
|
128
|
+
box-shadow:
|
|
129
|
+
0px 1px 1px -1px rgba(0, 0, 0, 0.13) inset,
|
|
130
|
+
0px 3px 3px -3px rgba(0, 0, 0, 0.17) inset,
|
|
131
|
+
0px 4px 4px -4px rgba(0, 0, 0, 0.17) inset,
|
|
132
|
+
0px 8px 8px -8px rgba(0, 0, 0, 0.17) inset,
|
|
133
|
+
0px 12px 12px -12px rgba(0, 0, 0, 0.13) inset,
|
|
134
|
+
0px 16px 16px -16px rgba(0, 0, 0, 0.13) inset;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.spinner-container:focus-within {
|
|
138
|
+
/* Styles for the buttons container when input is focused */
|
|
139
|
+
border: 1px solid var(--blueBorder);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.disabled {
|
|
143
|
+
opacity: 0.75;
|
|
144
|
+
pointer-events: none;
|
|
145
|
+
cursor: not-allowed;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.buttons-container {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
gap: 1px;
|
|
153
|
+
background-color: var(--border1);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.increment-btn {
|
|
157
|
+
border-radius: 0 1px 0 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.decrement-btn {
|
|
161
|
+
transform: rotate(180deg);
|
|
162
|
+
border-radius: 1px 0 0 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
input[type='number'] {
|
|
166
|
+
width: 100%;
|
|
167
|
+
height: 100%;
|
|
168
|
+
color: var(--actionPrimaryText);
|
|
169
|
+
text-align: left;
|
|
170
|
+
border: 0;
|
|
171
|
+
padding-left: var(--padding-small);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
input[type='number']:focus {
|
|
175
|
+
outline: none;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
button {
|
|
179
|
+
border: none;
|
|
180
|
+
width: 1rem;
|
|
181
|
+
background-color: var(--actionSecondaryBackground);
|
|
182
|
+
color: var(--text2);
|
|
183
|
+
font-size: 0.8em;
|
|
184
|
+
line-height: 1;
|
|
185
|
+
height: 48%;
|
|
186
|
+
display: grid;
|
|
187
|
+
place-items: center;
|
|
188
|
+
padding: 2px 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
button:hover {
|
|
192
|
+
background-color: var(--hoverColor);
|
|
193
|
+
}
|
|
194
|
+
</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
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 SpinnerUpDown: $$__sveltets_2_IsomorphicComponent<{
|
|
15
|
+
value?: number;
|
|
16
|
+
displayedValue?: string;
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
step?: number;
|
|
20
|
+
id?: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
width?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}, {
|
|
25
|
+
spinnerChange: CustomEvent<number>;
|
|
26
|
+
blur: CustomEvent<number>;
|
|
27
|
+
} & {
|
|
28
|
+
[evt: string]: CustomEvent<any>;
|
|
29
|
+
}, {}, {}, string>;
|
|
30
|
+
type SpinnerUpDown = InstanceType<typeof SpinnerUpDown>;
|
|
31
|
+
export default SpinnerUpDown;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Component } from 'svelte';
|
|
3
|
+
|
|
4
|
+
export let items: {
|
|
5
|
+
value: number;
|
|
6
|
+
label: string;
|
|
7
|
+
component: Component;
|
|
8
|
+
}[] = [];
|
|
9
|
+
export let activeTabValue = 1;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Handles the click event for the tab.
|
|
13
|
+
* @param tabValue
|
|
14
|
+
*/
|
|
15
|
+
const handleClick = (tabValue: number) => () => {
|
|
16
|
+
activeTabValue = tabValue;
|
|
17
|
+
};
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<ul>
|
|
21
|
+
{#each items as item (item.value)}
|
|
22
|
+
<li class={activeTabValue === item.value ? 'active' : ''}>
|
|
23
|
+
<button on:click={handleClick(item.value)}>{item.label}</button>
|
|
24
|
+
</li>
|
|
25
|
+
{/each}
|
|
26
|
+
</ul>
|
|
27
|
+
{#each items as item (item.value)}
|
|
28
|
+
{#if activeTabValue === item.value}
|
|
29
|
+
<div class="box">
|
|
30
|
+
<svelte:component this={item.component} />
|
|
31
|
+
</div>
|
|
32
|
+
{/if}
|
|
33
|
+
{/each}
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
.box {
|
|
37
|
+
padding-top: 12px;
|
|
38
|
+
border-radius: 0 0 0.5rem 0.5rem;
|
|
39
|
+
border-top: 0;
|
|
40
|
+
}
|
|
41
|
+
ul {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-wrap: wrap;
|
|
44
|
+
padding-left: 0;
|
|
45
|
+
margin-bottom: 0;
|
|
46
|
+
list-style: none;
|
|
47
|
+
border-bottom: 1px solid #dee2e6;
|
|
48
|
+
}
|
|
49
|
+
li {
|
|
50
|
+
margin-bottom: -1px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
button {
|
|
54
|
+
border: 1px solid transparent;
|
|
55
|
+
border-top-left-radius: 0.25rem;
|
|
56
|
+
border-top-right-radius: 0.25rem;
|
|
57
|
+
display: block;
|
|
58
|
+
padding: 0.5rem 1rem;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
button:hover {
|
|
63
|
+
border-color: #e9ecef #e9ecef #dee2e6;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
li.active > button {
|
|
67
|
+
color: #495057;
|
|
68
|
+
background-color: #fff;
|
|
69
|
+
border-color: #dee2e6 #dee2e6 #fff;
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -0,0 +1,26 @@
|
|
|
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 Tabs: $$__sveltets_2_IsomorphicComponent<{
|
|
16
|
+
items?: {
|
|
17
|
+
value: number;
|
|
18
|
+
label: string;
|
|
19
|
+
component: Component;
|
|
20
|
+
}[];
|
|
21
|
+
activeTabValue?: number;
|
|
22
|
+
}, {
|
|
23
|
+
[evt: string]: CustomEvent<any>;
|
|
24
|
+
}, {}, {}, string>;
|
|
25
|
+
type Tabs = InstanceType<typeof Tabs>;
|
|
26
|
+
export default Tabs;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { BoxAddIcon, CheckCircleIcon } from '../icons';
|
|
3
|
+
export let title = 'Toggle Item Title';
|
|
4
|
+
export let isActive = false;
|
|
5
|
+
</script>
|
|
6
|
+
|
|
7
|
+
<div class="toggle-item_title-row">
|
|
8
|
+
<BoxAddIcon />
|
|
9
|
+
{title}
|
|
10
|
+
{#if isActive}
|
|
11
|
+
<CheckCircleIcon />
|
|
12
|
+
{/if}
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<style>
|
|
16
|
+
.toggle-item_title-row {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: start;
|
|
21
|
+
background-color: var(--background3);
|
|
22
|
+
border-bottom: 1px solid var(--background5);
|
|
23
|
+
color: var(--text1);
|
|
24
|
+
padding: 6px 10px;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
font-size: var(--font-size-small);
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default ToggleItem;
|
|
2
|
+
type ToggleItem = SvelteComponent<{
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
isActive?: boolean | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
[evt: string]: CustomEvent<any>;
|
|
7
|
+
}, {}> & {
|
|
8
|
+
$$bindings?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
declare const ToggleItem: $$__sveltets_2_IsomorphicComponent<{
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
isActive?: boolean | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
[evt: string]: CustomEvent<any>;
|
|
15
|
+
}, {}, {}, string>;
|
|
16
|
+
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> {
|
|
17
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
18
|
+
$$bindings?: Bindings;
|
|
19
|
+
} & Exports;
|
|
20
|
+
(internal: unknown, props: Props & {
|
|
21
|
+
$$events?: Events;
|
|
22
|
+
$$slots?: Slots;
|
|
23
|
+
}): Exports & {
|
|
24
|
+
$set?: any;
|
|
25
|
+
$on?: any;
|
|
26
|
+
};
|
|
27
|
+
z_$$bindings?: Bindings;
|
|
28
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { TriangleDownIconToggle } from '../icons';
|
|
3
|
+
|
|
4
|
+
let display = true;
|
|
5
|
+
/**
|
|
6
|
+
* Toggles the display of the list.
|
|
7
|
+
*/
|
|
8
|
+
const handleClick = () => {
|
|
9
|
+
display = !display;
|
|
10
|
+
};
|
|
11
|
+
export let title = 'Toggle List Title';
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<div class="toggle-list_wrapper">
|
|
15
|
+
<button class="toggle-list_title-row" on:click={handleClick}>
|
|
16
|
+
<TriangleDownIconToggle rotate={!display} />
|
|
17
|
+
{title}
|
|
18
|
+
</button>
|
|
19
|
+
|
|
20
|
+
{#if display}
|
|
21
|
+
<slot />
|
|
22
|
+
{/if}
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
<style>
|
|
26
|
+
button {
|
|
27
|
+
appearance: none;
|
|
28
|
+
background: none;
|
|
29
|
+
border: none;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0;
|
|
32
|
+
font: inherit;
|
|
33
|
+
color: inherit;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
outline: none;
|
|
36
|
+
text-align: inherit;
|
|
37
|
+
/* other styles as needed */
|
|
38
|
+
}
|
|
39
|
+
.toggle-list_wrapper {
|
|
40
|
+
border-top: 1px solid var(--background5);
|
|
41
|
+
border-right: 1px solid var(--background5);
|
|
42
|
+
border-left: 1px solid var(--background5);
|
|
43
|
+
}
|
|
44
|
+
.toggle-list_title-row {
|
|
45
|
+
width: 100%;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: start;
|
|
50
|
+
background-color: var(--background4);
|
|
51
|
+
border-bottom: 1px solid var(--background5);
|
|
52
|
+
color: var(--text1);
|
|
53
|
+
padding: 6px 10px;
|
|
54
|
+
gap: 8px;
|
|
55
|
+
font-size: var(--font-size-large);
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export default ToggleList;
|
|
2
|
+
type ToggleList = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
title?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
default: {};
|
|
6
|
+
}>, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {
|
|
9
|
+
default: {};
|
|
10
|
+
}> & {
|
|
11
|
+
$$bindings?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
declare const ToggleList: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
14
|
+
title?: string | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
default: {};
|
|
17
|
+
}>, {
|
|
18
|
+
[evt: string]: CustomEvent<any>;
|
|
19
|
+
}, {
|
|
20
|
+
default: {};
|
|
21
|
+
}, {}, string>;
|
|
22
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
23
|
+
default: any;
|
|
24
|
+
} ? Props extends Record<string, never> ? any : {
|
|
25
|
+
children?: any;
|
|
26
|
+
} : {});
|
|
27
|
+
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> {
|
|
28
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
29
|
+
$$bindings?: Bindings;
|
|
30
|
+
} & Exports;
|
|
31
|
+
(internal: unknown, props: Props & {
|
|
32
|
+
$$events?: Events;
|
|
33
|
+
$$slots?: Slots;
|
|
34
|
+
}): Exports & {
|
|
35
|
+
$set?: any;
|
|
36
|
+
$on?: any;
|
|
37
|
+
};
|
|
38
|
+
z_$$bindings?: Bindings;
|
|
39
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { createEventDispatcher } from 'svelte';
|
|
3
|
+
|
|
4
|
+
import { Text } from '..';
|
|
5
|
+
import Switch from '../switch/Switch.svelte';
|
|
6
|
+
import type { SwitchChangeEvent } from '../switch/types';
|
|
7
|
+
import { breakpointOptions } from './breakpointOptions';
|
|
8
|
+
|
|
9
|
+
export let breakpoint: keyof typeof breakpointOptions;
|
|
10
|
+
export let enabled = false;
|
|
11
|
+
export let disabled = false;
|
|
12
|
+
|
|
13
|
+
const dispatch = createEventDispatcher<{
|
|
14
|
+
change: { breakpoint: keyof typeof breakpointOptions; enabled: boolean };
|
|
15
|
+
}>();
|
|
16
|
+
|
|
17
|
+
const { label, description, icon } = breakpointOptions[breakpoint];
|
|
18
|
+
|
|
19
|
+
const handleSwitchChange = (event: SwitchChangeEvent) => {
|
|
20
|
+
enabled = event.checked;
|
|
21
|
+
dispatch('change', { breakpoint, enabled: event.checked });
|
|
22
|
+
};
|
|
23
|
+
</script>
|
|
24
|
+
|
|
25
|
+
<div class="breakpoint-item">
|
|
26
|
+
<div class="breakpoint-row">
|
|
27
|
+
<div class="device-info">
|
|
28
|
+
<Text {label} tooltip={{ message: description }} {icon} class="bp-icon-wrapper" />
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<Switch {disabled} bind:checked={enabled} onchange={handleSwitchChange} />
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="content" style="display: {enabled ? 'flex' : 'none'}">
|
|
35
|
+
<slot />
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<style>
|
|
40
|
+
.breakpoint-item {
|
|
41
|
+
position: relative;
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
gap: var(--Spacing-8, 8px);
|
|
47
|
+
align-self: stretch;
|
|
48
|
+
}
|
|
49
|
+
.content {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
align-items: flex-start;
|
|
53
|
+
gap: var(--Spacing-12, 12px);
|
|
54
|
+
align-self: stretch;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
border: 1px solid var(--border1);
|
|
57
|
+
padding: var(--Spacing-12, 12px);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.breakpoint-row {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: row;
|
|
63
|
+
align-items: flex-start;
|
|
64
|
+
gap: var(--Spacing-8, 8px);
|
|
65
|
+
align-self: stretch;
|
|
66
|
+
width: 100%;
|
|
67
|
+
justify-content: space-between;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.device-info {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 8px;
|
|
74
|
+
color: #fff;
|
|
75
|
+
position: relative;
|
|
76
|
+
}
|
|
77
|
+
.breakpoint-row :global(.device-info > .labels:first-of-type .text) {
|
|
78
|
+
gap: 4px;
|
|
79
|
+
}
|
|
80
|
+
.device-info :global(.bp-icon-wrapper > .text > svg) {
|
|
81
|
+
width: 16px;
|
|
82
|
+
height: 16px;
|
|
83
|
+
}
|
|
84
|
+
</style>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { breakpointOptions } from './breakpointOptions';
|
|
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
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
16
|
+
default: any;
|
|
17
|
+
} ? Props extends Record<string, never> ? any : {
|
|
18
|
+
children?: any;
|
|
19
|
+
} : {});
|
|
20
|
+
declare const BreakpointItem: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
21
|
+
breakpoint: keyof typeof breakpointOptions;
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
}, {
|
|
25
|
+
default: {};
|
|
26
|
+
}>, {
|
|
27
|
+
change: CustomEvent<{
|
|
28
|
+
breakpoint: keyof typeof breakpointOptions;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
} & {
|
|
32
|
+
[evt: string]: CustomEvent<any>;
|
|
33
|
+
}, {
|
|
34
|
+
default: {};
|
|
35
|
+
}, {}, string>;
|
|
36
|
+
type BreakpointItem = InstanceType<typeof BreakpointItem>;
|
|
37
|
+
export default BreakpointItem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Component } from 'svelte';
|
|
2
|
+
import type { ALLOWED_BREAKPOINTS } from '../../../types';
|
|
3
|
+
type BreakpointOption = {
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
icon: Component;
|
|
7
|
+
};
|
|
8
|
+
export type BreakpointOptions = {
|
|
9
|
+
[K in ALLOWED_BREAKPOINTS]: BreakpointOption;
|
|
10
|
+
};
|
|
11
|
+
export declare const breakpointOptions: BreakpointOptions;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DesktopWithStar, MobileLandscape, MobilePortrait, TabletPreview, XL, XXL, XXXL } from '../../icons';
|
|
2
|
+
export const breakpointOptions = {
|
|
3
|
+
'320': {
|
|
4
|
+
label: 'Mobile Portrait',
|
|
5
|
+
description: 'Settings added here will apply at 320px and down, unless they’re edited at a smaller breakpoint',
|
|
6
|
+
icon: MobilePortrait
|
|
7
|
+
},
|
|
8
|
+
'480': {
|
|
9
|
+
label: 'Mobile Landscape',
|
|
10
|
+
description: 'Settings added here will apply at 480px and down, unless they’re edited at a smaller breakpoint',
|
|
11
|
+
icon: MobileLandscape
|
|
12
|
+
},
|
|
13
|
+
'768': {
|
|
14
|
+
label: 'Tablet',
|
|
15
|
+
description: 'Settings added here will apply at 768px and down, unless they’re edited at a smaller breakpoint',
|
|
16
|
+
icon: TabletPreview
|
|
17
|
+
},
|
|
18
|
+
'991': {
|
|
19
|
+
label: 'Desktop',
|
|
20
|
+
description: 'Desktop settings apply at all breakpoints, unless they’re edited on another breakpoint',
|
|
21
|
+
icon: DesktopWithStar
|
|
22
|
+
},
|
|
23
|
+
'1280': {
|
|
24
|
+
label: 'Desktop Small',
|
|
25
|
+
description: 'Settings added here will apply at 1280px and down, unless they’re edited at a smaller breakpoint',
|
|
26
|
+
icon: XL
|
|
27
|
+
},
|
|
28
|
+
'1440': {
|
|
29
|
+
label: 'Desktop Medium',
|
|
30
|
+
description: 'Settings added here will apply at 1280px and down, unless they’re edited at a smaller breakpoint',
|
|
31
|
+
icon: XXL
|
|
32
|
+
},
|
|
33
|
+
'1920': {
|
|
34
|
+
label: 'Desktop Large',
|
|
35
|
+
description: 'Settings added here will apply at 1280px and down, unless they’re edited at a smaller breakpoint',
|
|
36
|
+
icon: XXXL
|
|
37
|
+
}
|
|
38
|
+
};
|