@hanzo/ui 3.6.2 → 3.6.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.4",
|
|
4
4
|
"description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -16,10 +16,17 @@
|
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"components",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"ecommerce",
|
|
20
|
+
"analytics",
|
|
21
|
+
"ai",
|
|
22
|
+
"chat",
|
|
23
|
+
"hanzo",
|
|
24
|
+
"hanzo-ai",
|
|
21
25
|
"hanzoai",
|
|
22
|
-
"
|
|
26
|
+
"radix-ui",
|
|
27
|
+
"react",
|
|
28
|
+
"sdk",
|
|
29
|
+
"ui"
|
|
23
30
|
],
|
|
24
31
|
"scripts": {
|
|
25
32
|
"lat": "npm show @hanzo/ui version",
|
|
@@ -27,20 +27,37 @@ const StepIndicator: React.FC<{
|
|
|
27
27
|
style={{ paddingLeft: pX, paddingRight: pX }}
|
|
28
28
|
>
|
|
29
29
|
{steps.map((ignore, index) => (<>
|
|
30
|
-
{index !== 0 && (
|
|
30
|
+
{index !== 0 && (
|
|
31
|
+
<div
|
|
32
|
+
key={`sep-${index}`}
|
|
33
|
+
className={cn(
|
|
34
|
+
'h-[1px] grow',
|
|
35
|
+
currentStep >= index ? (muted ? 'bg-muted' : 'bg-foreground') : (muted ? 'bg-muted-3' : 'bg-level-3'),
|
|
36
|
+
)}
|
|
37
|
+
/>
|
|
38
|
+
)}
|
|
31
39
|
<div
|
|
32
40
|
key={`circle-${index}`}
|
|
33
41
|
style={{width: `${dotSizeRem}rem`, height: `${dotSizeRem}rem`}}
|
|
34
42
|
className={cn(
|
|
35
|
-
'shrink-0 rounded-full border-[1.5px]
|
|
36
|
-
currentStep === index ? (muted ? 'bg-muted' : 'bg-foreground') : ''
|
|
43
|
+
'shrink-0 rounded-full border-[1.5px]',
|
|
44
|
+
currentStep === index ? (muted ? 'bg-muted-3 border-muted' : 'bg-level-3 border-foreground') : '',
|
|
45
|
+
currentStep > index || currentStep === steps.length - 1 ? (muted ? 'bg-muted border-muted' : 'bg-foreground border-foreground') : ''
|
|
37
46
|
)}
|
|
38
47
|
/>
|
|
39
48
|
</>))}
|
|
40
49
|
</div>
|
|
41
50
|
<div key='two' className={'grid ' + `grid-cols-${steps.length}` /* These are white listed already */} >
|
|
42
51
|
{steps.map((label, index) => (
|
|
43
|
-
<div
|
|
52
|
+
<div
|
|
53
|
+
key={index}
|
|
54
|
+
className={cn(
|
|
55
|
+
'text-center whitespace-nowrap',
|
|
56
|
+
(muted ? 'text-muted' : 'text-foreground')
|
|
57
|
+
)}
|
|
58
|
+
>
|
|
59
|
+
{label}
|
|
60
|
+
</div>
|
|
44
61
|
))}
|
|
45
62
|
</div>
|
|
46
63
|
</div>
|
|
@@ -89,17 +89,20 @@ const defaultCSS = {
|
|
|
89
89
|
h1: {
|
|
90
90
|
color: 'var(--tw-typo-plugin-headings)',
|
|
91
91
|
fontWeight: '800',
|
|
92
|
-
textAlign: 'inherit'
|
|
92
|
+
textAlign: 'inherit',
|
|
93
|
+
textTransform: 'uppercase'
|
|
93
94
|
},
|
|
94
95
|
h2: {
|
|
95
96
|
color: 'var(--tw-typo-plugin-headings)',
|
|
96
97
|
fontWeight: '700',
|
|
97
|
-
textAlign: 'inherit'
|
|
98
|
+
textAlign: 'inherit',
|
|
99
|
+
textTransform: 'uppercase'
|
|
98
100
|
},
|
|
99
101
|
h3: {
|
|
100
102
|
color: 'var(--tw-typo-plugin-headings)',
|
|
101
103
|
fontWeight: '600',
|
|
102
|
-
textAlign: 'inherit'
|
|
104
|
+
textAlign: 'inherit',
|
|
105
|
+
textTransform: 'uppercase'
|
|
103
106
|
},
|
|
104
107
|
h4: {
|
|
105
108
|
color: 'var(--tw-typo-plugin-headings)',
|