@latte-macchiat-io/latte-vanilla-components 0.0.124 → 0.0.126
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/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1758 -1801
- package/dist/latte-vanilla-components.css +1 -1
- package/dist/types/components/Section/export.d.ts +2 -0
- package/dist/types/components/Section/index.d.ts +3 -4
- package/dist/types/components/Section/stories.d.ts +3 -1
- package/dist/types/components/Section/styles.css.d.ts +12 -0
- package/package.json +1 -1
- package/dist/types/components/Section/styles.d.ts +0 -22
@@ -1 +1 @@
|
|
1
|
-
._1wp326d2{display:flex;background-color:var(--_1wp326d1);flex:1 1 auto;min-height:45vh;text-align:center;align-items:center;flex-direction:column;justify-content:center}@media (min-width: 768px){._1wp326d2{min-height:var(--_1wp326d0)}}
|
1
|
+
._1wp326d2{display:flex;background-color:var(--_1wp326d1);flex:1 1 auto;min-height:45vh;text-align:center;align-items:center;flex-direction:column;justify-content:center}@media (min-width: 768px){._1wp326d2{min-height:var(--_1wp326d0)}}.jqc4y0a{width:100%;display:flex;align-items:center;position:relative;flex-direction:column;animation:background .5s ease-in-out;color:var(--jqc4y02);z-index:var(--jqc4y01);min-height:var(--jqc4y07);padding-top:var(--jqc4y03);padding-left:var(--jqc4y04);padding-right:var(--jqc4y05);padding-bottom:var(--jqc4y06);background:var(--jqc4y09);justify-content:var(--jqc4y08)}.jqc4y0b{gap:15px;width:100%;display:flex;flex-direction:column;max-width:var(--max-width);text-align:var(--jqc4y00);align-items:var(--jqc4y00)}
|
@@ -1,13 +1,12 @@
|
|
1
|
-
import { CSSProperties } from 'react';
|
2
|
-
import { Align } from './types';
|
3
1
|
import { Theme } from '../../types/theme';
|
2
|
+
import { Align } from './types';
|
4
3
|
export type SectionProps = {
|
5
4
|
id?: string;
|
6
5
|
theme?: Theme;
|
7
6
|
align?: Align;
|
8
7
|
zIndex?: number;
|
9
8
|
isDark?: boolean;
|
10
|
-
|
9
|
+
className: string;
|
11
10
|
isFullHeight?: boolean;
|
12
11
|
noPaddingTop?: boolean;
|
13
12
|
children: React.ReactNode;
|
@@ -15,4 +14,4 @@ export type SectionProps = {
|
|
15
14
|
backgroundColor?: string;
|
16
15
|
backgroundGradient?: string;
|
17
16
|
};
|
18
|
-
export declare const Section: ({ children,
|
17
|
+
export declare const Section: ({ children, className, zIndex, id, isDark, align, isFullHeight, noPaddingTop, theme, backgroundColor, noPaddingBottom, }: SectionProps) => import("react").JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
2
2
|
declare const meta: {
|
3
3
|
title: string;
|
4
|
-
component: ({ children,
|
4
|
+
component: ({ children, className, zIndex, id, isDark, align, isFullHeight, noPaddingTop, theme, backgroundColor, noPaddingBottom, }: import('.').SectionProps) => import("react").JSX.Element;
|
5
5
|
parameters: {
|
6
6
|
layout: string;
|
7
7
|
};
|
@@ -12,3 +12,5 @@ export default meta;
|
|
12
12
|
type Story = StoryObj<typeof meta>;
|
13
13
|
export declare const Default: Story;
|
14
14
|
export declare const FullHeight: Story;
|
15
|
+
export declare const AlignCenter: Story;
|
16
|
+
export declare const BackgroundColor: Story;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const sectionAlignVar: `var(--${string})`;
|
2
|
+
export declare const sectionZIndexVar: `var(--${string})`;
|
3
|
+
export declare const sectionColorVar: `var(--${string})`;
|
4
|
+
export declare const sectionPaddingTopVar: `var(--${string})`;
|
5
|
+
export declare const sectionPaddingLeftVar: `var(--${string})`;
|
6
|
+
export declare const sectionPaddingRightVar: `var(--${string})`;
|
7
|
+
export declare const sectionPaddingBottomVar: `var(--${string})`;
|
8
|
+
export declare const sectionMinHeightVar: `var(--${string})`;
|
9
|
+
export declare const sectionJustifyContentVar: `var(--${string})`;
|
10
|
+
export declare const sectionBackgroundColorVar: `var(--${string})`;
|
11
|
+
export declare const styles: string;
|
12
|
+
export declare const sectionContentStyles: string;
|
package/package.json
CHANGED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { CSSProperties } from 'react';
|
2
|
-
import { Theme } from '../../types/theme';
|
3
|
-
import { Align } from './types';
|
4
|
-
interface IStyledSection {
|
5
|
-
align: Align;
|
6
|
-
theme: Theme;
|
7
|
-
zIndex: number;
|
8
|
-
isDark: boolean;
|
9
|
-
styles: CSSProperties;
|
10
|
-
isFullHeight: boolean;
|
11
|
-
noPaddingTop: boolean;
|
12
|
-
backgroundColor: string;
|
13
|
-
noPaddingBottom: boolean;
|
14
|
-
}
|
15
|
-
export declare const StyledSection: import('@emotion/styled').StyledComponent<{
|
16
|
-
theme?: import('@emotion/react').Theme;
|
17
|
-
as?: React.ElementType;
|
18
|
-
} & IStyledSection, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
19
|
-
export declare const StyledSectionContent: import('@emotion/styled').StyledComponent<Omit<import('framer-motion').HTMLMotionProps<"div">, "ref"> & import('react').RefAttributes<HTMLDivElement> & {
|
20
|
-
theme?: import('@emotion/react').Theme;
|
21
|
-
}, {}, {}>;
|
22
|
-
export {};
|