@splendidlabz/svelte 1.0.0 → 3.0.0-alpha.0
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/CHANGELOG.md +11 -0
- package/actions/index.js +2 -5
- package/actions/portal.js +1 -1
- package/actions/scroll-observer.js +1 -1
- package/common.js +1 -1
- package/components/Accordion/Accordion.svelte +67 -60
- package/components/Breadcrumbs/Crumb.svelte +1 -1
- package/components/Breadcrumbs/CrumbCustom.svelte +1 -1
- package/components/{BrowserFrame.svelte → BrowserFrame/BrowserFrame.svelte} +1 -1
- package/components/BrowserFrame/index.js +3 -0
- package/components/ContentList/ContentList-old.svelte +1 -1
- package/components/ContentList/ContentList.svelte +1 -1
- package/components/Copyright.svelte +19 -0
- package/components/Disclosure/Drawer/DrawerCloseButton.svelte +21 -15
- package/components/Disclosure/Drawer/DrawerContent.svelte +92 -128
- package/components/Disclosure/Drawer/DrawerTrigger.svelte +38 -20
- package/components/Disclosure/Dropdown/DropdownTrigger.svelte +1 -1
- package/components/Disclosure/Modal/exit-intent.js +1 -1
- package/components/Disclosure/Popover/PopoverCloseButton.svelte +1 -1
- package/components/Disclosure/disclosure.svelte.js +432 -0
- package/components/FancyList/FancyList.svelte +1 -1
- package/components/Form/Checkbox.svelte +3 -3
- package/components/Form/Checkboxes.svelte +1 -1
- package/components/Form/Combobox/combobox.js +6 -5
- package/components/Form/Radio.svelte +3 -3
- package/components/Form/Radios.svelte +1 -1
- package/components/Form/Select.svelte +4 -4
- package/components/Form/TextInput.svelte +88 -65
- package/components/Form/Textarea.svelte +87 -64
- package/components/Highlight.svelte +46 -0
- package/components/Icon/Icon.svelte +43 -0
- package/components/Icon/index.js +2 -0
- package/components/PerspectiveHover/PerspectiveHover.svelte +1 -1
- package/components/PerspectiveHover/perspective-hover.js +1 -1
- package/components/Portal.svelte +1 -1
- package/components/Spotlight/PointerPosition.js +1 -1
- package/components/Spotlight/Spotlight.svelte +1 -1
- package/components/Tabs/tabs.js +8 -11
- package/components/Video.svelte +1 -1
- package/components/Vimeo.svelte +1 -1
- package/components/Youtube.svelte +1 -1
- package/components/_shared/accessibility.js +1 -0
- package/components/effects/index.js +0 -0
- package/index.js +7 -4
- package/package.json +11 -12
- package/utils/index.js +2 -0
- package/utils/merge-opts.js +5 -0
- package/components/Disclosure/Drawer/DrawerContent-wrecked.svelte +0 -198
- package/components/Resizer/draggable.js +0 -23
- package/components/SVG/SVG.svelte +0 -120
- package/components/Tabs-Old/Tab.svelte +0 -9
- package/components/Tabs-Old/Tablist.svelte +0 -13
- package/components/Tabs-Old/Tabpanel.svelte +0 -10
- package/components/Tabs-Old/Tabpanels.svelte +0 -14
- package/components/Tabs-Old/Tabs.svelte +0 -83
- package/components/Tabs-Old/index.js +0 -7
- package/components/Tabs-Old/tabs.js +0 -306
- package/components/_shared/key.js +0 -1
- /package/components/{BrowserWithTabs.svelte → BrowserFrame/BrowserWithTabs.svelte} +0 -0
- /package/{components/_shared → utils}/transitions.js +0 -0
package/utils/index.js
ADDED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
<!-- Drawers are not working currently because we changed the Disclosure implementation. -->
|
|
2
|
-
<script>
|
|
3
|
-
import { splitObject, toStyleString } from '@splendidlabz/utils'
|
|
4
|
-
import Portal from '../../Portal.svelte'
|
|
5
|
-
import { transit } from '../../_shared/transitions.js'
|
|
6
|
-
import { disclosures } from '../disclosure-store.js'
|
|
7
|
-
import {
|
|
8
|
-
DISCLOSURE_CONTENT_OPT_KEYS,
|
|
9
|
-
disclosureContent,
|
|
10
|
-
} from '../disclosure.js'
|
|
11
|
-
import {
|
|
12
|
-
drawerContentOptKeys,
|
|
13
|
-
drawerPositionDefaultOpts,
|
|
14
|
-
getPosition,
|
|
15
|
-
getTransitionXY,
|
|
16
|
-
} from './drawer.js'
|
|
17
|
-
|
|
18
|
-
let klass = ''
|
|
19
|
-
let styleString = ''
|
|
20
|
-
export { klass as class }
|
|
21
|
-
export { styleString as style }
|
|
22
|
-
|
|
23
|
-
export let id
|
|
24
|
-
export let options = {}
|
|
25
|
-
|
|
26
|
-
const { picked: userDisclosureOpts } = splitObject(
|
|
27
|
-
options,
|
|
28
|
-
DISCLOSURE_CONTENT_OPT_KEYS,
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
const { picked: userDrawerOpts } = splitObject(options, drawerContentOptKeys)
|
|
32
|
-
|
|
33
|
-
const opts = {
|
|
34
|
-
...drawerPositionDefaultOpts[options.position],
|
|
35
|
-
...options,
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// if (options.transition === 'push') options.transition = push
|
|
39
|
-
|
|
40
|
-
let d
|
|
41
|
-
$: d = $disclosures.find(d => d.id === id)
|
|
42
|
-
|
|
43
|
-
const style = toStyleString(getPosition(opts)) + styleString
|
|
44
|
-
const { position, overlay, placement, blurOverlay } = opts
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<!-- This is one of the first things I'll switch to Svelte 5 for the snippet functionality. When switching, we might have to change to nanostores? -->
|
|
48
|
-
|
|
49
|
-
<!-- Note: We temporarily support aria-label and aria-labelledby accessibility properties only because {...$$restProps} breaks transitions — it stops inward transition from working from working. -->
|
|
50
|
-
{#if position === 'fixed' && overlay}
|
|
51
|
-
<Portal>
|
|
52
|
-
{#key visible}
|
|
53
|
-
<div
|
|
54
|
-
hidden={!visible}
|
|
55
|
-
class="DrawerOverlay"
|
|
56
|
-
class:DrawerOverlay-Blur={blurOverlay}
|
|
57
|
-
transition:transit|global={opts}
|
|
58
|
-
>
|
|
59
|
-
<div
|
|
60
|
-
{id}
|
|
61
|
-
hidden={!visible}
|
|
62
|
-
{style}
|
|
63
|
-
class="DrawerContent {klass}"
|
|
64
|
-
bind:this={d.nodes.contentNode}
|
|
65
|
-
use:disclosureContent={{ id: d.id }}
|
|
66
|
-
aria-label={$$restProps['aria-label']}
|
|
67
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
68
|
-
transition:transit|global={{
|
|
69
|
-
placement,
|
|
70
|
-
...getTransitionXY(placement),
|
|
71
|
-
...opts,
|
|
72
|
-
}}
|
|
73
|
-
>
|
|
74
|
-
<slot />
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
{/key}
|
|
78
|
-
</Portal>
|
|
79
|
-
{/if}
|
|
80
|
-
|
|
81
|
-
{#if position === 'fixed' && !overlay}
|
|
82
|
-
<Portal>
|
|
83
|
-
{#key visible}
|
|
84
|
-
<div
|
|
85
|
-
{id}
|
|
86
|
-
{style}
|
|
87
|
-
hidden={!visible}
|
|
88
|
-
class="DrawerContent {klass}"
|
|
89
|
-
bind:this={d.nodes.contentNode}
|
|
90
|
-
use:disclosureContent={{ id: d.id }}
|
|
91
|
-
aria-label={$$restProps['aria-label']}
|
|
92
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
93
|
-
transition:transit|global={{
|
|
94
|
-
placement,
|
|
95
|
-
...opts,
|
|
96
|
-
...getTransitionXY(placement),
|
|
97
|
-
}}
|
|
98
|
-
>
|
|
99
|
-
<slot />
|
|
100
|
-
</div>
|
|
101
|
-
{/key}
|
|
102
|
-
</Portal>
|
|
103
|
-
{/if}
|
|
104
|
-
|
|
105
|
-
{#if position === 'absolute' || position === 'static'}
|
|
106
|
-
{#key visible}
|
|
107
|
-
<div
|
|
108
|
-
{id}
|
|
109
|
-
{style}
|
|
110
|
-
hidden={!visible}
|
|
111
|
-
class="DrawerContent {klass}"
|
|
112
|
-
bind:this={d.nodes.contentNode}
|
|
113
|
-
use:disclosureContent={{ id: d.id }}
|
|
114
|
-
aria-label={$$restProps['aria-label']}
|
|
115
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
116
|
-
transition:transit|global={{
|
|
117
|
-
placement,
|
|
118
|
-
...opts,
|
|
119
|
-
...getTransitionXY(placement),
|
|
120
|
-
}}
|
|
121
|
-
>
|
|
122
|
-
<slot />
|
|
123
|
-
</div>
|
|
124
|
-
{/key}
|
|
125
|
-
{/if}
|
|
126
|
-
|
|
127
|
-
<!-- {#if d.state.show}
|
|
128
|
-
{#if strategy === 'static'}
|
|
129
|
-
<div
|
|
130
|
-
{id}
|
|
131
|
-
{style}
|
|
132
|
-
class="DrawerContent {klass}"
|
|
133
|
-
bind:this={d.nodes.contentNode}
|
|
134
|
-
use:disclosureContent={{ id: d.id }}
|
|
135
|
-
aria-label={$$restProps['aria-label']}
|
|
136
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
137
|
-
>
|
|
138
|
-
<slot />
|
|
139
|
-
</div>
|
|
140
|
-
{:else if strategy === 'absolute'}
|
|
141
|
-
<div
|
|
142
|
-
{id}
|
|
143
|
-
{style}
|
|
144
|
-
class="DrawerContent {klass}"
|
|
145
|
-
bind:this={d.nodes.contentNode}
|
|
146
|
-
use:disclosureContent={{ id: d.id }}
|
|
147
|
-
aria-label={$$restProps['aria-label']}
|
|
148
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
149
|
-
transition:fly|global={{
|
|
150
|
-
...transitionOpts,
|
|
151
|
-
...getTransitionXY(placement),
|
|
152
|
-
}}
|
|
153
|
-
>
|
|
154
|
-
<slot />
|
|
155
|
-
</div>
|
|
156
|
-
{:else if strategy === 'fixed' && !overlay}
|
|
157
|
-
<Portal>
|
|
158
|
-
<div
|
|
159
|
-
{id}
|
|
160
|
-
{style}
|
|
161
|
-
class="DrawerContent {klass}"
|
|
162
|
-
bind:this={d.nodes.contentNode}
|
|
163
|
-
use:disclosureContent={{ id: d.id }}
|
|
164
|
-
aria-label={$$restProps['aria-label']}
|
|
165
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
166
|
-
transition:fly|global={{
|
|
167
|
-
...transitionOpts,
|
|
168
|
-
...getTransitionXY(placement),
|
|
169
|
-
}}
|
|
170
|
-
>
|
|
171
|
-
<slot />
|
|
172
|
-
</div>
|
|
173
|
-
</Portal>
|
|
174
|
-
{:else if strategy === 'fixed' && overlay}
|
|
175
|
-
<Portal>
|
|
176
|
-
<div
|
|
177
|
-
class="DrawerOverlay {blurBackdrop ? 'DrawerOverlay-BlurBackdrop' : ''}"
|
|
178
|
-
transition:fade|global={transitionOpts}
|
|
179
|
-
>
|
|
180
|
-
<div
|
|
181
|
-
{id}
|
|
182
|
-
{style}
|
|
183
|
-
class="DrawerContent {klass}"
|
|
184
|
-
bind:this={d.nodes.contentNode}
|
|
185
|
-
use:disclosureContent={{ id: d.id }}
|
|
186
|
-
aria-label={$$restProps['aria-label']}
|
|
187
|
-
aria-labelledBy={$$restProps['aria-labelledBy']}
|
|
188
|
-
transition:fly|global={{
|
|
189
|
-
...transitionOpts,
|
|
190
|
-
...getTransitionXY(placement),
|
|
191
|
-
}}
|
|
192
|
-
>
|
|
193
|
-
<slot />
|
|
194
|
-
</div>
|
|
195
|
-
</div>
|
|
196
|
-
</Portal>
|
|
197
|
-
{/if}
|
|
198
|
-
{/if} -->
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export default function draggable(node, options) {
|
|
2
|
-
node.addEventListener('pointerdown', handlePointerDown)
|
|
3
|
-
node.addEventListener('pointermove', handlePointerMove)
|
|
4
|
-
node.addEventListener('pointerup', handlePointerUp)
|
|
5
|
-
|
|
6
|
-
function handlePointerDown(event) {}
|
|
7
|
-
|
|
8
|
-
function handlePointerMove(event) {}
|
|
9
|
-
|
|
10
|
-
function handlePointerUp(event) {}
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
destroy() {
|
|
14
|
-
node.removeEventListener('pointerdown', handlePointerDown)
|
|
15
|
-
node.removeEventListener('pointermove', handlePointerMove)
|
|
16
|
-
node.removeEventListener('pointerup', handlePointerUp)
|
|
17
|
-
},
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// function dispatchEvent(node, { name, detail }) {
|
|
22
|
-
// node.dispatchEvent(new CustomEvent(name, { detail }))
|
|
23
|
-
// }
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { getIcon, loadIcon } from '@iconify/svelte'
|
|
3
|
-
import { toStyleString } from '@splendidlabz/utils'
|
|
4
|
-
import { parse } from 'node-html-parser'
|
|
5
|
-
import { onMount } from 'svelte'
|
|
6
|
-
|
|
7
|
-
export let icon
|
|
8
|
-
export let name = ''
|
|
9
|
-
export let style = ''
|
|
10
|
-
|
|
11
|
-
if (typeof style === 'object') style = toStyleString(style)
|
|
12
|
-
|
|
13
|
-
// TODO: Add aria-hidden by default
|
|
14
|
-
let iconify
|
|
15
|
-
let iconData
|
|
16
|
-
let innerHTML
|
|
17
|
-
let attributes = {
|
|
18
|
-
role: 'img',
|
|
19
|
-
xmlns: 'http://www.w3.org/2000/svg',
|
|
20
|
-
...$$restProps,
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
icon = icon || name
|
|
24
|
-
icon = icon.trim() // Remove whitespace
|
|
25
|
-
|
|
26
|
-
if (name) console.log('name is deprecated. Please change to icon')
|
|
27
|
-
|
|
28
|
-
// If there is an icon set, we use Iconify.
|
|
29
|
-
// This stores the icon in localStorage after loading it for the first time. Subsequent loads will use the localStorage cached version.
|
|
30
|
-
if (icon.includes(':')) {
|
|
31
|
-
iconify = true
|
|
32
|
-
|
|
33
|
-
attributes = {
|
|
34
|
-
width: '1em',
|
|
35
|
-
height: '1em',
|
|
36
|
-
...attributes,
|
|
37
|
-
class: `${icon.split(':')[1]} ${attributes.class || ''}`,
|
|
38
|
-
style,
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Populates icon data if the icon is in cache
|
|
42
|
-
iconData = getIcon(icon)
|
|
43
|
-
|
|
44
|
-
// If icon is not in cache, loads the icon from Iconify
|
|
45
|
-
if (!iconData) onMount(async _ => (iconData = await loadIcon(icon)))
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
$: if (iconData) {
|
|
49
|
-
attributes.viewBox = `0 0 ${iconData.width} ${iconData.height}`
|
|
50
|
-
innerHTML = iconData.body
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Otherwise we grab the SVG from the src folder
|
|
54
|
-
if (!iconify) {
|
|
55
|
-
const files = {
|
|
56
|
-
...import.meta.glob('/src/**/*.svg', {
|
|
57
|
-
eager: true,
|
|
58
|
-
query: 'raw',
|
|
59
|
-
}),
|
|
60
|
-
...import.meta.glob('/public/**/*.svg', {
|
|
61
|
-
eager: true,
|
|
62
|
-
query: 'raw',
|
|
63
|
-
}),
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Find the SVG
|
|
67
|
-
const file = Object.keys(files).find(file => {
|
|
68
|
-
const basename = file.split('/').pop()
|
|
69
|
-
return basename === `${icon}.svg`
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
if (!file) {
|
|
73
|
-
throw new Error(`${icon}.svg not found`)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const root = parse(files[file].default)
|
|
77
|
-
const svg = root.querySelector('svg')
|
|
78
|
-
innerHTML = svg.childNodes.join('')
|
|
79
|
-
|
|
80
|
-
// If SVG is missing width, height, or viewbox, add them
|
|
81
|
-
const svgAttributes = svg.attributes
|
|
82
|
-
const { width, height, viewBox } = svgAttributes
|
|
83
|
-
|
|
84
|
-
if ((!width || !height) && !viewBox) {
|
|
85
|
-
throw new Error(
|
|
86
|
-
`SVG ${icon} must contain a width, height, or viewBox attribute`,
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
if (!width || !height) {
|
|
91
|
-
const [viewBoxWidth, viewBoxHeight] = viewBox.split(' ').slice(2)
|
|
92
|
-
svgAttributes.width = viewBoxWidth
|
|
93
|
-
svgAttributes.height = viewBoxHeight
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (!viewBox) {
|
|
97
|
-
svgAttributes.viewBox = `0 0 ${width} ${height}`
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Arrange attributes
|
|
101
|
-
attributes = {
|
|
102
|
-
...svgAttributes,
|
|
103
|
-
...attributes,
|
|
104
|
-
class: `${svg.classNames} ${$$restProps.class || ''}`,
|
|
105
|
-
style,
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
</script>
|
|
109
|
-
|
|
110
|
-
{#if iconify}
|
|
111
|
-
{#if innerHTML}
|
|
112
|
-
<svg {...attributes}> {@html innerHTML} </svg>
|
|
113
|
-
{:else}
|
|
114
|
-
<svg {...attributes} />
|
|
115
|
-
{/if}
|
|
116
|
-
{/if}
|
|
117
|
-
|
|
118
|
-
{#if !iconify}
|
|
119
|
-
<svg {...attributes}> {@html innerHTML} </svg>
|
|
120
|
-
{/if}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { getContext } from 'svelte'
|
|
3
|
-
|
|
4
|
-
export let klass = ''
|
|
5
|
-
export { klass as class }
|
|
6
|
-
|
|
7
|
-
const context = getContext('Tabs')
|
|
8
|
-
const { tablist } = context
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<div class="Tablist {klass}" role="tablist" use:tablist>
|
|
12
|
-
<slot />
|
|
13
|
-
</div>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { key } from '../_shared/key'
|
|
3
|
-
import { getContext } from 'svelte'
|
|
4
|
-
|
|
5
|
-
export let klass = ''
|
|
6
|
-
export { klass as class }
|
|
7
|
-
|
|
8
|
-
const context = getContext('Tabs')
|
|
9
|
-
const { tabpanels } = context
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<div class="Tabpanels {klass}" use:tabpanels>
|
|
13
|
-
<slot />
|
|
14
|
-
</div>
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { setContext } from 'svelte'
|
|
3
|
-
|
|
4
|
-
import { resizeObserver } from '../../actions'
|
|
5
|
-
import createTabs from './tabs'
|
|
6
|
-
|
|
7
|
-
let klass = ''
|
|
8
|
-
export { klass as class }
|
|
9
|
-
|
|
10
|
-
export let activeTab = 0
|
|
11
|
-
export let orientation = 'horizontal'
|
|
12
|
-
export let placement = 'left'
|
|
13
|
-
export let scrollBehaviour = 'auto'
|
|
14
|
-
export let mode = 'tab'
|
|
15
|
-
export let breakpoints = null
|
|
16
|
-
|
|
17
|
-
let _breakpoints = null
|
|
18
|
-
let _shouldObserve = false
|
|
19
|
-
|
|
20
|
-
if (breakpoints) {
|
|
21
|
-
_shouldObserve = true
|
|
22
|
-
_breakpoints = Object.entries(breakpoints).map(([key, value]) => {
|
|
23
|
-
return { breakpoint: parseFloat(key), value }
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const { tabs, tablist, tabpanels, updateTabStructure } = createTabs({
|
|
28
|
-
orientation,
|
|
29
|
-
activeTab,
|
|
30
|
-
placement,
|
|
31
|
-
scrollBehaviour,
|
|
32
|
-
breakpoints,
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
setContext('Tabs', {
|
|
36
|
-
tablist,
|
|
37
|
-
tabpanels,
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
// Orientation change
|
|
41
|
-
function observe(event) {
|
|
42
|
-
const { entry } = event.detail
|
|
43
|
-
const { width } = entry.contentRect
|
|
44
|
-
if (!_shouldObserve) return
|
|
45
|
-
|
|
46
|
-
for (let i = _breakpoints.length - 1; i >= 0; i--) {
|
|
47
|
-
const { breakpoint, value } = _breakpoints[i]
|
|
48
|
-
if (width >= breakpoint) {
|
|
49
|
-
updateTabs(value)
|
|
50
|
-
break
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
function updateTabs(config) {
|
|
56
|
-
// Default values
|
|
57
|
-
config = {
|
|
58
|
-
mode: 'tab',
|
|
59
|
-
placement: 'left',
|
|
60
|
-
orientation: 'horizontal',
|
|
61
|
-
...config,
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
mode = config.mode
|
|
65
|
-
placement = config.placement
|
|
66
|
-
orientation = config.orientation
|
|
67
|
-
updateTabStructure(config)
|
|
68
|
-
}
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<div
|
|
72
|
-
class="Tabs {klass}"
|
|
73
|
-
{orientation}
|
|
74
|
-
{placement}
|
|
75
|
-
{mode}
|
|
76
|
-
{...$$restProps}
|
|
77
|
-
use:tabs
|
|
78
|
-
on:change
|
|
79
|
-
use:resizeObserver={{ shouldObserve: _shouldObserve }}
|
|
80
|
-
on:resize={observe}
|
|
81
|
-
>
|
|
82
|
-
<slot />
|
|
83
|
-
</div>
|