@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,538 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from 'svelte';
|
|
3
|
+
|
|
4
|
+
import { globalStore } from '../../../stores';
|
|
5
|
+
|
|
6
|
+
import { CheckCircleIcon, CodeIcon, InfoIcon, SettingsIcon } from '../../icons';
|
|
7
|
+
import { Button } from '../button';
|
|
8
|
+
import { Clickable } from '../clickable';
|
|
9
|
+
import { Input } from '../input';
|
|
10
|
+
import { Switch } from '../switch';
|
|
11
|
+
import Text from '../text/Text.svelte';
|
|
12
|
+
import Layout from './Layout.svelte';
|
|
13
|
+
import type { LayoutNotification, LayoutTab } from './types';
|
|
14
|
+
|
|
15
|
+
// Internal state for configuration
|
|
16
|
+
let activeTab = $state('settings');
|
|
17
|
+
let showSidebar = $state(true);
|
|
18
|
+
let showTabs = $state(true);
|
|
19
|
+
let showPreviewBar = $state(true);
|
|
20
|
+
let showFooter = $state(true);
|
|
21
|
+
let editMode = $state(false);
|
|
22
|
+
let sidebarWidth = $state('239px');
|
|
23
|
+
let footerSize = $state<'normal' | 'large'>('normal');
|
|
24
|
+
let showNotifications = $state(false);
|
|
25
|
+
let notificationSuccess = $state(true);
|
|
26
|
+
let inputValue = $state('');
|
|
27
|
+
|
|
28
|
+
// Dummy data for 2 tabs: settings and code
|
|
29
|
+
const dummyTabs: LayoutTab[] = [
|
|
30
|
+
{ path: 'settings', name: 'Settings', icon: SettingsIcon, isActive: false },
|
|
31
|
+
{ path: 'code', name: 'Code', icon: CodeIcon, isActive: false }
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
// Dummy footer buttons
|
|
35
|
+
const dummyFooterButtons = [
|
|
36
|
+
{
|
|
37
|
+
id: 'save' as const,
|
|
38
|
+
text: 'Save Changes',
|
|
39
|
+
variant: 'secondary' as const,
|
|
40
|
+
icon: CheckCircleIcon,
|
|
41
|
+
onClick: () => console.log('Save clicked')
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: 'main' as const,
|
|
45
|
+
text: 'Apply Settings',
|
|
46
|
+
variant: 'primary' as const,
|
|
47
|
+
onClick: () => console.log('Apply clicked')
|
|
48
|
+
}
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
// Create tabs with active state
|
|
52
|
+
let tabs = $derived(
|
|
53
|
+
dummyTabs.map((tab) => ({
|
|
54
|
+
...tab,
|
|
55
|
+
isActive: tab.path === activeTab
|
|
56
|
+
}))
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
// Create notifications
|
|
60
|
+
let notifications = $derived<LayoutNotification[]>(
|
|
61
|
+
showNotifications
|
|
62
|
+
? [
|
|
63
|
+
{
|
|
64
|
+
path: activeTab,
|
|
65
|
+
success: notificationSuccess,
|
|
66
|
+
message: notificationSuccess
|
|
67
|
+
? 'Configuration saved successfully'
|
|
68
|
+
: 'Error in configuration',
|
|
69
|
+
showNotification: true
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
: []
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
// Tab switching function
|
|
76
|
+
function switchTab(tabPath: string) {
|
|
77
|
+
activeTab = tabPath;
|
|
78
|
+
console.log('Switched to tab:', tabPath);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
onMount(() => {
|
|
82
|
+
globalStore.set({
|
|
83
|
+
editMode: true,
|
|
84
|
+
componentKey: 'dummy-layout',
|
|
85
|
+
repairMode: false,
|
|
86
|
+
formKey: 'dummy-layout',
|
|
87
|
+
formUpdateKey: 'dummy-layout-update',
|
|
88
|
+
title: 'Example',
|
|
89
|
+
state: {
|
|
90
|
+
random: Math.random()
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
</script>
|
|
95
|
+
|
|
96
|
+
<div class="example-container">
|
|
97
|
+
<!-- Configuration Panel -->
|
|
98
|
+
<div class="configurator-panel">
|
|
99
|
+
<div class="config-panel">
|
|
100
|
+
<div class="config-header">
|
|
101
|
+
<Text fontSize="xs" fontWeight="bold" fontColor="var(--text1)">Config</Text>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<div class="config-content">
|
|
105
|
+
<!-- Controls Section -->
|
|
106
|
+
<div class="config-section">
|
|
107
|
+
<!-- Active Tab Selector -->
|
|
108
|
+
<div class="control-group">
|
|
109
|
+
<label for="active-tab" class="control-label">Active Tab</label>
|
|
110
|
+
<select id="active-tab" bind:value={activeTab} class="select-input">
|
|
111
|
+
<option value="settings">Settings</option>
|
|
112
|
+
<option value="code">Code</option>
|
|
113
|
+
</select>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<!-- Sidebar Width -->
|
|
117
|
+
<div class="control-group">
|
|
118
|
+
<label for="sidebar-width" class="control-label">Sidebar Width</label>
|
|
119
|
+
<select id="sidebar-width" bind:value={sidebarWidth} class="select-input">
|
|
120
|
+
<option value="239px">239px</option>
|
|
121
|
+
<option value="270px">270px</option>
|
|
122
|
+
</select>
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
<!-- Footer Size -->
|
|
126
|
+
<div class="control-group">
|
|
127
|
+
<label for="footer-size" class="control-label">Footer Size</label>
|
|
128
|
+
<select id="footer-size" bind:value={footerSize} class="select-input">
|
|
129
|
+
<option value="normal">Normal</option>
|
|
130
|
+
<option value="large">Large</option>
|
|
131
|
+
</select>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<!-- Toggle Controls Section -->
|
|
136
|
+
<div class="config-section">
|
|
137
|
+
<div class="toggles-list">
|
|
138
|
+
<div class="toggle-control">
|
|
139
|
+
<input
|
|
140
|
+
type="checkbox"
|
|
141
|
+
bind:checked={showSidebar}
|
|
142
|
+
id="show-sidebar"
|
|
143
|
+
class="checkbox-input"
|
|
144
|
+
/>
|
|
145
|
+
<label for="show-sidebar" class="checkbox-label">Sidebar</label>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div class="toggle-control">
|
|
149
|
+
<input
|
|
150
|
+
type="checkbox"
|
|
151
|
+
bind:checked={showTabs}
|
|
152
|
+
id="show-tabs"
|
|
153
|
+
class="checkbox-input"
|
|
154
|
+
/>
|
|
155
|
+
<label for="show-tabs" class="checkbox-label">Tabs</label>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div class="toggle-control">
|
|
159
|
+
<input
|
|
160
|
+
type="checkbox"
|
|
161
|
+
bind:checked={showPreviewBar}
|
|
162
|
+
id="show-preview"
|
|
163
|
+
class="checkbox-input"
|
|
164
|
+
/>
|
|
165
|
+
<label for="show-preview" class="checkbox-label">Preview</label>
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<div class="toggle-control">
|
|
169
|
+
<input
|
|
170
|
+
type="checkbox"
|
|
171
|
+
bind:checked={showFooter}
|
|
172
|
+
id="show-footer"
|
|
173
|
+
class="checkbox-input"
|
|
174
|
+
/>
|
|
175
|
+
<label for="show-footer" class="checkbox-label">Footer</label>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
<div class="toggle-control">
|
|
179
|
+
<input
|
|
180
|
+
type="checkbox"
|
|
181
|
+
bind:checked={editMode}
|
|
182
|
+
id="edit-mode"
|
|
183
|
+
class="checkbox-input"
|
|
184
|
+
oninput={() => {
|
|
185
|
+
editMode = !editMode;
|
|
186
|
+
globalStore.set({ ...$globalStore, editMode });
|
|
187
|
+
}}
|
|
188
|
+
/>
|
|
189
|
+
<label for="edit-mode" class="checkbox-label">Edit Mode</label>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div class="toggle-control">
|
|
193
|
+
<input
|
|
194
|
+
type="checkbox"
|
|
195
|
+
bind:checked={showNotifications}
|
|
196
|
+
id="show-notifications"
|
|
197
|
+
class="checkbox-input"
|
|
198
|
+
/>
|
|
199
|
+
<label for="show-notifications" class="checkbox-label">Notify</label>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
{#if showNotifications}
|
|
203
|
+
<div class="toggle-control">
|
|
204
|
+
<input
|
|
205
|
+
type="checkbox"
|
|
206
|
+
bind:checked={notificationSuccess}
|
|
207
|
+
id="notification-success"
|
|
208
|
+
class="checkbox-input"
|
|
209
|
+
/>
|
|
210
|
+
<label for="notification-success" class="checkbox-label">Success</label>
|
|
211
|
+
</div>
|
|
212
|
+
{/if}
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
<!-- Layout Preview, 800px x 600px in dimension -->
|
|
220
|
+
<div class="layout-preview">
|
|
221
|
+
<Layout
|
|
222
|
+
{activeTab}
|
|
223
|
+
{tabs}
|
|
224
|
+
{switchTab}
|
|
225
|
+
footer={{ buttons: dummyFooterButtons }}
|
|
226
|
+
formKey="dummy-layout"
|
|
227
|
+
{editMode}
|
|
228
|
+
{showFooter}
|
|
229
|
+
{showSidebar}
|
|
230
|
+
{showTabs}
|
|
231
|
+
{showPreviewBar}
|
|
232
|
+
{sidebarWidth}
|
|
233
|
+
{footerSize}
|
|
234
|
+
{notifications}
|
|
235
|
+
containerMode={true}
|
|
236
|
+
>
|
|
237
|
+
{#snippet sidebar()}
|
|
238
|
+
{#if activeTab === 'settings'}
|
|
239
|
+
<Text fontSize="md" fontWeight="normal">App Settings sidebar content</Text>
|
|
240
|
+
{:else if activeTab === 'code'}
|
|
241
|
+
<Text fontSize="md" fontWeight="normal">Code Editor sidebar content</Text>
|
|
242
|
+
{/if}
|
|
243
|
+
{/snippet}
|
|
244
|
+
|
|
245
|
+
{#snippet main()}
|
|
246
|
+
{#if activeTab === 'settings'}
|
|
247
|
+
<Text fontSize="xl" fontWeight="normal">Application Settings Tab content</Text>
|
|
248
|
+
|
|
249
|
+
<div style="display: flex; flex-direction: column; align-items: center; gap: 8px">
|
|
250
|
+
<Switch />
|
|
251
|
+
<Text
|
|
252
|
+
fontSize="md"
|
|
253
|
+
fontWeight="normal"
|
|
254
|
+
icon={InfoIcon}
|
|
255
|
+
tooltip={{
|
|
256
|
+
tooltipIcon: InfoIcon,
|
|
257
|
+
message: 'This is a tooltip'
|
|
258
|
+
}}>I am a Text with a tooltip</Text
|
|
259
|
+
>
|
|
260
|
+
<Button variant="primary">Primary</Button>
|
|
261
|
+
<Button variant="secondary">Secondary</Button>
|
|
262
|
+
<Button variant="danger">Danger</Button>
|
|
263
|
+
<Button variant="cms">CMS</Button>
|
|
264
|
+
<Button variant="primary" icon={InfoIcon} text="Button with icon" />
|
|
265
|
+
<Input
|
|
266
|
+
pill="blue"
|
|
267
|
+
value={inputValue}
|
|
268
|
+
oninput={(value) => {
|
|
269
|
+
inputValue = value;
|
|
270
|
+
}}
|
|
271
|
+
placeholder="Type here..."
|
|
272
|
+
width="130px"
|
|
273
|
+
/>
|
|
274
|
+
<!-- Examples with tooltip alerts -->
|
|
275
|
+
<Input
|
|
276
|
+
value="Error input"
|
|
277
|
+
invalid={true}
|
|
278
|
+
alert={{
|
|
279
|
+
type: 'error',
|
|
280
|
+
message: 'This field contains an error'
|
|
281
|
+
}}
|
|
282
|
+
width="130px"
|
|
283
|
+
/>
|
|
284
|
+
<Input
|
|
285
|
+
value="Success input"
|
|
286
|
+
alert={{
|
|
287
|
+
type: 'success',
|
|
288
|
+
message: 'Input is valid!'
|
|
289
|
+
}}
|
|
290
|
+
width="130px"
|
|
291
|
+
/>
|
|
292
|
+
<Input
|
|
293
|
+
value="Warning input"
|
|
294
|
+
alert={{
|
|
295
|
+
type: 'warning',
|
|
296
|
+
message: 'Please review this input'
|
|
297
|
+
}}
|
|
298
|
+
width="130px"
|
|
299
|
+
/>
|
|
300
|
+
<Input
|
|
301
|
+
placeholder="Info tooltip"
|
|
302
|
+
alert={{
|
|
303
|
+
type: 'info',
|
|
304
|
+
message: 'Additional information about this field'
|
|
305
|
+
}}
|
|
306
|
+
width="130px"
|
|
307
|
+
/>
|
|
308
|
+
</div>
|
|
309
|
+
<Clickable disabled>
|
|
310
|
+
<Text fontSize="md" fontWeight="normal">Clickable disabled</Text>
|
|
311
|
+
</Clickable>
|
|
312
|
+
<Clickable>
|
|
313
|
+
<Text fontSize="md" fontWeight="normal">Clickable enabled</Text>
|
|
314
|
+
</Clickable>
|
|
315
|
+
{:else if activeTab === 'code'}
|
|
316
|
+
<Text fontSize="xl" fontWeight="normal">Code Editor Tab content</Text>
|
|
317
|
+
{/if}
|
|
318
|
+
{/snippet}
|
|
319
|
+
|
|
320
|
+
{#snippet previewBar()}
|
|
321
|
+
<Text fontSize="md" fontWeight="normal">Preview bar content</Text>
|
|
322
|
+
{/snippet}
|
|
323
|
+
</Layout>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<style>
|
|
328
|
+
/* Main container layout */
|
|
329
|
+
.example-container {
|
|
330
|
+
display: flex;
|
|
331
|
+
gap: 24px;
|
|
332
|
+
align-items: flex-start;
|
|
333
|
+
min-height: 600px;
|
|
334
|
+
}
|
|
335
|
+
.example-container > * {
|
|
336
|
+
font-size: 11.5px !important;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.configurator-panel {
|
|
340
|
+
flex: 0 0 auto;
|
|
341
|
+
width: 130px;
|
|
342
|
+
min-width: 130px;
|
|
343
|
+
max-height: 600px;
|
|
344
|
+
overflow-y: auto;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.layout-preview {
|
|
348
|
+
border: 1px solid var(--greenText);
|
|
349
|
+
width: 800px;
|
|
350
|
+
height: 600px;
|
|
351
|
+
background: var(--background1);
|
|
352
|
+
overflow: hidden;
|
|
353
|
+
flex: 0 0 auto;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* Configuration Panel Styles */
|
|
357
|
+
.config-panel {
|
|
358
|
+
background: var(--background2);
|
|
359
|
+
border: 1px solid var(--border2);
|
|
360
|
+
border-radius: 6px;
|
|
361
|
+
padding: 0;
|
|
362
|
+
overflow: hidden;
|
|
363
|
+
box-shadow: var(--boxShadows-menu);
|
|
364
|
+
width: 100%;
|
|
365
|
+
height: 100%;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.config-header {
|
|
369
|
+
padding: 8px 10px 6px 10px;
|
|
370
|
+
border-bottom: 1px solid var(--border1);
|
|
371
|
+
background: var(--background3);
|
|
372
|
+
text-align: center;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.config-content {
|
|
376
|
+
display: flex;
|
|
377
|
+
flex-direction: column;
|
|
378
|
+
height: calc(100% - 32px);
|
|
379
|
+
overflow-y: auto;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.config-section {
|
|
383
|
+
padding: 8px 10px;
|
|
384
|
+
border-bottom: 1px solid var(--border1);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.config-section:last-child {
|
|
388
|
+
border-bottom: none;
|
|
389
|
+
flex: 1;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.control-group {
|
|
393
|
+
margin-bottom: 8px;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.control-group:last-child {
|
|
397
|
+
margin-bottom: 0;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.control-label {
|
|
401
|
+
display: block;
|
|
402
|
+
margin-bottom: 3px;
|
|
403
|
+
font-weight: 500;
|
|
404
|
+
font-size: 11.5px;
|
|
405
|
+
color: var(--text1);
|
|
406
|
+
font-family: var(--font-stack);
|
|
407
|
+
text-align: center;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.select-input {
|
|
411
|
+
width: 100%;
|
|
412
|
+
padding: 4px 6px;
|
|
413
|
+
border: 1px solid var(--border2);
|
|
414
|
+
border-radius: var(--border-radius);
|
|
415
|
+
background: var(--background1);
|
|
416
|
+
color: var(--text1);
|
|
417
|
+
font-size: 11.5px;
|
|
418
|
+
font-family: var(--font-stack);
|
|
419
|
+
box-shadow: var(--boxShadows-input-inner);
|
|
420
|
+
transition: all 0.2s ease;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
.select-input:focus {
|
|
424
|
+
outline: none;
|
|
425
|
+
border-color: var(--blueBorder);
|
|
426
|
+
box-shadow:
|
|
427
|
+
var(--boxShadows-input-inner),
|
|
428
|
+
0 0 0 1px rgba(128, 194, 255, 0.2);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.select-input:hover {
|
|
432
|
+
border-color: var(--border3);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.select-input option {
|
|
436
|
+
background: var(--background2);
|
|
437
|
+
color: var(--text1);
|
|
438
|
+
font-size: 11.5px;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.toggles-list {
|
|
442
|
+
display: flex;
|
|
443
|
+
flex-direction: column;
|
|
444
|
+
gap: 6px;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.toggle-control {
|
|
448
|
+
display: flex;
|
|
449
|
+
align-items: center;
|
|
450
|
+
gap: 6px;
|
|
451
|
+
padding: 4px 6px;
|
|
452
|
+
border-radius: var(--border-radius);
|
|
453
|
+
transition: background-color 0.2s ease;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.toggle-control:hover {
|
|
457
|
+
background: var(--defaultLightHover);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.checkbox-input {
|
|
461
|
+
margin: 0;
|
|
462
|
+
accent-color: var(--actionPrimaryBackground);
|
|
463
|
+
width: 12px;
|
|
464
|
+
height: 12px;
|
|
465
|
+
flex-shrink: 0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.checkbox-label {
|
|
469
|
+
cursor: pointer;
|
|
470
|
+
user-select: none;
|
|
471
|
+
flex: 1;
|
|
472
|
+
font-size: 11.5px;
|
|
473
|
+
color: var(--text1);
|
|
474
|
+
font-family: var(--font-stack);
|
|
475
|
+
line-height: 1.2;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* Responsive adjustments */
|
|
479
|
+
@media (max-width: 980px) {
|
|
480
|
+
.example-container {
|
|
481
|
+
flex-direction: column;
|
|
482
|
+
align-items: center;
|
|
483
|
+
gap: 16px;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.configurator-panel {
|
|
487
|
+
width: 300px;
|
|
488
|
+
min-width: 300px;
|
|
489
|
+
max-height: 200px;
|
|
490
|
+
order: 2;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.layout-preview {
|
|
494
|
+
order: 1;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.config-content {
|
|
498
|
+
display: grid;
|
|
499
|
+
grid-template-columns: 1fr 1fr;
|
|
500
|
+
gap: 0;
|
|
501
|
+
height: auto;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.config-section {
|
|
505
|
+
border-bottom: none;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.config-section:first-child {
|
|
509
|
+
border-right: 1px solid var(--border1);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.toggles-list {
|
|
513
|
+
display: grid;
|
|
514
|
+
grid-template-columns: 1fr 1fr;
|
|
515
|
+
gap: 4px 8px;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@media (max-width: 768px) {
|
|
520
|
+
.configurator-panel {
|
|
521
|
+
width: 100%;
|
|
522
|
+
max-width: 400px;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.config-content {
|
|
526
|
+
grid-template-columns: 1fr;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.config-section:first-child {
|
|
530
|
+
border-right: none;
|
|
531
|
+
border-bottom: 1px solid var(--border1);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.toggles-list {
|
|
535
|
+
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
</style>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script module lang="ts">
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
|
|
4
|
+
import ExampleLayout from './ExampleLayout.svelte';
|
|
5
|
+
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
title: 'UI/Layout',
|
|
8
|
+
component: ExampleLayout,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'centered',
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component:
|
|
15
|
+
'A flexible layout component with sidebar, main content area, tabs, and footer. This demo includes a built-in configurator to test different layout options.'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<Story name="Default">
|
|
23
|
+
<ExampleLayout />
|
|
24
|
+
</Story>
|
|
@@ -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 Layout: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
|
|
15
|
+
[evt: string]: CustomEvent<any>;
|
|
16
|
+
}, {}, {}, string>;
|
|
17
|
+
type Layout = InstanceType<typeof Layout>;
|
|
18
|
+
export default Layout;
|