@luxfi/ui 5.3.23 → 5.4.0
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.
- package/commerce/ui/conf.ts +4 -4
- package/commerce/ui/store.ts +6 -1
- package/package.json +1 -1
- package/style/fonts/COPY_TO_PUBLIC_FOR_NON_NEXT.txt +0 -0
- package/style/fonts/Druk-Wide-Bold.ttf +0 -0
- package/style/fonts/Druk-Wide-Medium.ttf +0 -0
- package/style/fonts/InterVariable-Italic.ttf +0 -0
- package/style/fonts/InterVariable-Italic.woff2 +0 -0
- package/style/fonts/InterVariable.ttf +0 -0
- package/style/fonts/InterVariable.woff2 +0 -0
- package/style/lux-fonts.css +30 -0
- package/style/lux-global-non-next.css +52 -0
package/commerce/ui/conf.ts
CHANGED
|
@@ -2,12 +2,12 @@ import type { SnapPointsConfig } from './store'
|
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
mb: {
|
|
5
|
-
micro: '
|
|
6
|
-
full: '
|
|
5
|
+
micro: '72px',
|
|
6
|
+
full: '600px'
|
|
7
7
|
},
|
|
8
8
|
|
|
9
9
|
dt: {
|
|
10
|
-
micro: '
|
|
11
|
-
full: '
|
|
10
|
+
micro: '90px',
|
|
11
|
+
full: '620px'
|
|
12
12
|
}
|
|
13
13
|
} satisfies SnapPointsConfig
|
package/commerce/ui/store.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import type { CommerceService } from '@hanzo/commerce/types'
|
|
12
12
|
|
|
13
|
-
const LOG =
|
|
13
|
+
const LOG = true ////////////////////
|
|
14
14
|
const log = (s: string) => {
|
|
15
15
|
if (LOG) {
|
|
16
16
|
console.log('COMMERCE_UI ' + s)
|
|
@@ -157,10 +157,12 @@ class CommerceUIStore implements
|
|
|
157
157
|
onActivePointChanged = (newPoint: SnapPoint | null): void => {
|
|
158
158
|
log("ON onActivePointChanged: " + newPoint) // ===========
|
|
159
159
|
if (newPoint === this._points.micro && this.activePoint === this._points.full) {
|
|
160
|
+
log("ON onActivePointChanged: to MICRO") // ===========
|
|
160
161
|
this.setIgnoreStateChange(true)
|
|
161
162
|
this.hideVariants()
|
|
162
163
|
}
|
|
163
164
|
else if (newPoint === this._points.full && this.activePoint === this._points.micro) {
|
|
165
|
+
log("ON onActivePointChanged: to FULL") // ===========
|
|
164
166
|
this.setIgnoreStateChange(true)
|
|
165
167
|
this.showRecentVariants()
|
|
166
168
|
}
|
|
@@ -210,6 +212,9 @@ class CommerceUIStore implements
|
|
|
210
212
|
}
|
|
211
213
|
else if (s === 'full') {
|
|
212
214
|
this.setActivePoint(this.points[this.points.length - 1])
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
this.setActivePoint(null)
|
|
213
218
|
}
|
|
214
219
|
}
|
|
215
220
|
|
package/package.json
CHANGED
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
|
|
3
|
+
@layer base {
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: "DrukWide";
|
|
6
|
+
src: url("/fonts/Druk-Wide-Medium.ttf");
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: "DrukWide";
|
|
12
|
+
src: url("/fonts/Druk-Wide-Bold.ttf");
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
}
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: "inter";
|
|
18
|
+
src: url("/fonts/InterVariable.woff2") format("woff2"),
|
|
19
|
+
url("/fonts/InterVariable.ttf") format("ttf");
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
}
|
|
23
|
+
@font-face {
|
|
24
|
+
font-family: "inter";
|
|
25
|
+
src: url("/fonts/InterVariable-Italic.woff2") format("woff2"),
|
|
26
|
+
url("/fonts/InterVariable-Italic.ttf") format("ttf");
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
font-style: italic;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* Note, preflight is applied first:
|
|
2
|
+
https://unpkg.com/tailwindcss@3.3.5/src/css/preflight.css
|
|
3
|
+
*/
|
|
4
|
+
@import "tailwindcss/base";
|
|
5
|
+
|
|
6
|
+
/* see https://stackoverflow.com/questions/69746121/using-nextjs-how-can-you-import-in-css-using-tailwind-css */
|
|
7
|
+
/* @import "@hanzo/ui/style/hanzo-common"; */
|
|
8
|
+
@import "lux-colors";
|
|
9
|
+
@import "lux-fonts";
|
|
10
|
+
|
|
11
|
+
@import "tailwindcss/components";
|
|
12
|
+
@import "tailwindcss/utilities";
|
|
13
|
+
|
|
14
|
+
div.nextjs-toast-errors-parent[data-nextjs-toast="true"] {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.font-heading {
|
|
19
|
+
@apply uppercase;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Specific style fixes for react-square-web-payments-sdk -
|
|
23
|
+
* reduce gap between card input and pay button
|
|
24
|
+
*/
|
|
25
|
+
#rswps-card-container {
|
|
26
|
+
min-height: unset !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.sq-card-wrapper .sq-card-message {
|
|
30
|
+
margin-top: 0 !important;
|
|
31
|
+
margin-bottom: 0 !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
.element-container:hover .icon-container-nor {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.icon-container-hov {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.element-container:hover .icon-container-hov {
|
|
44
|
+
display: block !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.element-container:hover .text-container {
|
|
48
|
+
background: transparent;
|
|
49
|
+
}
|
|
50
|
+
.overflow-scroll::-webkit-scrollbar{
|
|
51
|
+
display:none;
|
|
52
|
+
}
|