diff --git a/.prettierrc b/.prettierrc
index e23b0be753..ac8b0f391c 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -4,5 +4,5 @@
"singleQuote": false,
"trailingComma": "es5",
"plugins": ["prettier-plugin-svelte"],
- "svelteSortOrder" : "scripts-markup-styles"
+ "svelteSortOrder" : "options-scripts-markup-styles"
}
\ No newline at end of file
diff --git a/package.json b/package.json
index f98624812f..171f9510f3 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"prettier-plugin-svelte": "^2.2.0",
"rimraf": "^3.0.2",
"rollup-plugin-replace": "^2.2.0",
- "svelte": "^3.30.0"
+ "svelte": "^3.37.0"
},
"scripts": {
"bootstrap": "lerna link && lerna bootstrap",
diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte
index a4bfd29c83..4bb592aa26 100644
--- a/packages/bbui/src/ActionButton/ActionButton.svelte
+++ b/packages/bbui/src/ActionButton/ActionButton.svelte
@@ -42,12 +42,14 @@
class="spectrum-ActionButton spectrum-ActionButton--size{size}"
{disabled}
on:longPress
- on:click|preventDefault>
+ on:click|preventDefault
+>
{#if longPressable}
{/if}
@@ -56,7 +58,8 @@
class="spectrum-Icon spectrum-Icon--size{size}"
focusable="false"
aria-hidden="true"
- aria-label={icon}>
+ aria-label={icon}
+ >
{/if}
diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte
index 6e2b63adbd..da4d405f02 100644
--- a/packages/bbui/src/Button/Button.svelte
+++ b/packages/bbui/src/Button/Button.svelte
@@ -23,13 +23,15 @@
class:active
class="spectrum-Button spectrum-Button--size{size.toUpperCase()}"
{disabled}
- on:click|preventDefault>
+ on:click|preventDefault
+>
{#if icon}
{/if}
diff --git a/packages/bbui/src/ButtonGroup/ButtonGroup.svelte b/packages/bbui/src/ButtonGroup/ButtonGroup.svelte
index 51055363a2..f33f8566c3 100644
--- a/packages/bbui/src/ButtonGroup/ButtonGroup.svelte
+++ b/packages/bbui/src/ButtonGroup/ButtonGroup.svelte
@@ -1,15 +1,19 @@
-
-
-
\ No newline at end of file
+
+
+
diff --git a/packages/bbui/src/Form/Checkbox.svelte b/packages/bbui/src/Form/Checkbox.svelte
index 1f3e439c2a..c8d473e7c8 100644
--- a/packages/bbui/src/Form/Checkbox.svelte
+++ b/packages/bbui/src/Form/Checkbox.svelte
@@ -11,7 +11,7 @@
export let error = null
const dispatch = createEventDispatcher()
- const onChange = e => {
+ const onChange = (e) => {
value = e.detail
dispatch("change", e.detail)
}
diff --git a/packages/bbui/src/Form/Combobox.svelte b/packages/bbui/src/Form/Combobox.svelte
index 6b1e67a299..4926ef1f18 100644
--- a/packages/bbui/src/Form/Combobox.svelte
+++ b/packages/bbui/src/Form/Combobox.svelte
@@ -10,11 +10,11 @@
export let error = null
export let placeholder = "Choose an option"
export let options = []
- export let getOptionLabel = option => extractProperty(option, "label")
- export let getOptionValue = option => extractProperty(option, "value")
+ export let getOptionLabel = (option) => extractProperty(option, "label")
+ export let getOptionValue = (option) => extractProperty(option, "value")
const dispatch = createEventDispatcher()
- const onChange = e => {
+ const onChange = (e) => {
value = e.detail
dispatch("change", e.detail)
}
@@ -35,5 +35,6 @@
{placeholder}
{getOptionLabel}
{getOptionValue}
- on:change={onChange} />
+ on:change={onChange}
+ />
diff --git a/packages/bbui/src/Form/Core/Checkbox.svelte b/packages/bbui/src/Form/Core/Checkbox.svelte
index bc9b9a9fc7..510a67a185 100644
--- a/packages/bbui/src/Form/Core/Checkbox.svelte
+++ b/packages/bbui/src/Form/Core/Checkbox.svelte
@@ -10,34 +10,38 @@
export let disabled = false
const dispatch = createEventDispatcher()
- const onChange = event => {
+ const onChange = (event) => {
dispatch("change", event.target.checked)
}
diff --git a/packages/bbui/src/Form/Core/Combobox.svelte b/packages/bbui/src/Form/Core/Combobox.svelte
index 4329467bb0..1d1df810d9 100644
--- a/packages/bbui/src/Form/Core/Combobox.svelte
+++ b/packages/bbui/src/Form/Core/Combobox.svelte
@@ -11,8 +11,8 @@
export let disabled = false
export let error = null
export let options = []
- export let getOptionLabel = option => option
- export let getOptionValue = option => option
+ export let getOptionLabel = (option) => option
+ export let getOptionValue = (option) => option
const dispatch = createEventDispatcher()
let open = false
@@ -31,16 +31,16 @@
}
// Render the label if the selected option is found, otherwise raw value
- const selected = options.find(option => getOptionValue(option) === value)
+ const selected = options.find((option) => getOptionValue(option) === value)
return selected ? getOptionLabel(selected) : value
}
- const selectOption = value => {
+ const selectOption = (value) => {
dispatch("change", value)
open = false
}
- const onChange = e => {
+ const onChange = (e) => {
selectOption(e.target.value)
}
@@ -49,7 +49,8 @@
+ class:is-focused={open || focus}
+ >
(focus = true)}
@@ -57,18 +58,21 @@
on:change={onChange}
{value}
{placeholder}
- class="spectrum-Textfield-input spectrum-InputGroup-input" />
+ class="spectrum-Textfield-input spectrum-InputGroup-input"
+ />
@@ -76,7 +80,8 @@
(open = false)} />
+ class="spectrum-Popover spectrum-Popover--bottom is-open"
+ >