pipesol-notificationbar 1.0.5 → 1.0.7
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/components/NotificationStyled.d.ts +8 -0
- package/dist/components/NotificationStyled.js +45 -0
- package/dist/components/NotificationStyled.js.map +1 -0
- package/dist/components/TermsAndPrivacyCard.d.ts +5 -1
- package/dist/components/TermsAndPrivacyCard.js +41 -56
- package/dist/components/TermsAndPrivacyCard.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/TermsAndPrivacyProps.d.ts +3 -0
- package/dist/types/style/BorderProps.d.ts +5 -0
- package/dist/types/style/BorderProps.js +2 -0
- package/dist/types/style/BorderProps.js.map +1 -0
- package/dist/types/style/ColorProps.d.ts +7 -0
- package/dist/types/style/ColorProps.js +7 -0
- package/dist/types/style/ColorProps.js.map +1 -0
- package/dist/types/style/LayoutProps.d.ts +6 -0
- package/dist/types/style/LayoutProps.js +2 -0
- package/dist/types/style/LayoutProps.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BorderProps } from "@/types/style/BorderProps";
|
|
2
|
+
import { ColorProps } from "@/types/style/ColorProps";
|
|
3
|
+
interface ButtonProps extends ColorProps, BorderProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const BUTTON_STYLE_FORWARD_PROPS: (keyof ButtonProps)[];
|
|
6
|
+
export declare const NotificationButton: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ButtonProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
7
|
+
export declare const NotificationLink: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & ColorProps, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { COLOR_STYLE_FORWARD_PROPS } from "@/types/style/ColorProps";
|
|
2
|
+
import { styled } from "@mui/material";
|
|
3
|
+
export const BUTTON_STYLE_FORWARD_PROPS = [
|
|
4
|
+
'background',
|
|
5
|
+
'colorText',
|
|
6
|
+
'backgroundHover',
|
|
7
|
+
'colorHover',
|
|
8
|
+
'borderRadius',
|
|
9
|
+
'border',
|
|
10
|
+
'boxShadow',
|
|
11
|
+
];
|
|
12
|
+
export const NotificationButton = styled('button', { shouldForwardProp: (prop) => !BUTTON_STYLE_FORWARD_PROPS.includes(prop), })(({ background, colorText, backgroundHover, colorHover, borderRadius = '0', border = 'none', boxShadow = 'none' }) => ({
|
|
13
|
+
backgroundColor: background,
|
|
14
|
+
color: colorText,
|
|
15
|
+
padding: '8px 24px',
|
|
16
|
+
border: border,
|
|
17
|
+
cursor: 'pointer',
|
|
18
|
+
margin: '0 0 0 20px',
|
|
19
|
+
borderRadius: borderRadius,
|
|
20
|
+
boxShadow: boxShadow,
|
|
21
|
+
'&:hover': {
|
|
22
|
+
backgroundColor: backgroundHover,
|
|
23
|
+
color: colorHover,
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
26
|
+
export const NotificationLink = styled('a', {
|
|
27
|
+
shouldForwardProp: (prop) => !COLOR_STYLE_FORWARD_PROPS.includes(prop),
|
|
28
|
+
})(({ background, colorText, backgroundHover, colorHover }) => ({
|
|
29
|
+
width: 'auto',
|
|
30
|
+
cursor: 'pointer',
|
|
31
|
+
textDecoration: 'none',
|
|
32
|
+
textTransform: 'none',
|
|
33
|
+
textAlign: 'center',
|
|
34
|
+
boxShadow: 'none',
|
|
35
|
+
backgroundColor: background,
|
|
36
|
+
color: colorText,
|
|
37
|
+
padding: '0',
|
|
38
|
+
margin: '0',
|
|
39
|
+
'&:hover': {
|
|
40
|
+
backgroundColor: backgroundHover,
|
|
41
|
+
borderBottom: `1px solid ${colorHover}`,
|
|
42
|
+
color: colorHover,
|
|
43
|
+
},
|
|
44
|
+
}));
|
|
45
|
+
//# sourceMappingURL=NotificationStyled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationStyled.js","sourceRoot":"","sources":["../../src/components/NotificationStyled.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAc,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAMvC,MAAM,CAAC,MAAM,0BAA0B,GAA0B;IAC/D,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,WAAW;CACZ,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,QAAQ,EAC/C,EAAE,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,0BAA0B,CAAC,QAAQ,CAAC,IAAyB,CAAC,GAAG,CAAC,CACnF,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAClE,YAAY,GAAG,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAE/D,eAAe,EAAE,UAAU;IAC3B,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,UAAU;IACnB,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,YAAY;IACpB,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE,SAAS;IAEpB,SAAS,EAAE;QACP,eAAe,EAAE,eAAe;QAChC,KAAK,EAAE,UAAU;KACpB;CACJ,CAAC,CAAC,CAAC;AAGJ,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,EAAE;IAC1C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,yBAAyB,CAAC,QAAQ,CAAC,IAAwB,CAAC;CAC3F,CAAC,CAAa,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAC,EAAE,EAAE,CAAC,CAAC;IACzE,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,MAAM;IACtB,aAAa,EAAE,MAAM;IACrB,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,MAAM;IACjB,eAAe,EAAE,UAAU;IAC3B,KAAK,EAAE,SAAS;IAChB,OAAO,EAAE,GAAG;IACZ,MAAM,EAAE,GAAG;IAEX,SAAS,EAAE;QACT,eAAe,EAAE,eAAe;QAChC,YAAY,EAAE,aAAa,UAAU,EAAE;QACvC,KAAK,EAAE,UAAU;KAClB;CACF,CAAC,CAAC,CAAC"}
|
|
@@ -4,17 +4,21 @@ import { TermsAndPrivacyProps } from '../types/TermsAndPrivacyProps';
|
|
|
4
4
|
* exibindo links para **Termos de Uso** e **Política de Privacidade** e dois botões:
|
|
5
5
|
* **Cancelar** (define cookieConsent como "false") e **Ok** (define cookieConsent como "true").
|
|
6
6
|
*
|
|
7
|
-
* O card é exibido somente quando o cookie `cookieConsent` ainda **não** foi definido como "true" ou "false"
|
|
7
|
+
* O card é exibido somente quando o cookie `cookieConsent` ainda **não** foi definido como "true" ou "false"
|
|
8
|
+
* **e** o usuário já rolou a página (scroll > 0), evitando sobreposição no banner inicial.
|
|
8
9
|
* Ao clicar em "Ok" ou "Cancelar", o cookie é persistido por 1 ano e o card é ocultado.
|
|
9
10
|
*
|
|
10
11
|
* @param {string} url_termo_uso URL para a página de Termos de Uso. Obrigatório.
|
|
11
12
|
* @param {string} url_politica_privacidade URL para a página de Política de Privacidade. Obrigatório.
|
|
12
13
|
* @param {string} [background_color='transparent'] Cor de fundo do container do card.
|
|
13
14
|
* @param {string} [color='#000000'] Cor do texto principal.
|
|
15
|
+
* @param {string} [border_radius='0'] Border Radius do card.
|
|
14
16
|
* @param {string} [background_color_button_ok='transparent'] Cor de fundo do botão "Ok".
|
|
15
17
|
* @param {string} [color_button_ok='#000000'] Cor do texto do botão "Ok".
|
|
18
|
+
* @param {string} [border_radius_button_ok='0'] Border Radius do botão "Ok".
|
|
16
19
|
* @param {string} [background_color_button_cancel='transparent'] Cor de fundo do botão "Cancelar".
|
|
17
20
|
* @param {string} [color_button_cancel='#000000'] Cor do texto do botão "Cancelar".
|
|
21
|
+
* @param {string} [border_radius_button_cancel='0'] Border Radius do botão "Cancelar".
|
|
18
22
|
* @param {string} [background_color_link='transparent'] Cor de fundo dos links ("Termos de Uso" e "Política de Privacidade").
|
|
19
23
|
* @param {string} [color_link='#000000'] Cor do texto dos links.
|
|
20
24
|
* @param {string} [background_color_hover_link='transparent'] Cor de fundo dos links no hover.
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { styled, Typography } from '@mui/material';
|
|
5
5
|
import { parseCookies, setCookie } from 'nookies';
|
|
6
|
+
import { NotificationButton, NotificationLink } from './NotificationStyled';
|
|
6
7
|
const Container = styled('div', {
|
|
7
|
-
shouldForwardProp: (prop) => ![
|
|
8
|
-
|
|
9
|
-
'show'
|
|
10
|
-
].includes(prop)
|
|
11
|
-
})(({ show, background_color }) => ({
|
|
8
|
+
shouldForwardProp: (prop) => !['show', 'background', 'borderRadius'].includes(prop),
|
|
9
|
+
})(({ show, background, borderRadius }) => ({
|
|
12
10
|
position: 'fixed',
|
|
13
|
-
bottom: '
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
backgroundColor: background_color,
|
|
11
|
+
bottom: '35px',
|
|
12
|
+
left: '35px',
|
|
13
|
+
background: background,
|
|
17
14
|
display: show ? 'block' : 'none',
|
|
18
15
|
zIndex: 4000,
|
|
19
16
|
maxWidth: '280px',
|
|
20
17
|
height: 'fit-content',
|
|
18
|
+
borderRadius: borderRadius,
|
|
21
19
|
boxSizing: 'border-box',
|
|
22
20
|
}));
|
|
23
21
|
const Content = styled('div')({
|
|
@@ -29,60 +27,35 @@ const Content = styled('div')({
|
|
|
29
27
|
width: '100%',
|
|
30
28
|
boxSizing: 'border-box',
|
|
31
29
|
});
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
border: 'none',
|
|
42
|
-
cursor: 'pointer',
|
|
43
|
-
margin: '0 0 0 20px',
|
|
44
|
-
borderRadius: theme.shape.borderRadius,
|
|
45
|
-
}));
|
|
46
|
-
const LinkStyled = styled('a', {
|
|
47
|
-
shouldForwardProp: (prop) => ![
|
|
48
|
-
'background_color',
|
|
49
|
-
'background_color_hover',
|
|
50
|
-
'color',
|
|
51
|
-
'color_hover'
|
|
52
|
-
].includes(prop),
|
|
53
|
-
})(({ background_color, background_color_hover, color, color_hover, }) => ({
|
|
54
|
-
width: 'auto',
|
|
55
|
-
cursor: 'pointer',
|
|
56
|
-
textDecoration: 'none',
|
|
57
|
-
textTransform: 'none',
|
|
58
|
-
textAlign: 'center',
|
|
59
|
-
boxShadow: 'none',
|
|
60
|
-
backgroundColor: background_color,
|
|
61
|
-
color: color,
|
|
62
|
-
padding: '0',
|
|
63
|
-
margin: '0',
|
|
64
|
-
'&:hover': {
|
|
65
|
-
backgroundColor: background_color_hover,
|
|
66
|
-
borderBottom: `1px solid ${color_hover}`,
|
|
67
|
-
color: color_hover,
|
|
68
|
-
},
|
|
69
|
-
}));
|
|
30
|
+
const ContentButton = styled('div')({
|
|
31
|
+
display: 'flex',
|
|
32
|
+
flexDirection: 'row',
|
|
33
|
+
justifyContent: 'center',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
padding: '16px',
|
|
36
|
+
width: '100%',
|
|
37
|
+
boxSizing: 'border-box',
|
|
38
|
+
});
|
|
70
39
|
/**
|
|
71
40
|
* Componente que renderiza um card flutuante (fixed) para consentimento de cookies,
|
|
72
41
|
* exibindo links para **Termos de Uso** e **Política de Privacidade** e dois botões:
|
|
73
42
|
* **Cancelar** (define cookieConsent como "false") e **Ok** (define cookieConsent como "true").
|
|
74
43
|
*
|
|
75
|
-
* O card é exibido somente quando o cookie `cookieConsent` ainda **não** foi definido como "true" ou "false"
|
|
44
|
+
* O card é exibido somente quando o cookie `cookieConsent` ainda **não** foi definido como "true" ou "false"
|
|
45
|
+
* **e** o usuário já rolou a página (scroll > 0), evitando sobreposição no banner inicial.
|
|
76
46
|
* Ao clicar em "Ok" ou "Cancelar", o cookie é persistido por 1 ano e o card é ocultado.
|
|
77
47
|
*
|
|
78
48
|
* @param {string} url_termo_uso URL para a página de Termos de Uso. Obrigatório.
|
|
79
49
|
* @param {string} url_politica_privacidade URL para a página de Política de Privacidade. Obrigatório.
|
|
80
50
|
* @param {string} [background_color='transparent'] Cor de fundo do container do card.
|
|
81
51
|
* @param {string} [color='#000000'] Cor do texto principal.
|
|
52
|
+
* @param {string} [border_radius='0'] Border Radius do card.
|
|
82
53
|
* @param {string} [background_color_button_ok='transparent'] Cor de fundo do botão "Ok".
|
|
83
54
|
* @param {string} [color_button_ok='#000000'] Cor do texto do botão "Ok".
|
|
55
|
+
* @param {string} [border_radius_button_ok='0'] Border Radius do botão "Ok".
|
|
84
56
|
* @param {string} [background_color_button_cancel='transparent'] Cor de fundo do botão "Cancelar".
|
|
85
57
|
* @param {string} [color_button_cancel='#000000'] Cor do texto do botão "Cancelar".
|
|
58
|
+
* @param {string} [border_radius_button_cancel='0'] Border Radius do botão "Cancelar".
|
|
86
59
|
* @param {string} [background_color_link='transparent'] Cor de fundo dos links ("Termos de Uso" e "Política de Privacidade").
|
|
87
60
|
* @param {string} [color_link='#000000'] Cor do texto dos links.
|
|
88
61
|
* @param {string} [background_color_hover_link='transparent'] Cor de fundo dos links no hover.
|
|
@@ -117,28 +90,40 @@ const LinkStyled = styled('a', {
|
|
|
117
90
|
* ```
|
|
118
91
|
*/
|
|
119
92
|
const TermsAndPrivacyCard = (props) => {
|
|
120
|
-
const { url_termo_uso, url_politica_privacidade, background_color = 'transparent', color =
|
|
121
|
-
const [
|
|
93
|
+
const { url_termo_uso, url_politica_privacidade, background_color = 'transparent', color = '#000000', border_radius = '0', background_color_button_ok = 'transparent', color_button_ok = '#000000', border_radius_button_ok = '0', background_color_button_cancel = 'transparent', color_button_cancel = '#000000', border_radius_button_cancel = '0', background_color_link = 'transparent', color_link = '#000000', background_color_hover_link = 'transparent', color_hover_link = '#000000', variantTexto = 'caption', variantButton = 'caption', } = props;
|
|
94
|
+
const [canShowByCookie, setCanShowByCookie] = useState(false);
|
|
95
|
+
const [hasScrolledDown, setHasScrolledDown] = useState(false);
|
|
122
96
|
useEffect(() => {
|
|
123
97
|
const cookies = parseCookies();
|
|
124
|
-
const
|
|
125
|
-
|
|
98
|
+
const consentIsNotDefined = cookies.cookieConsent !== 'true' && cookies.cookieConsent !== 'false';
|
|
99
|
+
setCanShowByCookie(consentIsNotDefined);
|
|
100
|
+
const handleScroll = () => {
|
|
101
|
+
setHasScrolledDown(window.scrollY > 0);
|
|
102
|
+
};
|
|
103
|
+
// Checa imediatamente o estado do scroll (evita inconsistência ao entrar em âncora/rota com scroll)
|
|
104
|
+
handleScroll();
|
|
105
|
+
window.addEventListener('scroll', handleScroll, { passive: true });
|
|
106
|
+
return () => {
|
|
107
|
+
window.removeEventListener('scroll', handleScroll);
|
|
108
|
+
};
|
|
126
109
|
}, []);
|
|
110
|
+
const showNotification = canShowByCookie && hasScrolledDown;
|
|
127
111
|
const handleAccept = () => {
|
|
128
112
|
setCookie(null, 'cookieConsent', 'true', {
|
|
129
113
|
maxAge: 60 * 60 * 24 * 365,
|
|
130
114
|
path: '/',
|
|
131
115
|
});
|
|
132
|
-
|
|
116
|
+
setCanShowByCookie(false);
|
|
133
117
|
};
|
|
134
118
|
const handleReject = () => {
|
|
135
119
|
setCookie(null, 'cookieConsent', 'false', {
|
|
136
120
|
maxAge: 60 * 60 * 24 * 365,
|
|
137
121
|
path: '/',
|
|
138
122
|
});
|
|
139
|
-
|
|
123
|
+
setCanShowByCookie(false);
|
|
140
124
|
};
|
|
141
|
-
return (_jsx(Container, { show: showNotification,
|
|
125
|
+
return (_jsx(Container, { show: showNotification, background: background_color, borderRadius: border_radius, children: _jsxs(Content, { children: [_jsxs(Typography, { component: "div", variant: variantTexto, color: color, sx: { width: '100%' }, children: ["Este site usa cookies e dados pessoais de acordo com os nossos", ' ', _jsx(NotificationLink, { href: url_termo_uso, background: background_color_link, backgroundHover: background_color_hover_link, colorText: color_link, colorHover: color_hover_link, children: "Termos de Uso" }), ' ', "e", ' ', _jsx(NotificationLink, { href: url_politica_privacidade, background: background_color_link, backgroundHover: background_color_hover_link, colorText: color_link, colorHover: color_hover_link, children: "Pol\u00EDtica de Privacidade" }), ". Ao continuar navegando neste site, voc\u00EA declara estar ciente dessas condi\u00E7\u00F5es."] }), _jsxs(ContentButton, { children: [_jsx(NotificationButton, { background: background_color_button_cancel, backgroundHover: background_color_button_cancel, colorText: color_button_cancel, colorHover: color_button_cancel, borderRadius: border_radius_button_cancel, onClick: handleReject, children: _jsx(Typography, { variant: variantButton, component: "span", children: "Cancelar" }) }), _jsx(NotificationButton, { background: background_color_button_ok, backgroundHover: background_color_button_ok, colorText: color_button_ok, colorHover: color_button_ok, borderRadius: border_radius_button_ok, onClick: handleAccept, children: _jsx(Typography, { variant: variantButton, component: "span", children: "Ok" }) })] })] }) }));
|
|
142
126
|
};
|
|
143
127
|
export default TermsAndPrivacyCard;
|
|
128
|
+
TermsAndPrivacyCard.displayName = 'TermsAndPrivacyCard';
|
|
144
129
|
//# sourceMappingURL=TermsAndPrivacyCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TermsAndPrivacyCard.js","sourceRoot":"","sources":["../../src/components/TermsAndPrivacyCard.tsx"],"names":[],"mappings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,EAAE,MAAM,EAAE,+EACrB,GAAG,EAClE,KAAC,gBAAgB,IACf,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,qBAAqB,EACjC,eAAe,EAAE,2BAA2B,EAC5C,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,gBAAgB,8BAGX,EAAC,GAAG,OACrB,GAAG,EACL,KAAC,gBAAgB,IACf,IAAI,EAAE,wBAAwB,EAC9B,UAAU,EAAE,qBAAqB,EACjC,eAAe,EAAE,2BAA2B,EAC5C,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,gBAAgB,6CAGX,uGAER,EAEb,MAAC,aAAa,eACZ,KAAC,kBAAkB,IACjB,UAAU,EAAE,8BAA8B,EAC1C,eAAe,EAAE,8BAA8B,EAC/C,SAAS,EAAE,mBAAmB,EAC9B,UAAU,EAAE,mBAAmB,EAC/B,YAAY,EAAE,2BAA2B,EACzC,OAAO,EAAE,YAAY,YAErB,KAAC,UAAU,IAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,yBAEvC,GACM,EAErB,KAAC,kBAAkB,IACjB,UAAU,EAAE,0BAA0B,EACtC,eAAe,EAAE,0BAA0B,EAC3C,SAAS,EAAE,eAAe,EAC1B,UAAU,EAAE,eAAe,EAC3B,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE,YAAY,YAErB,KAAC,UAAU,IAAC,OAAO,EAAE,aAAa,EAAE,SAAS,EAAC,MAAM,mBAEvC,GACM,IACP,IACR,GACA,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC;AAEnC,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { default as TermsAndPrivacyBar } from './components/TermsAndPrivacyBar';
|
|
2
2
|
export { default as TermsAndPrivacyCard } from './components/TermsAndPrivacyCard';
|
|
3
|
+
export type { BorderProps } from "./types/style/BorderProps";
|
|
4
|
+
export type { LayoutProps } from "./types/style/LayoutProps";
|
|
5
|
+
export type { ColorProps } from "./types/style/ColorProps";
|
|
6
|
+
export { COLOR_STYLE_FORWARD_PROPS } from './types/style/ColorProps';
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAC,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAMjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC"}
|