-
{opt.displayName}
+
+ {opt.displayName}
+
{opt.values.map((v, i: number) => {
const active = (choices as any)[
diff --git a/components/product/Swatch/Swatch.module.css b/components/product/Swatch/Swatch.module.css
index 0d23b2ecb..fca37968f 100644
--- a/components/product/Swatch/Swatch.module.css
+++ b/components/product/Swatch/Swatch.module.css
@@ -1,11 +1,13 @@
.swatch {
box-sizing: border-box;
composes: root from 'components/ui/Button/Button.module.css';
- @apply h-12 w-12 bg-primary text-primary rounded-full mr-3 inline-flex
+ @apply h-10 w-10 bg-primary text-primary rounded-full mr-3 inline-flex
items-center justify-center cursor-pointer transition duration-150 ease-in-out
p-0 shadow-none border-gray-200 border box-border;
margin-right: calc(0.75rem - 1px);
overflow: hidden;
+ width: 48px;
+ height: 48px;
}
.swatch::before,
diff --git a/components/ui/Button/Button.module.css b/components/ui/Button/Button.module.css
index 75b3ff0f9..4735d316a 100644
--- a/components/ui/Button/Button.module.css
+++ b/components/ui/Button/Button.module.css
@@ -1,13 +1,13 @@
.root {
- @apply bg-secondary text-accent-1 cursor-pointer inline-flex
- px-10 rounded-sm leading-6 transition ease-in-out duration-150
+ @apply bg-accent-9 text-accent-0 cursor-pointer inline-flex
+ px-10 py-4 rounded-sm leading-6 transition ease-in-out duration-150
shadow-sm text-center justify-center uppercase
- py-4 border border-transparent items-center text-sm font-semibold
+ border border-transparent items-center text-sm font-semibold
tracking-wide;
}
.root:hover {
- @apply bg-accent-0 text-primary border border-secondary;
+ @apply border-accent-9 bg-accent-6;
}
.root:focus {
diff --git a/components/ui/Collapse/Collapse.module.css b/components/ui/Collapse/Collapse.module.css
index 2132bf0b2..8c2a086dc 100644
--- a/components/ui/Collapse/Collapse.module.css
+++ b/components/ui/Collapse/Collapse.module.css
@@ -1,5 +1,5 @@
.root {
- @apply border-b border-accent-2 py-4 px-2 flex flex-col;
+ @apply border-b border-accent-2 py-4 flex flex-col;
}
.header {
@@ -11,11 +11,12 @@
}
.content {
- @apply pt-3 overflow-hidden pl-9;
+ @apply pt-3 overflow-hidden pl-8;
}
.icon {
@apply mr-3 text-accent-6;
+ margin-left: -6px;
transition: transform 0.2s ease;
}
diff --git a/package.json b/package.json
index 02a449400..59ed574c7 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,6 @@
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-merge-refs": "^1.1.0",
- "react-spring": "^9.2.1",
"react-ticker": "^1.2.2",
"react-use-measure": "^2.0.4",
"shopify-buy": "^2.11.0",
diff --git a/tsconfig.json b/tsconfig.json
index 9e712fb18..e20f37099 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -22,8 +22,8 @@
"@components/*": ["components/*"],
"@commerce": ["framework/commerce"],
"@commerce/*": ["framework/commerce/*"],
- "@framework": ["framework/bigcommerce"],
- "@framework/*": ["framework/bigcommerce/*"]
+ "@framework": ["framework/shopify"],
+ "@framework/*": ["framework/shopify/*"]
}
},
"include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],
diff --git a/yarn.lock b/yarn.lock
index 7df31dbda..d4558fe0f 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -980,26 +980,6 @@
"@react-spring/shared" "~9.2.0"
"@react-spring/types" "~9.2.0"
-"@react-spring/konva@~9.2.0":
- version "9.2.1"
- resolved "https://registry.yarnpkg.com/@react-spring/konva/-/konva-9.2.1.tgz#7ba9ad5d615961a7bfc60761333ee666c00b2ce5"
- integrity sha512-GnvEXElYerpD7313hwqIEbsHXz18HgHAUGWe4XV6Sf+KHhCQvw/z97PJLD5KD6XU5MawaQTYkwvqvJ6eTLV0Nw==
- dependencies:
- "@react-spring/animated" "~9.2.0"
- "@react-spring/core" "~9.2.0"
- "@react-spring/shared" "~9.2.0"
- "@react-spring/types" "~9.2.0"
-
-"@react-spring/native@~9.2.0":
- version "9.2.1"
- resolved "https://registry.yarnpkg.com/@react-spring/native/-/native-9.2.1.tgz#be1aa591c90d25dac6b68a678b50d1cbb0e4e70a"
- integrity sha512-sWum3JgFpmnpdVZKThpihl1X15oQF/zBiVTQ+csOJDBnB9jhW42WYu9r6ib9M2yxAelS17u7FnDCIfLZf7V1bg==
- dependencies:
- "@react-spring/animated" "~9.2.0"
- "@react-spring/core" "~9.2.0"
- "@react-spring/shared" "~9.2.0"
- "@react-spring/types" "~9.2.0"
-
"@react-spring/shared@~9.2.0":
version "9.2.1"
resolved "https://registry.yarnpkg.com/@react-spring/shared/-/shared-9.2.1.tgz#90ccd02b8d0ad126e0614a3cddff90664f255192"
@@ -1008,22 +988,12 @@
"@react-spring/types" "~9.2.0"
rafz "^0.1.13"
-"@react-spring/three@~9.2.0":
- version "9.2.1"
- resolved "https://registry.yarnpkg.com/@react-spring/three/-/three-9.2.1.tgz#d8df125de9e8325b51ff308c58561a8683523c80"
- integrity sha512-0gRz2y8G5szbtywvTDbaT3B+1Xseq5Yu2X02Ey8k18IksAncMZ/KFcRJIYFQn+7OlLVaoxPzXibSUNT4notWMg==
- dependencies:
- "@react-spring/animated" "~9.2.0"
- "@react-spring/core" "~9.2.0"
- "@react-spring/shared" "~9.2.0"
- "@react-spring/types" "~9.2.0"
-
"@react-spring/types@~9.2.0":
version "9.2.1"
resolved "https://registry.yarnpkg.com/@react-spring/types/-/types-9.2.1.tgz#734bbc12b4db57ca55680fd4cb197bd6e0f6a8a9"
integrity sha512-UMXLNW1l/iJCRRAsTpeqgQYjims9j8QSSMbkgi1mFZytDuaQ6r6f9ngfLgx9uDW2VSdvoNdEqGM9abVDGc4E1g==
-"@react-spring/web@^9.2.1", "@react-spring/web@~9.2.0":
+"@react-spring/web@^9.2.1":
version "9.2.1"
resolved "https://registry.yarnpkg.com/@react-spring/web/-/web-9.2.1.tgz#aeb2427545e631e29d70f3ad38afa35da560f1c5"
integrity sha512-7YimWKLuHhUZhuDchfn4Yo631KqULWCgrDLOZBu0o4AZwVMFvguVY1g0Tpm5K+68Z7kJaS0n5pf8wlwtGIOs+w==
@@ -1033,16 +1003,6 @@
"@react-spring/shared" "~9.2.0"
"@react-spring/types" "~9.2.0"
-"@react-spring/zdog@~9.2.0":
- version "9.2.1"
- resolved "https://registry.yarnpkg.com/@react-spring/zdog/-/zdog-9.2.1.tgz#93a7c7ba15d215608cf7d222c7e50352a2a66b17"
- integrity sha512-OjXoSo3/Lp8OKK0V3spyB8FWw0ttfwEdMlJyS1Ed8edLwbVv+60G6EqQT4S7M433R8W1M6Ck5f9fw0EedWsmhQ==
- dependencies:
- "@react-spring/animated" "~9.2.0"
- "@react-spring/core" "~9.2.0"
- "@react-spring/shared" "~9.2.0"
- "@react-spring/types" "~9.2.0"
-
"@samverschueren/stream-to-observable@^0.3.0":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.1.tgz#a21117b19ee9be70c379ec1877537ef2e1c63301"
@@ -5666,18 +5626,6 @@ react-refresh@0.8.3:
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.8.3.tgz#721d4657672d400c5e3c75d063c4a85fb2d5d68f"
integrity sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==
-react-spring@^9.2.1:
- version "9.2.1"
- resolved "https://registry.yarnpkg.com/react-spring/-/react-spring-9.2.1.tgz#999ff52142fbf85180b79b3b7b9266e0d3539f8d"
- integrity sha512-HLkEbuRvRtvAwkeqqwZXIEaKPPc17ViI5DYPtYTpgu2H9jmndm/kp1BfxRwpu5+m4ecGzUUX7RRNWEfwWY6oWA==
- dependencies:
- "@react-spring/core" "~9.2.0"
- "@react-spring/konva" "~9.2.0"
- "@react-spring/native" "~9.2.0"
- "@react-spring/three" "~9.2.0"
- "@react-spring/web" "~9.2.0"
- "@react-spring/zdog" "~9.2.0"
-
react-ticker@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/react-ticker/-/react-ticker-1.2.2.tgz#12cda5ff8266c6fe90ffcd8c58e12ba1596ddf24"