@consumidor-positivo/aurora 0.0.11 → 0.0.13
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/IconChevronDown-BJEq9Qlz.cjs +2 -0
- package/dist/IconChevronDown-BJEq9Qlz.cjs.map +1 -0
- package/dist/IconChevronDown-LKLlTSau.js +33 -0
- package/dist/IconChevronDown-LKLlTSau.js.map +1 -0
- package/dist/IconChevronUp--WhWeQrm.js +33 -0
- package/dist/IconChevronUp--WhWeQrm.js.map +1 -0
- package/dist/IconChevronUp-n6YCgc_K.cjs +2 -0
- package/dist/IconChevronUp-n6YCgc_K.cjs.map +1 -0
- package/dist/{IconChevronDown-HbOwUDw5.js → IconMenu-BQ0cIqwI.js} +18 -6
- package/dist/IconMenu-BQ0cIqwI.js.map +1 -0
- package/dist/{IconChevronDown-sEGWmwfL.cjs → IconMenu-FVdQl9jm.cjs} +2 -2
- package/dist/IconMenu-FVdQl9jm.cjs.map +1 -0
- package/dist/IconX-DrZE4iYc.cjs +2 -0
- package/dist/IconX-DrZE4iYc.cjs.map +1 -0
- package/dist/IconX-V_l5Ne0d.js +33 -0
- package/dist/IconX-V_l5Ne0d.js.map +1 -0
- package/dist/components/Button/styles.css +1 -1
- package/dist/components/Drawer/Drawer.stories.d.ts +9 -0
- package/dist/components/Drawer/hooks.d.ts +4 -0
- package/dist/components/Drawer/index.cjs.js +2 -0
- package/dist/components/Drawer/index.cjs.js.map +1 -0
- package/dist/components/Drawer/index.d.ts +10 -0
- package/dist/components/Drawer/index.es.js +30 -0
- package/dist/components/Drawer/index.es.js.map +1 -0
- package/dist/components/Drawer/styles.css +1 -0
- package/dist/components/Header/index.cjs.js +1 -1
- package/dist/components/Header/index.cjs.js.map +1 -1
- package/dist/components/Header/index.d.ts +23 -18
- package/dist/components/Header/index.es.js +92 -25
- package/dist/components/Header/index.es.js.map +1 -1
- package/dist/components/Header/parts/HeaderActions.d.ts +7 -0
- package/dist/components/Header/parts/HeaderActions.stories.d.ts +9 -0
- package/dist/components/Header/parts/HeaderBadges.d.ts +6 -0
- package/dist/components/Header/parts/HeaderButton.d.ts +7 -0
- package/dist/components/Header/parts/HeaderDrawer.stories.d.ts +7 -0
- package/dist/components/Header/parts/HeaderLink.d.ts +7 -0
- package/dist/components/Header/parts/HeaderLogo.d.ts +5 -4
- package/dist/components/Header/parts/HeaderLogo.stories.d.ts +7 -0
- package/dist/components/Header/parts/HeaderNavIntern.stories.d.ts +10 -0
- package/dist/components/Header/parts/HeaderNavbar.d.ts +1 -2
- package/dist/components/Header/parts/HeaderNavbar.stories.d.ts +7 -0
- package/dist/components/Header/parts/HeaderNavbarLink.d.ts +1 -1
- package/dist/components/Header/parts/HeaderNavigation.d.ts +1 -2
- package/dist/components/Header/parts/HeaderProfile.d.ts +5 -0
- package/dist/components/Header/parts/HeaderWrap.d.ts +1 -2
- package/dist/components/Header/styles.css +1 -1
- package/dist/components/Header/types.d.ts +1 -0
- package/dist/components/IsMobile/index.cjs.js +2 -0
- package/dist/components/IsMobile/index.cjs.js.map +1 -0
- package/dist/components/IsMobile/index.d.ts +8 -0
- package/dist/components/IsMobile/index.es.js +21 -0
- package/dist/components/IsMobile/index.es.js.map +1 -0
- package/dist/components/Logo/Logo.d.ts +7 -0
- package/dist/components/Logo/ac/Badget.d.ts +1 -0
- package/dist/components/Logo/ac/Logo.stories.d.ts +1 -0
- package/dist/components/Logo/cp/Badget.d.ts +1 -0
- package/dist/components/Logo/cp/Logo.stories.d.ts +1 -0
- package/dist/components/Logo/index.cjs.js +1 -1
- package/dist/components/Logo/index.cjs.js.map +1 -1
- package/dist/components/Logo/index.d.ts +9 -7
- package/dist/components/Logo/index.es.js +192 -124
- package/dist/components/Logo/index.es.js.map +1 -1
- package/dist/components/Logo/styles.css +1 -0
- package/dist/components/NavbarVertical/NavbarVertical.stories.d.ts +8 -0
- package/dist/components/NavbarVertical/index.cjs.js +2 -0
- package/dist/components/NavbarVertical/index.cjs.js.map +1 -0
- package/dist/components/NavbarVertical/index.d.ts +19 -0
- package/dist/components/NavbarVertical/index.es.js +85 -0
- package/dist/components/NavbarVertical/index.es.js.map +1 -0
- package/dist/components/NavbarVertical/styles.css +1 -0
- package/dist/components/ProfileNav/index.cjs.js +2 -0
- package/dist/components/ProfileNav/index.cjs.js.map +1 -0
- package/dist/components/ProfileNav/index.d.ts +6 -0
- package/dist/components/ProfileNav/index.es.js +18 -0
- package/dist/components/ProfileNav/index.es.js.map +1 -0
- package/dist/components/ProfileNav/styles.css +1 -0
- package/dist/components/Text/Text.stories.d.ts +1 -0
- package/dist/components/Text/index.cjs.js +1 -1
- package/dist/components/Text/index.cjs.js.map +1 -1
- package/dist/components/Text/index.es.js +2 -2
- package/dist/components/Text/index.es.js.map +1 -1
- package/dist/components/Text/styles.css +1 -1
- package/dist/components/Text/types.d.ts +1 -1
- package/dist/components/icons/default/index.d.ts +184 -178
- package/dist/components/icons/default/index.default.stories.d.ts +184 -178
- package/dist/components/icons/index.cjs.js +1 -1
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/icons/index.es.js +3 -4
- package/dist/core/utils/isClient.d.ts +1 -0
- package/dist/core/utils/isMobile.d.ts +1 -0
- package/dist/index-BSpLEaK5.cjs +2 -0
- package/dist/index-BSpLEaK5.cjs.map +1 -0
- package/dist/{index-DUFPL8kH.js → index-DIN6Mew7.js} +853 -839
- package/dist/index-DIN6Mew7.js.map +1 -0
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +6 -0
- package/dist/main.es.js +13 -1
- package/dist/main.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/IconChevronDown-HbOwUDw5.js.map +0 -1
- package/dist/IconChevronDown-sEGWmwfL.cjs.map +0 -1
- package/dist/components/Header/Header.stories.d.ts +0 -15
- package/dist/components/Header/parts/HeaderNavbarActions.d.ts +0 -6
- package/dist/components/icons/colorful/IconColorfulPositive.d.ts +0 -1
- package/dist/components/icons/colorful/IconColorfulWarning.d.ts +0 -1
- package/dist/components/icons/colorful/index.colorful.stories.d.ts +0 -7
- package/dist/components/icons/colorful/index.d.ts +0 -1
- package/dist/index-DUFPL8kH.js.map +0 -1
- package/dist/index-xuYOAHrj.cjs +0 -2
- package/dist/index-xuYOAHrj.cjs.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type NavbarVerticalDataProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
Icon?: ReactNode;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
dropdown?: NavbarVerticalDataProps[];
|
|
8
|
+
active?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type NavbarVerticalProps = {
|
|
11
|
+
data: NavbarVerticalDataProps[];
|
|
12
|
+
renderItem: (link: NavbarVerticalDataProps) => ReactNode;
|
|
13
|
+
renderActions: () => ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare const NavbarVertical: {
|
|
16
|
+
({ data, renderItem, renderActions, }: NavbarVerticalProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
Link: ({ name, onClick, Icon, dropdown, active, }: NavbarVerticalDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { c as classNames } from "../../index-CweZ_OcN.js";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { Text } from "../Text/index.es.js";
|
|
5
|
+
import "../../Icon-BvEdGGJ8.js";
|
|
6
|
+
import { I as IconChevronDown } from "../../IconChevronDown-LKLlTSau.js";
|
|
7
|
+
import { I as IconChevronUp } from "../../IconChevronUp--WhWeQrm.js";
|
|
8
|
+
import { C as Conditional } from "../../index-CeZZT_W9.js";
|
|
9
|
+
import './styles.css';const NavbarVertical = ({
|
|
10
|
+
data,
|
|
11
|
+
renderItem,
|
|
12
|
+
renderActions
|
|
13
|
+
}) => {
|
|
14
|
+
return /* @__PURE__ */ jsxs("div", { className: "au-navbar-vertical", children: [
|
|
15
|
+
data == null ? void 0 : data.map((link) => {
|
|
16
|
+
return renderItem(link);
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ jsx("div", { className: "au-navbar-vertical__actions", children: renderActions() })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
const NavbarVerticalLink = ({
|
|
22
|
+
name,
|
|
23
|
+
onClick,
|
|
24
|
+
Icon,
|
|
25
|
+
dropdown,
|
|
26
|
+
active = false
|
|
27
|
+
}) => {
|
|
28
|
+
const [open, setOpen] = useState(active);
|
|
29
|
+
function handleClick() {
|
|
30
|
+
if (dropdown) {
|
|
31
|
+
setOpen((prev) => !prev);
|
|
32
|
+
} else {
|
|
33
|
+
onClick();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return /* @__PURE__ */ jsxs(
|
|
37
|
+
Text,
|
|
38
|
+
{
|
|
39
|
+
as: "a",
|
|
40
|
+
variant: "heading-micro",
|
|
41
|
+
weight: "light",
|
|
42
|
+
className: classNames("au-navbar-vertical__link", {
|
|
43
|
+
"is-dropdown": dropdown,
|
|
44
|
+
"is-active": active,
|
|
45
|
+
"is-open": open
|
|
46
|
+
}),
|
|
47
|
+
onClick: handleClick,
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ jsx(Conditional, { condition: !!Icon, renderIf: Icon }),
|
|
50
|
+
name,
|
|
51
|
+
/* @__PURE__ */ jsx(
|
|
52
|
+
Conditional,
|
|
53
|
+
{
|
|
54
|
+
condition: !!(dropdown == null ? void 0 : dropdown.length),
|
|
55
|
+
renderIf: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Conditional, { condition: !!open, renderIf: /* @__PURE__ */ jsx(IconChevronUp, {}) }),
|
|
57
|
+
/* @__PURE__ */ jsx(Conditional, { condition: !open, renderIf: /* @__PURE__ */ jsx(IconChevronDown, {}) }),
|
|
58
|
+
/* @__PURE__ */ jsx("div", { className: "au-navbar-vertical__dropdown", children: dropdown == null ? void 0 : dropdown.map((item) => {
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
Text,
|
|
61
|
+
{
|
|
62
|
+
as: "a",
|
|
63
|
+
variant: "heading-micro",
|
|
64
|
+
weight: "light",
|
|
65
|
+
className: classNames("au-navbar-vertical__dropdown-link", {
|
|
66
|
+
"is-active": item.active
|
|
67
|
+
}),
|
|
68
|
+
title: item.name,
|
|
69
|
+
children: item.name
|
|
70
|
+
},
|
|
71
|
+
item.name
|
|
72
|
+
);
|
|
73
|
+
}) })
|
|
74
|
+
] })
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
NavbarVertical.Link = NavbarVerticalLink;
|
|
82
|
+
export {
|
|
83
|
+
NavbarVertical
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/NavbarVertical/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { ReactNode, useState } from 'react'\nimport { Text } from '../Text'\nimport { IconChevronDown, IconChevronUp } from '../icons/default'\nimport { Conditional } from '../misc'\nimport './styles.scss'\n\ntype NavbarVerticalDataProps = {\n name: string\n Icon?: ReactNode\n onClick: () => void\n dropdown?: NavbarVerticalDataProps[]\n active?: boolean\n}\n\ntype NavbarVerticalProps = {\n data: NavbarVerticalDataProps[]\n renderItem: (link: NavbarVerticalDataProps) => ReactNode\n renderActions: () => ReactNode\n}\n\nexport const NavbarVertical = ({\n data,\n renderItem,\n renderActions,\n}: NavbarVerticalProps) => {\n return (\n <div className=\"au-navbar-vertical\">\n {data?.map((link) => {\n return renderItem(link)\n })}\n <div className=\"au-navbar-vertical__actions\">{renderActions()}</div>\n </div>\n )\n}\n\nconst NavbarVerticalLink = ({\n name,\n onClick,\n Icon,\n dropdown,\n active = false,\n}: NavbarVerticalDataProps) => {\n const [open, setOpen] = useState<boolean>(active)\n\n function handleClick() {\n if (dropdown) {\n setOpen((prev) => !prev)\n } else {\n onClick()\n }\n }\n\n return (\n <Text\n as=\"a\"\n variant=\"heading-micro\"\n weight=\"light\"\n className={classNames('au-navbar-vertical__link', {\n 'is-dropdown': dropdown,\n 'is-active': active,\n 'is-open': open,\n })}\n onClick={handleClick}>\n <Conditional condition={!!Icon} renderIf={Icon} />\n {name}\n\n <Conditional\n condition={!!dropdown?.length}\n renderIf={\n <>\n <Conditional condition={!!open} renderIf={<IconChevronUp />} />\n <Conditional condition={!open} renderIf={<IconChevronDown />} />\n <div className=\"au-navbar-vertical__dropdown\">\n {dropdown?.map((item) => {\n return (\n <Text\n key={item.name}\n as=\"a\"\n variant=\"heading-micro\"\n weight=\"light\"\n className={classNames('au-navbar-vertical__dropdown-link', {\n 'is-active': item.active,\n })}\n title={item.name}>\n {item.name}\n </Text>\n )\n })}\n </div>\n </>\n }\n />\n </Text>\n )\n}\n\nNavbarVertical.Link = NavbarVerticalLink\n"],"names":[],"mappings":";;;;;;;;AAqBO,MAAM,iBAAiB,CAAC;AAAA,EAC7B;AAAA,EACA;AAAA,EACA;AACF,MAA2B;AAEvB,SAAA,qBAAC,OAAI,EAAA,WAAU,sBACZ,UAAA;AAAA,IAAM,6BAAA,IAAI,CAAC,SAAS;AACnB,aAAO,WAAW,IAAI;AAAA,IAAA;AAAA,IAEvB,oBAAA,OAAA,EAAI,WAAU,+BAA+B,2BAAgB;AAAA,EAChE,EAAA,CAAA;AAEJ;AAEA,MAAM,qBAAqB,CAAC;AAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AACX,MAA+B;AAC7B,QAAM,CAAC,MAAM,OAAO,IAAI,SAAkB,MAAM;AAEhD,WAAS,cAAc;AACrB,QAAI,UAAU;AACJ,cAAA,CAAC,SAAS,CAAC,IAAI;AAAA,IAAA,OAClB;AACG;IACV;AAAA,EACF;AAGE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,IAAG;AAAA,MACH,SAAQ;AAAA,MACR,QAAO;AAAA,MACP,WAAW,WAAW,4BAA4B;AAAA,QAChD,eAAe;AAAA,QACf,aAAa;AAAA,QACb,WAAW;AAAA,MAAA,CACZ;AAAA,MACD,SAAS;AAAA,MACT,UAAA;AAAA,QAAA,oBAAC,eAAY,WAAW,CAAC,CAAC,MAAM,UAAU,MAAM;AAAA,QAC/C;AAAA,QAED;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,CAAC,EAAC,qCAAU;AAAA,YACvB,UAEI,qBAAA,UAAA,EAAA,UAAA;AAAA,cAAC,oBAAA,aAAA,EAAY,WAAW,CAAC,CAAC,MAAM,UAAU,oBAAC,gBAAc,CAAA,GAAI;AAAA,cAC7D,oBAAC,eAAY,WAAW,CAAC,MAAM,UAAU,oBAAC,kBAAgB,CAAA,GAAI;AAAA,kCAC7D,OAAI,EAAA,WAAU,gCACZ,UAAU,qCAAA,IAAI,CAAC,SAAS;AAErB,uBAAA;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBAEC,IAAG;AAAA,oBACH,SAAQ;AAAA,oBACR,QAAO;AAAA,oBACP,WAAW,WAAW,qCAAqC;AAAA,sBACzD,aAAa,KAAK;AAAA,oBAAA,CACnB;AAAA,oBACD,OAAO,KAAK;AAAA,oBACX,UAAK,KAAA;AAAA,kBAAA;AAAA,kBARD,KAAK;AAAA,gBAAA;AAAA,cAWf,IACH;AAAA,YAAA,GACF;AAAA,UAAA;AAAA,QAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;AAEA,eAAe,OAAO;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.au-navbar-vertical{width:100%;background-color:#fff;height:100%}.au-navbar-vertical__link{padding:16px 24px;display:flex;align-items:center;gap:16px;cursor:pointer;flex-wrap:wrap;border-bottom:1px solid #dce8ff}.au-navbar-vertical__link:hover,.au-navbar-vertical__link:focus{font-weight:700}.au-navbar-vertical__link.is-active{background-color:#fafbff;color:#0048db;font-weight:700}.au-navbar-vertical__dropdown{display:block;width:100%;border-top:1px solid #dce8ff;padding-top:12px;display:none}.is-open .au-navbar-vertical__dropdown{display:block}.au-navbar-vertical__dropdown-link{display:block;width:100%;padding:12px 0}.au-navbar-vertical__dropdown-link:hover,.au-navbar-vertical__dropdown-link:focus{font-weight:700}.au-navbar-vertical__dropdown-link.is-active{color:#0048db;font-weight:700}.au-navbar-vertical__actions{display:flex;gap:8px;padding:24px}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./styles.css');const e=require("react/jsx-runtime"),i=require("../Text/index.cjs.js");exports.ProfileNav=({name:s})=>e.jsxs("div",{className:"au-profile-nav",children:[e.jsx("div",{className:"au-profile-nav__badget",children:e.jsx(i.Text,{variant:"heading-small",weight:"medium",children:"FS"})}),e.jsxs("div",{className:"div",children:[e.jsxs(i.Text,{as:"h3",variant:"heading-micro",weight:"bold",children:["Olá, ",s]}),e.jsx(i.Text,{children:"Tudo bem?"})]})]});
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../lib/components/ProfileNav/index.tsx"],"sourcesContent":["import { Text } from '../Text'\nimport './styles.scss'\n\ntype ProfileNavProps = {\n name: string\n}\n\nexport const ProfileNav = ({ name }: ProfileNavProps) => {\n return (\n <div className=\"au-profile-nav\">\n <div className=\"au-profile-nav__badget\">\n <Text variant=\"heading-small\" weight=\"medium\">\n FS\n </Text>\n </div>\n <div className=\"div\">\n <Text as=\"h3\" variant=\"heading-micro\" weight=\"bold\">\n Olá, {name}\n </Text>\n <Text>Tudo bem?</Text>\n </div>\n </div>\n )\n}\n"],"names":["name","jsxs","className","children","jsx","Text","variant","weight","as"],"mappings":"0KAO0B,EAAGA,YAEzBC,KAAC,MAAI,CAAAC,UAAU,iBACbC,SAAA,CAACC,EAAAA,IAAA,MAAA,CAAIF,UAAU,yBACbC,WAACC,IAAAC,EAAAA,KAAA,CAAKC,QAAQ,gBAAgBC,OAAO,SAASJ,SAAA,WAIhDF,KAAC,MAAI,CAAAC,UAAU,MACbC,SAAA,CAAAF,OAACI,EAAAA,MAAKG,GAAG,KAAKF,QAAQ,gBAAgBC,OAAO,OAAOJ,SAAA,CAAA,QAC5CH,OAERI,IAACC,QAAKF,SAAS"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from "../Text/index.es.js";
|
|
3
|
+
import './styles.css';const ProfileNav = ({ name }) => {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "au-profile-nav", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "au-profile-nav__badget", children: /* @__PURE__ */ jsx(Text, { variant: "heading-small", weight: "medium", children: "FS" }) }),
|
|
6
|
+
/* @__PURE__ */ jsxs("div", { className: "div", children: [
|
|
7
|
+
/* @__PURE__ */ jsxs(Text, { as: "h3", variant: "heading-micro", weight: "bold", children: [
|
|
8
|
+
"Olá, ",
|
|
9
|
+
name
|
|
10
|
+
] }),
|
|
11
|
+
/* @__PURE__ */ jsx(Text, { children: "Tudo bem?" })
|
|
12
|
+
] })
|
|
13
|
+
] });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
ProfileNav
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/ProfileNav/index.tsx"],"sourcesContent":["import { Text } from '../Text'\nimport './styles.scss'\n\ntype ProfileNavProps = {\n name: string\n}\n\nexport const ProfileNav = ({ name }: ProfileNavProps) => {\n return (\n <div className=\"au-profile-nav\">\n <div className=\"au-profile-nav__badget\">\n <Text variant=\"heading-small\" weight=\"medium\">\n FS\n </Text>\n </div>\n <div className=\"div\">\n <Text as=\"h3\" variant=\"heading-micro\" weight=\"bold\">\n Olá, {name}\n </Text>\n <Text>Tudo bem?</Text>\n </div>\n </div>\n )\n}\n"],"names":[],"mappings":";;AAOO,MAAM,aAAa,CAAC,EAAE,WAA4B;AAErD,SAAA,qBAAC,OAAI,EAAA,WAAU,kBACb,UAAA;AAAA,IAAC,oBAAA,OAAA,EAAI,WAAU,0BACb,UAAC,oBAAA,MAAA,EAAK,SAAQ,iBAAgB,QAAO,UAAS,UAAA,KAE9C,CAAA,GACF;AAAA,IACA,qBAAC,OAAI,EAAA,WAAU,OACb,UAAA;AAAA,MAAA,qBAAC,QAAK,IAAG,MAAK,SAAQ,iBAAgB,QAAO,QAAO,UAAA;AAAA,QAAA;AAAA,QAC5C;AAAA,MAAA,GACR;AAAA,MACA,oBAAC,QAAK,UAAS,YAAA,CAAA;AAAA,IAAA,GACjB;AAAA,EACF,EAAA,CAAA;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.au-profile-nav{display:flex;gap:16px}.au-profile-nav__badget{width:48px;height:48px;background-color:#dce8ff;border-radius:999px;display:flex;align-items:center;justify-content:center}
|
|
@@ -11,6 +11,7 @@ export declare const HeadingBig: Story;
|
|
|
11
11
|
export declare const HeadingLarge: Story;
|
|
12
12
|
export declare const HeadingMedium: Story;
|
|
13
13
|
export declare const HeadingSmall: Story;
|
|
14
|
+
export declare const HeadingMicro: Story;
|
|
14
15
|
export declare const ParagraphBig: Story;
|
|
15
16
|
export declare const ParagraphLarge: Story;
|
|
16
17
|
export declare const ParagraphMedium: Story;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";require('./styles.css');var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,
|
|
1
|
+
"use strict";require('./styles.css');var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(r,t,n)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,c=(e,r)=>{for(var t in r||(r={}))a.call(r,t)&&i(e,t,r[t]);if(n)for(var t of n(r))o.call(r,t)&&i(e,t,r[t]);return e},l=(e,r)=>{var t={};for(var i in e)a.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&n)for(var i of n(e))r.indexOf(i)<0&&o.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),u=require("react"),d=require("../../index-BJmus9Hg.cjs"),f=require("../../index-BK77G4Uk.cjs");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}return r.default=e,Object.freeze(r)}const g=b(u),p=e=>{var r=e,{children:t="Dynamic tag component",tag:n="button"}=r,a=l(r,["children","tag"]);return g.createElement(n,c({},a),t)};exports.Text=e=>{var n=e,{as:a="p",children:o,className:i="",color:u="common",variant:b="body-medium",variantDesk:g,weight:m="regular",dangerouslySetInnerHTML:y}=n,j=l(n,["as","children","className","color","variant","variantDesk","weight","dangerouslySetInnerHTML"]);const v=d.classNames("au-text",{[`au-text--${b}`]:!!b,[`au-text--desk-${g}`]:!!g,[`au-text--color-${u}`]:!!u,[`au-text--weight-${m}`]:!!m,[i]:!!i});return s.jsx(p,(O=c({tag:a,className:v},j),x={children:s.jsx(f.Conditional,{condition:y,renderIf:s.jsx("div",{dangerouslySetInnerHTML:{__html:y}}),renderElse:o})},r(O,t(x))));var O,x};
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../../lib/components/misc/DynamicTagComponent/index.tsx","../../../lib/components/Text/index.tsx"],"sourcesContent":["import * as React from 'react'\n\ninterface DynamicTagComponentProps extends React.HTMLAttributes<HTMLElement> {\n /** Html tag that this component root should have */\n tag: string\n}\n\nconst DynamicTagComponent: React.FC<DynamicTagComponentProps> = ({\n children = 'Dynamic tag component',\n tag = 'button',\n ...props\n}) => React.createElement(tag, { ...props }, children)\n\nexport default DynamicTagComponent\n","import DynamicTagComponentStories from '../misc/DynamicTagComponent'\nimport classNames from 'classnames'\nimport { TextProps } from './types'\nimport { Conditional } from '../misc/Conditional'\nimport React from 'react'\nimport './styles.scss'\n\nexport const Text: React.FC<TextProps> = ({\n as = 'p',\n children,\n className = '',\n color = 'common',\n variant = 'body-
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../lib/components/misc/DynamicTagComponent/index.tsx","../../../lib/components/Text/index.tsx"],"sourcesContent":["import * as React from 'react'\n\ninterface DynamicTagComponentProps extends React.HTMLAttributes<HTMLElement> {\n /** Html tag that this component root should have */\n tag: string\n}\n\nconst DynamicTagComponent: React.FC<DynamicTagComponentProps> = ({\n children = 'Dynamic tag component',\n tag = 'button',\n ...props\n}) => React.createElement(tag, { ...props }, children)\n\nexport default DynamicTagComponent\n","import DynamicTagComponentStories from '../misc/DynamicTagComponent'\nimport classNames from 'classnames'\nimport { TextProps } from './types'\nimport { Conditional } from '../misc/Conditional'\nimport React from 'react'\nimport './styles.scss'\n\nexport const Text: React.FC<TextProps> = ({\n as = 'p',\n children,\n className = '',\n color = 'common',\n variant = 'body-medium',\n variantDesk,\n weight = 'regular',\n dangerouslySetInnerHTML,\n ...props\n}: TextProps) => {\n const rootClasses = classNames('au-text', {\n [`au-text--${variant}`]: !!variant,\n [`au-text--desk-${variantDesk}`]: !!variantDesk,\n [`au-text--color-${color}`]: !!color,\n [`au-text--weight-${weight}`]: !!weight,\n [className]: !!className,\n })\n\n return (\n <DynamicTagComponentStories tag={as} className={rootClasses} {...props}>\n <Conditional\n condition={dangerouslySetInnerHTML}\n renderIf={\n <div dangerouslySetInnerHTML={{ __html: dangerouslySetInnerHTML }} />\n }\n renderElse={children}\n />\n </DynamicTagComponentStories>\n )\n}\n"],"names":["DynamicTagComponent","_a","_b","children","tag","props","__objRest","React","createElement","__spreadValues","_c","_d","as","className","color","variant","variantDesk","weight","dangerouslySetInnerHTML","rootClasses","classNames","DynamicTagComponentStories","jsxRuntime","jsx","Conditional","condition","renderIf","__html","renderElse"],"mappings":"ohCAOMA,EAA2DC,IAC/D,IAAAC,EAAAD,GAAAE,SAAWA,EAAA,wBAAAC,IACXA,EAAM,UAFyDF,EAG5DG,EAAAC,EAH4DJ,EAG5D,CAFH,WACA,QAEIK,OAAAA,EAAMC,cAAcJ,EAAKK,EAAK,CAAA,EAAAJ,GAASF,EAAQ,eCJXO,IACxC,IAAAC,EAAAD,GAAAE,GAAKA,EAAA,IAAAT,SACLA,EAAAU,UACAA,EAAY,GAAAC,MACZA,EAAQ,SAAAC,QACRA,EAAU,cAAAC,YACVA,EAAAC,OACAA,EAAS,UAAAC,wBACTA,GARwCP,EASrCN,EAAAC,EATqCK,EASrC,CARH,KACA,WACA,YACA,QACA,UACA,cACA,SACA,4BAGM,MAAAQ,EAAcC,aAAW,UAAW,CACxC,CAAC,YAAYL,OAAcA,EAC3B,CAAC,iBAAiBC,OAAkBA,EACpC,CAAC,kBAAkBF,OAAYA,EAC/B,CAAC,mBAAmBG,OAAaA,EACjCJ,CAACA,KAAcA,iBAIdQ,KAA2BZ,EAAA,CAAAL,IAAKQ,EAAIC,UAAWM,GAAiBd,KAArC,CAC1BF,SAAAmB,EAAAC,IAACC,EAAAA,YAAA,CACCC,UAAWP,EACXQ,SACGJ,EAAAC,IAAA,MAAA,CAAIL,wBAAyB,CAAES,OAAQT,KAE1CU,WAAYzB,wBAEhB"}
|
|
@@ -49,9 +49,9 @@ const Text = (_c) => {
|
|
|
49
49
|
children,
|
|
50
50
|
className = "",
|
|
51
51
|
color = "common",
|
|
52
|
-
variant = "body-
|
|
52
|
+
variant = "body-medium",
|
|
53
53
|
variantDesk,
|
|
54
|
-
weight = "
|
|
54
|
+
weight = "regular",
|
|
55
55
|
dangerouslySetInnerHTML
|
|
56
56
|
} = _d, props = __objRest(_d, [
|
|
57
57
|
"as",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../lib/components/misc/DynamicTagComponent/index.tsx","../../../lib/components/Text/index.tsx"],"sourcesContent":["import * as React from 'react'\n\ninterface DynamicTagComponentProps extends React.HTMLAttributes<HTMLElement> {\n /** Html tag that this component root should have */\n tag: string\n}\n\nconst DynamicTagComponent: React.FC<DynamicTagComponentProps> = ({\n children = 'Dynamic tag component',\n tag = 'button',\n ...props\n}) => React.createElement(tag, { ...props }, children)\n\nexport default DynamicTagComponent\n","import DynamicTagComponentStories from '../misc/DynamicTagComponent'\nimport classNames from 'classnames'\nimport { TextProps } from './types'\nimport { Conditional } from '../misc/Conditional'\nimport React from 'react'\nimport './styles.scss'\n\nexport const Text: React.FC<TextProps> = ({\n as = 'p',\n children,\n className = '',\n color = 'common',\n variant = 'body-
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/misc/DynamicTagComponent/index.tsx","../../../lib/components/Text/index.tsx"],"sourcesContent":["import * as React from 'react'\n\ninterface DynamicTagComponentProps extends React.HTMLAttributes<HTMLElement> {\n /** Html tag that this component root should have */\n tag: string\n}\n\nconst DynamicTagComponent: React.FC<DynamicTagComponentProps> = ({\n children = 'Dynamic tag component',\n tag = 'button',\n ...props\n}) => React.createElement(tag, { ...props }, children)\n\nexport default DynamicTagComponent\n","import DynamicTagComponentStories from '../misc/DynamicTagComponent'\nimport classNames from 'classnames'\nimport { TextProps } from './types'\nimport { Conditional } from '../misc/Conditional'\nimport React from 'react'\nimport './styles.scss'\n\nexport const Text: React.FC<TextProps> = ({\n as = 'p',\n children,\n className = '',\n color = 'common',\n variant = 'body-medium',\n variantDesk,\n weight = 'regular',\n dangerouslySetInnerHTML,\n ...props\n}: TextProps) => {\n const rootClasses = classNames('au-text', {\n [`au-text--${variant}`]: !!variant,\n [`au-text--desk-${variantDesk}`]: !!variantDesk,\n [`au-text--color-${color}`]: !!color,\n [`au-text--weight-${weight}`]: !!weight,\n [className]: !!className,\n })\n\n return (\n <DynamicTagComponentStories tag={as} className={rootClasses} {...props}>\n <Conditional\n condition={dangerouslySetInnerHTML}\n renderIf={\n <div dangerouslySetInnerHTML={{ __html: dangerouslySetInnerHTML }} />\n }\n renderElse={children}\n />\n </DynamicTagComponentStories>\n )\n}\n"],"names":["DynamicTagComponentStories"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,MAAM,sBAA0D,CAAC,OAI3D;AAJ2D,eAC/D;AAAA,eAAW;AAAA,IACX,MAAM;AAAA,MAFyD,IAG5D,kBAH4D,IAG5D;AAAA,IAFH;AAAA,IACA;AAAA;AAEI,eAAM,cAAc,KAAK,mBAAK,QAAS,QAAQ;AAAA;ACJ9C,MAAM,OAA4B,CAAC,OAUzB;AAVyB,eACxC;AAAA,SAAK;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,QAAQ;AAAA,IACR,UAAU;AAAA,IACV;AAAA,IACA,SAAS;AAAA,IACT;AAAA,MARwC,IASrC,kBATqC,IASrC;AAAA,IARH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGM,QAAA,cAAc,WAAW,WAAW;AAAA,IACxC,CAAC,YAAY,OAAO,EAAE,GAAG,CAAC,CAAC;AAAA,IAC3B,CAAC,iBAAiB,WAAW,EAAE,GAAG,CAAC,CAAC;AAAA,IACpC,CAAC,kBAAkB,KAAK,EAAE,GAAG,CAAC,CAAC;AAAA,IAC/B,CAAC,mBAAmB,MAAM,EAAE,GAAG,CAAC,CAAC;AAAA,IACjC,CAAC,SAAS,GAAG,CAAC,CAAC;AAAA,EAAA,CAChB;AAED,6BACGA,qBAA2B,+BAAA,KAAK,IAAI,WAAW,eAAiB,QAArC,EAC1B,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW;AAAA,MACX,UACG,oBAAA,OAAA,EAAI,yBAAyB,EAAE,QAAQ,2BAA2B;AAAA,MAErE,YAAY;AAAA,IAAA;AAAA,EAEhB,EAAA,EAAA;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.au-text{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif;font-weight:400}.au-text--color-common{color:#313131}.au-text--weight-bold{font-weight:700}.au-text--weight-semibold{font-weight:600}.au-text--weight-medium{font-weight:500}.au-text--weight-regular{font-weight:400}.au-text--weight-light{font-weight:300}.au-text--display-large,.au-text--display-medium,.au-text--display-small{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--display-large{font-size:56px;line-height:76px}.au-text--display-medium{font-size:48px;line-height:68px}.au-text--display-small{font-size:40px;line-height:60px}.au-text--heading-big,.au-text--heading-large,.au-text--heading-medium,.au-text--heading-small{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--heading-big{font-size:32px;line-height:52px}.au-text--heading-large{font-size:28px;line-height:48px}.au-text--heading-medium{font-size:24px;line-height:44px}.au-text--heading-small{font-size:20px;line-height:40px}.au-text--body-big,.au-text--body-large,.au-text--body-medium,.au-text--body-small{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif}.au-text--body-big{font-size:24px;line-height:36px}.au-text--body-large{font-size:20px;line-height:30px}.au-text--body-medium{font-size:16px;line-height:24px}.au-text--body-small{font-size:14px;line-height:21px}.au-text--caption{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif;font-size:12px;line-height:18px}@media (min-width: 320px){.au-text--desk-display-large,.au-text--desk-display-medium,.au-text--desk-display-small{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--desk-display-large{font-size:56px;line-height:76px}.au-text--desk-display-medium{font-size:48px;line-height:68px}.au-text--desk-display-small{font-size:40px;line-height:60px}.au-text--desk-heading-big,.au-text--desk-heading-large,.au-text--desk-heading-medium,.au-text--desk-heading-small{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--desk-heading-big{font-size:32px;line-height:52px}.au-text--desk-heading-large{font-size:28px;line-height:48px}.au-text--desk-heading-medium{font-size:24px;line-height:44px}.au-text--desk-heading-small{font-size:20px;line-height:40px}.au-text--desk-body-big,.au-text--desk-body-large,.au-text--desk-body-medium,.au-text--desk-body-small{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif}.au-text--desk-body-big{font-size:24px;line-height:36px}.au-text--desk-body-large{font-size:20px;line-height:30px}.au-text--desk-body-medium{font-size:16px;line-height:24px}.au-text--desk-body-small{font-size:14px;line-height:21px}.au-text--desk-caption{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif;font-size:12px;line-height:18px}}
|
|
1
|
+
.au-text{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif;font-weight:400}.au-text--color-common{color:#313131}.au-text--weight-bold{font-weight:700}.au-text--weight-semibold{font-weight:600}.au-text--weight-medium{font-weight:500}.au-text--weight-regular{font-weight:400}.au-text--weight-light{font-weight:300}.au-text--display-large,.au-text--display-medium,.au-text--display-small{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--display-large{font-size:56px;line-height:76px}.au-text--display-medium{font-size:48px;line-height:68px}.au-text--display-small{font-size:40px;line-height:60px}.au-text--heading-big,.au-text--heading-large,.au-text--heading-medium,.au-text--heading-small,.au-text--heading-micro{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--heading-big{font-size:32px;line-height:52px}.au-text--heading-large{font-size:28px;line-height:48px}.au-text--heading-medium{font-size:24px;line-height:44px}.au-text--heading-small{font-size:20px;line-height:40px}.au-text--heading-micro{font-size:16px;line-height:24px}.au-text--body-big,.au-text--body-large,.au-text--body-medium,.au-text--body-small{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif}.au-text--body-big{font-size:24px;line-height:36px}.au-text--body-large{font-size:20px;line-height:30px}.au-text--body-medium{font-size:16px;line-height:24px}.au-text--body-small{font-size:14px;line-height:21px}.au-text--caption{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif;font-size:12px;line-height:18px}@media (min-width: 320px){.au-text--desk-display-large,.au-text--desk-display-medium,.au-text--desk-display-small{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--desk-display-large{font-size:56px;line-height:76px}.au-text--desk-display-medium{font-size:48px;line-height:68px}.au-text--desk-display-small{font-size:40px;line-height:60px}.au-text--desk-heading-big,.au-text--desk-heading-large,.au-text--desk-heading-medium,.au-text--desk-heading-small,.au-text--desk-heading-micro{font-family:Lexend Deca Variable,Lexend Deca,sans-serif}.au-text--desk-heading-big{font-size:32px;line-height:52px}.au-text--desk-heading-large{font-size:28px;line-height:48px}.au-text--desk-heading-medium{font-size:24px;line-height:44px}.au-text--desk-heading-small{font-size:20px;line-height:40px}.au-text--desk-heading-micro{font-size:16px;line-height:24px}.au-text--desk-body-big,.au-text--desk-body-large,.au-text--desk-body-medium,.au-text--desk-body-small{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif}.au-text--desk-body-big{font-size:24px;line-height:36px}.au-text--desk-body-large{font-size:20px;line-height:30px}.au-text--desk-body-medium{font-size:16px;line-height:24px}.au-text--desk-body-small{font-size:14px;line-height:21px}.au-text--desk-caption{font-family:"Source Sans 3 Variable","Source Sans 3",sans-serif;font-size:12px;line-height:18px}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
type TextVariant = 'display-large' | 'display-medium' | 'display-small' | 'heading-big' | 'heading-large' | 'heading-medium' | 'heading-small' | 'body-big' | 'body-large' | 'body-medium' | 'body-small' | 'caption';
|
|
2
|
+
type TextVariant = 'display-large' | 'display-medium' | 'display-small' | 'heading-big' | 'heading-large' | 'heading-medium' | 'heading-small' | 'heading-micro' | 'body-big' | 'body-large' | 'body-medium' | 'body-small' | 'caption';
|
|
3
3
|
type TextWeight = 'bold' | 'semibold' | 'medium' | 'regular' | 'light';
|
|
4
4
|
export interface TextProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
5
|
as?: keyof React.ReactHTML;
|