@splendidlabz/svelte 1.0.0 → 3.0.0-alpha.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.
Files changed (63) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/actions/index.js +2 -5
  3. package/actions/portal.js +1 -1
  4. package/actions/scroll-observer.js +1 -1
  5. package/common.js +1 -1
  6. package/components/Accordion/Accordion.svelte +67 -60
  7. package/components/Breadcrumbs/Crumb.svelte +1 -1
  8. package/components/Breadcrumbs/CrumbCustom.svelte +1 -1
  9. package/components/{BrowserFrame.svelte → BrowserFrame/BrowserFrame.svelte} +1 -1
  10. package/components/BrowserFrame/index.js +3 -0
  11. package/components/ContentList/ContentList-old.svelte +1 -1
  12. package/components/ContentList/ContentList.svelte +1 -1
  13. package/components/Copyright.svelte +19 -0
  14. package/components/Disclosure/Drawer/DrawerCloseButton.svelte +21 -15
  15. package/components/Disclosure/Drawer/DrawerContent.svelte +92 -128
  16. package/components/Disclosure/Drawer/DrawerTrigger.svelte +38 -20
  17. package/components/Disclosure/Dropdown/DropdownTrigger.svelte +1 -1
  18. package/components/Disclosure/Modal/exit-intent.js +1 -1
  19. package/components/Disclosure/Popover/PopoverCloseButton.svelte +1 -1
  20. package/components/Disclosure/disclosure.svelte.js +432 -0
  21. package/components/FancyList/FancyList.svelte +1 -1
  22. package/components/Form/Checkbox.svelte +3 -3
  23. package/components/Form/Checkboxes.svelte +1 -1
  24. package/components/Form/Combobox/combobox.js +6 -5
  25. package/components/Form/Hidden.svelte +3 -13
  26. package/components/Form/HiddenInput.svelte +16 -0
  27. package/components/Form/Radio.svelte +3 -3
  28. package/components/Form/Radios.svelte +1 -1
  29. package/components/Form/Select.svelte +4 -4
  30. package/components/Form/TextInput.svelte +88 -65
  31. package/components/Form/Textarea.svelte +87 -64
  32. package/components/Form/index.js +2 -1
  33. package/components/Highlight.svelte +46 -0
  34. package/components/Icon/Icon.svelte +43 -0
  35. package/components/Icon/index.js +2 -0
  36. package/components/PerspectiveHover/PerspectiveHover.svelte +1 -1
  37. package/components/PerspectiveHover/perspective-hover.js +1 -1
  38. package/components/Portal.svelte +1 -1
  39. package/components/Spotlight/PointerPosition.js +1 -1
  40. package/components/Spotlight/Spotlight.svelte +1 -1
  41. package/components/Tabs/tabs.js +8 -11
  42. package/components/Video.svelte +1 -1
  43. package/components/Vimeo.svelte +1 -1
  44. package/components/Youtube.svelte +1 -1
  45. package/components/_shared/accessibility.js +1 -0
  46. package/components/effects/index.js +0 -0
  47. package/index.js +7 -4
  48. package/package.json +11 -12
  49. package/utils/index.js +2 -0
  50. package/utils/merge-opts.js +5 -0
  51. package/components/Disclosure/Drawer/DrawerContent-wrecked.svelte +0 -198
  52. package/components/Resizer/draggable.js +0 -23
  53. package/components/SVG/SVG.svelte +0 -120
  54. package/components/Tabs-Old/Tab.svelte +0 -9
  55. package/components/Tabs-Old/Tablist.svelte +0 -13
  56. package/components/Tabs-Old/Tabpanel.svelte +0 -10
  57. package/components/Tabs-Old/Tabpanels.svelte +0 -14
  58. package/components/Tabs-Old/Tabs.svelte +0 -83
  59. package/components/Tabs-Old/index.js +0 -7
  60. package/components/Tabs-Old/tabs.js +0 -306
  61. package/components/_shared/key.js +0 -1
  62. /package/components/{BrowserWithTabs.svelte → BrowserFrame/BrowserWithTabs.svelte} +0 -0
  63. /package/{components/_shared → utils}/transitions.js +0 -0
