@latte-macchiat-io/latte-vanilla-components 0.0.460 → 0.0.462

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": "@latte-macchiat-io/latte-vanilla-components",
3
- "version": "0.0.460",
3
+ "version": "0.0.462",
4
4
  "description": "Beautiful components for amazing projects, with a touch of Vanilla 🥤",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -1,29 +1,28 @@
1
- // import { alertBoxContent, AlertBoxVariants } from './styles.css';
1
+ import { alertBoxContent, AlertBoxVariants } from './styles.css';
2
2
 
3
- // import { Box } from '..';
3
+ import { Box } from '..';
4
4
 
5
- // import { themeContract } from '../../../theme/contract.css';
5
+ import { themeContract } from '../../../theme/contract.css';
6
6
 
7
- // import { Heading } from '../../Heading';
8
- // import { Icon } from '../../Icon';
9
- // import icons from '../../Icon/path';
10
- // import { Paragraph } from '../../Paragraph';
7
+ import { Heading } from '../../Heading';
8
+ import { Icon } from '../../Icon';
9
+ import icons from '../../Icon/path';
10
+ import { Paragraph } from '../../Paragraph';
11
11
 
12
- // export type AlertBoxProps = React.HTMLAttributes<HTMLDivElement> &
13
- // AlertBoxVariants & {
14
- // text: string;
15
- // noIcon?: boolean;
16
- // title?: string | null;
17
- // };
12
+ export type AlertBoxProps = React.HTMLAttributes<HTMLDivElement> & {
13
+ text: string;
14
+ noIcon?: boolean;
15
+ title?: string | null;
16
+ };
18
17
 
19
- // export const AlertBox = ({ title, text, noIcon = false, variant = 'info', className }: AlertBoxProps) => {
20
- // return (
21
- // <Box className={className} variant={variant} direction="row">
22
- // {!noIcon && <Icon iconPath={icons.close} size={50} color={themeContract.boxAlert.variant[variant].iconColor} />}
23
- // <div className={alertBoxContent}>
24
- // {title && <Heading as="h4">{title}</Heading>}
25
- // <Paragraph>{text}</Paragraph>
26
- // </div>
27
- // </Box>
28
- // );
29
- // };
18
+ export const AlertBox = ({ title, text, noIcon = false, className }: AlertBoxProps) => {
19
+ return (
20
+ <Box direction="row">
21
+ {/* {!noIcon && <Icon iconPath={icons.close} size={50} color={themeContract.boxAlert.variant[variant].iconColor} />} */}
22
+ <div className={alertBoxContent}>
23
+ {title && <Heading as="h4">{title}</Heading>}
24
+ <Paragraph>{text}</Paragraph>
25
+ </div>
26
+ </Box>
27
+ );
28
+ };
@@ -1,38 +1,38 @@
1
- // import { globalStyle, style } from '@vanilla-extract/css';
1
+ import { globalStyle, style } from '@vanilla-extract/css';
2
2
 
3
- // import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
4
- // import { themeContract } from '../../../theme/contract.css';
5
- // import { generateResponsiveMedia } from '../../../utils/generateResponsiveMedia';
3
+ import { recipe, RecipeVariants } from '@vanilla-extract/recipes';
4
+ import { themeContract } from '../../../theme/contract.css';
5
+ import { generateResponsiveMedia } from '../../../utils/generateResponsiveMedia';
6
6
 
7
- // export const alertBox = recipe({
8
- // variants: {
9
- // variant: {
10
- // warning: {
11
- // backgroundColor: themeContract.section.variant.primary.backgroundColor,
12
- // },
13
- // info: {
14
- // backgroundColor: themeContract.section.variant.primary.backgroundColor,
15
- // },
16
- // success: {
17
- // backgroundColor: themeContract.section.variant.primary.backgroundColor,
18
- // },
19
- // danger: {
20
- // backgroundColor: themeContract.section.variant.primary.backgroundColor,
21
- // },
22
- // },
23
- // },
24
- // });
7
+ export const alertBox = recipe({
8
+ variants: {
9
+ variant: {
10
+ warning: {
11
+ backgroundColor: themeContract.section.variant.primary.backgroundColor,
12
+ },
13
+ info: {
14
+ backgroundColor: themeContract.section.variant.primary.backgroundColor,
15
+ },
16
+ success: {
17
+ backgroundColor: themeContract.section.variant.primary.backgroundColor,
18
+ },
19
+ danger: {
20
+ backgroundColor: themeContract.section.variant.primary.backgroundColor,
21
+ },
22
+ },
23
+ },
24
+ });
25
25
 
26
- // globalStyle(`${alertBox} > div `, {
27
- // flexDirection: 'row',
26
+ globalStyle(`${alertBox} > div `, {
27
+ flexDirection: 'row',
28
28
 
29
- // '@media': generateResponsiveMedia({
30
- // gap: themeContract.box.gap,
31
- // }),
32
- // });
29
+ '@media': generateResponsiveMedia({
30
+ gap: themeContract.box.gap,
31
+ }),
32
+ });
33
33
 
34
- // export const alertBoxContent = style({
35
- // width: '100%',
36
- // });
34
+ export const alertBoxContent = style({
35
+ width: '100%',
36
+ });
37
37
 
38
- // export type AlertBoxVariants = RecipeVariants<typeof alertBox>;
38
+ export type AlertBoxVariants = RecipeVariants<typeof alertBox>;
package/src/index.ts CHANGED
@@ -25,7 +25,7 @@ export * from './components/Header/HeaderToggleNav/export';
25
25
  export * from './components/Footer/export';
26
26
 
27
27
  export * from './components/Box/export';
28
- // export * from './components/Box/Alert/export';
28
+ export * from './components/Box/Alert/export';
29
29
 
30
30
  export * from './components/Nav/export';
31
31