@hanzo/ui 3.8.8 → 3.8.10
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
package/primitives/index.ts
CHANGED
|
@@ -183,7 +183,6 @@ export { default as Input } from './input'
|
|
|
183
183
|
export { default as Label } from './label'
|
|
184
184
|
export { default as LinkElement } from './link-element'
|
|
185
185
|
export { default as ListBox } from './list-box'
|
|
186
|
-
export { default as Main } from './main'
|
|
187
186
|
export { default as MDXLink } from './mdx-link'
|
|
188
187
|
export { default as MediaStack } from './media-stack'
|
|
189
188
|
export { default as NavItems} from './nav-items'
|
|
@@ -862,7 +862,7 @@ export default {
|
|
|
862
862
|
'3/4': '75%',
|
|
863
863
|
full: '100%',
|
|
864
864
|
},
|
|
865
|
-
width: {
|
|
865
|
+
width: ({ theme, breakpoints }) => ({
|
|
866
866
|
auto: 'auto',
|
|
867
867
|
...spacing,
|
|
868
868
|
'1/2': '50%',
|
|
@@ -896,7 +896,8 @@ export default {
|
|
|
896
896
|
min: 'min-content',
|
|
897
897
|
max: 'max-content',
|
|
898
898
|
fit: 'fit-content',
|
|
899
|
-
|
|
899
|
+
...breakpoints(theme('screens')),
|
|
900
|
+
}),
|
|
900
901
|
willChange: {
|
|
901
902
|
auto: 'auto',
|
|
902
903
|
scroll: 'scroll-position',
|
package/primitives/main.tsx
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react'
|
|
2
|
-
import { cn } from '../util'
|
|
3
|
-
|
|
4
|
-
const c = 'max-w-screen-2xl 2xl:w-[1500px] lg:mx-auto ' +
|
|
5
|
-
'flex flex-col justify-start items-center ' +
|
|
6
|
-
'p-4 md:px-6 lg:px-8 '
|
|
7
|
-
|
|
8
|
-
const Main: React.FC<PropsWithChildren & {
|
|
9
|
-
id?: string
|
|
10
|
-
className?: string
|
|
11
|
-
}> = ({
|
|
12
|
-
children,
|
|
13
|
-
className='',
|
|
14
|
-
id
|
|
15
|
-
}) => (
|
|
16
|
-
<main id={id ?? 'HZO_UI_MAIN'} className={cn(c, className)}>
|
|
17
|
-
{children}
|
|
18
|
-
</main>
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
export default Main
|