@@ -1,7 +1,7 @@
1
1
  <script>
2
2
  import { toTitle } from '@splendidlabz/utils'
3
3
  import { randomString } from '@splendidlabz/utils/dom'
4
- import SVG from '../SVG/SVG.svelte'
4
+ import SVG from '../Icon/Icon.svelte'
5
5
  import Hidden from './Hidden.svelte'
6
6
 
7
7
  let klass = ''
@@ -66,9 +66,9 @@
66
66
  }
67
67
  </script>
68
68
 
69
- <div class="TextField Select {klass}">
70
- <label class="Label" for={id}>{label}</label>
71
- <div class="InputGroup items-center" class:Stack={!multiple}>
69
+ <div class="text-field Select {klass}">
70
+ <label class="label" for={id}>{label}</label>
71
+ <div class="input-group items-center" class:Stack={!multiple}>
72
72
  {#if !multiple}
73
73
  <select {...props} bind:value={selected} on:change {...$$restProps}>
74
74
  {#each items as option}
@@ -1,29 +1,47 @@
1
1
  <script>
2
2
  import { randomString } from '@splendidlabz/utils/dom'
3
3
  import { useActions } from '../_shared/use-actions'
4
- let klass = ''
5
- export { klass as class }
6
- export let style = null
7
- export let labelClass = ''
8
- export let hintClass = ''
9
- export let errorClass = ''
10
- export let inputGroupClass = ''
11
- export let fieldClass = ''
12
4
 
13
- export let type = 'text'
14
- export let id = null
15
- export let name
16
- export let label = ''
17
- export let hint = null
18
- export let error = null
19
- export let value = null
20
- export let placeholder = null
21
- export let disabled = null
22
- export let readonly = null
23
- export let ref = null
24
- export let actions = []
25
- export let Stack = false
5
+ let { value = $bindable(''), ref = $bindable(null), ...p } = $props()
6
+ const {
7
+ // Classes
8
+ class: klass,
9
+ style,
10
+ labelClass,
11
+ hintClass,
12
+ errorClass,
13
+ inputGroupClass,
14
+ fieldClass,
26
15
 
16
+ // Slots
17
+ before,
18
+ after,
19
+ children,
20
+
21
+ // Options and props
22
+ id = randomString(8),
23
+ type = 'text',
24
+ name,
25
+ label = '',
26
+ labelVisible = true,
27
+ hint = null,
28
+ error = null,
29
+ disabled = null,
30
+ readonly = null,
31
+ actions = [], // Might not need this anymore in S5.
32
+ ...rest
33
+ } = p
34
+
35
+ // For this binding, does it send upwards?? Need testing
36
+
37
+ // IDs for aria-describedby
38
+ const hintId = hint ? id + '-hint' : ''
39
+ const errorId = error ? id + '-error' : ''
40
+ const describedBy = `${hintId} ${errorId}`.trim() || null
41
+
42
+ // ========================================
43
+ // Check for errors
44
+ // ========================================
27
45
  if (!name) throw new Error('TextInput requires a name')
28
46
 
29
47
  const SUPPORTED_TYPES = ['text', 'email', 'password', 'search', 'url', 'tel']
@@ -32,56 +50,61 @@
32
50
  if (!SUPPORTED_TYPES.includes(type)) {
33
51
  throw new Error(`Invalid type: ${type}`)
34
52
  }
35
-
36
- // IDs for aria-describedby
37
- id = id || randomString(8)
38
- const hintId = hint ? id + '-hint' : ''
39
- const errorId = error ? id + '-error' : ''
40
- const describedBy = `${hintId} ${errorId}`.trim() || null
41
53
  </script>
42
54
 
43
- <div class="TextField TextInput {klass}" {style} class:disabled class:readonly>
44
- {#if label}
45
- <label class="Label {labelClass}" for={id}>{label}</label>
55
+ <!-- Snippets -->
56
+ {#snippet input()}
57
+ <input
58
+ {...rest}
59
+ {id}
60
+ class="input {fieldClass}"
61
+ {name}
62
+ {...{ type }}
63
+ {disabled}
64
+ {readonly}
65
+ aria-describedby={describedBy}
66
+ aria-invalid={error ? 'true' : null}
67
+ bind:this={ref}
68
+ bind:value
69
+ use:useActions={actions}
70
+ />
71
+ {/snippet}
72
+
73
+ <!-- Output -->
74
+ <div
75
+ class="input-container text-input {klass}"
76
+ {style}
77
+ class:disabled
78
+ class:readonly
79
+ aria-label={!labelVisible && label}
80
+ >
81
+ {#if label && labelVisible}
82
+ <label class="label input-meta {labelClass}" for={id}>{label}</label>
46
83
  {/if}
47
84
  {#if hint}
48
- <div id={hintId} class="Hint {hintClass}">{hint}</div>
85
+ <div id={hintId} class="hint input-meta {hintClass}">{hint}</div>
49
86
  {/if}
50
87
  {#if error}
51
- <output id={errorId} class="Error {errorClass}" for={id}>{error}</output>
88
+ <output id={errorId} class="error input-meta {errorClass}" for={id}
89
+ >{error}</output
90
+ >
52
91
  {/if}
53
92
 
54
- <div class="InputGroup {inputGroupClass}" class:Stack>
55
- {#if $$slots.before}
56
- <slot name="before" />
57
- {#if !Stack}<div class="Divider-vertical"></div>{/if}
58
- {/if}
59
- <input
60
- {id}
61
- class="Field {fieldClass}"
62
- {name}
63
- {...{ type }}
64
- {placeholder}
65
- {disabled}
66
- {readonly}
67
- aria-describedby={describedBy}
68
- aria-invalid={error ? 'true' : null}
69
- on:input
70
- on:change
71
- on:focus
72
- on:blur
73
- on:click
74
- on:keydown
75
- on:keyup
76
- on:keypress
77
- bind:this={ref}
78
- bind:value
79
- use:useActions={actions}
80
- {...$$restProps}
81
- />
82
- {#if $$slots.after}
83
- {#if !Stack}<div class="Divider-vertical"></div>{/if}
84
- <slot name="after" />
85
- {/if}
86
- </div>
93
+ {#if before || after}
94
+ <div class="input-group {inputGroupClass}">
95
+ {#if before}
96
+ {@render before()}
97
+ <div class="divider-vertical"></div>
98
+ {/if}
99
+
100
+ {@render input()}
101
+
102
+ {#if after}
103
+ <div class="divider-vertical"></div>
104
+ {@render after()}
105
+ {/if}
106
+ </div>
107
+ {:else}
108
+ {@render input()}
109
+ {/if}
87
110
  </div>
@@ -1,103 +1,126 @@
1
1
  <script>
2
2
  import { randomString } from '@splendidlabz/utils/dom'
3
+ import { mergeOpts } from '../../utils'
3
4
  import { useActions } from '../_shared/use-actions'
4
5
 
5
- let klass = ''
6
- export { klass as class }
7
- export let style = null
8
- export let labelClass = ''
9
- export let hintClass = ''
10
- export let errorClass = ''
11
- export let inputGroupClass = ''
12
- export let fieldClass = ''
6
+ let { value = $bindable(''), ref = $bindable(null), ...p } = $props()
7
+ const {
8
+ class: klass,
9
+ style,
10
+ labelClass,
11
+ hintClass,
12
+ errorClass,
13
+ inputGroupClass,
14
+ fieldClass,
13
15
 
14
- export let name
15
- export let id = null
16
- export let label = ''
17
- export let hint = null
18
- export let error = null
19
- export let value = null
20
- export let placeholder = null
21
- export let disabled = null
22
- export let readonly = null
23
- export let ref = null
24
- export let actions = []
16
+ // Slots
17
+ before,
18
+ after,
19
+ children,
20
+ } = p
25
21
 
26
- export let options = { autogrow: false }
22
+ const {
23
+ // Options and props
24
+ id = randomString(8),
25
+ name,
27
26
 
28
- if (!name) throw new Error('Textarea requires a name')
27
+ label = '',
28
+ hint = null,
29
+ error = null,
30
+ disabled = null,
31
+ readonly = null,
32
+ actions = [],
33
+ stack = false,
34
+
35
+ // Features
36
+ oninput = null,
37
+ autogrow = false,
38
+ ...rest
39
+ } = mergeOpts(p) // Better name would be better to extract options...
29
40
 
30
41
  // IDs for aria-describedby
31
- id = id || randomString(8)
32
42
  const hintId = hint ? id + '-hint' : ''
33
43
  const errorId = error ? id + '-error' : ''
34
44
  const describedBy = `${hintId} ${errorId}`.trim() || null
35
45
 
36
- let dummyRef
46
+ // ========================================
47
+ // Check for errors
48
+ // ========================================
49
+ if (!name) throw new Error('Textarea requires a name')
37
50
 
51
+ // ========================================
52
+ // Extra Features
53
+ // ========================================
38
54
  // Think about auto-growing textarea
55
+ let dummyRef = $state(null)
39
56
  function autoGrow(event) {
40
- if (options.autogrow) {
57
+ if (autogrow) {
41
58
  dummyRef.textContent = event.target.value
42
59
  const last = event.target.value.slice(-1)
43
60
  if (last === '\n') dummyRef.textContent += '&nbsp;'
44
61
  }
62
+
63
+ // Fire oninput event too... if any
64
+ if (oninput) oninput(event)
45
65
  }
46
66
  </script>
47
67
 
68
+ <!-- Snippets -->
69
+ {#snippet textarea()}
70
+ <textarea
71
+ {...rest}
72
+ {id}
73
+ class="input {fieldClass}"
74
+ {name}
75
+ {disabled}
76
+ {readonly}
77
+ aria-describedby={describedBy}
78
+ aria-invalid={error ? 'true' : null}
79
+ oninput={autoGrow}
80
+ bind:this={ref}
81
+ bind:value
82
+ use:useActions={actions}
83
+ ></textarea>
84
+ {/snippet}
85
+
48
86
  <div
49
- class="TextField Textarea {klass}"
87
+ class="input-container text-field textarea {klass}"
50
88
  class:disabled
51
89
  class:readonly
52
- class:Textarea-autogrow={options.autogrow}
90
+ class:textarea-autogrow={autogrow}
53
91
  {style}
54
92
  >
55
93
  {#if label}
56
- <label class="Label {labelClass}" for={id}>{label}</label>
94
+ <label class="label input-meta {labelClass}" for={id}>{label}</label>
57
95
  {/if}
58
96
  {#if hint}
59
- <div id={hintId} class="Hint {hintClass}">{hint}</div>
97
+ <div id={hintId} class="hint input-meta {hintClass}">{hint}</div>
60
98
  {/if}
61
99
  {#if error}
62
- <output id={errorId} class="Error {errorClass}" for={id}>{error}</output>
100
+ <output id={errorId} class="error input-meta {errorClass}" for={id}
101
+ >{error}</output
102
+ >
63
103
  {/if}
64
104
 
65
- <div class="InputGroup {inputGroupClass}">
66
- {#if $$slots.before}
67
- <slot name="before" />
68
- <div class="Divider-vertical"></div>
69
- {/if}
105
+ {#if before || after}
106
+ <div class="input-group {inputGroupClass}">
107
+ {#if before}
108
+ {@render before()}
109
+ <div class="divider-vertical"></div>
110
+ {/if}
70
111
 
71
- <div class="Field Stack">
72
- <div class="Replica Field" bind:this={dummyRef}></div>
112
+ {@render textarea()}
73
113
 
74
- <textarea
75
- {id}
76
- class="Field {fieldClass}"
77
- {name}
78
- {placeholder}
79
- {disabled}
80
- {readonly}
81
- aria-describedby={describedBy}
82
- aria-invalid={error ? 'true' : null}
83
- on:input={autoGrow}
84
- on:change
85
- on:focus
86
- on:blur
87
- on:click
88
- on:keydown
89
- on:keyup
90
- on:keypress
91
- bind:this={ref}
92
- bind:value
93
- use:useActions={actions}
94
- {...$$restProps}
95
- />
114
+ {#if after}
115
+ <div class="divider-vertical"></div>
116
+ {@render after()}
117
+ {/if}
96
118
  </div>
97
-
98
- {#if $$slots.after}
99
- <div class="Divider-vertical"></div>
100
- <slot name="after" />
101
- {/if}
102
- </div>
119
+ {:else}
120
+ <div class="stack">
121
+ <!-- Autogrow textarea cannot be used together with input-group cos it makes the CSS very complex -->
122
+ <div class="replica-field" bind:this={dummyRef}></div>
123
+ {@render textarea()}
124
+ </div>
125
+ {/if}
103
126
  </div>
@@ -4,9 +4,10 @@ export { default as Checkboxes } from './Checkboxes.svelte'
4
4
  export * from './Combobox/index.js'
5
5
  export { default as Form } from './Form.svelte'
6
6
  export { default as Hidden } from './Hidden.svelte'
7
+ export { default as HiddenInput } from './HiddenInput.svelte'
7
8
  export { default as Radio } from './Radio.svelte'
8
9
  export { default as Radios } from './Radios.svelte'
9
10
  export { default as Select } from './Select.svelte'
10
11
  export { default as Switch } from './Switch.svelte'
11
- export { default as TextInput } from './TextInput.svelte'
12
12
  export { default as Textarea } from './Textarea.svelte'
13
+ export { default as TextInput } from './TextInput.svelte'
@@ -0,0 +1,46 @@
1
+ <script>
2
+ let klass
3
+ export { klass as class }
4
+ </script>
5
+
6
+ <span class="Highlight {klass}"><slot /></span>
7
+
8
+ <style lang="scss">
9
+ .Highlight {
10
+ --color: var(--yellow-050);
11
+ // For Body Copy
12
+ background-color: var(--color);
13
+ }
14
+
15
+ // .Highlight.mHeadline {
16
+ // // Goes until baseline.
17
+ // // Depends on line cap.
18
+ // line-height: 1;
19
+ // background-image: linear-gradient(
20
+ // transparent 0.25em,
21
+ // var(--color) 0.25em,
22
+ // var(--color) 1em,
23
+ // transparent 1em
24
+ // );
25
+ // }
26
+
27
+ [color='red'] {
28
+ --color: var(--red-050);
29
+ }
30
+
31
+ [color='yellow'] {
32
+ --color: var(--yellow-050);
33
+ }
34
+
35
+ [color='darkYellow'] {
36
+ --color: var(--yellow-300);
37
+ }
38
+
39
+ [color='green'] {
40
+ --color: var(--green-050);
41
+ }
42
+
43
+ [color='blue'] {
44
+ --color: var(--blue-050);
45
+ }
46
+ </style>
@@ -0,0 +1,43 @@
1
+ <script>
2
+ import { getIcon, loadIcon } from '@iconify/svelte'
3
+ import { toStyleString } from '@splendidlabz/utils'
4
+ import { onMount } from 'svelte'
5
+
6
+ export let icon
7
+ export let style = ''
8
+
9
+ if (typeof style === 'object') style = toStyleString(style)
10
+ if (!icon) throw new Error('icon property is required')
11
+
12
+ let iconData
13
+ let innerHTML
14
+ let attributes = {
15
+ class: `${icon.split(':')[1]}`,
16
+ role: 'img',
17
+ xmlns: 'http://www.w3.org/2000/svg',
18
+ width: '1em',
19
+ height: '1em',
20
+ style,
21
+ ...$$restProps,
22
+ }
23
+
24
+ // If there is an icon set, we use Iconify.
25
+ // This stores the icon in localStorage after loading it for the first time. Subsequent loads will use the localStorage cached version.
26
+
27
+ // Populates icon data if the icon is in cache
28
+ iconData = getIcon(icon)
29
+
30
+ // If icon is not in cache, loads the icon from Iconify
31
+ if (!iconData) onMount(async _ => (iconData = await loadIcon(icon)))
32
+
33
+ $: if (iconData) {
34
+ attributes.viewBox = `0 0 ${iconData.width} ${iconData.height}`
35
+ innerHTML = iconData.body
36
+ }
37
+ </script>
38
+
39
+ {#if innerHTML}
40
+ <svg {...attributes}> {@html innerHTML} </svg>
41
+ {:else}
42
+ <svg {...attributes} />
43
+ {/if}
@@ -0,0 +1,2 @@
1
+ import Icon from './Icon.svelte'
2
+ export { Icon }
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import perspectiveHover from './perspective-hover.js'
2
+ import { perspectiveHover } from './perspective-hover.js'
3
3
  let klass
4
4
  export { klass as class }
5
5
  </script>
@@ -1,6 +1,6 @@
1
1
  /* eslint-env browser */
2
2
  // Maybe the sensitivity and perspective values can be written directly in Svelte so we don't have to use Custom Properties
3
- export default function perspectiveHover(node) {
3
+ export function perspectiveHover(node) {
4
4
  const computedStyle = getComputedStyle(node)
5
5
  const sensitivity = computedStyle.getPropertyValue('--sensitivity')
6
6
  const perspective = computedStyle.getPropertyValue('--perspective')
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { onMount, onDestroy } from 'svelte'
2
+ import { onDestroy, onMount } from 'svelte'
3
3
 
4
4
  let klass = ''
5
5
  export { klass as class } // Allows you to specify portal class
@@ -1,5 +1,5 @@
1
1
  /* eslint-env browser */
2
- export default function PointerPosition(node) {
2
+ export function PointerPosition(node) {
3
3
  node.addEventListener('pointerenter', enter)
4
4
  node.addEventListener('pointerleave', leave)
5
5
  node.addEventListener('pointermove', setXY)
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import PointerPosition from './PointerPosition.js'
2
+ import { PointerPosition } from './PointerPosition.js'
3
3
  let klass
4
4
  export { klass as class }
5
5
  </script>
@@ -1,5 +1,3 @@
1
- import LayoutScripts from '@splendidlabz/layouts/scripts/all'
2
- import { omitEmpty } from '@splendidlabz/utils'
3
1
  import {
4
2
  Focusable,
5
3
  addListeners,
@@ -10,6 +8,9 @@ import {
10
8
  } from '@splendidlabz/utils/dom'
11
9
  import { initTab, updateTab } from './tab-store'
12
10
 
11
+ import LayoutScripts from '@splendidlabz/styles/scripts/all'
12
+ import { omitEmpty } from '@splendidlabz/utils'
13
+
13
14
  export const DEFAULT_TABLIST_OPTIONS = {
14
15
  state: {
15
16
  placement: 'top', // top, left, right
@@ -36,11 +37,11 @@ export function tablist(node, props) {
36
37
 
37
38
  // The filter allows us to nest tabs in tabs
38
39
  const tablistItems = Array.from(node.querySelectorAll('[role="tab"]')).filter(
39
- tab => tab.closest('.Tablist') === node,
40
+ tab => tab.closest('.Tablist') === node
40
41
  )
41
42
  let activeTabIndex
42
43
  activeTabIndex = tablistItems.findIndex(tab =>
43
- tab.hasAttribute('aria-selected'),
44
+ tab.hasAttribute('aria-selected')
44
45
  )
45
46
  if (activeTabIndex === -1) activeTabIndex = 0
46
47
 
@@ -129,12 +130,12 @@ export function tabpanels(node, props) {
129
130
 
130
131
  // The filter allows us to nest tabs in tabs
131
132
  const tabpanelItems = Array.from(
132
- node.querySelectorAll('[role="tabpanel"]'),
133
+ node.querySelectorAll('[role="tabpanel"]')
133
134
  ).filter(tab => tab.closest('.Tabpanels') === node)
134
135
 
135
136
  let activeTabIndex
136
137
  activeTabIndex = tabpanelItems.findIndex(
137
- tabpanel => !tabpanel.hasAttribute('hidden'),
138
+ tabpanel => !tabpanel.hasAttribute('hidden')
138
139
  )
139
140
  if (activeTabIndex === -1) activeTabIndex = 0
140
141
 
@@ -223,11 +224,7 @@ function setInitialState(Tab) {
223
224
  export function selectTab(
224
225
  Tab,
225
226
  index,
226
- {
227
- shouldFocusOnTab = true,
228
- shouldUpdateHash = true,
229
- shouldScroll = true,
230
- } = {},
227
+ { shouldFocusOnTab = true, shouldUpdateHash = true, shouldScroll = true } = {}
231
228
  ) {
232
229
  Tab.state.activeTabIndex = index
233
230
  updateTab(Tab)
@@ -31,7 +31,7 @@
31
31
  <a href={src}>this link</a>
32
32
  to watch the video.
33
33
  </video>
34
- <figcaption aria-hidden>{caption}</figcaption>
34
+ <figcaption aria-hidden="true">{caption}</figcaption>
35
35
  </figure>
36
36
  {/if}
37
37
 
@@ -14,5 +14,5 @@
14
14
  allowfullscreen
15
15
  frameborder="0"
16
16
  allow="autoplay; fullscreen; picture-in-picture"
17
- />
17
+ ></iframe>
18
18
  </div>
@@ -11,5 +11,5 @@
11
11
  frameborder="0"
12
12
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
13
13
  allowfullscreen
14
- />
14
+ ></iframe>
15
15
  </div>
@@ -1,3 +1,4 @@
1
+ // Popver is still using this
1
2
  export function hasLabel(label, labelledBy) {
2
3
  if (label || labelledBy) return true
3
4
  }
File without changes
package/index.js CHANGED
@@ -1,9 +1,14 @@
1
+ export * from './components/Disclosure/index.js'
2
+ export * from './components/Icon/index.js'
3
+
4
+ // Not tested yet
1
5
  export * from './components/Accordion/index.js'
2
6
  export * from './components/Breadcrumbs/index.js'
7
+ export * from './components/BrowserFrame/index.js'
3
8
  export * from './components/Callout/index.js'
4
9
  export * from './components/Codepen/index.js'
5
10
  export * from './components/ContentList/index.js'
6
- export * from './components/Disclosure/index.js'
11
+ export * from './components/effects/index.js'
7
12
  export * from './components/FancyList/index.js'
8
13
  export * from './components/Form/index.js'
9
14
  export * from './components/Highlight/index.js'
@@ -19,8 +24,7 @@ export * from './components/Tabs/index.js'
19
24
  export * from './components/Textwall/index.js'
20
25
  export * from './components/Typewriter/index.js'
21
26
 
22
- export { default as BrowserFrame } from './components/BrowserFrame.svelte'
23
- export { default as BrowserWithTabs } from './components/BrowserWithTabs.svelte'
27
+ export { default as Copyright } from './components/Copyright.svelte'
24
28
  export { default as CQChecker } from './components/CQChecker/CQChecker.svelte'
25
29
  export { default as Image } from './components/Image.svelte'
26
30
  export { default as Markdown } from './components/Markdown/Markdown.svelte'
@@ -29,7 +33,6 @@ export { default as Portal } from './components/Portal.svelte'
29
33
  export { default as PushToLocalStorage } from './components/PushToLocalStorage.svelte'
30
34
  export { default as Spotlight } from './components/Spotlight/Spotlight.svelte'
31
35
  export { default as Status } from './components/Status.svelte'
32
- export { default as SVG } from './components/SVG/SVG.svelte'
33
36
  export { default as Video } from './components/Video.svelte'
34
37
  export { default as Vimeo } from './components/Vimeo.svelte'
35
38
  export { default as Youtube } from './components/Youtube.svelte'