From 064c2d85514a5c6b9d3e3f6b7b3c7fce676db6e5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 16 Apr 2021 11:05:53 +0100 Subject: [PATCH] Add spectrum checkbox component --- packages/bbui/package.json | 5 +- packages/bbui/src/Form/Checkbox.svelte | 148 ++------------------ packages/bbui/src/Form/Core/Checkbox.svelte | 43 ++++++ packages/bbui/src/Form/Core/index.js | 1 + packages/bbui/yarn.lock | 8 +- 5 files changed, 69 insertions(+), 136 deletions(-) diff --git a/packages/bbui/package.json b/packages/bbui/package.json index 3d23be3ce9..d7fe9d9f26 100644 --- a/packages/bbui/package.json +++ b/packages/bbui/package.json @@ -39,9 +39,10 @@ "@spectrum-css/actiongroup": "^1.0.1", "@spectrum-css/button": "^3.0.1", "@spectrum-css/buttongroup": "^3.0.1", - "@spectrum-css/checkbox": "^3.0.1", + "@spectrum-css/checkbox": "^3.0.2", "@spectrum-css/dialog": "^3.0.1", "@spectrum-css/divider": "^1.0.1", + "@spectrum-css/fieldgroup": "^3.0.2", "@spectrum-css/fieldlabel": "^3.0.1", "@spectrum-css/icon": "^3.0.1", "@spectrum-css/label": "^2.0.9", @@ -53,8 +54,8 @@ "@spectrum-css/progressbar": "^1.0.2", "@spectrum-css/progresscircle": "^1.0.2", "@spectrum-css/table": "^3.0.1", - "@spectrum-css/textfield": "^3.0.1", "@spectrum-css/tabs": "^3.0.1", + "@spectrum-css/textfield": "^3.0.1", "@spectrum-css/toast": "^3.0.1", "@spectrum-css/typography": "^3.0.1", "@spectrum-css/underlay": "^2.0.9", diff --git a/packages/bbui/src/Form/Checkbox.svelte b/packages/bbui/src/Form/Checkbox.svelte index 21d5450123..6680ea6813 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/Core/Checkbox.svelte b/packages/bbui/src/Form/Core/Checkbox.svelte index e69de29bb2..21a79cf0c7 100644 --- a/packages/bbui/src/Form/Core/Checkbox.svelte +++ b/packages/bbui/src/Form/Core/Checkbox.svelte @@ -0,0 +1,43 @@ + + + diff --git a/packages/bbui/src/Form/Core/index.js b/packages/bbui/src/Form/Core/index.js index 1570f4e298..8c309eca85 100644 --- a/packages/bbui/src/Form/Core/index.js +++ b/packages/bbui/src/Form/Core/index.js @@ -1,3 +1,4 @@ export { default as CoreTextField } from "./TextField.svelte" export { default as CoreSelect } from "./Select.svelte" export { default as CoreMultiselect } from "./Multiselect.svelte" +export { default as Checkbox } from "./Checkbox.svelte" diff --git a/packages/bbui/yarn.lock b/packages/bbui/yarn.lock index 76f7ac03ac..2437ca20ef 100644 --- a/packages/bbui/yarn.lock +++ b/packages/bbui/yarn.lock @@ -84,7 +84,7 @@ resolved "https://registry.yarnpkg.com/@spectrum-css/buttongroup/-/buttongroup-3.0.2.tgz#fd3387973ca3131609e32112de42a1c0400a48d8" integrity sha512-Wu7B4GJ/SAeVHz9SUGAkeIH8pLaZh4t+w2ykSKOPQIRuK2jCBoudkEClVxviNVwqekccf5XLFXg9GpYF1a3Uaw== -"@spectrum-css/checkbox@^3.0.1": +"@spectrum-css/checkbox@^3.0.2": version "3.0.2" resolved "https://registry.yarnpkg.com/@spectrum-css/checkbox/-/checkbox-3.0.2.tgz#53ca2fba0d9faa1fead10e7206eb1f6cdcfd6ddd" integrity sha512-hPbGcnm7kJvJS4jp/P/bdaZvbyR1eIE9mteuZqcBgdmyp9m/k6+mW5jmsbtqb3Y4mMPWvOJFfz/sIvWJP0F0Zg== @@ -101,6 +101,11 @@ dependencies: "@spectrum-css/vars" "^3.0.2" +"@spectrum-css/fieldgroup@^3.0.2": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@spectrum-css/fieldgroup/-/fieldgroup-3.0.2.tgz#1c1afd3c444d8650fefac275dc66a7a913933846" + integrity sha512-Vyw0kQJdLW18J6w4H+YAsoLntvkw5rXmW3CH5H3SDTXkBztxtHSSe3e106Nw5MoZxTfHlom6CxbYXYCTjQfqGw== + "@spectrum-css/fieldlabel@^3.0.1": version "3.0.2" resolved "https://registry.yarnpkg.com/@spectrum-css/fieldlabel/-/fieldlabel-3.0.2.tgz#9c6d28e2c43f019cafa2bb75b54c8bc540669912" @@ -2355,6 +2360,7 @@ simple-swizzle@^0.2.2: is-arrayish "^0.3.1" "source-map-fast@npm:source-map@0.7.3", source-map@~0.7.2: + name source-map-fast version "0.7.3" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==