@consumidor-positivo/aurora 0.0.15 → 0.0.17
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/{Icon-BvEdGGJ8.js → Icon-CygkKQ_u.js} +2 -1
- package/dist/Icon-CygkKQ_u.js.map +1 -0
- package/dist/{IconChevronDown-ByUF26Eq.js → IconChevronDown-BUAMHcHA.js} +2 -2
- package/dist/{IconChevronDown-ByUF26Eq.js.map → IconChevronDown-BUAMHcHA.js.map} +1 -1
- package/dist/{IconChevronUp-DMOgFpez.js → IconChevronUp-DZkKM173.js} +2 -2
- package/dist/{IconChevronUp-DMOgFpez.js.map → IconChevronUp-DZkKM173.js.map} +1 -1
- package/dist/{IconLoader-DGcLyYiv.js → IconLoader-NLxJeA85.js} +2 -2
- package/dist/{IconLoader-DGcLyYiv.js.map → IconLoader-NLxJeA85.js.map} +1 -1
- package/dist/{IconMenu-KGwKAWNb.js → IconMenu-C7WPVnt2.js} +2 -2
- package/dist/{IconMenu-KGwKAWNb.js.map → IconMenu-C7WPVnt2.js.map} +1 -1
- package/dist/{IconX-CBKr9O01.js → IconX-C4ZvcreY.js} +2 -2
- package/dist/{IconX-CBKr9O01.js.map → IconX-C4ZvcreY.js.map} +1 -1
- package/dist/components/Button/index.es.js +2 -2
- package/dist/components/Drawer/hooks.d.ts +5 -3
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Drawer/index.es.js +4 -4
- package/dist/components/Drawer/index.es.js.map +1 -1
- package/dist/components/Header/index.es.js +3 -3
- package/dist/components/Header/index.es.js.map +1 -1
- package/dist/components/Header/parts/HeaderActions.stories.d.ts +1 -1
- package/dist/components/Header/parts/HeaderDrawer.stories.d.ts +2 -1
- package/dist/components/Header/parts/HeaderLogo.stories.d.ts +1 -0
- package/dist/components/Header/parts/HeaderWrap.d.ts +1 -1
- package/dist/components/Icon/styles.css +1 -1
- package/dist/components/NavbarVertical/index.es.js +3 -3
- package/dist/components/NotificationsBar/NotificationsBar.stories.d.ts +7 -0
- package/dist/components/NotificationsBar/index.d.ts +34 -0
- package/dist/components/NotificationsBar/index.es.js +69 -0
- package/dist/components/NotificationsBar/index.es.js.map +1 -0
- package/dist/components/NotificationsBar/styles.css +1 -0
- package/dist/components/icons/Icon.d.ts +1 -1
- package/dist/components/icons/index.es.js +6 -6
- package/dist/{index-DqcPsCN1.js → index-B_x8PO5h.js} +7 -7
- package/dist/{index-DqcPsCN1.js.map → index-B_x8PO5h.js.map} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.es.js +18 -10
- package/dist/main.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/Icon-BvEdGGJ8.js.map +0 -1
- /package/dist/components/Button/{Button.stories.d.ts → button.stories.d.ts} +0 -0
package/dist/main.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { Conditional } from './components/misc/Conditional';
|
|
|
4
4
|
export { Drawer } from './components/Drawer';
|
|
5
5
|
export { Header } from './components/Header';
|
|
6
6
|
export { NavbarVertical } from './components/NavbarVertical';
|
|
7
|
+
export { NotificationsBar } from './components/NotificationsBar';
|
|
7
8
|
export { ProfileNav } from './components/ProfileNav';
|
|
8
9
|
export { Text } from './components/Text';
|
|
9
10
|
export { useDrawer } from './components/Drawer/hooks';
|
package/dist/main.es.js
CHANGED
|
@@ -3,21 +3,28 @@ import { Conditional } from "./components/misc/index.es.js";
|
|
|
3
3
|
import { Drawer } from "./components/Drawer/index.es.js";
|
|
4
4
|
import { Header } from "./components/Header/index.es.js";
|
|
5
5
|
import { NavbarVertical } from "./components/NavbarVertical/index.es.js";
|
|
6
|
+
import { NotificationsBar } from "./components/NotificationsBar/index.es.js";
|
|
6
7
|
import { ProfileNav } from "./components/ProfileNav/index.es.js";
|
|
7
8
|
import { Text } from "./components/Text/index.es.js";
|
|
8
9
|
import { useState } from "react";
|
|
9
10
|
import { L, a, b, c, d, e, f, g, h, i, j, k, l, m } from "./Tertiary-DMp-1eWT.js";
|
|
10
|
-
import { ax, a_, cj, I, at, b as b2, d as d2, f as f2, c as c2, e as e2, m as m2, g as g2, n, k as k2, j as j2, h as h2, r, l as l2, p, o, x, q, u, v, y, z, t, s, N, U, w, A, B, C, E, D, G, F, H, Q, W, K, J, L as L2, M, S, O, P, R, T, V, Y, X, _, Z, $, a1, a4, a0, a5, a9, a2, a3, a6, am, a8, a7, ad, af, aa, ab, ac, ao, ae, ak, ag, ah, an, aj, aD, ai, au, al, ap, aq, aI, ar, as, ay, aM, av, aw, az, aE, aB, aA, aH, aC, aF, bm, b4, aG, aL, aJ, aR, aT, aZ, aK, aN, aO, aX, aP, aS, a$, b3, aU, aQ, bt, aW, aV, aY, b0, b2 as b22, b6, ba, b5, b1, bc, b8, bw, bd, be, bf, b7, b9, bb, bl, bo, bx, bh, bi, bg, bj, bk, bn, bB, cQ, bp, bq, by, br, bu, bs, bv, bK, bF, bz, bE, bA, bC, cc, bW, bG, bD, bH, bI, bN, bJ, bO, bX, bL, bY, bM, bZ, bP, bS, bQ, bU, bR, c1, bV, c8, bT, c3, c0, b$, b_, du, c2 as c22, c5, cd, c7, c6, c4, co, ca, c9, cm, cb, cp, ce, cD, cg, ci, cf, ch, dz, cy, cr, cl, cn, ck, cM, cz, cq, db, cs, ct, cA, cu, cv, cx, cw, cC, cI, cK, cE, cT, cB, cH, cF, cG, cJ, d0, cL, cR, d4, cN, d8, cO, dn, de, cP, d1, cS, cU, cV, cW, cX, cZ, c_, cY, d3, dl, c$, d2 as d22, d5, d6, dg, dG, d7, d9, dc, da, dM, df, dL, dd, dN, dh, di, dj, dp, dk, dq, dv, ds, dm, dF, dr, dQ, dt, dB, dw, dT, dH, dO, dx, dA, dy, dU, dE, dC, dD, dS, dJ, dP, dR, dV, dI, dK, dW, a as a10, i as i2 } from "./index-
|
|
11
|
-
import { I as I2, a as a11, b as b10 } from "./IconMenu-
|
|
12
|
-
import { I as I3 } from "./IconChevronDown-
|
|
13
|
-
import { I as I4 } from "./IconChevronUp-
|
|
14
|
-
import { I as I5 } from "./IconLoader-
|
|
15
|
-
import { I as I6 } from "./IconX-
|
|
16
|
-
import './components/main/styles.css';function useDrawer() {
|
|
17
|
-
const [drawerOpen, setDrawerOpen] = useState(
|
|
18
|
-
function handleOpenDrawer() {
|
|
19
|
-
setDrawerOpen((prev) =>
|
|
11
|
+
import { ax, a_, cj, I, at, b as b2, d as d2, f as f2, c as c2, e as e2, m as m2, g as g2, n, k as k2, j as j2, h as h2, r, l as l2, p, o, x, q, u, v, y, z, t, s, N, U, w, A, B, C, E, D, G, F, H, Q, W, K, J, L as L2, M, S, O, P, R, T, V, Y, X, _, Z, $, a1, a4, a0, a5, a9, a2, a3, a6, am, a8, a7, ad, af, aa, ab, ac, ao, ae, ak, ag, ah, an, aj, aD, ai, au, al, ap, aq, aI, ar, as, ay, aM, av, aw, az, aE, aB, aA, aH, aC, aF, bm, b4, aG, aL, aJ, aR, aT, aZ, aK, aN, aO, aX, aP, aS, a$, b3, aU, aQ, bt, aW, aV, aY, b0, b2 as b22, b6, ba, b5, b1, bc, b8, bw, bd, be, bf, b7, b9, bb, bl, bo, bx, bh, bi, bg, bj, bk, bn, bB, cQ, bp, bq, by, br, bu, bs, bv, bK, bF, bz, bE, bA, bC, cc, bW, bG, bD, bH, bI, bN, bJ, bO, bX, bL, bY, bM, bZ, bP, bS, bQ, bU, bR, c1, bV, c8, bT, c3, c0, b$, b_, du, c2 as c22, c5, cd, c7, c6, c4, co, ca, c9, cm, cb, cp, ce, cD, cg, ci, cf, ch, dz, cy, cr, cl, cn, ck, cM, cz, cq, db, cs, ct, cA, cu, cv, cx, cw, cC, cI, cK, cE, cT, cB, cH, cF, cG, cJ, d0, cL, cR, d4, cN, d8, cO, dn, de, cP, d1, cS, cU, cV, cW, cX, cZ, c_, cY, d3, dl, c$, d2 as d22, d5, d6, dg, dG, d7, d9, dc, da, dM, df, dL, dd, dN, dh, di, dj, dp, dk, dq, dv, ds, dm, dF, dr, dQ, dt, dB, dw, dT, dH, dO, dx, dA, dy, dU, dE, dC, dD, dS, dJ, dP, dR, dV, dI, dK, dW, a as a10, i as i2 } from "./index-B_x8PO5h.js";
|
|
12
|
+
import { I as I2, a as a11, b as b10 } from "./IconMenu-C7WPVnt2.js";
|
|
13
|
+
import { I as I3 } from "./IconChevronDown-BUAMHcHA.js";
|
|
14
|
+
import { I as I4 } from "./IconChevronUp-DZkKM173.js";
|
|
15
|
+
import { I as I5 } from "./IconLoader-NLxJeA85.js";
|
|
16
|
+
import { I as I6 } from "./IconX-C4ZvcreY.js";
|
|
17
|
+
import './components/main/styles.css';function useDrawer(props) {
|
|
18
|
+
const [drawerOpen, setDrawerOpen] = useState(props);
|
|
19
|
+
function handleOpenDrawer(name) {
|
|
20
|
+
setDrawerOpen((prev) => {
|
|
21
|
+
return {
|
|
22
|
+
...prev,
|
|
23
|
+
[name]: !prev[name]
|
|
24
|
+
};
|
|
25
|
+
});
|
|
20
26
|
}
|
|
27
|
+
console.log("drawerOpen", drawerOpen);
|
|
21
28
|
return {
|
|
22
29
|
handleOpenDrawer,
|
|
23
30
|
drawerOpen
|
|
@@ -354,6 +361,7 @@ export {
|
|
|
354
361
|
l as LogoPrimaryWhiteCP,
|
|
355
362
|
m as LogoTertiaryAC,
|
|
356
363
|
NavbarVertical,
|
|
364
|
+
NotificationsBar,
|
|
357
365
|
ProfileNav,
|
|
358
366
|
Text,
|
|
359
367
|
useDrawer
|
package/dist/main.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.es.js","sources":["../lib/components/Drawer/hooks.ts"],"sourcesContent":["import { useState } from 'react'\n\nexport function useDrawer() {\n const [drawerOpen, setDrawerOpen] = useState<
|
|
1
|
+
{"version":3,"file":"main.es.js","sources":["../lib/components/Drawer/hooks.ts"],"sourcesContent":["import { useState } from 'react'\n\ntype UseDrawerProps = Record<string, boolean>\n\nexport function useDrawer(props: UseDrawerProps) {\n const [drawerOpen, setDrawerOpen] = useState<UseDrawerProps>(props)\n\n function handleOpenDrawer(name: string) {\n setDrawerOpen((prev) => {\n return {\n ...prev,\n [name]: !prev[name],\n }\n })\n }\n\n console.log('drawerOpen', drawerOpen)\n return {\n handleOpenDrawer,\n drawerOpen,\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIO,SAAS,UAAU,OAAuB;AAC/C,QAAM,CAAC,YAAY,aAAa,IAAI,SAAyB,KAAK;AAElE,WAAS,iBAAiB,MAAc;AACtC,kBAAc,CAAC,SAAS;AACf,aAAA;AAAA,QACL,GAAG;AAAA,QACH,CAAC,IAAI,GAAG,CAAC,KAAK,IAAI;AAAA,MAAA;AAAA,IACpB,CACD;AAAA,EACH;AAEQ,UAAA,IAAI,cAAc,UAAU;AAC7B,SAAA;AAAA,IACL;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Icon-BvEdGGJ8.js","sources":["../lib/components/icons/Icon.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport './styles.scss'\n\ninterface IconProps {\n iconSize?: 'large' | 'default'\n iconColor?: 'dark' | 'default'\n iconMarkup?: string\n iconName?: string\n}\n\nconst Icon: React.FC<IconProps> = ({\n iconMarkup,\n iconName,\n iconSize,\n iconColor,\n}: IconProps) => {\n const componentClass = classNames('au-icon', {\n [`au-icon--${iconName?.toLocaleLowerCase()}`]: !!iconName,\n 'au-icon--color-dark': iconColor === 'dark',\n 'au-icon--size-large': iconSize === 'large',\n })\n\n return (\n <div\n className={componentClass}\n dangerouslySetInnerHTML={{\n __html: iconMarkup || '',\n }}\n />\n )\n}\n\nexport default Icon\n"],"names":[],"mappings":";;AAUA,MAAM,OAA4B,CAAC;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAiB;AACT,QAAA,iBAAiB,WAAW,WAAW;AAAA,IAC3C,CAAC,YAAY,qCAAU,mBAAmB,EAAE,GAAG,CAAC,CAAC;AAAA,IACjD,uBAAuB,cAAc;AAAA,IACrC,uBAAuB,aAAa;AAAA,EAAA,CACrC;AAGC,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,yBAAyB;AAAA,QACvB,QAAQ,cAAc;AAAA,MACxB;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
File without changes
|