@finsweet/webflow-apps-utils 1.0.2 → 1.0.4
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 +162 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/providers/GlobalProvider.mdx +322 -0
- package/dist/providers/GlobalProvider.svelte +58 -0
- package/dist/providers/GlobalProvider.svelte.d.ts +4 -0
- package/dist/providers/configuratorUtils.d.ts +37 -0
- package/dist/providers/configuratorUtils.js +219 -0
- package/dist/providers/globalContext.svelte.d.ts +18 -0
- package/dist/providers/globalContext.svelte.js +439 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/index.js +7 -0
- package/dist/providers/types.d.ts +103 -0
- package/dist/providers/types.js +6 -0
- package/dist/router/Router.mdx +958 -0
- package/dist/router/Router.stories.d.ts +6 -0
- package/dist/router/Router.stories.js +47 -0
- package/dist/router/examples/RouterExample.svelte +271 -0
- package/dist/{ui/components/NoSettingsNeeded.svelte.d.ts → router/examples/RouterExample.svelte.d.ts} +3 -3
- package/dist/router/examples/index.d.ts +4 -0
- package/dist/router/examples/index.js +4 -0
- package/dist/router/examples/pages/AboutPage.svelte +568 -0
- package/dist/router/examples/pages/AboutPage.svelte.d.ts +13 -0
- package/dist/router/examples/pages/HomePage.svelte +200 -0
- package/dist/router/examples/pages/HomePage.svelte.d.ts +14 -0
- package/dist/router/examples/pages/NotFoundPage.svelte +307 -0
- package/dist/router/examples/pages/NotFoundPage.svelte.d.ts +17 -0
- package/dist/router/hooks.svelte.d.ts +2 -2
- package/dist/router/index.d.ts +3 -0
- package/dist/router/index.js +3 -0
- package/dist/router/{Link.svelte → providers/Link.svelte} +1 -1
- package/dist/router/{Route.svelte → providers/Route.svelte} +1 -1
- package/dist/router/{Route.svelte.d.ts → providers/Route.svelte.d.ts} +1 -1
- package/dist/router/{Router.svelte → providers/RouterProvider.svelte} +22 -5
- package/dist/router/{Router.svelte.d.ts → providers/RouterProvider.svelte.d.ts} +8 -4
- package/dist/router/providers/index.d.ts +3 -0
- package/dist/router/providers/index.js +3 -0
- package/dist/router/{index.svelte.d.ts → router.svelte.d.ts} +1 -3
- package/dist/router/{index.svelte.js → router.svelte.js} +1 -4
- package/dist/stores/docs/Form.mdx +542 -0
- package/dist/stores/forms.d.ts +41 -4
- package/dist/stores/forms.js +86 -32
- package/dist/stores/index.d.ts +0 -1
- package/dist/stores/index.js +0 -1
- package/dist/types/customCode.d.ts +1 -1
- package/dist/types/webflow.d.ts +31 -47
- package/dist/types/window.d.ts +1 -0
- package/dist/ui/components/LoadingScreen.svelte +2 -1
- package/dist/ui/components/button/Button.svelte +1 -1
- package/dist/ui/components/button-group/ButtonGroup.stories.js +112 -0
- package/dist/ui/components/{ButtonGroup.svelte → button-group/ButtonGroup.svelte} +20 -33
- package/dist/ui/components/button-group/ButtonGroup.svelte.d.ts +13 -0
- package/dist/ui/components/button-group/index.d.ts +2 -0
- package/dist/ui/components/button-group/index.js +1 -0
- package/dist/ui/components/button-group/types.d.ts +32 -0
- package/dist/ui/components/checkbox/Checkbox.stories.d.ts +55 -0
- package/dist/ui/components/checkbox/Checkbox.stories.js +162 -0
- package/dist/ui/components/checkbox/Checkbox.svelte +141 -0
- package/dist/ui/components/checkbox/Checkbox.svelte.d.ts +4 -0
- package/dist/ui/components/checkbox/index.d.ts +2 -0
- package/dist/ui/components/checkbox/index.js +1 -0
- package/dist/ui/components/checkbox/types.d.ts +32 -0
- package/dist/ui/components/controlled-buttons/ControlledButtons.stories.d.ts +32 -0
- package/dist/ui/components/controlled-buttons/ControlledButtons.stories.js +152 -0
- package/dist/ui/components/{buttons/FooterButton.svelte → controlled-buttons/ControlledButtons.svelte} +18 -67
- package/dist/ui/components/controlled-buttons/ControlledButtons.svelte.d.ts +4 -0
- package/dist/ui/components/controlled-buttons/index.d.ts +2 -0
- package/dist/ui/components/controlled-buttons/index.js +1 -0
- package/dist/ui/components/{buttons → controlled-buttons}/types.d.ts +11 -4
- package/dist/ui/components/copy-text/CopyText.stories.d.ts +70 -0
- package/dist/ui/components/copy-text/CopyText.stories.js +241 -0
- package/dist/ui/components/copy-text/CopyText.svelte +249 -0
- package/dist/ui/components/copy-text/CopyText.svelte.d.ts +4 -0
- package/dist/ui/components/copy-text/index.d.ts +2 -0
- package/dist/ui/components/copy-text/index.js +1 -0
- package/dist/ui/components/copy-text/types.d.ts +52 -0
- package/dist/ui/components/copy-text/types.js +1 -0
- package/dist/ui/components/divider/Divider.stories.svelte +134 -0
- package/dist/ui/components/{clickable/Clickable.stories.svelte.d.ts → divider/Divider.stories.svelte.d.ts} +4 -4
- package/dist/ui/components/divider/Divider.svelte +30 -0
- package/dist/ui/components/divider/Divider.svelte.d.ts +4 -0
- package/dist/ui/components/divider/index.d.ts +2 -0
- package/dist/ui/components/divider/index.js +1 -0
- package/dist/ui/components/divider/types.d.ts +23 -0
- package/dist/ui/components/divider/types.js +1 -0
- package/dist/ui/components/iframe/Iframe.stories.svelte +122 -0
- package/dist/ui/components/{ToggleItem.svelte.d.ts → iframe/Iframe.stories.svelte.d.ts} +7 -8
- package/dist/ui/components/iframe/Iframe.svelte +75 -0
- package/dist/ui/components/iframe/Iframe.svelte.d.ts +4 -0
- package/dist/ui/components/iframe/index.d.ts +2 -0
- package/dist/ui/components/iframe/index.js +1 -0
- package/dist/ui/components/iframe/types.d.ts +38 -0
- package/dist/ui/components/iframe/types.js +1 -0
- package/dist/ui/components/index.d.ts +13 -39
- package/dist/ui/components/index.js +13 -39
- package/dist/ui/components/input/Input.stories.d.ts +33 -0
- package/dist/ui/components/input/Input.stories.js +176 -0
- package/dist/ui/components/input/Input.svelte +358 -81
- package/dist/ui/components/input/types.d.ts +33 -1
- package/dist/ui/components/layout/Layout.stories.svelte +3 -3
- package/dist/ui/components/layout/Layout.svelte +10 -64
- package/dist/ui/components/layout/Layout.svelte.d.ts +2 -2
- package/dist/ui/components/layout/common/EditModeMessage.svelte +24 -12
- package/dist/ui/components/layout/{ExampleLayout.svelte → examples/ExampleLayout.svelte} +56 -39
- package/dist/ui/components/layout/examples/Wrapper.svelte +9 -0
- package/dist/ui/components/{Header.svelte.d.ts → layout/examples/Wrapper.svelte.d.ts} +4 -6
- package/dist/ui/components/layout/examples/index.d.ts +2 -0
- package/dist/ui/components/layout/examples/index.js +2 -0
- package/dist/ui/components/layout/index.d.ts +3 -2
- package/dist/ui/components/layout/index.js +2 -1
- package/dist/ui/components/layout/test-helpers/TestLayoutWithFooter.svelte +20 -0
- package/dist/ui/components/layout/test-helpers/TestLayoutWithFooter.svelte.d.ts +7 -0
- package/dist/ui/components/layout/types.d.ts +1 -10
- package/dist/ui/components/modal/Example.svelte +320 -0
- package/dist/ui/components/modal/Example.svelte.d.ts +3 -0
- package/dist/ui/components/modal/Modal.stories.svelte +18 -0
- package/dist/ui/components/modal/Modal.stories.svelte.d.ts +26 -0
- package/dist/ui/components/modal/Modal.svelte +490 -0
- package/dist/ui/components/modal/Modal.svelte.d.ts +130 -0
- package/dist/ui/components/modal/index.d.ts +2 -0
- package/dist/ui/components/modal/index.js +1 -0
- package/dist/ui/components/modal/types.d.ts +75 -0
- package/dist/ui/components/modal/types.js +1 -0
- package/dist/ui/components/notification/Notification.stories.svelte +239 -0
- package/dist/ui/components/{ToggleList.svelte.d.ts → notification/Notification.stories.svelte.d.ts} +9 -21
- package/dist/ui/components/notification/Notification.svelte +294 -0
- package/dist/ui/components/notification/Notification.svelte.d.ts +67 -0
- package/dist/ui/components/notification/index.d.ts +2 -0
- package/dist/ui/components/notification/index.js +1 -0
- package/dist/ui/components/notification/types.d.ts +68 -0
- package/dist/ui/components/notification/types.js +1 -0
- package/dist/ui/components/section/Section.stories.svelte +263 -0
- package/dist/ui/components/section/Section.stories.svelte.d.ts +27 -0
- package/dist/ui/components/section/Section.svelte +326 -0
- package/dist/ui/components/section/Section.svelte.d.ts +5 -0
- package/dist/ui/components/section/index.d.ts +2 -0
- package/dist/ui/components/section/index.js +1 -0
- package/dist/ui/components/section/types.d.ts +114 -0
- package/dist/ui/components/section/types.js +1 -0
- package/dist/ui/components/{ImageUpload.svelte → shared/ImageUpload.svelte} +3 -3
- package/dist/ui/components/{SelectBodyOrDivBlock.svelte → shared/SelectBodyOrDivBlock.svelte} +1 -1
- package/dist/ui/components/shared/index.d.ts +2 -0
- package/dist/ui/components/shared/index.js +2 -0
- package/dist/ui/components/text/Text.stories.svelte +67 -1
- package/dist/ui/components/text/Text.svelte +209 -8
- package/dist/ui/components/text/types.d.ts +4 -0
- package/dist/ui/index.css +33 -5
- package/dist/utils/animations/factory.d.ts +7 -0
- package/dist/utils/animations/factory.js +101 -0
- package/dist/utils/animations/index.d.ts +7 -0
- package/dist/utils/animations/index.js +62 -0
- package/dist/utils/animations/types.d.ts +39 -0
- package/dist/utils/animations/types.js +1 -0
- package/dist/utils/api/checkIfAppModeIsDesign.d.ts +1 -2
- package/dist/utils/api/checkIfAppModeIsDesign.js +1 -2
- package/dist/utils/api/clipboard/handlePaste.d.ts +6 -37
- package/dist/utils/api/clipboard/handlePaste.js +2 -6
- package/dist/utils/api/getAllAssets.d.ts +1 -2
- package/dist/utils/api/getAllAssets.js +1 -2
- package/dist/utils/api/getFinsweetComponentsEnvironment.d.ts +1 -2
- package/dist/utils/api/getFinsweetComponentsEnvironment.js +3 -6
- package/dist/utils/api/index.d.ts +0 -1
- package/dist/utils/api/index.js +0 -1
- package/dist/utils/api/insertWithXSCP.d.ts +1 -2
- package/dist/utils/api/insertWithXSCP.js +1 -2
- package/dist/utils/auth/crossWindowLogin.d.ts +3 -0
- package/dist/utils/auth/crossWindowLogin.js +3 -0
- package/dist/utils/auth/index.d.ts +9 -25
- package/dist/utils/auth/index.js +9 -25
- package/dist/utils/browser-storage/localStorage.d.ts +4 -12
- package/dist/utils/browser-storage/localStorage.js +4 -12
- package/dist/utils/browser-storage/sessionStorage.d.ts +4 -12
- package/dist/utils/browser-storage/sessionStorage.js +4 -12
- package/dist/utils/custom-code/api.d.ts +3 -7
- package/dist/utils/custom-code/api.js +3 -7
- package/dist/utils/custom-code/configs.d.ts +22 -0
- package/dist/utils/custom-code/configs.js +40 -0
- package/dist/utils/custom-code/index.d.ts +1 -0
- package/dist/utils/custom-code/index.js +1 -0
- package/dist/utils/helpers/capitalizeFirstLetter.d.ts +4 -0
- package/dist/utils/helpers/capitalizeFirstLetter.js +9 -0
- package/dist/utils/helpers/cleanupTooltipMessage.d.ts +1 -2
- package/dist/utils/helpers/cleanupTooltipMessage.js +1 -2
- package/dist/utils/helpers/getTimeNow.d.ts +4 -0
- package/dist/utils/helpers/getTimeNow.js +8 -0
- package/dist/utils/helpers/goto.d.ts +1 -4
- package/dist/utils/helpers/goto.js +2 -7
- package/dist/utils/helpers/index.d.ts +5 -0
- package/dist/utils/helpers/index.js +5 -0
- package/dist/utils/helpers/minifyCode.d.ts +10 -0
- package/dist/utils/helpers/minifyCode.js +73 -0
- package/dist/utils/helpers/noop.d.ts +1 -1
- package/dist/utils/helpers/noop.js +1 -1
- package/dist/utils/helpers/numbers.d.ts +4 -14
- package/dist/utils/helpers/numbers.js +4 -14
- package/dist/utils/helpers/objectsToModuleExports.d.ts +2 -4
- package/dist/utils/helpers/objectsToModuleExports.js +2 -3
- package/dist/utils/helpers/toHumanReadableList.d.ts +4 -0
- package/dist/utils/helpers/toHumanReadableList.js +11 -0
- package/dist/utils/helpers/trimText.d.ts +1 -8
- package/dist/utils/helpers/trimText.js +1 -8
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/logger/index.d.ts +0 -2
- package/dist/utils/logger/index.js +0 -2
- package/dist/utils/webflow-canvas/attributes/getAllWebflowElementAttributes.d.ts +1 -3
- package/dist/utils/webflow-canvas/attributes/getAllWebflowElementAttributes.js +1 -3
- package/dist/utils/webflow-canvas/attributes/getInstanceNamesFromObject.d.ts +1 -5
- package/dist/utils/webflow-canvas/attributes/getInstanceNamesFromObject.js +1 -5
- package/dist/utils/webflow-canvas/attributes/getWebflowElementAttribute.d.ts +1 -4
- package/dist/utils/webflow-canvas/attributes/getWebflowElementAttribute.js +1 -4
- package/dist/utils/webflow-canvas/attributes/getWebflowElementTextContent.d.ts +1 -3
- package/dist/utils/webflow-canvas/attributes/getWebflowElementTextContent.js +1 -3
- package/dist/utils/webflow-canvas/attributes/removeWebflowElementAttribute.d.ts +1 -4
- package/dist/utils/webflow-canvas/attributes/removeWebflowElementAttribute.js +1 -4
- package/dist/utils/webflow-canvas/attributes/setStyles.d.ts +1 -3
- package/dist/utils/webflow-canvas/attributes/setStyles.js +1 -3
- package/dist/utils/webflow-canvas/attributes/setWebflowElementAttribute.d.ts +1 -8
- package/dist/utils/webflow-canvas/attributes/setWebflowElementAttribute.js +1 -13
- package/dist/utils/webflow-canvas/findInstanceElement.d.ts +0 -6
- package/dist/utils/webflow-canvas/findInstanceElement.js +1 -7
- package/dist/utils/webflow-canvas/getAllChildren.d.ts +16 -0
- package/dist/utils/webflow-canvas/getAllChildren.js +65 -0
- package/dist/utils/webflow-canvas/getAllPages.d.ts +3 -10
- package/dist/utils/webflow-canvas/getAllPages.js +3 -10
- package/dist/utils/webflow-canvas/getElementClassList.d.ts +9 -0
- package/dist/utils/webflow-canvas/getElementClassList.js +19 -0
- package/dist/utils/webflow-canvas/getSiteStagingUrl.d.ts +1 -4
- package/dist/utils/webflow-canvas/getSiteStagingUrl.js +1 -4
- package/dist/utils/webflow-canvas/index.d.ts +3 -0
- package/dist/utils/webflow-canvas/index.js +3 -0
- package/package.json +14 -2
- package/dist/router/README.md +0 -397
- package/dist/stores/globalStore.d.ts +0 -10
- package/dist/stores/globalStore.js +0 -10
- package/dist/ui/components/ButtonGroup.svelte.d.ts +0 -28
- package/dist/ui/components/Checkbox.svelte +0 -94
- package/dist/ui/components/Checkbox.svelte.d.ts +0 -36
- package/dist/ui/components/Copy.svelte +0 -329
- package/dist/ui/components/Copy.svelte.d.ts +0 -35
- package/dist/ui/components/CustomModal.svelte +0 -192
- package/dist/ui/components/CustomModal.svelte.d.ts +0 -45
- package/dist/ui/components/DisableInEditMode.svelte +0 -66
- package/dist/ui/components/DisableInEditMode.svelte.d.ts +0 -33
- package/dist/ui/components/Divider.svelte +0 -31
- package/dist/ui/components/Divider.svelte.d.ts +0 -31
- package/dist/ui/components/Header.svelte +0 -30
- package/dist/ui/components/Iframe.svelte +0 -89
- package/dist/ui/components/Iframe.svelte.d.ts +0 -40
- package/dist/ui/components/InjectComponent.svelte +0 -297
- package/dist/ui/components/InjectComponent.svelte.d.ts +0 -27
- package/dist/ui/components/Modal.svelte +0 -139
- package/dist/ui/components/Modal.svelte.d.ts +0 -42
- package/dist/ui/components/Navbar.svelte +0 -132
- package/dist/ui/components/Navbar.svelte.d.ts +0 -29
- package/dist/ui/components/NoSettingsNeeded.svelte +0 -31
- package/dist/ui/components/Notification.svelte +0 -193
- package/dist/ui/components/Notification.svelte.d.ts +0 -64
- package/dist/ui/components/PlusMinusButton.svelte +0 -91
- package/dist/ui/components/PlusMinusButton.svelte.d.ts +0 -22
- package/dist/ui/components/PreviewBar.svelte +0 -40
- package/dist/ui/components/PreviewBar.svelte.d.ts +0 -20
- package/dist/ui/components/ScrollableContent.svelte +0 -18
- package/dist/ui/components/ScrollableContent.svelte.d.ts +0 -31
- package/dist/ui/components/Section.svelte +0 -97
- package/dist/ui/components/Section.svelte.d.ts +0 -50
- package/dist/ui/components/Spacer.svelte +0 -9
- package/dist/ui/components/Spacer.svelte.d.ts +0 -22
- package/dist/ui/components/SpinnerPlusMinus.svelte +0 -75
- package/dist/ui/components/SpinnerPlusMinus.svelte.d.ts +0 -23
- package/dist/ui/components/SpinnerUpDown.svelte +0 -194
- package/dist/ui/components/SpinnerUpDown.svelte.d.ts +0 -31
- package/dist/ui/components/Tabs.svelte +0 -71
- package/dist/ui/components/Tabs.svelte.d.ts +0 -26
- package/dist/ui/components/ToggleItem.svelte +0 -29
- package/dist/ui/components/ToggleList.svelte +0 -57
- package/dist/ui/components/buttons/FooterButton.svelte.d.ts +0 -10
- package/dist/ui/components/buttons/index.d.ts +0 -5
- package/dist/ui/components/buttons/index.js +0 -5
- package/dist/ui/components/clickable/Clickable.stories.svelte +0 -213
- package/dist/ui/components/clickable/Clickable.svelte +0 -93
- package/dist/ui/components/clickable/Clickable.svelte.d.ts +0 -4
- package/dist/ui/components/clickable/index.d.ts +0 -2
- package/dist/ui/components/clickable/index.js +0 -1
- package/dist/ui/components/clickable/types.d.ts +0 -17
- package/dist/utils/api/copyPaste/index.d.ts +0 -18
- /package/dist/router/{Link.svelte.d.ts → providers/Link.svelte.d.ts} +0 -0
- /package/dist/ui/components/{buttons → button-group}/types.js +0 -0
- /package/dist/ui/components/{clickable → checkbox}/types.js +0 -0
- /package/dist/{utils/api/copyPaste/index.js → ui/components/controlled-buttons/types.js} +0 -0
- /package/dist/ui/components/layout/{ExampleLayout.svelte.d.ts → examples/ExampleLayout.svelte.d.ts} +0 -0
- /package/dist/ui/components/{ImageUpload.svelte.d.ts → shared/ImageUpload.svelte.d.ts} +0 -0
- /package/dist/ui/components/{SelectBodyOrDivBlock.svelte.d.ts → shared/SelectBodyOrDivBlock.svelte.d.ts} +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
<script module>
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
|
|
4
|
+
import Divider from './Divider.svelte';
|
|
5
|
+
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
title: 'Ui/Divider',
|
|
8
|
+
component: Divider,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
parameters: {
|
|
11
|
+
layout: 'padded',
|
|
12
|
+
docs: {
|
|
13
|
+
description: {
|
|
14
|
+
component:
|
|
15
|
+
'A simple divider component for creating visual separation between content sections. Supports customizable dimensions, colors, and orientation.'
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
argTypes: {
|
|
20
|
+
height: {
|
|
21
|
+
control: 'text',
|
|
22
|
+
description: 'Height of the divider',
|
|
23
|
+
table: {
|
|
24
|
+
defaultValue: { summary: '1px' }
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
width: {
|
|
28
|
+
control: 'text',
|
|
29
|
+
description: 'Width of the divider',
|
|
30
|
+
table: {
|
|
31
|
+
defaultValue: { summary: '100%' }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
background: {
|
|
35
|
+
control: 'color',
|
|
36
|
+
description: 'Background color of the divider',
|
|
37
|
+
table: {
|
|
38
|
+
defaultValue: { summary: 'var(--border1)' }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
rotate: {
|
|
42
|
+
control: 'boolean',
|
|
43
|
+
description: 'Rotates the divider 90 degrees for vertical orientation',
|
|
44
|
+
table: {
|
|
45
|
+
defaultValue: { summary: 'false' }
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
class: {
|
|
49
|
+
control: 'text',
|
|
50
|
+
description: 'Additional CSS classes to apply'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<!-- Basic variants -->
|
|
57
|
+
<Story name="Default" />
|
|
58
|
+
|
|
59
|
+
<Story
|
|
60
|
+
name="Thick"
|
|
61
|
+
args={{
|
|
62
|
+
height: '4px'
|
|
63
|
+
}}
|
|
64
|
+
/>
|
|
65
|
+
|
|
66
|
+
<Story
|
|
67
|
+
name="Custom Color"
|
|
68
|
+
args={{
|
|
69
|
+
background: '#007bff',
|
|
70
|
+
height: '2px'
|
|
71
|
+
}}
|
|
72
|
+
/>
|
|
73
|
+
|
|
74
|
+
<Story
|
|
75
|
+
name="Short Divider"
|
|
76
|
+
args={{
|
|
77
|
+
width: '50%',
|
|
78
|
+
height: '2px'
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
|
|
82
|
+
<Story
|
|
83
|
+
name="Vertical"
|
|
84
|
+
args={{
|
|
85
|
+
rotate: true,
|
|
86
|
+
height: '100px',
|
|
87
|
+
width: '2px'
|
|
88
|
+
}}
|
|
89
|
+
/>
|
|
90
|
+
|
|
91
|
+
<!-- Color variants -->
|
|
92
|
+
<Story
|
|
93
|
+
name="Success"
|
|
94
|
+
args={{
|
|
95
|
+
background: 'var(--greenIcon)',
|
|
96
|
+
height: '3px'
|
|
97
|
+
}}
|
|
98
|
+
/>
|
|
99
|
+
|
|
100
|
+
<Story
|
|
101
|
+
name="Warning"
|
|
102
|
+
args={{
|
|
103
|
+
background: 'var(--yellowBorder)',
|
|
104
|
+
height: '3px'
|
|
105
|
+
}}
|
|
106
|
+
/>
|
|
107
|
+
|
|
108
|
+
<Story
|
|
109
|
+
name="Error"
|
|
110
|
+
args={{
|
|
111
|
+
background: 'var(--redBorder)',
|
|
112
|
+
height: '3px'
|
|
113
|
+
}}
|
|
114
|
+
/>
|
|
115
|
+
|
|
116
|
+
<!-- Complex example with content context -->
|
|
117
|
+
<Story name="In Content">
|
|
118
|
+
<div style="padding: 20px; background: var(--background1); border-radius: 8px;">
|
|
119
|
+
<p style="margin: 0 0 16px 0; color: var(--text1);">Content above divider</p>
|
|
120
|
+
<Divider height="1px" background="var(--border1)" />
|
|
121
|
+
<p style="margin: 16px 0 0 0; color: var(--text1);">Content below divider</p>
|
|
122
|
+
</div>
|
|
123
|
+
</Story>
|
|
124
|
+
|
|
125
|
+
<!-- Playground -->
|
|
126
|
+
<Story
|
|
127
|
+
name="Playground"
|
|
128
|
+
args={{
|
|
129
|
+
height: '2px',
|
|
130
|
+
width: '100%',
|
|
131
|
+
background: '#007bff',
|
|
132
|
+
rotate: false
|
|
133
|
+
}}
|
|
134
|
+
/>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export default
|
|
2
|
-
type
|
|
1
|
+
export default Divider;
|
|
2
|
+
type Divider = SvelteComponent<{
|
|
3
3
|
[x: string]: never;
|
|
4
4
|
}, {
|
|
5
5
|
[evt: string]: CustomEvent<any>;
|
|
6
6
|
}, {}> & {
|
|
7
7
|
$$bindings?: string | undefined;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const Divider: $$__sveltets_2_IsomorphicComponent<{
|
|
10
10
|
[x: string]: never;
|
|
11
11
|
}, {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
}, {}, {}, string>;
|
|
14
|
-
import
|
|
14
|
+
import Divider from './Divider.svelte';
|
|
15
15
|
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> {
|
|
16
16
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
17
|
$$bindings?: Bindings;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { DividerProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
height = '1px',
|
|
6
|
+
width = '100%',
|
|
7
|
+
background = 'var(--border1)',
|
|
8
|
+
rotate = false,
|
|
9
|
+
class: className = '',
|
|
10
|
+
...restProps
|
|
11
|
+
}: DividerProps = $props();
|
|
12
|
+
|
|
13
|
+
// Computed classes
|
|
14
|
+
let dividerClasses = $derived(`divider ${className}`.trim());
|
|
15
|
+
|
|
16
|
+
// Computed styles
|
|
17
|
+
let dividerStyles = $derived(
|
|
18
|
+
`height: ${height}; width: ${width}; background: ${background}; ${
|
|
19
|
+
rotate ? 'transform: rotate(180deg);' : ''
|
|
20
|
+
}`
|
|
21
|
+
);
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<div class={dividerClasses} style={dividerStyles} data-testid="divider" {...restProps}></div>
|
|
25
|
+
|
|
26
|
+
<style>
|
|
27
|
+
.divider {
|
|
28
|
+
align-self: stretch;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Divider } from './Divider.svelte';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'svelte/elements';
|
|
2
|
+
export interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Height of the divider
|
|
5
|
+
*/
|
|
6
|
+
height?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Width of the divider
|
|
9
|
+
*/
|
|
10
|
+
width?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Background color of the divider
|
|
13
|
+
*/
|
|
14
|
+
background?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Orientation of the divider - when true, rotates the divider 90 degrees
|
|
17
|
+
*/
|
|
18
|
+
rotate?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Additional CSS classes to apply
|
|
21
|
+
*/
|
|
22
|
+
class?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<script module>
|
|
2
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
3
|
+
|
|
4
|
+
import Iframe from './Iframe.svelte';
|
|
5
|
+
|
|
6
|
+
const { Story } = defineMeta({
|
|
7
|
+
title: 'Ui/Iframe',
|
|
8
|
+
component: Iframe,
|
|
9
|
+
tags: ['autodocs'],
|
|
10
|
+
argTypes: {
|
|
11
|
+
url: {
|
|
12
|
+
control: 'text',
|
|
13
|
+
description: 'The URL to load in the iframe'
|
|
14
|
+
},
|
|
15
|
+
title: {
|
|
16
|
+
control: 'text',
|
|
17
|
+
description: 'Accessible title for the iframe content'
|
|
18
|
+
},
|
|
19
|
+
width: {
|
|
20
|
+
control: 'text',
|
|
21
|
+
description: 'Width of the iframe'
|
|
22
|
+
},
|
|
23
|
+
height: {
|
|
24
|
+
control: 'text',
|
|
25
|
+
description: 'Height of the iframe'
|
|
26
|
+
},
|
|
27
|
+
useProxy: {
|
|
28
|
+
control: 'boolean',
|
|
29
|
+
description: 'Whether to use the Finsweet reverse proxy for CORS'
|
|
30
|
+
},
|
|
31
|
+
class: {
|
|
32
|
+
control: 'text',
|
|
33
|
+
description: 'Custom CSS class name'
|
|
34
|
+
},
|
|
35
|
+
id: {
|
|
36
|
+
control: 'text',
|
|
37
|
+
description: 'HTML id attribute'
|
|
38
|
+
},
|
|
39
|
+
onLoadSuccess: {
|
|
40
|
+
action: 'loadSuccess',
|
|
41
|
+
description: 'Called when iframe loads successfully'
|
|
42
|
+
},
|
|
43
|
+
onLoadError: {
|
|
44
|
+
action: 'loadError',
|
|
45
|
+
description: 'Called when iframe fails to load'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
</script>
|
|
50
|
+
|
|
51
|
+
<Story
|
|
52
|
+
name="Default"
|
|
53
|
+
args={{
|
|
54
|
+
url: 'https://example.com',
|
|
55
|
+
title: 'Example Website',
|
|
56
|
+
width: '100%',
|
|
57
|
+
height: '400px'
|
|
58
|
+
}}
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
<Story
|
|
62
|
+
name="With Proxy"
|
|
63
|
+
args={{
|
|
64
|
+
url: 'https://httpbin.org/html',
|
|
65
|
+
title: 'HTTPBin HTML Page',
|
|
66
|
+
width: '100%',
|
|
67
|
+
height: '400px',
|
|
68
|
+
useProxy: true
|
|
69
|
+
}}
|
|
70
|
+
/>
|
|
71
|
+
|
|
72
|
+
<Story
|
|
73
|
+
name="Without Proxy"
|
|
74
|
+
args={{
|
|
75
|
+
url: 'https://example.com',
|
|
76
|
+
title: 'Direct URL Load',
|
|
77
|
+
width: '100%',
|
|
78
|
+
height: '400px',
|
|
79
|
+
useProxy: false
|
|
80
|
+
}}
|
|
81
|
+
/>
|
|
82
|
+
|
|
83
|
+
<Story
|
|
84
|
+
name="Custom Dimensions"
|
|
85
|
+
args={{
|
|
86
|
+
url: 'https://httpbin.org/html',
|
|
87
|
+
title: 'Custom Size Iframe',
|
|
88
|
+
width: '800px',
|
|
89
|
+
height: '600px'
|
|
90
|
+
}}
|
|
91
|
+
/>
|
|
92
|
+
|
|
93
|
+
<Story
|
|
94
|
+
name="Small Iframe"
|
|
95
|
+
args={{
|
|
96
|
+
url: 'https://httpbin.org/html',
|
|
97
|
+
title: 'Small Iframe',
|
|
98
|
+
width: '400px',
|
|
99
|
+
height: '300px'
|
|
100
|
+
}}
|
|
101
|
+
/>
|
|
102
|
+
|
|
103
|
+
<Story
|
|
104
|
+
name="With Custom Class"
|
|
105
|
+
args={{
|
|
106
|
+
url: 'https://httpbin.org/html',
|
|
107
|
+
title: 'Styled Iframe',
|
|
108
|
+
width: '100%',
|
|
109
|
+
height: '400px',
|
|
110
|
+
class: 'custom-styled-iframe'
|
|
111
|
+
}}
|
|
112
|
+
/>
|
|
113
|
+
|
|
114
|
+
<Story
|
|
115
|
+
name="Responsive Iframe"
|
|
116
|
+
args={{
|
|
117
|
+
url: 'https://httpbin.org/html',
|
|
118
|
+
title: 'Responsive Iframe',
|
|
119
|
+
width: '100%',
|
|
120
|
+
height: '50vh'
|
|
121
|
+
}}
|
|
122
|
+
/>
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
export default
|
|
2
|
-
type
|
|
3
|
-
|
|
4
|
-
isActive?: boolean | undefined;
|
|
1
|
+
export default Iframe;
|
|
2
|
+
type Iframe = SvelteComponent<{
|
|
3
|
+
[x: string]: never;
|
|
5
4
|
}, {
|
|
6
5
|
[evt: string]: CustomEvent<any>;
|
|
7
6
|
}, {}> & {
|
|
8
7
|
$$bindings?: string | undefined;
|
|
9
8
|
};
|
|
10
|
-
declare const
|
|
11
|
-
|
|
12
|
-
isActive?: boolean | undefined;
|
|
9
|
+
declare const Iframe: $$__sveltets_2_IsomorphicComponent<{
|
|
10
|
+
[x: string]: never;
|
|
13
11
|
}, {
|
|
14
12
|
[evt: string]: CustomEvent<any>;
|
|
15
13
|
}, {}, {}, string>;
|
|
14
|
+
import Iframe from './Iframe.svelte';
|
|
16
15
|
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
16
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
18
17
|
$$bindings?: Bindings;
|
|
19
18
|
} & Exports;
|
|
20
|
-
(internal: unknown, props:
|
|
19
|
+
(internal: unknown, props: {
|
|
21
20
|
$$events?: Events;
|
|
22
21
|
$$slots?: Slots;
|
|
23
22
|
}): Exports & {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { FINSWEET_REVERSE_PROXY_URL } from '../../../utils';
|
|
3
|
+
|
|
4
|
+
import type { IframeProps } from './types.js';
|
|
5
|
+
|
|
6
|
+
type Props = IframeProps;
|
|
7
|
+
|
|
8
|
+
let {
|
|
9
|
+
url,
|
|
10
|
+
title,
|
|
11
|
+
width = '100%',
|
|
12
|
+
height = '100%',
|
|
13
|
+
useProxy = true,
|
|
14
|
+
onLoadSuccess = () => {},
|
|
15
|
+
onLoadError = () => {},
|
|
16
|
+
class: className = '',
|
|
17
|
+
id,
|
|
18
|
+
...restProps
|
|
19
|
+
}: Props = $props();
|
|
20
|
+
|
|
21
|
+
// Component state
|
|
22
|
+
let iframeElement: HTMLIFrameElement | undefined = $state();
|
|
23
|
+
|
|
24
|
+
// Derived computed src URL
|
|
25
|
+
let src = $derived(useProxy ? `${FINSWEET_REVERSE_PROXY_URL}${url}` : url);
|
|
26
|
+
|
|
27
|
+
// CSS classes
|
|
28
|
+
let iframeClasses = $derived(`iframe ${className}`.trim());
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Handle the iframe load event
|
|
32
|
+
*/
|
|
33
|
+
function handleLoad(): void {
|
|
34
|
+
if (!iframeElement?.contentDocument) {
|
|
35
|
+
onLoadError();
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const { contentDocument } = iframeElement;
|
|
40
|
+
const iframeTitle = contentDocument.title;
|
|
41
|
+
const { body } = contentDocument;
|
|
42
|
+
|
|
43
|
+
// Check for various error conditions
|
|
44
|
+
const hasNoContent = body.childNodes.length === 0;
|
|
45
|
+
const has404InTitle = iframeTitle.includes('404');
|
|
46
|
+
const has404InBody = body.outerHTML.includes('<span>404</span>');
|
|
47
|
+
|
|
48
|
+
if (hasNoContent || has404InTitle || has404InBody) {
|
|
49
|
+
onLoadError();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
onLoadSuccess();
|
|
54
|
+
}
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<iframe
|
|
58
|
+
bind:this={iframeElement}
|
|
59
|
+
{id}
|
|
60
|
+
{title}
|
|
61
|
+
{src}
|
|
62
|
+
{width}
|
|
63
|
+
{height}
|
|
64
|
+
class={iframeClasses}
|
|
65
|
+
onload={handleLoad}
|
|
66
|
+
{...restProps}
|
|
67
|
+
></iframe>
|
|
68
|
+
|
|
69
|
+
<style>
|
|
70
|
+
.iframe {
|
|
71
|
+
border: none;
|
|
72
|
+
border-radius: var(--border-radius-md, 4px);
|
|
73
|
+
background: var(--text2);
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Iframe } from './Iframe.svelte';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { HTMLIframeAttributes } from 'svelte/elements';
|
|
2
|
+
export interface IframeProps extends Omit<HTMLIframeAttributes, 'src' | 'title' | 'onload'> {
|
|
3
|
+
/**
|
|
4
|
+
* The URL to load in the iframe
|
|
5
|
+
*/
|
|
6
|
+
url: string;
|
|
7
|
+
/**
|
|
8
|
+
* Accessible title for the iframe content
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* Width of the iframe
|
|
13
|
+
* @default '100%'
|
|
14
|
+
*/
|
|
15
|
+
width?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Height of the iframe
|
|
18
|
+
* @default '100%'
|
|
19
|
+
*/
|
|
20
|
+
height?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Whether to use the Finsweet reverse proxy for CORS
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
useProxy?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Event handler called when iframe loads successfully
|
|
28
|
+
*/
|
|
29
|
+
onLoadSuccess?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Event handler called when iframe fails to load
|
|
32
|
+
*/
|
|
33
|
+
onLoadError?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Custom CSS class name
|
|
36
|
+
*/
|
|
37
|
+
class?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,46 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All Re-usable Components
|
|
3
|
-
*/
|
|
4
|
-
import BreakpointItem from './breakpoints/BreakpointItem.svelte';
|
|
5
|
-
import ButtonGroup from './ButtonGroup.svelte';
|
|
6
|
-
import Checkbox from './Checkbox.svelte';
|
|
7
|
-
import { Clickable } from './clickable';
|
|
8
|
-
import Copy from './Copy.svelte';
|
|
9
|
-
import CustomModal from './CustomModal.svelte';
|
|
10
|
-
import DisableInEditMode from './DisableInEditMode.svelte';
|
|
11
|
-
import Divider from './Divider.svelte';
|
|
12
|
-
import Header from './Header.svelte';
|
|
13
|
-
import Iframe from './Iframe.svelte';
|
|
14
|
-
import ImageUpload from './ImageUpload.svelte';
|
|
15
|
-
import InjectComponent from './InjectComponent.svelte';
|
|
16
|
-
import { Input } from './input';
|
|
17
|
-
import { Layout } from './layout';
|
|
18
|
-
import Loader from './Loader.svelte';
|
|
19
|
-
import LoadingScreen from './LoadingScreen.svelte';
|
|
20
|
-
import Modal from './Modal.svelte';
|
|
21
|
-
import Navbar from './Navbar.svelte';
|
|
22
|
-
import NoSettingsNeeded from './NoSettingsNeeded.svelte';
|
|
23
|
-
import Notification from './Notification.svelte';
|
|
24
|
-
import PreviewBar from './PreviewBar.svelte';
|
|
25
|
-
import ScrollableContent from './ScrollableContent.svelte';
|
|
26
|
-
import Section from './Section.svelte';
|
|
27
|
-
import SelectBodyOrDivBlock from './SelectBodyOrDivBlock.svelte';
|
|
28
|
-
import Spacer from './Spacer.svelte';
|
|
29
|
-
import SpinnerPlusMinus from './SpinnerPlusMinus.svelte';
|
|
30
|
-
import SpinnerUpDown from './SpinnerUpDown.svelte';
|
|
31
|
-
import Switch from './switch/Switch.svelte';
|
|
32
|
-
import Tabs from './Tabs.svelte';
|
|
33
|
-
import { Text } from './text';
|
|
34
|
-
import ToggleItem from './ToggleItem.svelte';
|
|
35
|
-
import ToggleList from './ToggleList.svelte';
|
|
36
|
-
import { Tooltip } from './tooltip';
|
|
37
|
-
export { BreakpointItem, ButtonGroup, Checkbox, Clickable, Copy, CustomModal, DisableInEditMode, Notification, Divider, Header, Iframe, ImageUpload, InjectComponent, Layout, Loader, LoadingScreen, Modal, Navbar, NoSettingsNeeded, PreviewBar, ScrollableContent, Section, SelectBodyOrDivBlock, Spacer, SpinnerPlusMinus, SpinnerUpDown, Switch, Tabs, Text, ToggleItem, ToggleList, Tooltip, Input };
|
|
38
1
|
export * from './breakpoints';
|
|
39
|
-
export * from './
|
|
2
|
+
export * from './button';
|
|
3
|
+
export * from './button-group';
|
|
4
|
+
export * from './checkbox';
|
|
5
|
+
export * from './controlled-buttons';
|
|
6
|
+
export * from './copy-text';
|
|
7
|
+
export * from './divider';
|
|
8
|
+
export * from './iframe';
|
|
40
9
|
export * from './input';
|
|
41
10
|
export * from './layout';
|
|
11
|
+
export * from './modal';
|
|
12
|
+
export * from './notification';
|
|
13
|
+
export * from './section';
|
|
42
14
|
export * from './select';
|
|
15
|
+
export * from './shared';
|
|
43
16
|
export * from './switch';
|
|
44
17
|
export * from './text';
|
|
45
18
|
export * from './tooltip';
|
|
46
|
-
export
|
|
19
|
+
export { default as Loader } from './Loader.svelte';
|
|
20
|
+
export { default as LoadingScreen } from './LoadingScreen.svelte';
|
|
@@ -1,46 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All Re-usable Components
|
|
3
|
-
*/
|
|
4
|
-
import BreakpointItem from './breakpoints/BreakpointItem.svelte';
|
|
5
|
-
import ButtonGroup from './ButtonGroup.svelte';
|
|
6
|
-
import Checkbox from './Checkbox.svelte';
|
|
7
|
-
import { Clickable } from './clickable';
|
|
8
|
-
import Copy from './Copy.svelte';
|
|
9
|
-
import CustomModal from './CustomModal.svelte';
|
|
10
|
-
import DisableInEditMode from './DisableInEditMode.svelte';
|
|
11
|
-
import Divider from './Divider.svelte';
|
|
12
|
-
import Header from './Header.svelte';
|
|
13
|
-
import Iframe from './Iframe.svelte';
|
|
14
|
-
import ImageUpload from './ImageUpload.svelte';
|
|
15
|
-
import InjectComponent from './InjectComponent.svelte';
|
|
16
|
-
import { Input } from './input';
|
|
17
|
-
import { Layout } from './layout';
|
|
18
|
-
import Loader from './Loader.svelte';
|
|
19
|
-
import LoadingScreen from './LoadingScreen.svelte';
|
|
20
|
-
import Modal from './Modal.svelte';
|
|
21
|
-
import Navbar from './Navbar.svelte';
|
|
22
|
-
import NoSettingsNeeded from './NoSettingsNeeded.svelte';
|
|
23
|
-
import Notification from './Notification.svelte';
|
|
24
|
-
import PreviewBar from './PreviewBar.svelte';
|
|
25
|
-
import ScrollableContent from './ScrollableContent.svelte';
|
|
26
|
-
import Section from './Section.svelte';
|
|
27
|
-
import SelectBodyOrDivBlock from './SelectBodyOrDivBlock.svelte';
|
|
28
|
-
import Spacer from './Spacer.svelte';
|
|
29
|
-
import SpinnerPlusMinus from './SpinnerPlusMinus.svelte';
|
|
30
|
-
import SpinnerUpDown from './SpinnerUpDown.svelte';
|
|
31
|
-
import Switch from './switch/Switch.svelte';
|
|
32
|
-
import Tabs from './Tabs.svelte';
|
|
33
|
-
import { Text } from './text';
|
|
34
|
-
import ToggleItem from './ToggleItem.svelte';
|
|
35
|
-
import ToggleList from './ToggleList.svelte';
|
|
36
|
-
import { Tooltip } from './tooltip';
|
|
37
|
-
export { BreakpointItem, ButtonGroup, Checkbox, Clickable, Copy, CustomModal, DisableInEditMode, Notification, Divider, Header, Iframe, ImageUpload, InjectComponent, Layout, Loader, LoadingScreen, Modal, Navbar, NoSettingsNeeded, PreviewBar, ScrollableContent, Section, SelectBodyOrDivBlock, Spacer, SpinnerPlusMinus, SpinnerUpDown, Switch, Tabs, Text, ToggleItem, ToggleList, Tooltip, Input };
|
|
38
1
|
export * from './breakpoints';
|
|
39
|
-
export * from './
|
|
2
|
+
export * from './button';
|
|
3
|
+
export * from './button-group';
|
|
4
|
+
export * from './checkbox';
|
|
5
|
+
export * from './controlled-buttons';
|
|
6
|
+
export * from './copy-text';
|
|
7
|
+
export * from './divider';
|
|
8
|
+
export * from './iframe';
|
|
40
9
|
export * from './input';
|
|
41
10
|
export * from './layout';
|
|
11
|
+
export * from './modal';
|
|
12
|
+
export * from './notification';
|
|
13
|
+
export * from './section';
|
|
42
14
|
export * from './select';
|
|
15
|
+
export * from './shared';
|
|
43
16
|
export * from './switch';
|
|
44
17
|
export * from './text';
|
|
45
18
|
export * from './tooltip';
|
|
46
|
-
export
|
|
19
|
+
export { default as Loader } from './Loader.svelte';
|
|
20
|
+
export { default as LoadingScreen } from './LoadingScreen.svelte';
|
|
@@ -74,6 +74,26 @@ declare const meta: {
|
|
|
74
74
|
control: string;
|
|
75
75
|
description: string;
|
|
76
76
|
};
|
|
77
|
+
showSteppers: {
|
|
78
|
+
control: string;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
step: {
|
|
82
|
+
control: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
min: {
|
|
86
|
+
control: string;
|
|
87
|
+
description: string;
|
|
88
|
+
};
|
|
89
|
+
max: {
|
|
90
|
+
control: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
debounce: {
|
|
94
|
+
control: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
77
97
|
};
|
|
78
98
|
};
|
|
79
99
|
export default meta;
|
|
@@ -84,6 +104,14 @@ export declare const WithPlaceholder: Story;
|
|
|
84
104
|
export declare const EmailInput: Story;
|
|
85
105
|
export declare const PasswordInput: Story;
|
|
86
106
|
export declare const NumberInput: Story;
|
|
107
|
+
export declare const NumberWithSteppers: Story;
|
|
108
|
+
export declare const SteppersWithCustomStep: Story;
|
|
109
|
+
export declare const SteppersWithMinMax: Story;
|
|
110
|
+
export declare const SteppersWithDecimals: Story;
|
|
111
|
+
export declare const SteppersAtMinValue: Story;
|
|
112
|
+
export declare const SteppersAtMaxValue: Story;
|
|
113
|
+
export declare const SteppersDisabled: Story;
|
|
114
|
+
export declare const SteppersReadonly: Story;
|
|
87
115
|
export declare const Disabled: Story;
|
|
88
116
|
export declare const ReadOnly: Story;
|
|
89
117
|
export declare const Invalid: Story;
|
|
@@ -107,3 +135,8 @@ export declare const WithMinLength: Story;
|
|
|
107
135
|
export declare const InteractiveExample: Story;
|
|
108
136
|
export declare const ComplexExample: Story;
|
|
109
137
|
export declare const FormFieldExample: Story;
|
|
138
|
+
export declare const WithDebounce: Story;
|
|
139
|
+
export declare const FastDebounce: Story;
|
|
140
|
+
export declare const SlowDebounce: Story;
|
|
141
|
+
export declare const NoDebounce: Story;
|
|
142
|
+
export declare const DebounceWithSteppers: Story;
|