diff --git a/.vscode/settings.json b/.vscode/settings.json
index 53fbb0d221..d471924fe0 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,11 +1,7 @@
{
"editor.formatOnSave": true,
- "eslint.format.enable": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
- "[svelte]": {
- "editor.defaultFormatter": "JamesBirtles.svelte-vscode"
- },
- "editor.defaultFormatter": "esbenp.prettier-vscode"
+ "editor.defaultFormatter": "svelte.svelte-vscode"
}
diff --git a/package.json b/package.json
index a4b0993fde..f98624812f 100644
--- a/package.json
+++ b/package.json
@@ -10,8 +10,8 @@
"eslint-plugin-svelte3": "^2.7.3",
"kill-port": "^1.6.1",
"lerna": "3.14.1",
- "prettier": "^1.19.1",
- "prettier-plugin-svelte": "^1.4.0",
+ "prettier": "^2.2.1",
+ "prettier-plugin-svelte": "^2.2.0",
"rimraf": "^3.0.2",
"rollup-plugin-replace": "^2.2.0",
"svelte": "^3.30.0"
@@ -38,5 +38,12 @@
"test:e2e:ci": "lerna run cy:ci",
"build:docker": "cd hosting/scripts/linux/ && ./release-to-docker-hub.sh && cd -",
"build:docker:staging": "cd hosting/scripts/linux/ && ./release-to-docker-hub.sh staging && cd -"
+ },
+ "dependencies": {
+ "@spectrum-css/actionbutton": "^1.0.1",
+ "@spectrum-css/actiongroup": "^1.0.1",
+ "@spectrum-css/link": "^3.1.1",
+ "@spectrum-css/menu": "^3.0.1",
+ "@spectrum-css/toast": "^3.0.1"
}
}
diff --git a/packages/auth/src/db/index.js b/packages/auth/src/db/index.js
index f94fe4afea..cca0a3ddba 100644
--- a/packages/auth/src/db/index.js
+++ b/packages/auth/src/db/index.js
@@ -1,9 +1,9 @@
let Pouch
-module.exports.setDB = pouch => {
+module.exports.setDB = (pouch) => {
Pouch = pouch
}
-module.exports.getDB = dbName => {
+module.exports.getDB = (dbName) => {
return new Pouch(dbName)
}
diff --git a/packages/auth/src/db/utils.js b/packages/auth/src/db/utils.js
index 393e03e492..de743a7764 100644
--- a/packages/auth/src/db/utils.js
+++ b/packages/auth/src/db/utils.js
@@ -48,7 +48,7 @@ exports.getGroupParams = (id = "", otherProps = {}) => {
* Generates a new global user ID.
* @returns {string} The new user ID which the user doc can be stored under.
*/
-exports.generateGlobalUserID = id => {
+exports.generateGlobalUserID = (id) => {
return `${DocumentTypes.USER}${SEPARATOR}${id || newid()}`
}
@@ -70,7 +70,7 @@ exports.getGlobalUserParams = (globalId, otherProps = {}) => {
* Generates a template ID.
* @param ownerId The owner/user of the template, this could be global or a group level.
*/
-exports.generateTemplateID = ownerId => {
+exports.generateTemplateID = (ownerId) => {
return `${DocumentTypes.TEMPLATE}${SEPARATOR}${ownerId}${newid()}`
}
@@ -123,7 +123,7 @@ const getConfigParams = ({ type, group, user }, otherProps = {}) => {
* @param {Object} scopes - the type, group and userID scopes of the configuration.
* @returns The most granular configuration document based on the scope.
*/
-const determineScopedConfig = async function(db, { type, user, group }) {
+const determineScopedConfig = async function (db, { type, user, group }) {
const response = await db.allDocs(
getConfigParams(
{ type, user, group },
@@ -132,7 +132,7 @@ const determineScopedConfig = async function(db, { type, user, group }) {
}
)
)
- const configs = response.rows.map(row => {
+ const configs = response.rows.map((row) => {
const config = row.doc
// Config is specific to a user and a group
diff --git a/packages/auth/src/hashing.js b/packages/auth/src/hashing.js
index 65976fc1f3..fe9b034c63 100644
--- a/packages/auth/src/hashing.js
+++ b/packages/auth/src/hashing.js
@@ -4,7 +4,7 @@ const { v4 } = require("uuid")
const SALT_ROUNDS = env.SALT_ROUNDS || 10
-exports.hash = async data => {
+exports.hash = async (data) => {
const salt = await bcrypt.genSalt(SALT_ROUNDS)
return bcrypt.hash(data, salt)
}
@@ -13,6 +13,6 @@ exports.compare = async (data, encrypted) => {
return bcrypt.compare(data, encrypted)
}
-exports.newid = function() {
+exports.newid = function () {
return v4().replace(/-/g, "")
}
diff --git a/packages/auth/src/middleware/passport/google.js b/packages/auth/src/middleware/passport/google.js
index 968dfa3e93..407772ebf0 100644
--- a/packages/auth/src/middleware/passport/google.js
+++ b/packages/auth/src/middleware/passport/google.js
@@ -51,7 +51,7 @@ async function authenticate(token, tokenSecret, profile, done) {
* from couchDB rather than environment variables, using this factory is necessary for dynamically configuring passport.
* @returns Dynamically configured Passport Google Strategy
*/
-exports.strategyFactory = async function(config) {
+exports.strategyFactory = async function (config) {
try {
const { clientID, clientSecret, callbackURL } = config
diff --git a/packages/auth/src/middleware/passport/jwt.js b/packages/auth/src/middleware/passport/jwt.js
index fdff3f3cfc..ed7d179482 100644
--- a/packages/auth/src/middleware/passport/jwt.js
+++ b/packages/auth/src/middleware/passport/jwt.js
@@ -3,12 +3,12 @@ const env = require("../../environment")
exports.options = {
secretOrKey: env.JWT_SECRET,
- jwtFromRequest: function(ctx) {
+ jwtFromRequest: function (ctx) {
return ctx.cookies.get(Cookies.Auth)
},
}
-exports.authenticate = async function(jwt, done) {
+exports.authenticate = async function (jwt, done) {
try {
return done(null, jwt)
} catch (err) {
diff --git a/packages/auth/src/middleware/passport/local.js b/packages/auth/src/middleware/passport/local.js
index 5b8bf307d7..0f5cb82606 100644
--- a/packages/auth/src/middleware/passport/local.js
+++ b/packages/auth/src/middleware/passport/local.js
@@ -15,7 +15,7 @@ exports.options = {}
* @param {*} done - callback from passport to return user information and errors
* @returns The authenticated user, or errors if they occur
*/
-exports.authenticate = async function(email, password, done) {
+exports.authenticate = async function (email, password, done) {
if (!email) return done(null, false, "Email Required.")
if (!password) return done(null, false, "Password Required.")
diff --git a/packages/auth/src/utils.js b/packages/auth/src/utils.js
index 10507410b1..beb1c33cf1 100644
--- a/packages/auth/src/utils.js
+++ b/packages/auth/src/utils.js
@@ -22,7 +22,7 @@ function confirmAppId(possibleAppId) {
* @param {object} ctx The main request body to look through.
* @returns {string|undefined} If an appId was found it will be returned.
*/
-exports.getAppId = ctx => {
+exports.getAppId = (ctx) => {
const options = [ctx.headers["x-budibase-app-id"], ctx.params.appId]
if (ctx.subdomains) {
options.push(ctx.subdomains[1])
@@ -41,7 +41,7 @@ exports.getAppId = ctx => {
}
let appPath =
ctx.request.headers.referrer ||
- ctx.path.split("/").filter(subPath => subPath.startsWith(APP_PREFIX))
+ ctx.path.split("/").filter((subPath) => subPath.startsWith(APP_PREFIX))
if (!appId && appPath.length !== 0) {
appId = confirmAppId(appPath[0])
}
@@ -101,11 +101,11 @@ exports.clearCookie = (ctx, name) => {
* @param {object} ctx The koa context object to be tested.
* @return {boolean} returns true if the call is from the client lib (a built app rather than the builder).
*/
-exports.isClient = ctx => {
+exports.isClient = (ctx) => {
return ctx.headers["x-budibase-type"] === "client"
}
-exports.getGlobalUserByEmail = async email => {
+exports.getGlobalUserByEmail = async (email) => {
const db = getDB(StaticDatabases.GLOBAL.name)
try {
let users = (
@@ -114,7 +114,7 @@ exports.getGlobalUserByEmail = async email => {
include_docs: true,
})
).rows
- users = users.map(user => user.doc)
+ users = users.map((user) => user.doc)
return users.length <= 1 ? users[0] : users
} catch (err) {
if (err != null && err.name === "not_found") {
diff --git a/packages/bbui/package.json b/packages/bbui/package.json
index 7d34c5c6d7..573e115377 100644
--- a/packages/bbui/package.json
+++ b/packages/bbui/package.json
@@ -2,6 +2,7 @@
"name": "@budibase/bbui",
"description": "A UI solution used in the different Budibase projects.",
"version": "1.58.13",
+ "license": "AGPL-3.0",
"svelte": "src/index.js",
"module": "dist/bbui.es.js",
"exports": {
@@ -9,31 +10,24 @@
"import": "./dist/bbui.es.js"
},
"./package.json": "./package.json",
- "./dist/style.css": "./dist/style.css"
+ "./spectrum-icons-rollup.js": "./src/spectrum-icons-rollup.js",
+ "./spectrum-icons-vite.js": "./src/spectrum-icons-vite.js"
},
"scripts": {
- "dev:builder": "vite build",
- "build": "vite build"
+ "build": "rollup -c"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^16.0.0",
"@rollup/plugin-json": "^4.1.0",
- "@rollup/plugin-node-resolve": "^11.0.0",
- "@sveltejs/vite-plugin-svelte": "^1.0.0-next.5",
+ "@rollup/plugin-node-resolve": "^11.2.1",
"cross-env": "^7.0.2",
"nollup": "^0.14.1",
"postcss": "^8.2.9",
- "rollup": "^2.34.0",
- "rollup-plugin-copy": "^3.3.0",
- "rollup-plugin-delete": "^1.2.0",
- "rollup-plugin-hot": "^0.1.1",
- "rollup-plugin-node-builtins": "^2.1.2",
+ "rollup": "^2.45.2",
"rollup-plugin-postcss": "^4.0.0",
- "rollup-plugin-svelte-hot": "^0.11.0",
- "semantic-release": "^17.0.8",
- "svelte": "^3.29.0",
- "svench": "^0.0.10-7",
- "vite": "^2.1.5"
+ "rollup-plugin-svelte": "^7.1.0",
+ "rollup-plugin-terser": "^7.0.2",
+ "svelte": "^3.37.0"
},
"keywords": [
"svelte"
@@ -43,11 +37,44 @@
"dist"
],
"dependencies": {
- "markdown-it": "^12.0.4",
- "quill": "^1.3.7",
- "sirv-cli": "^0.4.6",
- "svelte-flatpickr": "^2.4.0",
- "svelte-portal": "^1.0.0",
- "turndown": "^7.0.0"
+ "@adobe/spectrum-css-workflow-icons": "^1.2.1",
+ "@spectrum-css/actionbutton": "^1.0.1",
+ "@spectrum-css/actiongroup": "^1.0.1",
+ "@spectrum-css/avatar": "^3.0.2",
+ "@spectrum-css/button": "^3.0.1",
+ "@spectrum-css/buttongroup": "^3.0.2",
+ "@spectrum-css/checkbox": "^3.0.2",
+ "@spectrum-css/dialog": "^3.0.1",
+ "@spectrum-css/divider": "^1.0.1",
+ "@spectrum-css/dropzone": "^3.0.2",
+ "@spectrum-css/fieldgroup": "^3.0.2",
+ "@spectrum-css/fieldlabel": "^3.0.1",
+ "@spectrum-css/icon": "^3.0.1",
+ "@spectrum-css/illustratedmessage": "^3.0.2",
+ "@spectrum-css/inputgroup": "^3.0.2",
+ "@spectrum-css/label": "^2.0.9",
+ "@spectrum-css/link": "^3.1.1",
+ "@spectrum-css/menu": "^3.0.1",
+ "@spectrum-css/modal": "^3.0.1",
+ "@spectrum-css/picker": "^1.0.1",
+ "@spectrum-css/popover": "^3.0.1",
+ "@spectrum-css/progressbar": "^1.0.2",
+ "@spectrum-css/progresscircle": "^1.0.2",
+ "@spectrum-css/radio": "^3.0.2",
+ "@spectrum-css/search": "^3.0.2",
+ "@spectrum-css/sidenav": "^3.0.2",
+ "@spectrum-css/switch": "^1.0.2",
+ "@spectrum-css/table": "^3.0.1",
+ "@spectrum-css/tabs": "^3.0.1",
+ "@spectrum-css/tags": "^3.0.2",
+ "@spectrum-css/textfield": "^3.0.1",
+ "@spectrum-css/toast": "^3.0.1",
+ "@spectrum-css/treeview": "^3.0.2",
+ "@spectrum-css/typography": "^3.0.1",
+ "@spectrum-css/underlay": "^2.0.9",
+ "@spectrum-css/vars": "^3.0.1",
+ "dayjs": "^1.10.4",
+ "svelte-flatpickr": "^3.1.0",
+ "svelte-portal": "^1.0.0"
}
}
diff --git a/packages/bbui/rollup.config.js b/packages/bbui/rollup.config.js
index 92b316cbe1..e285d548d6 100644
--- a/packages/bbui/rollup.config.js
+++ b/packages/bbui/rollup.config.js
@@ -1,140 +1,25 @@
-import * as path from "path"
-import svelte from "rollup-plugin-svelte-hot"
+import svelte from "rollup-plugin-svelte"
import resolve from "@rollup/plugin-node-resolve"
import commonjs from "@rollup/plugin-commonjs"
import json from "@rollup/plugin-json"
-import copy from "rollup-plugin-copy"
-import hmr from "rollup-plugin-hot"
-import del from "rollup-plugin-delete"
+import { terser } from "rollup-plugin-terser"
import postcss from "rollup-plugin-postcss"
-import { plugin as Svench } from "svench/rollup"
-import builtins from "rollup-plugin-node-builtins"
-const WATCH = !!process.env.ROLLUP_WATCH
-const SVENCH = !!process.env.SVENCH
-const HOT = WATCH
-const PRODUCTION = !WATCH
-
-const svench = Svench({
- // The root dir that Svench will parse and watch.
- //
- // NOTE Watching the root of the project, to let Svench render *.md for us.
- //
- // NOTE By default, `node_modules` and `.git` dirs are ignored. This can be
- // customized by passing a function to `ignore` option. Default ignore is:
- //
- // ignore: path => /(?:^|\/)(?:node_modules|\.git)\//.test(path),
- //
- dir: ".",
-
- // Make `src` dir a section (that is, it will always be "expanded" in the
- // menu).
- autoSections: ["src"],
-
- // Use custom index.html
- index: {
- source: "public/index.html",
+export default {
+ input: "src/index.js",
+ output: {
+ sourcemap: true,
+ format: "esm",
+ file: "dist/bbui.es.js",
},
-
- extensions: [".svench", ".svench.svelte", ".svench.svx", ".md"],
-
- serve: WATCH && {
- host: "0.0.0.0",
- port: 4242,
- public: "public",
- nollup: "0.0.0.0:42421",
- },
-})
-
-// NOTE configs are in function form to avoid instantiating plugins of the
-// config that is not used for nothing (in particular, the HMR plugin launches
-// a dev server on startup, this is not desired when just building for prod)
-const configs = {
- svench: () => ({
- input: ".svench/svench.js",
- output: {
- format: "es",
- dir: "public/svench",
- },
- plugins: [
- builtins(),
-
- // NOTE cleaning old builds is required to avoid serving stale static
- // files from a previous build instead of in-memory files from the dev/hmr
- // server
- del({
- targets: "public/svench/*",
- runOnce: true,
- }),
-
- postcss({
- hot: HOT,
- extract: path.resolve("public/svench/theme.css"),
- sourceMap: true,
- }),
-
- svench,
-
- svelte({
- dev: !PRODUCTION,
- extensions: [".svelte", ".svench", ".svx", ".md"],
- // Svench's "combined" preprocessor wraps both Mdsvex preprocessors
- // (configured for Svench), and its own preprocessor (for static
- // analysis -- eg extract source from views)
- preprocess: svench.$.preprocess,
- hot: HOT && {
- optimistic: true,
- noPreserveState: false,
- },
- }),
-
- resolve({ browser: true }),
-
- commonjs(),
- json(),
-
- HOT &&
- hmr({
- host: "0.0.0.0",
- public: "public",
- inMemory: true,
- compatModuleHot: !HOT, // for terser
- }),
- ],
-
- watch: {
- clearScreen: false,
- // buildDelay is needed to ensure Svench's code (routes) generator will
- // pick file changes before Rollup and prevent a double build (if Rollup
- // first sees a change to src/Foo.svench, then to Svench's routes.js)
- buildDelay: 100,
- },
- }),
-
- lib: () => ({
- input: "src/index.js",
- output: [{ file: "dist/bundle.mjs", format: "es" }],
- plugins: [
- svelte({
- dev: !PRODUCTION,
- extensions: [".svelte"],
- emitCss: true,
- }),
- postcss(),
- copy({
- targets: [
- {
- src: ".svench/svench.css",
- dest: "public",
- rename: "global.css",
- },
- ],
- }),
- resolve(),
- commonjs(),
- json(),
- ],
- }),
+ plugins: [
+ resolve(),
+ commonjs(),
+ svelte({
+ emitCss: true,
+ }),
+ postcss(),
+ terser(),
+ json(),
+ ],
}
-
-export default configs[SVENCH ? "svench" : "lib"]()
diff --git a/packages/bbui/src/ActionButton/ActionButton.svelte b/packages/bbui/src/ActionButton/ActionButton.svelte
new file mode 100644
index 0000000000..a4bfd29c83
--- /dev/null
+++ b/packages/bbui/src/ActionButton/ActionButton.svelte
@@ -0,0 +1,66 @@
+
+
+
+ {#if longPressable}
+
+
+
+ {/if}
+ {#if icon}
+
+
+
+ {/if}
+ {#if $$slots}
+
+ {/if}
+
diff --git a/packages/bbui/src/ActionGroup/ActionGroup.svelte b/packages/bbui/src/ActionGroup/ActionGroup.svelte
new file mode 100644
index 0000000000..514b473521
--- /dev/null
+++ b/packages/bbui/src/ActionGroup/ActionGroup.svelte
@@ -0,0 +1,26 @@
+
+
+
+
+
diff --git a/packages/bbui/src/ActionMenu/ActionMenu.svelte b/packages/bbui/src/ActionMenu/ActionMenu.svelte
new file mode 100644
index 0000000000..6947e69a7e
--- /dev/null
+++ b/packages/bbui/src/ActionMenu/ActionMenu.svelte
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/bbui/src/Actions/click_outside.js b/packages/bbui/src/Actions/click_outside.js
index 9257af5f5b..49a15d36a3 100644
--- a/packages/bbui/src/Actions/click_outside.js
+++ b/packages/bbui/src/Actions/click_outside.js
@@ -5,14 +5,14 @@ export default function clickOutside(element, callbackFunction) {
}
}
- document.body.addEventListener("click", onClick, true)
+ document.body.addEventListener("mousedown", onClick, true)
return {
update(newCallbackFunction) {
callbackFunction = newCallbackFunction
},
destroy() {
- document.body.removeEventListener("click", onClick, true)
+ document.body.removeEventListener("mousedown", onClick, true)
},
}
}
diff --git a/packages/bbui/src/Actions/position_dropdown.js b/packages/bbui/src/Actions/position_dropdown.js
index 9bf5a40a67..776fc7f83e 100644
--- a/packages/bbui/src/Actions/position_dropdown.js
+++ b/packages/bbui/src/Actions/position_dropdown.js
@@ -18,10 +18,10 @@ export default function positionDropdown(element, { anchor, align }) {
if (spaceAbove > spaceBelow) {
positionSide = "bottom"
maxHeight = spaceAbove - 20
- y = window.innerHeight - spaceAbove
+ y = window.innerHeight - spaceAbove + 5
} else {
positionSide = "top"
- y = bottom
+ y = bottom + 5
maxHeight = spaceBelow - 20
}
@@ -47,7 +47,7 @@ export default function positionDropdown(element, { anchor, align }) {
element.style[positionSide] = `${dimensions[positionSide]}px`
element.style.left = `${calcLeftPosition(dimensions).toFixed(0)}px`
- const resizeObserver = new ResizeObserver(entries => {
+ const resizeObserver = new ResizeObserver((entries) => {
entries.forEach(() => {
dimensions = getDimensions()
element.style[positionSide] = `${dimensions[positionSide]}px`
diff --git a/packages/bbui/src/Avatar/Avatar.svelte b/packages/bbui/src/Avatar/Avatar.svelte
new file mode 100644
index 0000000000..d2aef72446
--- /dev/null
+++ b/packages/bbui/src/Avatar/Avatar.svelte
@@ -0,0 +1,12 @@
+
+
+
diff --git a/packages/bbui/src/Button/Button.svelte b/packages/bbui/src/Button/Button.svelte
index 5e403287e1..6e2b63adbd 100644
--- a/packages/bbui/src/Button/Button.svelte
+++ b/packages/bbui/src/Button/Button.svelte
@@ -1,212 +1,50 @@
-{#if href}
-
-
-
-{:else}
-
-
-
-{/if}
+
+ {#if icon}
+
+
+
+ {/if}
+ {#if $$slots}
+
+ {/if}
+
diff --git a/packages/bbui/src/Button/Close.svelte b/packages/bbui/src/Button/Close.svelte
deleted file mode 100644
index f2b76cdb38..0000000000
--- a/packages/bbui/src/Button/Close.svelte
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-×
-
-
diff --git a/packages/bbui/src/Button/Close.svench b/packages/bbui/src/Button/Close.svench
deleted file mode 100644
index 5bb7542b11..0000000000
--- a/packages/bbui/src/Button/Close.svench
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Button/TextButton.svelte b/packages/bbui/src/Button/TextButton.svelte
deleted file mode 100644
index 351a2c45bf..0000000000
--- a/packages/bbui/src/Button/TextButton.svelte
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-{#if href}
-
-{:else}
-
-
-
-{/if}
-
-
diff --git a/packages/bbui/src/Button/TextButton.svench b/packages/bbui/src/Button/TextButton.svench
deleted file mode 100644
index e3c3477805..0000000000
--- a/packages/bbui/src/Button/TextButton.svench
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
- alert('Clicked!')}>
-
- Add View
-
- alert('Clicked!')}>
-
- Add Column
-
- alert('Clicked!')}>
-
- Add Row
-
- alert('Clicked!')}>
-
- Disabled Text Button
-
- alert('Clicked!')}>
-
- Active Calculation
-
-
-
-
-
-
- alert('Clicked!')}>
-
- Add View
-
- alert('Clicked!')}>
-
- Add Column
-
- alert('Clicked!')}>
-
- Add Row
-
- alert('Clicked!')}>
-
- Delete
-
- alert('Clicked!')}>
-
- Calculate
-
-
-
-
-
-
- This is a link
-
-
diff --git a/packages/bbui/src/ButtonGroup/ButtonGroup.svelte b/packages/bbui/src/ButtonGroup/ButtonGroup.svelte
new file mode 100644
index 0000000000..51055363a2
--- /dev/null
+++ b/packages/bbui/src/ButtonGroup/ButtonGroup.svelte
@@ -0,0 +1,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/bbui/src/ClearButton/ClearButton.svelte b/packages/bbui/src/ClearButton/ClearButton.svelte
new file mode 100644
index 0000000000..5a2f6bc04c
--- /dev/null
+++ b/packages/bbui/src/ClearButton/ClearButton.svelte
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/packages/bbui/src/DatePicker/DatePicker.svelte b/packages/bbui/src/DatePicker/DatePicker.svelte
deleted file mode 100644
index 2f87a48a43..0000000000
--- a/packages/bbui/src/DatePicker/DatePicker.svelte
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
- {#if label}
- {label}
- {/if}
-
-
-
-
diff --git a/packages/bbui/src/DatePicker/DatePicker.svench b/packages/bbui/src/DatePicker/DatePicker.svench
deleted file mode 100644
index ed0d480a6f..0000000000
--- a/packages/bbui/src/DatePicker/DatePicker.svench
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/packages/bbui/src/List/Items/DetailSummary.svelte b/packages/bbui/src/DetailSummary/DetailSummary.svelte
similarity index 84%
rename from packages/bbui/src/List/Items/DetailSummary.svelte
rename to packages/bbui/src/DetailSummary/DetailSummary.svelte
index 8e3a08276a..1c39bc6aa7 100644
--- a/packages/bbui/src/List/Items/DetailSummary.svelte
+++ b/packages/bbui/src/DetailSummary/DetailSummary.svelte
@@ -1,4 +1,5 @@
+
+
+
+
diff --git a/packages/bbui/src/Drawer/Drawer.svelte b/packages/bbui/src/Drawer/Drawer.svelte
index 2f0cc1b4f3..f786a54854 100644
--- a/packages/bbui/src/Drawer/Drawer.svelte
+++ b/packages/bbui/src/Drawer/Drawer.svelte
@@ -1,7 +1,9 @@
-
-{#if open}
-
-
-
-{/if}
-
-
diff --git a/packages/bbui/src/DropdownMenu/DropdownMenu.svench b/packages/bbui/src/DropdownMenu/DropdownMenu.svench
deleted file mode 100644
index af4e32db2e..0000000000
--- a/packages/bbui/src/DropdownMenu/DropdownMenu.svench
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
-
-
- Right Align
-
-
-
- Item 1
- Item 2
- Item 3
-
-
-
-
-
-
- Left Align
-
-
-
- Item 1
- Item 2
- Item 3
-
-
-
-
-
-
-
- Field Name
-
-
-
-
-
-
-
- Edit
-
-
-
- Delete
-
-
-
- Sort A - Z
-
-
-
- Sort Z - A
-
-
-
-
-
-
-
- Field Name
-
-
-
-
-
-
-
- Edit
-
-
-
- Delete
-
-
-
- Sort A - Z
-
-
-
- Sort Z - A
-
-
-
-
-
-
-
- Field Name
-
-
-
- alert('Closed!')}
- bind:this={dropdownLeft}
- width="175px"
- borderColor="#d1d1d1ff"
- anchor={anchorLeft}
- align="left">
-
-
-
- Edit
-
-
-
- Delete
-
-
-
- Sort A - Z
-
-
-
- Sort Z - A
-
-
-
-
\ No newline at end of file
diff --git a/packages/bbui/src/Dropzone/Dropzone.svelte b/packages/bbui/src/Dropzone/Dropzone.svelte
deleted file mode 100644
index 4f4f4bc7bf..0000000000
--- a/packages/bbui/src/Dropzone/Dropzone.svelte
+++ /dev/null
@@ -1,295 +0,0 @@
-
-
-
- {#if selectedImage}
-
-
-
-
-
- {selectedImage.name}
-
-
- {#if selectedImage.size <= BYTES_IN_MB}
- {selectedImage.size / BYTES_IN_KB}KB
- {:else}{selectedImage.size / BYTES_IN_MB}MB{/if}
-
-
-
-
-
- {#if selectedImageIdx !== 0}
-
-
-
- {/if}
-
- {#if selectedImageIdx !== files.length - 1}
-
-
-
- {/if}
-
-
- {/if}
-
-
-
-
Drop your files here
-
Select a file from your computer
-
-
-
diff --git a/packages/bbui/src/Dropzone/Dropzone.svench b/packages/bbui/src/Dropzone/Dropzone.svench
deleted file mode 100644
index 110195ab5a..0000000000
--- a/packages/bbui/src/Dropzone/Dropzone.svench
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
diff --git a/packages/bbui/src/Dropzone/fileTypes.js b/packages/bbui/src/Dropzone/fileTypes.js
deleted file mode 100644
index 1ebd85070b..0000000000
--- a/packages/bbui/src/Dropzone/fileTypes.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export const FILE_TYPES = {
- IMAGE: ["png", "tiff", "gif", "raw", "jpg", "jpeg", "svg"],
- CODE: ["js", "rs", "py", "java", "rb", "hs", "yml"],
- DOCUMENT: ["odf", "docx", "doc", "pdf", "csv"],
-}
diff --git a/packages/bbui/src/Form/Checkbox.svelte b/packages/bbui/src/Form/Checkbox.svelte
index 21d5450123..1f3e439c2a 100644
--- a/packages/bbui/src/Form/Checkbox.svelte
+++ b/packages/bbui/src/Form/Checkbox.svelte
@@ -1,140 +1,22 @@
-
-
-
+
+
+
diff --git a/packages/bbui/src/Form/Checkbox.svench.svx b/packages/bbui/src/Form/Checkbox.svench.svx
deleted file mode 100644
index b3246ec9d2..0000000000
--- a/packages/bbui/src/Form/Checkbox.svench.svx
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
- One single checkbox with text
-
-
-
-
-
- A disabled checkbox
-
-
-
-
-
-
-
-## Multiple checkboxes
-Use an array and an each block to use multiple checkboxes
-```svelte
-
-
-{#each menu as {text, checked}}
-
- {text}
-
-{/each}
-```
-
-
-
- {#each menu as {text, checked}}
-
- {text}
-
- {/each}
-
-
-
-
\ No newline at end of file
diff --git a/packages/bbui/src/Form/Combobox.svelte b/packages/bbui/src/Form/Combobox.svelte
new file mode 100644
index 0000000000..6b1e67a299
--- /dev/null
+++ b/packages/bbui/src/Form/Combobox.svelte
@@ -0,0 +1,39 @@
+
+
+
+
+
diff --git a/packages/bbui/src/Form/Core/Checkbox.svelte b/packages/bbui/src/Form/Core/Checkbox.svelte
new file mode 100644
index 0000000000..bc9b9a9fc7
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Checkbox.svelte
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {text || ''}
+
diff --git a/packages/bbui/src/Form/Core/Combobox.svelte b/packages/bbui/src/Form/Core/Combobox.svelte
new file mode 100644
index 0000000000..4329467bb0
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Combobox.svelte
@@ -0,0 +1,128 @@
+
+
+
+
+ (focus = true)}
+ on:blur={() => (focus = false)}
+ on:change={onChange}
+ {value}
+ {placeholder}
+ class="spectrum-Textfield-input spectrum-InputGroup-input" />
+
+
(open = true)}>
+
+
+ {#if open}
+
(open = false)} />
+
+
+
+ {/if}
+
+
+
diff --git a/packages/bbui/src/Form/Core/DatePicker.svelte b/packages/bbui/src/Form/Core/DatePicker.svelte
new file mode 100644
index 0000000000..a3a2fefb38
--- /dev/null
+++ b/packages/bbui/src/Form/Core/DatePicker.svelte
@@ -0,0 +1,142 @@
+
+
+
+
+
+{#if open}
+
+{/if}
+
+
diff --git a/packages/bbui/src/Form/Core/Dropzone.svelte b/packages/bbui/src/Form/Core/Dropzone.svelte
new file mode 100644
index 0000000000..e6addd4e42
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Dropzone.svelte
@@ -0,0 +1,334 @@
+
+
+
+ {#if selectedImage}
+
+
+
{selectedImage.name}
+
+ {#if selectedImage.size <= BYTES_IN_MB}
+ {`${selectedImage.size / BYTES_IN_KB} KB`}
+ {:else}{`${selectedImage.size / BYTES_IN_MB} MB`}{/if}
+
+ {#if !disabled}
+
+
+
+ {/if}
+
+ {#if isImage}
+
+ {:else}
+
+
{selectedImage.extension}
+
Preview not supported
+
+ {/if}
+
0}
+ on:click={navigateLeft}>
+
+
+
+
+
+
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Drag and drop your file
+
+ {#if !disabled}
+
+ Select a file to upload
+
+ from your computer
+
+ {/if}
+
+
+
+
+
diff --git a/packages/bbui/src/Form/Core/Multiselect.svelte b/packages/bbui/src/Form/Core/Multiselect.svelte
new file mode 100644
index 0000000000..97420fabad
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Multiselect.svelte
@@ -0,0 +1,81 @@
+
+
+
diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte
new file mode 100644
index 0000000000..2f5606dcf1
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Picker.svelte
@@ -0,0 +1,123 @@
+
+
+
+
+ {fieldText}
+
+ {#if error}
+
+
+
+ {/if}
+
+
+{#if open}
+
(open = false)}
+ transition:fly={{ y: -20, duration: 200 }}
+ class="spectrum-Popover spectrum-Popover--bottom spectrum-Picker-popover is-open">
+
+
+{/if}
+
+
diff --git a/packages/bbui/src/Form/Core/RadioGroup.svelte b/packages/bbui/src/Form/Core/RadioGroup.svelte
new file mode 100644
index 0000000000..385e456a8e
--- /dev/null
+++ b/packages/bbui/src/Form/Core/RadioGroup.svelte
@@ -0,0 +1,37 @@
+
+
+
+ {#if options && Array.isArray(options)}
+ {#each options as option}
+
+
+
+ {getOptionLabel(option)}
+
+ {/each}
+ {/if}
+
diff --git a/packages/bbui/src/Form/Core/Search.svelte b/packages/bbui/src/Form/Core/Search.svelte
new file mode 100644
index 0000000000..6855799e86
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Search.svelte
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
updateValue('')}
+ type="reset"
+ class="spectrum-ClearButton spectrum-Search-clearButton">
+
+
+
+
+
+
+
diff --git a/packages/bbui/src/Form/Core/Select.svelte b/packages/bbui/src/Form/Core/Select.svelte
new file mode 100644
index 0000000000..58e1ccca5a
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Select.svelte
@@ -0,0 +1,57 @@
+
+
+
option === value}
+ onSelectOption={selectOption} />
diff --git a/packages/bbui/src/Form/Core/Switch.svelte b/packages/bbui/src/Form/Core/Switch.svelte
new file mode 100644
index 0000000000..520b8ebff1
--- /dev/null
+++ b/packages/bbui/src/Form/Core/Switch.svelte
@@ -0,0 +1,27 @@
+
+
+
+
+
+ {text}
+
diff --git a/packages/bbui/src/Form/Core/TextArea.svelte b/packages/bbui/src/Form/Core/TextArea.svelte
new file mode 100644
index 0000000000..3903c37b28
--- /dev/null
+++ b/packages/bbui/src/Form/Core/TextArea.svelte
@@ -0,0 +1,55 @@
+
+
+
+ {#if error}
+
+
+
+ {/if}
+
+
+
+
diff --git a/packages/bbui/src/Form/Core/TextField.svelte b/packages/bbui/src/Form/Core/TextField.svelte
new file mode 100644
index 0000000000..c470f755b0
--- /dev/null
+++ b/packages/bbui/src/Form/Core/TextField.svelte
@@ -0,0 +1,84 @@
+
+
+
+ {#if error}
+
+
+
+ {/if}
+
+
+
+
diff --git a/packages/bbui/src/Form/Core/index.js b/packages/bbui/src/Form/Core/index.js
new file mode 100644
index 0000000000..a31c5941ec
--- /dev/null
+++ b/packages/bbui/src/Form/Core/index.js
@@ -0,0 +1,11 @@
+export { default as CoreTextField } from "./TextField.svelte"
+export { default as CoreSelect } from "./Select.svelte"
+export { default as CoreMultiselect } from "./Multiselect.svelte"
+export { default as CoreCheckbox } from "./Checkbox.svelte"
+export { default as CoreRadioGroup } from "./RadioGroup.svelte"
+export { default as CoreTextArea } from "./TextArea.svelte"
+export { default as CoreCombobox } from "./Combobox.svelte"
+export { default as CoreSwitch } from "./Switch.svelte"
+export { default as CoreSearch } from "./Search.svelte"
+export { default as CoreDatePicker } from "./DatePicker.svelte"
+export { default as CoreDropzone } from "./Dropzone.svelte"
diff --git a/packages/bbui/src/Form/DataList.svelte b/packages/bbui/src/Form/DataList.svelte
deleted file mode 100644
index 6f5855d86a..0000000000
--- a/packages/bbui/src/Form/DataList.svelte
+++ /dev/null
@@ -1,158 +0,0 @@
-
-
-{#if label}
- {label}
-{/if}
-
-
-
-
-
-
{
- updateValue(e)
- handleBlur(e)
- }}
- value={value || ''}
- type="text" />
-
-
-
-
-
-
diff --git a/packages/bbui/src/Form/DataList.svench b/packages/bbui/src/Form/DataList.svench
deleted file mode 100644
index eea8294dea..0000000000
--- a/packages/bbui/src/Form/DataList.svench
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
diff --git a/packages/bbui/src/Form/DatePicker.svelte b/packages/bbui/src/Form/DatePicker.svelte
new file mode 100644
index 0000000000..1ac3b2bef0
--- /dev/null
+++ b/packages/bbui/src/Form/DatePicker.svelte
@@ -0,0 +1,29 @@
+
+
+
+
+
diff --git a/packages/bbui/src/Form/Dropzone.svelte b/packages/bbui/src/Form/Dropzone.svelte
new file mode 100644
index 0000000000..5886c58fa9
--- /dev/null
+++ b/packages/bbui/src/Form/Dropzone.svelte
@@ -0,0 +1,31 @@
+
+
+
+
+
diff --git a/packages/bbui/src/Form/Field.svelte b/packages/bbui/src/Form/Field.svelte
new file mode 100644
index 0000000000..5e4ca01f06
--- /dev/null
+++ b/packages/bbui/src/Form/Field.svelte
@@ -0,0 +1,42 @@
+
+
+
+
+
diff --git a/packages/bbui/src/Form/FieldLabel.svelte b/packages/bbui/src/Form/FieldLabel.svelte
new file mode 100644
index 0000000000..c4219f5581
--- /dev/null
+++ b/packages/bbui/src/Form/FieldLabel.svelte
@@ -0,0 +1,26 @@
+
+
+
+ {label || ''}
+
+
+
diff --git a/packages/bbui/src/Form/Input.svelte b/packages/bbui/src/Form/Input.svelte
index e8afcffd36..e4a155d342 100644
--- a/packages/bbui/src/Form/Input.svelte
+++ b/packages/bbui/src/Form/Input.svelte
@@ -1,190 +1,33 @@
-
- {#if label || edit}
-
- {#if label}
-
{label}
- {/if}
- {#if edit}
-
-
- Edit
-
- Save
-
- {/if}
-
- {/if}
-
+
- {#if error}
-
{error}
- {/if}
-
-
-
+ on:change={onChange}
+ on:click
+ on:input />
+
diff --git a/packages/bbui/src/Form/Input.svench b/packages/bbui/src/Form/Input.svench
deleted file mode 100644
index 1b95727a1a..0000000000
--- a/packages/bbui/src/Form/Input.svench
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Form/Multiselect.svelte b/packages/bbui/src/Form/Multiselect.svelte
index 924fd4b2b5..1615fac2b6 100644
--- a/packages/bbui/src/Form/Multiselect.svelte
+++ b/packages/bbui/src/Form/Multiselect.svelte
@@ -1,324 +1,35 @@
-{#if label}
- {label}
-{/if}
-
-
-
- {#each selectedOptions as option}
-
-
{option.name}
-
remove(option.value)}>
-
-
-
-
-
- {/each}
- {#if !value || !value.length}
- {#if placeholder && placeholder.length}
-
{placeholder}
- {:else}
-
- {/if}
- {/if}
-
-
-
-
-
-
-
- {#if optionsVisible}
-
- showOptions(false)}
- transition:fly={{ duration: 200, y: 5 }}
- on:mousedown|preventDefault={handleOptionMousedown}>
- {#each options as option}
-
- {option.name}
-
- {/each}
- {#if !options.length}
- No results
- {/if}
-
-
- {/if}
-
-
-
+
+
+
diff --git a/packages/bbui/src/Form/Multiselect.svench b/packages/bbui/src/Form/Multiselect.svench
deleted file mode 100644
index 86ad0de529..0000000000
--- a/packages/bbui/src/Form/Multiselect.svench
+++ /dev/null
@@ -1,63 +0,0 @@
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- {#each options as option}
- {option}
- {/each}
-
-
-
-
diff --git a/packages/bbui/src/Form/Radio.svelte b/packages/bbui/src/Form/Radio.svelte
deleted file mode 100644
index b4a2637803..0000000000
--- a/packages/bbui/src/Form/Radio.svelte
+++ /dev/null
@@ -1,140 +0,0 @@
-
-
-
-
-
diff --git a/packages/bbui/src/Form/Radio.svench.svx b/packages/bbui/src/Form/Radio.svench.svx
deleted file mode 100644
index 20d3c58c99..0000000000
--- a/packages/bbui/src/Form/Radio.svench.svx
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
- ## Multiple checkboxes
- Use an array and an each block to use the radio button.
-```svelte
-
-
-{#each menu as flavour}
-
-{/each}
-```
-
-
-
-
- {#each menu as flavour}
-
- {flavour}
-
- {/each}
-
-
-
-
-
- {#each menu as flavour}
-
- {flavour}
-
- {/each}
-
-
-
-
\ No newline at end of file
diff --git a/packages/bbui/src/Form/RadioGroup.svelte b/packages/bbui/src/Form/RadioGroup.svelte
new file mode 100644
index 0000000000..61bc5f8552
--- /dev/null
+++ b/packages/bbui/src/Form/RadioGroup.svelte
@@ -0,0 +1,37 @@
+
+
+
+
+
diff --git a/packages/bbui/src/Form/RichText.svelte b/packages/bbui/src/Form/RichText.svelte
deleted file mode 100644
index ab4b9c3d99..0000000000
--- a/packages/bbui/src/Form/RichText.svelte
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
- {#if mergedOptions.theme !== 'snow'}
-
- {/if}
-
-
-
diff --git a/packages/bbui/src/Form/RichText.svench.svx b/packages/bbui/src/Form/RichText.svench.svx
deleted file mode 100644
index 0a0a858866..0000000000
--- a/packages/bbui/src/Form/RichText.svench.svx
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-### Rich Text Component
-
-This component uses the QuillJS library to add Rich Text editing functionality.
-
-It exposes a content
variable that you can bind to in order to get Markdown out of the component.
-
-As well as the content you can also pass in an option object that looks like so:
-
-```js
-let options = {
- modules: {
- toolbar: [
- [{ header: [1, 2, 3, false] }],
- ['bold', 'italic', 'underline', 'strike']
- ]
- },
- placeholder: 'Type something...',
- theme: 'snow'
-}
-```
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Form/Search.svelte b/packages/bbui/src/Form/Search.svelte
new file mode 100644
index 0000000000..e68a6a49fb
--- /dev/null
+++ b/packages/bbui/src/Form/Search.svelte
@@ -0,0 +1,27 @@
+
+
+
+
+
diff --git a/packages/bbui/src/Form/Select.svelte b/packages/bbui/src/Form/Select.svelte
index c245abd245..0dd4a98102 100644
--- a/packages/bbui/src/Form/Select.svelte
+++ b/packages/bbui/src/Form/Select.svelte
@@ -1,95 +1,42 @@
-
- {#if label}
-
{label}
- {/if}
-
-
-
-
+
+
+
diff --git a/packages/bbui/src/Form/Select.svench b/packages/bbui/src/Form/Select.svench
deleted file mode 100644
index 750d7224ca..0000000000
--- a/packages/bbui/src/Form/Select.svench
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
- Choose an option
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- Choose an option
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- Choose an option
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- Choose an option
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- Choose an option
- {#each options as option}
- {option}
- {/each}
-
-
-
-
-
- Choose an option
- {#each options as option}
- {option}
- {/each}
-
-
-
diff --git a/packages/bbui/src/Form/Slider.svelte b/packages/bbui/src/Form/Slider.svelte
deleted file mode 100644
index c8a4c0122e..0000000000
--- a/packages/bbui/src/Form/Slider.svelte
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
- {#if label}
-
- {label}
- {#if showValue && value != null}({value}){/if}
-
- {/if}
-
- {#if showRange && min != null}{min} {/if}
-
- {#if showRange && max != null}{max} {/if}
-
-
-
-
diff --git a/packages/bbui/src/Form/Slider.svench b/packages/bbui/src/Form/Slider.svench
deleted file mode 100644
index 7ed59f78b8..0000000000
--- a/packages/bbui/src/Form/Slider.svench
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Form/TextArea.svelte b/packages/bbui/src/Form/TextArea.svelte
index 1133a99127..a11b87da0d 100644
--- a/packages/bbui/src/Form/TextArea.svelte
+++ b/packages/bbui/src/Form/TextArea.svelte
@@ -1,132 +1,29 @@
-
- {#if label || edit}
-
- {#if label}
-
{label}
- {/if}
- {#if edit}
-
-
- Edit
-
- Save
-
- {/if}
-
- {/if}
-
-
-
+ on:change={onChange} />
+
diff --git a/packages/bbui/src/Form/TextArea.svench b/packages/bbui/src/Form/TextArea.svench
deleted file mode 100644
index 549d365b83..0000000000
--- a/packages/bbui/src/Form/TextArea.svench
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Form/Toggle.svelte b/packages/bbui/src/Form/Toggle.svelte
index 56e70f7e70..798f0a63ec 100644
--- a/packages/bbui/src/Form/Toggle.svelte
+++ b/packages/bbui/src/Form/Toggle.svelte
@@ -1,110 +1,22 @@
-
-
- {#if text}{text} {/if}
-
-
-
+
+
+
diff --git a/packages/bbui/src/Form/Toggle.svench b/packages/bbui/src/Form/Toggle.svench
deleted file mode 100644
index 4e2af13021..0000000000
--- a/packages/bbui/src/Form/Toggle.svench
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Icon/Icon.svelte b/packages/bbui/src/Icon/Icon.svelte
new file mode 100644
index 0000000000..847896178e
--- /dev/null
+++ b/packages/bbui/src/Icon/Icon.svelte
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
diff --git a/packages/bbui/src/Icons/Contribution.svelte b/packages/bbui/src/Icons/Contribution.svelte
deleted file mode 100644
index faa7560167..0000000000
--- a/packages/bbui/src/Icons/Contribution.svelte
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
diff --git a/packages/bbui/src/Icons/Icon.svelte b/packages/bbui/src/Icons/Icon.svelte
deleted file mode 100644
index d929018011..0000000000
--- a/packages/bbui/src/Icons/Icon.svelte
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
- {#each paths as path}
-
- {/each}
-
-
-
diff --git a/packages/bbui/src/Icons/Icon.svench b/packages/bbui/src/Icons/Icon.svench
deleted file mode 100644
index d1ee1cb8f5..0000000000
--- a/packages/bbui/src/Icons/Icon.svench
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/Icons/icon-paths.js b/packages/bbui/src/Icons/icon-paths.js
deleted file mode 100644
index dc2fbb3d96..0000000000
--- a/packages/bbui/src/Icons/icon-paths.js
+++ /dev/null
@@ -1,128 +0,0 @@
-export default {
- arrow: [
- "M0.200275 13.2782C0.200275 12.4153 0.89983 11.7157 1.76278 11.7157H23.6378C24.5007 11.7157 25.2003 12.4153 25.2003 13.2782C25.2003 14.1411 24.5007 14.8407 23.6378 14.8407H1.76278C0.89983 14.8407 0.200275 14.1411 0.200275 13.2782Z",
- "M11.5954 1.23584C12.2056 0.62565 13.1949 0.62565 13.8051 1.23584L24.7426 12.1733C25.3528 12.7835 25.3528 13.7729 24.7426 14.3831L13.8051 25.3206C13.1949 25.9307 12.2056 25.9307 11.5954 25.3206C10.9852 24.7104 10.9852 23.721 11.5954 23.1108L21.4281 13.2782L11.5954 3.44555C10.9852 2.83536 10.9852 1.84604 11.5954 1.23584Z",
- ],
- check: [
- "M24.3522 3.64786C23.4883 2.78405 22.0878 2.78405 21.224 3.64786L8.64198 16.2299L3.77601 11.3639C2.9122 10.5001 1.51168 10.5001 0.647861 11.3639C-0.215954 12.2277 -0.215954 13.6283 0.647861 14.4921L7.07791 20.9221C7.94172 21.7859 9.34224 21.7859 10.2061 20.9221L24.3522 6.77601L23.6974 6.12128L24.3522 6.77601C25.216 5.9122 25.216 4.51168 24.3522 3.64786L23.6974 4.30259L24.3522 3.64786Z",
- ],
- coffee: [
- "M6.69069 1.96879C6.69069 1.36848 6.20405 0.881836 5.60374 0.881836C5.00343 0.881836 4.51678 1.36848 4.51678 1.96879V5.22966C4.51678 5.82997 5.00343 6.31662 5.60374 6.31662C6.20405 6.31662 6.69069 5.82997 6.69069 5.22966V1.96879ZM0.168955 9.57749C0.168955 8.97718 0.655602 8.49053 1.25591 8.49053H18.6472H19.7342C21.1756 8.49053 22.5579 9.06312 23.5771 10.0823C24.5964 11.1016 25.169 12.4839 25.169 13.9253C25.169 15.3667 24.5964 16.7491 23.5771 17.7683C22.5579 18.7875 21.1756 19.3601 19.7342 19.3601C19.7342 20.8015 19.1616 22.1838 18.1424 23.2031C17.1231 24.2223 15.7408 24.7949 14.2994 24.7949H5.60374C4.16234 24.7949 2.77998 24.2223 1.76077 23.2031C0.741547 22.1838 0.168955 20.8015 0.168955 19.3601V9.57749ZM19.7342 17.1862V10.6644C20.599 10.6644 21.4284 11.008 22.04 11.6195C22.6515 12.2311 22.995 13.0605 22.995 13.9253C22.995 14.7901 22.6515 15.6196 22.04 16.2311C21.4284 16.8426 20.599 17.1862 19.7342 17.1862ZM17.5603 10.6644V18.2731V19.3601C17.5603 20.2249 17.2167 21.0543 16.6052 21.6659C15.9936 22.2774 15.1642 22.621 14.2994 22.621H5.60374C4.7389 22.621 3.90949 22.2774 3.29795 21.6659C2.68642 21.0543 2.34287 20.2249 2.34287 19.3601V10.6644H17.5603ZM9.95156 0.881836C10.5519 0.881836 11.0385 1.36848 11.0385 1.96879V5.22966C11.0385 5.82997 10.5519 6.31662 9.95156 6.31662C9.35125 6.31662 8.86461 5.82997 8.86461 5.22966V1.96879C8.86461 1.36848 9.35125 0.881836 9.95156 0.881836ZM15.3863 1.96879C15.3863 1.36848 14.8997 0.881836 14.2994 0.881836C13.6991 0.881836 13.2124 1.36848 13.2124 1.96879V5.22966C13.2124 5.82997 13.6991 6.31662 14.2994 6.31662C14.8997 6.31662 15.3863 5.82997 15.3863 5.22966V1.96879Z",
- ],
- copy: [
- "M2.98325 3.58322C3.19636 3.37011 3.48539 3.25039 3.78678 3.25039H14.014C14.3154 3.25039 14.6045 3.37011 14.8176 3.58322C15.0307 3.79633 15.1504 4.08537 15.1504 4.38675V5.52312C15.1504 6.15071 15.6592 6.65948 16.2868 6.65948C16.9144 6.65948 17.4231 6.15071 17.4231 5.52312V4.38675C17.4231 3.4826 17.064 2.61549 16.4246 1.97616C15.7853 1.33683 14.9182 0.977661 14.014 0.977661H3.78678C2.88263 0.977661 2.01551 1.33683 1.37619 1.97616C0.736856 2.61549 0.377686 3.4826 0.377686 4.38675V14.614C0.377686 15.5182 0.736857 16.3853 1.37619 17.0246C2.01551 17.6639 2.88263 18.0231 3.78678 18.0231H4.92314C5.55074 18.0231 6.0595 17.5143 6.0595 16.8868C6.0595 16.2592 5.55074 15.7504 4.92314 15.7504H3.78678C3.48539 15.7504 3.19636 15.6307 2.98325 15.4176C2.77014 15.2044 2.65041 14.9154 2.65041 14.614V4.38675C2.65041 4.08537 2.77014 3.79633 2.98325 3.58322ZM10.605 12.3413C10.605 11.7137 11.1137 11.2049 11.7413 11.2049H21.9686C22.5962 11.2049 23.105 11.7137 23.105 12.3413V22.5686C23.105 23.1962 22.5962 23.7049 21.9686 23.7049H11.7413C11.1137 23.7049 10.605 23.1962 10.605 22.5686V12.3413ZM11.7413 8.93221C9.85853 8.93221 8.33223 10.4585 8.33223 12.3413V22.5686C8.33223 24.4514 9.85853 25.9777 11.7413 25.9777H21.9686C23.8514 25.9777 25.3777 24.4514 25.3777 22.5686V12.3413C25.3777 10.4585 23.8514 8.93221 21.9686 8.93221H11.7413Z",
- ],
- downloadalt: [
- "M2.21191 15.4277C2.90227 15.4277 3.46191 15.9874 3.46191 16.6777V21.6777C3.46191 22.0093 3.59361 22.3272 3.82803 22.5616C4.06245 22.796 4.38039 22.9277 4.71191 22.9277H22.2119C22.5434 22.9277 22.8614 22.796 23.0958 22.5616C23.3302 22.3272 23.4619 22.0093 23.4619 21.6777V16.6777C23.4619 15.9874 24.0216 15.4277 24.7119 15.4277C25.4023 15.4277 25.9619 15.9874 25.9619 16.6777V21.6777C25.9619 22.6723 25.5668 23.6261 24.8636 24.3294C24.1603 25.0326 23.2065 25.4277 22.2119 25.4277H4.71191C3.71735 25.4277 2.76352 25.0326 2.06026 24.3294C1.357 23.6261 0.961914 22.6723 0.961914 21.6777V16.6777C0.961914 15.9874 1.52156 15.4277 2.21191 15.4277Z",
- "M6.32803 9.54385C6.81619 9.0557 7.60764 9.0557 8.0958 9.54385L13.4619 14.91L18.828 9.54385C19.3162 9.0557 20.1076 9.0557 20.5958 9.54385C21.084 10.032 21.084 10.8235 20.5958 11.3116L14.3458 17.5616C13.8576 18.0498 13.0662 18.0498 12.578 17.5616L6.32803 11.3116C5.83988 10.8235 5.83988 10.032 6.32803 9.54385Z",
- "M13.4619 0.427734C14.1523 0.427734 14.7119 0.987378 14.7119 1.67773V16.6777C14.7119 17.3681 14.1523 17.9277 13.4619 17.9277C12.7716 17.9277 12.2119 17.3681 12.2119 16.6777V1.67773C12.2119 0.987378 12.7716 0.427734 13.4619 0.427734Z",
- ],
- external: [
- "M25.3673 1.28312C25.3077 1.13904 25.22 1.00384 25.1042 0.88591C25.0988 0.88042 25.0933 0.87498 25.0878 0.86959C24.8623 0.648163 24.5532 0.511597 24.2122 0.511597H24.2119H16.7122C16.0218 0.511597 15.4622 1.07124 15.4622 1.7616C15.4622 2.45195 16.0218 3.0116 16.7122 3.0116H21.1944L9.57827 14.6277C9.09012 15.1159 9.09012 15.9073 9.57827 16.3955C10.0664 16.8836 10.8579 16.8836 11.346 16.3955L22.9622 4.77936V9.2616C22.9622 9.95195 23.5218 10.5116 24.2122 10.5116C24.9025 10.5116 25.4622 9.95195 25.4622 9.2616V1.76269C25.4622 1.75848 25.4621 1.75427 25.4621 1.75006C25.4606 1.59108 25.429 1.43233 25.3673 1.28312ZM4.21216 6.7616C3.88064 6.7616 3.5627 6.89329 3.32827 7.12771C3.09385 7.36213 2.96216 7.68008 2.96216 8.0116V21.7616C2.96216 22.0931 3.09385 22.4111 3.32827 22.6455C3.5627 22.8799 3.88064 23.0116 4.21216 23.0116H17.9622C18.2937 23.0116 18.6116 22.8799 18.846 22.6455C19.0805 22.4111 19.2122 22.0931 19.2122 21.7616V14.2616C19.2122 13.5712 19.7718 13.0116 20.4622 13.0116C21.1525 13.0116 21.7122 13.5712 21.7122 14.2616V21.7616C21.7122 22.7562 21.3171 23.71 20.6138 24.4132C19.9105 25.1165 18.9567 25.5116 17.9622 25.5116H4.21216C3.2176 25.5116 2.26377 25.1165 1.56051 24.4132C0.857246 23.71 0.462158 22.7562 0.462158 21.7616V8.0116C0.462158 7.01704 0.857246 6.06321 1.56051 5.35995C2.26377 4.65668 3.2176 4.2616 4.21216 4.2616H11.7122C12.4025 4.2616 12.9622 4.82124 12.9622 5.5116C12.9622 6.20195 12.4025 6.7616 11.7122 6.7616H4.21216Z",
- ],
- file: [
- "M4.00045 1.63229C4.63978 0.99296 5.5069 0.633789 6.41104 0.633789H14.3656C14.667 0.633789 14.956 0.753513 15.1691 0.966622L23.1237 8.92117C23.3368 9.13428 23.4565 9.42332 23.4565 9.7247V22.2247C23.4565 23.1288 23.0973 23.996 22.458 24.6353C21.8187 25.2746 20.9516 25.6338 20.0474 25.6338H6.41104C5.5069 25.6338 4.63978 25.2746 4.00045 24.6353C3.36112 23.996 3.00195 23.1288 3.00195 22.2247V4.04288C3.00195 3.13873 3.36112 2.27162 4.00045 1.63229ZM6.41104 2.90652C6.10966 2.90652 5.82062 3.02624 5.60751 3.23935C5.3944 3.45246 5.27468 3.7415 5.27468 4.04288V22.2247C5.27468 22.5261 5.3944 22.8151 5.60751 23.0282C5.82062 23.2413 6.10966 23.3611 6.41104 23.3611H20.0474C20.3488 23.3611 20.6378 23.2413 20.8509 23.0282C21.064 22.8151 21.1838 22.5261 21.1838 22.2247V10.1954L13.8949 2.90652H6.41104Z",
- "M14.3656 0.633789C14.9932 0.633789 15.502 1.14256 15.502 1.77015V8.58833H22.3202C22.9478 8.58833 23.4565 9.0971 23.4565 9.7247C23.4565 10.3523 22.9478 10.8611 22.3202 10.8611H14.3656C13.738 10.8611 13.2292 10.3523 13.2292 9.7247V1.77015C13.2292 1.14256 13.738 0.633789 14.3656 0.633789Z",
- ],
- list: [
- "M0 10.25C0 9.55964 0.559644 9 1.25 9H18.75C19.4404 9 20 9.55964 20 10.25C20 10.9404 19.4404 11.5 18.75 11.5H1.25C0.559644 11.5 0 10.9404 0 10.25Z",
- "M0 5.25C0 4.55964 0.559644 4 1.25 4H23.75C24.4404 4 25 4.55964 25 5.25C25 5.94036 24.4404 6.5 23.75 6.5H1.25C0.559644 6.5 0 5.94036 0 5.25Z",
- "M0 15.25C0 14.5596 0.559644 14 1.25 14H23.75C24.4404 14 25 14.5596 25 15.25C25 15.9404 24.4404 16.5 23.75 16.5H1.25C0.559644 16.5 0 15.9404 0 15.25Z",
- "M0 20.25C0 19.5596 0.559644 19 1.25 19H18.75C19.4404 19 20 19.5596 20 20.25C20 20.9404 19.4404 21.5 18.75 21.5H1.25C0.559644 21.5 0 20.9404 0 20.25Z",
- ],
- money: [
- "M13.2917 0C13.867 0 14.3333 0.46637 14.3333 1.04167V23.9583C14.3333 24.5336 13.867 25 13.2917 25C12.7164 25 12.25 24.5336 12.25 23.9583V1.04167C12.25 0.46637 12.7164 0 13.2917 0Z",
- "M7.37294 5.53956C8.25201 4.66049 9.4443 4.16663 10.6875 4.16663H18.5C19.0753 4.16663 19.5417 4.633 19.5417 5.20829C19.5417 5.78359 19.0753 6.24996 18.5 6.24996H10.6875C9.99683 6.24996 9.33445 6.52433 8.84608 7.0127C8.3577 7.50108 8.08333 8.16346 8.08333 8.85413C8.08333 9.54479 8.3577 10.2072 8.84608 10.6955C9.33445 11.1839 9.99683 11.4583 10.6875 11.4583H15.8958C17.139 11.4583 18.3313 11.9522 19.2104 12.8312C20.0895 13.7103 20.5833 14.9026 20.5833 16.1458C20.5833 17.389 20.0895 18.5813 19.2104 19.4604C18.3313 20.3394 17.139 20.8333 15.8958 20.8333H7.04167C6.46637 20.8333 6 20.3669 6 19.7916C6 19.2163 6.46637 18.75 7.04167 18.75H15.8958C16.5865 18.75 17.2489 18.4756 17.7373 17.9872C18.2256 17.4988 18.5 16.8365 18.5 16.1458C18.5 15.4551 18.2256 14.7927 17.7373 14.3044C17.2489 13.816 16.5865 13.5416 15.8958 13.5416H10.6875C9.4443 13.5416 8.25201 13.0478 7.37294 12.1687C6.49386 11.2896 6 10.0973 6 8.85413C6 7.61092 6.49386 6.41864 7.37294 5.53956Z",
- ],
- paperclip: [
- "M17.5359 2.82806C16.6555 2.82806 15.8112 3.17779 15.1886 3.80031L5.02747 13.9615C3.99 14.999 3.40716 16.4061 3.40716 17.8733C3.40716 19.3405 3.99 20.7476 5.02747 21.785C6.06493 22.8225 7.47204 23.4053 8.93924 23.4053C10.4064 23.4053 11.8135 22.8225 12.851 21.785L23.0122 11.6239C23.444 11.1921 24.1441 11.1921 24.5759 11.6239C25.0076 12.0556 25.0076 12.7557 24.5759 13.1875L14.4147 23.3487C12.9625 24.8009 10.9929 25.6167 8.93924 25.6167C6.88555 25.6167 4.91598 24.8009 3.4638 23.3487C2.01162 21.8965 1.1958 19.9269 1.1958 17.8733C1.1958 15.8196 2.01162 13.85 3.4638 12.3978L13.625 2.23665C14.6622 1.19941 16.069 0.616699 17.5359 0.616699C19.0028 0.616699 20.4095 1.19941 21.4468 2.23665C22.484 3.27388 23.0667 4.68068 23.0667 6.14755C23.0667 7.61442 22.484 9.02121 21.4468 10.0584L11.2745 20.2196C10.6523 20.8419 9.80824 21.1915 8.92818 21.1915C8.04812 21.1915 7.20411 20.8419 6.58181 20.2196C5.95952 19.5973 5.60992 18.7533 5.60992 17.8733C5.60992 16.9932 5.95952 16.1492 6.58181 15.5269L15.9695 6.15029C16.4015 5.71875 17.1016 5.71916 17.5331 6.15121C17.9647 6.58326 17.9643 7.28333 17.5322 7.71487L8.14548 17.0906C7.93818 17.2981 7.82127 17.5799 7.82127 17.8733C7.82127 18.1668 7.93789 18.4484 8.14548 18.656C8.35306 18.8636 8.63461 18.9802 8.92818 18.9802C9.22175 18.9802 9.50329 18.8636 9.71088 18.656L19.8831 8.49479C20.5054 7.8723 20.8554 7.02773 20.8554 6.14755C20.8554 5.26716 20.5056 4.42284 19.8831 3.80031C19.2606 3.17779 18.4163 2.82806 17.5359 2.82806Z",
- ],
- person: [
- "M3.04927 16.6449C4.23321 15.4462 5.83898 14.7727 7.51333 14.7727H17.6143C19.2887 14.7727 20.8945 15.4462 22.0784 16.6449C23.2623 17.8436 23.9275 19.4695 23.9275 21.1648V23.7216C23.9275 24.4276 23.3622 25 22.6648 25C21.9675 25 21.4022 24.4276 21.4022 23.7216V21.1648C21.4022 20.1476 21.0031 19.1721 20.2928 18.4528C19.5824 17.7336 18.6189 17.3295 17.6143 17.3295H7.51333C6.50872 17.3295 5.54526 17.7336 4.83489 18.4528C4.12453 19.1721 3.72545 20.1476 3.72545 21.1648V23.7216C3.72545 24.4276 3.16015 25 2.46282 25C1.76549 25 1.2002 24.4276 1.2002 23.7216V21.1648C1.2002 19.4695 1.86533 17.8436 3.04927 16.6449Z",
- "M11.9956 2.5C9.92454 2.5 8.24561 4.17893 8.24561 6.25C8.24561 8.32107 9.92454 10 11.9956 10C14.0667 10 15.7456 8.32107 15.7456 6.25C15.7456 4.17893 14.0667 2.5 11.9956 2.5ZM5.74561 6.25C5.74561 2.79822 8.54383 0 11.9956 0C15.4474 0 18.2456 2.79822 18.2456 6.25C18.2456 9.70178 15.4474 12.5 11.9956 12.5C8.54383 12.5 5.74561 9.70178 5.74561 6.25Z",
- ],
- refresh: [
- "M6.97937 3.40529C8.70577 2.45337 10.6948 2.08834 12.6467 2.36521C14.5986 2.64207 16.4076 3.54582 17.8012 4.94028C17.8093 4.94841 17.8176 4.95642 17.8259 4.9643L21.0026 7.95574H17.048C16.4203 7.95574 15.9115 8.4646 15.9115 9.09231C15.9115 9.72002 16.4203 10.2289 17.048 10.2289H23.8643H23.8675C24.0269 10.2289 24.1787 10.196 24.3165 10.1367C24.4544 10.0775 24.5828 9.98985 24.6925 9.874C24.7014 9.86462 24.7102 9.85508 24.7187 9.8454C24.9095 9.62998 25.0041 9.36088 25.004 9.09232C25.004 9.09121 25.004 9.09009 25.004 9.08898V2.27288C25.004 1.64517 24.4952 1.13631 23.8675 1.13631C23.2397 1.13631 22.7309 1.64517 22.7309 2.27288V6.46082L19.3966 3.32095C17.6563 1.58497 15.4 0.45984 12.9659 0.11459C10.526 -0.231487 8.03977 0.224801 5.88178 1.4147C3.72379 2.60459 2.01099 4.46363 1.00148 6.71166C-0.00803095 8.9597 -0.259554 11.4749 0.284811 13.8784C0.829176 16.2818 2.13994 18.4432 4.01957 20.0368C5.89921 21.6305 8.24589 22.5701 10.706 22.714C13.1661 22.8579 15.6063 22.1984 17.6589 20.8347C19.7116 19.4711 21.2654 17.4773 22.0863 15.1538C22.2954 14.5619 21.9851 13.9126 21.3933 13.7035C20.8014 13.4944 20.1521 13.8047 19.943 14.3966C19.2863 16.2554 18.0432 17.8504 16.4011 18.9413C14.759 20.0322 12.8068 20.5599 10.8387 20.4447C8.87066 20.3296 6.99332 19.5779 5.48961 18.303C3.9859 17.0281 2.93729 15.299 2.5018 13.3762C2.06631 11.4535 2.26753 9.44129 3.07513 7.64286C3.88274 5.84443 5.25298 4.35721 6.97937 3.40529Z",
- ],
- swoop: [
- "M17.6488 0.406796C17.1064 -0.135599 16.227 -0.135599 15.6846 0.406796C15.1422 0.949191 15.1422 1.82859 15.6846 2.37098L20.258 6.94444H6.94444C5.10266 6.94444 3.33632 7.67609 2.03398 8.97843C0.731644 10.2808 0 12.0471 0 13.8889V23.6111C0 24.3782 0.621827 25 1.38889 25C2.15595 25 2.77778 24.3782 2.77778 23.6111V13.8889C2.77778 12.7838 3.21676 11.724 3.99817 10.9426C4.77957 10.1612 5.83938 9.72222 6.94444 9.72222H20.258L15.6846 14.2957C15.1422 14.8381 15.1422 15.7175 15.6846 16.2599C16.227 16.8023 17.1064 16.8023 17.6488 16.2599L24.5932 9.31543C24.8611 9.04749 24.9967 8.69732 24.9999 8.34616C25 8.34189 25 8.33761 25 8.33333C25 8.32906 25 8.32478 24.9999 8.32051C24.9983 8.13686 24.961 7.96173 24.8946 7.80169C24.8268 7.63788 24.7264 7.4844 24.5932 7.35124L17.6488 0.406796Z",
- ],
- twitter: [
- "M21.351 2.5026C20.4177 1.5026 19.0844 0.835938 17.6177 0.835938C14.8177 0.835938 12.4844 3.16927 12.4844 6.1026C12.4844 6.5026 12.551 6.9026 12.6177 7.3026C8.35104 7.1026 4.61771 4.96927 2.08438 1.83594C1.61771 2.63594 1.41771 3.5026 1.41771 4.5026C1.41771 6.3026 2.35104 7.9026 3.68437 8.9026C2.81771 8.9026 2.08437 8.63594 1.35104 8.23594V8.3026C1.35104 10.8359 3.08438 12.9693 5.48438 13.4359C5.08438 13.5693 4.61771 13.6359 4.15104 13.6359C3.81771 13.6359 3.48438 13.6359 3.21771 13.5693C3.88438 15.6359 5.75104 17.1693 8.01771 17.2359C6.28438 18.6359 4.08438 19.5026 1.68438 19.5026C1.28438 19.5026 0.884375 19.5026 0.484375 19.4359C2.75104 20.9026 5.41771 21.7693 8.35104 21.7693C17.751 21.7693 22.951 13.7693 22.951 6.83594V6.16927C23.951 5.43594 24.8177 4.5026 25.4844 3.43594C24.551 3.83594 23.551 4.16927 22.551 4.23594C23.4177 3.5026 24.2177 2.5026 24.6177 1.23594C23.6177 1.83594 22.551 2.3026 21.351 2.5026Z",
- ],
- add: [
- "M12.5 2.27273C6.85163 2.27273 2.27273 6.85163 2.27273 12.5C2.27273 18.1484 6.85163 22.7273 12.5 22.7273C18.1484 22.7273 22.7273 18.1484 22.7273 12.5C22.7273 6.85163 18.1484 2.27273 12.5 2.27273ZM0 12.5C0 5.59644 5.59644 0 12.5 0C19.4036 0 25 5.59644 25 12.5C25 19.4036 19.4036 25 12.5 25C5.59644 25 0 19.4036 0 12.5Z",
- "M12.5 7.29167C13.0753 7.29167 13.5417 7.75804 13.5417 8.33333V16.6667C13.5417 17.242 13.0753 17.7083 12.5 17.7083C11.9247 17.7083 11.4583 17.242 11.4583 16.6667V8.33333C11.4583 7.75804 11.9247 7.29167 12.5 7.29167Z",
- "M7.29167 12.5C7.29167 11.9247 7.75804 11.4583 8.33333 11.4583H16.6667C17.242 11.4583 17.7083 11.9247 17.7083 12.5C17.7083 13.0753 17.242 13.5417 16.6667 13.5417H8.33333C7.75804 13.5417 7.29167 13.0753 7.29167 12.5Z",
- ],
- addcolumn: [
- "M10 3c.552 0 1 .448 1 1v16c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h6zM9 5H5v14h4V5zm9 2c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L15 11v2l2-.001V15h2v-2.001L21 13v-2l-2-.001V9z",
- ],
- addrow: [
- "M12 13c2.761 0 5 2.239 5 5s-2.239 5-5 5-5-2.239-5-5 2.239-5 5-5zm1 2h-2v1.999L9 17v2l2-.001V21h2v-2.001L15 19v-2l-2-.001V15zm7-12c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1H4c-.552 0-1-.448-1-1V4c0-.552.448-1 1-1h16zM5 5v4h14V5H5z",
- ],
- view: [
- "M12 3c5.392 0 9.878 3.88 10.819 9-.94 5.12-5.427 9-10.819 9-5.392 0-9.878-3.88-10.819-9C2.121 6.88 6.608 3 12 3zm0 16a9.005 9.005 0 0 0 8.777-7 9.005 9.005 0 0 0-17.554 0A9.005 9.005 0 0 0 12 19zm0-2.5a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-2a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z",
- ],
- table: [
- "M4 8h16V5H4v3zm10 11v-9h-4v9h4zm2 0h4v-9h-4v9zm-8 0v-9H4v9h4zM3 3h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z",
- ],
- edit: [
- "M15.728 9.686l-1.414-1.414L5 17.586V19h1.414l9.314-9.314zm1.414-1.414l1.414-1.414-1.414-1.414-1.414 1.414 1.414 1.414zM7.242 21H3v-4.243L16.435 3.322a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414L7.243 21z",
- ],
- delete: [
- "M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm1 2H6v12h12V8zM9 4v2h6V4H9z",
- ],
- close: [
- "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-11.414L9.172 7.757 7.757 9.172 10.586 12l-2.829 2.828 1.415 1.415L12 13.414l2.828 2.829 1.415-1.415L13.414 12l2.829-2.828-1.415-1.415L12 10.586z",
- ],
- arrowup: ["M12 8l6 6H6z"],
- arrowdown: ["M12 16l-6-6h12z"],
- arrowleft: ["M8 12l6-6v12z"],
- arrowright: ["M16 12l-6 6V6z"],
- search: [
- "M18.031 16.617l4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617zm-2.006-.742A6.977 6.977 0 0 0 18 11c0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7a6.977 6.977 0 0 0 4.875-1.975l.15-.15z",
- ],
- settings: [
- "M2.132 13.63a9.942 9.942 0 0 1 0-3.26c1.102.026 2.092-.502 2.477-1.431.385-.93.058-2.004-.74-2.763a9.942 9.942 0 0 1 2.306-2.307c.76.798 1.834 1.125 2.764.74.93-.385 1.457-1.376 1.43-2.477a9.942 9.942 0 0 1 3.262 0c-.027 1.102.501 2.092 1.43 2.477.93.385 2.004.058 2.763-.74a9.942 9.942 0 0 1 2.307 2.306c-.798.76-1.125 1.834-.74 2.764.385.93 1.376 1.457 2.477 1.43a9.942 9.942 0 0 1 0 3.262c-1.102-.027-2.092.501-2.477 1.43-.385.93-.058 2.004.74 2.763a9.942 9.942 0 0 1-2.306 2.307c-.76-.798-1.834-1.125-2.764-.74-.93.385-1.457 1.376-1.43 2.477a9.942 9.942 0 0 1-3.262 0c.027-1.102-.501-2.092-1.43-2.477-.93-.385-2.004-.058-2.763.74a9.942 9.942 0 0 1-2.307-2.306c.798-.76 1.125-1.834.74-2.764-.385-.93-1.376-1.457-2.477-1.43zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",
- ],
- preview: [
- "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zM10.622 8.415a.4.4 0 0 0-.622.332v6.506a.4.4 0 0 0 .622.332l4.879-3.252a.4.4 0 0 0 0-.666l-4.88-3.252z",
- ],
- adduser: [
- "M14 14.252V22H4a8 8 0 0 1 10-7.748zM12 13c-3.315 0-6-2.685-6-6s2.685-6 6-6 6 2.685 6 6-2.685 6-6 6zm6 4v-3h2v3h3v2h-3v3h-2v-3h-3v-2h3z",
- ],
- plugin: [
- "M13 18v2h6v2h-6a2 2 0 0 1-2-2v-2H8a4 4 0 0 1-4-4v-4h16v4a4 4 0 0 1-4 4h-3zm3-12h3a1 1 0 0 1 1 1v2H4V7a1 1 0 0 1 1-1h3V2h2v4h4V2h2v4zm-4 8.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z",
- ],
- help: [
- "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-7v2h2v-2h-2zm2-1.645A3.502 3.502 0 0 0 12 6.5a3.501 3.501 0 0 0-3.433 2.813l1.962.393A1.5 1.5 0 1 1 12 11.5a1 1 0 0 0-1 1V14h2v-.645z",
- ],
- sortdescending: [
- "M19 3l4 5h-3v12h-2V8h-3l4-5zm-5 15v2H3v-2h11zm0-7v2H3v-2h11zm-2-7v2H3V4h9z",
- ],
- sortascending: [
- "M20 4v12h3l-4 5-4-5h3V4h2zm-8 14v2H3v-2h9zm2-7v2H3v-2h11zm0-7v2H3V4h11z",
- ],
- calculate: [
- "M4 2h16a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm1 2v16h14V4H5zm2 2h10v4H7V6zm0 6h2v2H7v-2zm0 4h2v2H7v-2zm4-4h2v2h-2v-2zm0 4h2v2h-2v-2zm4-4h2v6h-2v-6z",
- ],
- filter: [
- "M21 4v2h-1l-5 7.5V22H9v-8.5L4 6H3V4h18zM6.404 6L11 12.894V20h2v-7.106L17.596 6H6.404z",
- ],
- addfill: [
- "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-1-11H7v2h4v4h2v-4h4v-2h-4V7h-2v4z",
- ],
- group: [
- "M11 4h10v2H11V4zm0 4h6v2h-6V8zm0 6h10v2H11v-2zm0 4h6v2h-6v-2zM3 4h6v6H3V4zm2 2v2h2V6H5zm-2 8h6v6H3v-6zm2 2v2h2v-2H5z",
- ],
- download: [
- "M13 10h5l-6 6-6-6h5V3h2v7zm-9 9h16v-7h2v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8h2v7z",
- ],
- lightning: [
- "M13 9h8L11 24v-9H4l9-15v9zm-2 2V7.22L7.532 13H13v4.394L17.263 11H11z",
- ],
- closeline: [
- "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",
- ],
-}
diff --git a/packages/bbui/src/Styleguide/Label.svelte b/packages/bbui/src/Label/Label.svelte
similarity index 97%
rename from packages/bbui/src/Styleguide/Label.svelte
rename to packages/bbui/src/Label/Label.svelte
index 7be6a383c8..23494a8455 100644
--- a/packages/bbui/src/Styleguide/Label.svelte
+++ b/packages/bbui/src/Label/Label.svelte
@@ -20,7 +20,8 @@
class:white
class:grey
class:black
- for={forAttr}>
+ for={forAttr}
+>
@@ -34,35 +35,27 @@
margin-bottom: var(--spacing-s);
display: block;
}
-
.extraSmall {
font-size: var(--font-size-xs);
}
-
.small {
font-size: var(--font-size-s);
}
-
.medium {
font-size: var(--font-size-m);
}
-
.large {
font-size: var(--font-size-l);
}
-
.extraLarge {
font-size: var(--font-size-xl);
}
-
.white {
color: white;
}
-
.grey {
color: var(--grey-6);
}
-
.black {
color: var(--ink);
}
diff --git a/packages/bbui/src/Layout/Layout.svelte b/packages/bbui/src/Layout/Layout.svelte
new file mode 100644
index 0000000000..ca18f3e3f6
--- /dev/null
+++ b/packages/bbui/src/Layout/Layout.svelte
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
diff --git a/packages/bbui/src/Link/Link.svelte b/packages/bbui/src/Link/Link.svelte
new file mode 100644
index 0000000000..c1613378f6
--- /dev/null
+++ b/packages/bbui/src/Link/Link.svelte
@@ -0,0 +1,20 @@
+
+
+
diff --git a/packages/bbui/src/Links/Home.svelte b/packages/bbui/src/Links/Home.svelte
deleted file mode 100644
index 29a00dcbd5..0000000000
--- a/packages/bbui/src/Links/Home.svelte
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
- {#if icon}
-
-
-
- {/if}
- {#if title}
- {title}
- {/if}
-
-
-
diff --git a/packages/bbui/src/Links/Home.svench b/packages/bbui/src/Links/Home.svench
deleted file mode 100644
index 973d7977d0..0000000000
--- a/packages/bbui/src/Links/Home.svench
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/packages/bbui/src/List/Search.svelte b/packages/bbui/src/List/Search.svelte
deleted file mode 100644
index 6d8552702d..0000000000
--- a/packages/bbui/src/List/Search.svelte
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
- {#each categories as { name, items }}
-
{name}
-
- {#each items as { name, id }}
- {name}
- {/each}
-
- {/each}
-
-
-
diff --git a/packages/bbui/src/List/Search.svench b/packages/bbui/src/List/Search.svench
deleted file mode 100644
index 696458de5e..0000000000
--- a/packages/bbui/src/List/Search.svench
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/packages/bbui/src/Menu/Item.svelte b/packages/bbui/src/Menu/Item.svelte
new file mode 100644
index 0000000000..8aed496531
--- /dev/null
+++ b/packages/bbui/src/Menu/Item.svelte
@@ -0,0 +1,39 @@
+
+
+
diff --git a/packages/bbui/src/Menu/Menu.svelte b/packages/bbui/src/Menu/Menu.svelte
new file mode 100644
index 0000000000..2fa1021732
--- /dev/null
+++ b/packages/bbui/src/Menu/Menu.svelte
@@ -0,0 +1,7 @@
+
+
+
\ No newline at end of file
diff --git a/packages/bbui/src/Menu/Menu.svench b/packages/bbui/src/Menu/Menu.svench
new file mode 100644
index 0000000000..1da76869ba
--- /dev/null
+++ b/packages/bbui/src/Menu/Menu.svench
@@ -0,0 +1,19 @@
+
+
+
+
+ - Some Item 1
+ - Some Item 2
+ - Some Item 3
+
+
+
+
\ No newline at end of file
diff --git a/packages/bbui/src/Menu/Section.svelte b/packages/bbui/src/Menu/Section.svelte
new file mode 100644
index 0000000000..54ae4123be
--- /dev/null
+++ b/packages/bbui/src/Menu/Section.svelte
@@ -0,0 +1,9 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/packages/bbui/src/Menu/Separator.svelte b/packages/bbui/src/Menu/Separator.svelte
new file mode 100644
index 0000000000..187fab2347
--- /dev/null
+++ b/packages/bbui/src/Menu/Separator.svelte
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/packages/bbui/src/Modal/Modal.svelte b/packages/bbui/src/Modal/Modal.svelte
index 3aaf6cd586..f8d07a16df 100644
--- a/packages/bbui/src/Modal/Modal.svelte
+++ b/packages/bbui/src/Modal/Modal.svelte
@@ -1,15 +1,15 @@
{#if visible}
-
+