@consumidor-positivo/aurora 0.0.207 → 0.0.209
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/Alert/index.es.js +2 -2
- package/dist/components/Button/index.es.js +1 -1
- package/dist/components/Calendar/index.es.js +3 -3
- package/dist/components/CalendarHeader/index.es.js +3 -3
- package/dist/components/Card/index.es.js +1 -1
- package/dist/components/Carousel/index.es.js +1 -1
- package/dist/components/Checkbox/index.es.js +2 -2
- package/dist/components/Chip/index.es.js +1 -1
- package/dist/components/Container/index.es.js +1 -1
- package/dist/components/Datepicker/index.es.js +4 -4
- package/dist/components/Drawer/Drawer.test.d.ts +1 -0
- package/dist/components/Drawer/index.es.js +2 -2
- package/dist/components/Drawer/index.es.js.map +1 -1
- package/dist/components/Drawer/styles.css +1 -1
- package/dist/components/EmailField/index.es.js +1 -1
- package/dist/components/Field/index.es.js +1 -1
- package/dist/components/Footer/Footer.test.d.ts +1 -0
- package/dist/components/Footer/index.es.js +1 -1
- package/dist/components/Group/index.es.js +1 -1
- package/dist/components/Header/Header.test.d.ts +1 -0
- package/dist/components/Header/index.es.js +1 -1
- package/dist/components/Icon/index.es.js +1 -1
- package/dist/components/Image/Image.test.d.ts +1 -0
- package/dist/components/Input/index.es.js +1 -1
- package/dist/components/IsMobile/IsMobile.test.d.ts +1 -0
- package/dist/components/Label/index.es.js +1 -1
- package/dist/components/LazyImage/LazyImage.test.d.ts +1 -0
- package/dist/components/Logo/Logo.test.d.ts +1 -0
- package/dist/components/Modal/index.es.js +1 -1
- package/dist/components/NavbarVertical/NavbarVertical.test.d.ts +1 -0
- package/dist/components/NavbarVertical/index.es.js +1 -1
- package/dist/components/NotificationsBar/NotificationsBar.test.d.ts +1 -0
- package/dist/components/Portal/index.es.js +2 -2
- package/dist/components/Portal/index.es.js.map +1 -1
- package/dist/components/PortalHolder/index.es.js +1 -1
- package/dist/components/ProfileNav/ProfileNav.test.d.ts +1 -0
- package/dist/components/ProgressBar/index.es.js +1 -1
- package/dist/components/Prototype/Carousel/Carousel.test.d.ts +1 -0
- package/dist/components/Root/index.es.js +1 -1
- package/dist/components/Segment/index.es.js +2 -2
- package/dist/components/SelectField/index.es.js +2 -2
- package/dist/components/Skeleton/index.es.js +1 -1
- package/dist/components/Switch/Card/Card.test.d.ts +1 -0
- package/dist/components/Tag/index.es.js +2 -2
- package/dist/components/Text/index.es.js +1 -1
- package/dist/components/TextArea/index.es.js +6 -4
- package/dist/components/TextArea/index.es.js.map +1 -1
- package/dist/components/Tooltip/index.es.js +1 -1
- package/dist/components/form/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/components/form/Datepicker/Datepicker.test.d.ts +1 -0
- package/dist/components/form/EmailField/EmailField.test.d.ts +1 -0
- package/dist/components/form/Field/Field.test.d.ts +1 -0
- package/dist/components/form/InputField/InputField.test.d.ts +1 -0
- package/dist/components/form/PasswordField/PasswordField.test.d.ts +1 -0
- package/dist/components/form/Radio/Radio.test.d.ts +1 -0
- package/dist/components/form/SelectField/SelectField.test.d.ts +1 -0
- package/dist/components/form/TextareaField/TextareaField.test.d.ts +1 -0
- package/dist/components/form/TokenField/TokenField.test.d.ts +1 -0
- package/dist/components/icons/Icon.test/index.es.js +34980 -0
- package/dist/components/icons/Icon.test/index.es.js.map +1 -0
- package/dist/components/icons/Icon.test.d.ts +1 -0
- package/dist/components/misc/misc.test.d.ts +1 -0
- package/dist/{index-CL0DrUGQ.js → index-AOefAAO5.js} +3 -3
- package/dist/{index-CL0DrUGQ.js.map → index-AOefAAO5.js.map} +1 -1
- package/dist/{index-C8AM9yBn.js → index-B0Ush_Ua.js} +3 -3
- package/dist/{index-C8AM9yBn.js.map → index-B0Ush_Ua.js.map} +1 -1
- package/dist/{index-CweZ_OcN.js → index-BXRA68j0.js} +30 -2
- package/dist/{index-CweZ_OcN.js.map → index-BXRA68j0.js.map} +1 -1
- package/dist/{index-C1N6rwrZ.js → index-Chb8MRUv.js} +4 -4
- package/dist/{index-C1N6rwrZ.js.map → index-Chb8MRUv.js.map} +1 -1
- package/dist/magic-string.es-D_W5SHWE.js +1074 -0
- package/dist/magic-string.es-D_W5SHWE.js.map +1 -0
- package/dist/main.es.js +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
|
-
import { c as classNames } from "../../index-
|
|
3
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
4
4
|
import "../Icon/index.es.js";
|
|
5
5
|
import { IconAlertOctagon } from "../icons/IconAlertOctagon/index.es.js";
|
|
6
6
|
import { IconAlertTriangle } from "../icons/IconAlertTriangle/index.es.js";
|
|
@@ -8,9 +8,9 @@ import { IconCheck } from "../icons/IconCheck/index.es.js";
|
|
|
8
8
|
import { IconClock } from "../icons/IconClock/index.es.js";
|
|
9
9
|
import { IconInfo } from "../icons/IconInfo/index.es.js";
|
|
10
10
|
import { IconX } from "../icons/IconX/index.es.js";
|
|
11
|
+
import { d as COLOR_NEUTRAL_70, C as COLOR_SUCCESS_50, b as COLOR_ERROR_50, e as COLOR_WARNING_50, f as COLOR_INFO_50 } from "../../tokens-D_iASp38.js";
|
|
11
12
|
import { Conditional } from "../Conditional/index.es.js";
|
|
12
13
|
import { Text } from "../Text/index.es.js";
|
|
13
|
-
import { d as COLOR_NEUTRAL_70, C as COLOR_SUCCESS_50, b as COLOR_ERROR_50, e as COLOR_WARNING_50, f as COLOR_INFO_50 } from "../../tokens-D_iASp38.js";
|
|
14
14
|
import './styles.css';const Alert = ({
|
|
15
15
|
showIcon = true,
|
|
16
16
|
status = "info",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
|
-
import { c as classNames } from "../../index-
|
|
3
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
4
4
|
import { Conditional } from "../Conditional/index.es.js";
|
|
5
5
|
import "../Icon/index.es.js";
|
|
6
6
|
import { IconLoader } from "../icons/IconLoader/index.es.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
3
|
-
import "../../index-
|
|
2
|
+
import "../../index-BXRA68j0.js";
|
|
3
|
+
import "../../index-B0Ush_Ua.js";
|
|
4
4
|
import "../Button/index.es.js";
|
|
5
5
|
import "../PortalHolder/index.es.js";
|
|
6
|
-
import { a } from "../../index-
|
|
6
|
+
import { a } from "../../index-Chb8MRUv.js";
|
|
7
7
|
export {
|
|
8
8
|
a as DatepickerCalendar
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import "../icons/IconChevronLeft/index.es.js";
|
|
5
5
|
import "../icons/IconChevronRight/index.es.js";
|
|
6
|
-
import "../../index-
|
|
7
|
-
import { C } from "../../index-
|
|
6
|
+
import "../../index-AOefAAO5.js";
|
|
7
|
+
import { C } from "../../index-B0Ush_Ua.js";
|
|
8
8
|
export {
|
|
9
9
|
C as CalendarHeader
|
|
10
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import { PureSwitch } from "../Pure/index.es.js";
|
|
4
4
|
import './styles.css';const CardSwitch = ({ isActive, label, id, disabled, activateCallBack, deactivateCallBack, shouldFadeOutAfterActivate }) => {
|
|
5
5
|
const cardSwitchClassNames = classNames("au-card-switch", {});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import { useRef, useEffect, useState, useCallback, useMemo, useLayoutEffect } from "react";
|
|
4
4
|
import { Conditional } from "../Conditional/index.es.js";
|
|
5
5
|
import { Text } from "../Text/index.es.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import $dbSRa$react__default, { useState, useEffect } from "react";
|
|
3
|
-
import { c as classNames } from "../../index-
|
|
3
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
4
4
|
import "../Icon/index.es.js";
|
|
5
5
|
import { IconCheck } from "../icons/IconCheck/index.es.js";
|
|
6
|
+
import { h as COLOR_NEUTRAL_00 } from "../../tokens-D_iASp38.js";
|
|
6
7
|
import { F as Field } from "../../index-ZE6zszxw.js";
|
|
7
8
|
import { Conditional } from "../Conditional/index.es.js";
|
|
8
|
-
import { h as COLOR_NEUTRAL_00 } from "../../tokens-D_iASp38.js";
|
|
9
9
|
import { Text } from "../Text/index.es.js";
|
|
10
10
|
import './styles.css';const CheckboxField = ({
|
|
11
11
|
label,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import './styles.css';const Container = ({ customClass, children }) => {
|
|
4
4
|
return /* @__PURE__ */ jsx("div", { className: classNames("au-container", { [`${customClass}`]: !!customClass }), children });
|
|
5
5
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import "../../
|
|
2
|
+
import { B as BREAKPOINT_MD, c as COLOR_NEUTRAL_40 } from "../../tokens-D_iASp38.js";
|
|
3
|
+
import "../../index-BXRA68j0.js";
|
|
3
4
|
import "../Icon/index.es.js";
|
|
4
5
|
import { IconCalendar } from "../icons/IconCalendar/index.es.js";
|
|
5
6
|
import { InputField } from "../InputField/index.es.js";
|
|
6
|
-
import { g as getDefaultDate, D as DDMMYYYY, a as DatepickerCalendar, A as AUCalendarDate } from "../../index-
|
|
7
|
+
import { g as getDefaultDate, D as DDMMYYYY, a as DatepickerCalendar, A as AUCalendarDate } from "../../index-Chb8MRUv.js";
|
|
7
8
|
import { useRef, useState, useMemo, useEffect } from "react";
|
|
8
9
|
import { a as above } from "../../screen-DfYo7XQ_.js";
|
|
9
|
-
import { u as useOutsideClick } from "../../index-
|
|
10
|
-
import { B as BREAKPOINT_MD, c as COLOR_NEUTRAL_40 } from "../../tokens-D_iASp38.js";
|
|
10
|
+
import { u as useOutsideClick } from "../../index-AOefAAO5.js";
|
|
11
11
|
import './styles.css';function useDatepicker({
|
|
12
12
|
value,
|
|
13
13
|
defaultValue = "empty",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import { IconX } from "../icons/IconX/index.es.js";
|
|
5
5
|
import './styles.css';const Drawer = ({
|
|
@@ -17,7 +17,7 @@ import './styles.css';const Drawer = ({
|
|
|
17
17
|
children: /* @__PURE__ */ jsxs("div", { className: "au-drawer__container", children: [
|
|
18
18
|
/* @__PURE__ */ jsxs("div", { className: "au-drawer__header", children: [
|
|
19
19
|
renderHeader,
|
|
20
|
-
/* @__PURE__ */ jsx("
|
|
20
|
+
/* @__PURE__ */ jsx("button", { className: "au-drawer__header-close", onClick: handleOpen, children: /* @__PURE__ */ jsx(IconX, {}) })
|
|
21
21
|
] }),
|
|
22
22
|
/* @__PURE__ */ jsx("div", { className: "au-drawer__content", children: renderContent })
|
|
23
23
|
] })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../lib/components/Drawer/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { ReactNode } from 'react'\nimport { IconX } from '../icons/default'\nimport './styles.scss'\n\ntype DrawerProps = {\n renderHeader: ReactNode | string | JSX.Element | JSX.Element[]\n renderContent: ReactNode | string | JSX.Element | JSX.Element[]\n isOpen: boolean\n handleOpen: () => void\n}\n\nexport const Drawer = ({\n renderHeader,\n renderContent,\n isOpen = false,\n handleOpen,\n}: DrawerProps) => {\n return (\n <div\n className={classNames('au-drawer', {\n 'au-drawer--is-open': isOpen,\n })}>\n <div className=\"au-drawer__container\">\n <div className=\"au-drawer__header\">\n {renderHeader}\n <
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/Drawer/index.tsx"],"sourcesContent":["import classNames from 'classnames'\nimport { ReactNode } from 'react'\nimport { IconX } from '../icons/default'\nimport './styles.scss'\n\ntype DrawerProps = {\n renderHeader: ReactNode | string | JSX.Element | JSX.Element[]\n renderContent: ReactNode | string | JSX.Element | JSX.Element[]\n isOpen: boolean\n handleOpen: () => void\n}\n\nexport const Drawer = ({\n renderHeader,\n renderContent,\n isOpen = false,\n handleOpen,\n}: DrawerProps) => {\n \n return (\n <div\n className={classNames('au-drawer', {\n 'au-drawer--is-open': isOpen,\n })}>\n <div className=\"au-drawer__container\">\n <div className=\"au-drawer__header\">\n {renderHeader}\n <button className=\"au-drawer__header-close\" onClick={handleOpen}>\n <IconX />\n </button>\n </div>\n <div className=\"au-drawer__content\">{renderContent}</div>\n </div>\n </div>\n )\n}\n"],"names":[],"mappings":";;;;AAYO,MAAM,SAAS,CAAC;AAAA,EACrB;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AACF,MAAmB;AAGf,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,WAAW,aAAa;AAAA,QACjC,sBAAsB;AAAA,MAAA,CACvB;AAAA,MACD,UAAA,qBAAC,OAAI,EAAA,WAAU,wBACb,UAAA;AAAA,QAAC,qBAAA,OAAA,EAAI,WAAU,qBACZ,UAAA;AAAA,UAAA;AAAA,UACD,oBAAC,YAAO,WAAU,2BAA0B,SAAS,YACnD,UAAA,oBAAC,SAAM,EACT,CAAA;AAAA,QAAA,GACF;AAAA,QACC,oBAAA,OAAA,EAAI,WAAU,sBAAsB,UAAc,eAAA;AAAA,MAAA,GACrD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.au-drawer{height:100vh;width:100vw;position:fixed;top:0;left:0;background-color:#16181dcc;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility .4s ease;z-index:5}.au-drawer--is-open{opacity:1;visibility:visible;pointer-events:all;transition:opacity .3s ease}.au-drawer--is-open .au-drawer__container{transform:translateY(0)}.au-drawer__container{background-color:#fff;width:100%;height:100vh;height:100dvh;position:fixed;z-index:6;top:0;right:0;transform:translate(100%);transition:transform .3s ease;overflow:hidden}@media (min-width: 600px){.au-drawer__container{border-radius:16px 0 0 16px;box-shadow:0 24px 56px #7686ad14,0 12px 12px #0048db0a;max-width:414px}}.au-drawer__header{position:relative;border-bottom:1px solid #e2e4e9;padding:16px 24px;height:80px;display:flex;align-items:center;justify-content:space-between}.au-drawer__header-close{cursor:pointer}.au-drawer__header .au-logo{margin:8px 0;display:block;height:100%}.au-drawer__header .au-logo svg{height:100%}.au-drawer__content{height:calc(100% - 80px);overflow-y:scroll}
|
|
1
|
+
.au-drawer{height:100vh;width:100vw;position:fixed;top:0;left:0;background-color:#16181dcc;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility .4s ease;z-index:5}.au-drawer--is-open{opacity:1;visibility:visible;pointer-events:all;transition:opacity .3s ease}.au-drawer--is-open .au-drawer__container{transform:translateY(0)}.au-drawer__container{background-color:#fff;width:100%;height:100vh;height:100dvh;position:fixed;z-index:6;top:0;right:0;transform:translate(100%);transition:transform .3s ease;overflow:hidden}@media (min-width: 600px){.au-drawer__container{border-radius:16px 0 0 16px;box-shadow:0 24px 56px #7686ad14,0 12px 12px #0048db0a;max-width:414px}}.au-drawer__header{position:relative;border-bottom:1px solid #e2e4e9;padding:16px 24px;height:80px;display:flex;align-items:center;justify-content:space-between}.au-drawer__header-close{cursor:pointer;background-color:transparent;border:none}.au-drawer__header .au-logo{margin:8px 0;display:block;height:100%}.au-drawer__header .au-logo svg{height:100%}.au-drawer__content{height:calc(100% - 80px);overflow-y:scroll}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { F as Field } from "../../index-ZE6zszxw.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import { c as classNames } from "../../index-
|
|
4
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
5
5
|
import './styles.css';const emailDomains = [
|
|
6
6
|
"gmail.com",
|
|
7
7
|
"hotmail.com",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { c as classNames } from "../../index-
|
|
3
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
4
4
|
import './styles.css';const RadioField = ({
|
|
5
5
|
type = "radio",
|
|
6
6
|
direction = "left",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import { Text } from "../Text/index.es.js";
|
|
4
4
|
import "../Icon/index.es.js";
|
|
5
5
|
import { IconFacebook } from "../icons/IconFacebook/index.es.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import { F as Field } from "../../index-ZE6zszxw.js";
|
|
4
4
|
import { Conditional } from "../Conditional/index.es.js";
|
|
5
5
|
import { Text } from "../Text/index.es.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import { IconMenu } from "../icons/IconMenu/index.es.js";
|
|
5
5
|
import { Conditional } from "../Conditional/index.es.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import { IconAlertOctagon } from "../icons/IconAlertOctagon/index.es.js";
|
|
5
5
|
import { IconCheck } from "../icons/IconCheck/index.es.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import { IconX } from "../icons/IconX/index.es.js";
|
|
5
5
|
import { W as When } from "../../react-if.esm-CoCMV6iA.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Text } from "../Text/index.es.js";
|
|
5
5
|
import "../Icon/index.es.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useRef, useEffect } from "react";
|
|
2
|
-
import
|
|
2
|
+
import ReactDOM from "react-dom";
|
|
3
3
|
const Portal = ({ children, portalId = "au-portal" }) => {
|
|
4
4
|
const portalDoor = useRef(document.createElement("div"));
|
|
5
5
|
useEffect(() => {
|
|
@@ -16,7 +16,7 @@ const Portal = ({ children, portalId = "au-portal" }) => {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
}, [portalId]);
|
|
19
|
-
return
|
|
19
|
+
return ReactDOM.createPortal(children, portalDoor.current);
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
22
|
Portal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../lib/components/misc/Portal/index.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react'\nimport ReactDOM from 'react-dom'\n\n/**\n * A helper component designed to address z-index conflicts within modals and dialogs.\n * This component ensures that the element remains fixed in its position, unaffected by other elements\n * possessing higher z-index values further up the DOM tree.\n */\n\ntype PortalProps = {\n /** The children to be rendered into the `Portal`. */\n children: React.ReactNode\n /** The id of the DOM node into which the `Portal` will render. */\n portalId?: string\n}\n\nexport const Portal = ({ children, portalId = 'au-portal' }: PortalProps) => {\n const portalDoor = useRef(document.createElement('div'))\n\n useEffect(() => {\n let portalRoot = document.getElementById(portalId)\n if (!portalRoot) {\n portalRoot = document.createElement('div')\n portalRoot.setAttribute('id', portalId)\n document.body.appendChild(portalRoot)\n }\n\n portalRoot.appendChild(portalDoor.current)\n\n return () => {\n if (portalRoot) {\n portalRoot.removeChild(portalDoor.current)\n }\n }\n }, [portalId])\n\n return ReactDOM.createPortal(children, portalDoor.current)\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/misc/Portal/index.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react'\nimport ReactDOM from 'react-dom'\n\n/**\n * A helper component designed to address z-index conflicts within modals and dialogs.\n * This component ensures that the element remains fixed in its position, unaffected by other elements\n * possessing higher z-index values further up the DOM tree.\n */\n\ntype PortalProps = {\n /** The children to be rendered into the `Portal`. */\n children: React.ReactNode\n /** The id of the DOM node into which the `Portal` will render. */\n portalId?: string\n}\n\nexport const Portal = ({ children, portalId = 'au-portal' }: PortalProps) => {\n const portalDoor = useRef(document.createElement('div'))\n\n useEffect(() => {\n let portalRoot = document.getElementById(portalId)\n if (!portalRoot) {\n portalRoot = document.createElement('div')\n portalRoot.setAttribute('id', portalId)\n document.body.appendChild(portalRoot)\n }\n\n portalRoot.appendChild(portalDoor.current)\n\n return () => {\n if (portalRoot) {\n portalRoot.removeChild(portalDoor.current)\n }\n }\n }, [portalId])\n\n return ReactDOM.createPortal(children, portalDoor.current)\n}\n"],"names":[],"mappings":";;AAgBO,MAAM,SAAS,CAAC,EAAE,UAAU,WAAW,kBAA+B;AAC3E,QAAM,aAAa,OAAO,SAAS,cAAc,KAAK,CAAC;AAEvD,YAAU,MAAM;AACV,QAAA,aAAa,SAAS,eAAe,QAAQ;AACjD,QAAI,CAAC,YAAY;AACF,mBAAA,SAAS,cAAc,KAAK;AAC9B,iBAAA,aAAa,MAAM,QAAQ;AAC7B,eAAA,KAAK,YAAY,UAAU;AAAA,IACtC;AAEW,eAAA,YAAY,WAAW,OAAO;AAEzC,WAAO,MAAM;AACX,UAAI,YAAY;AACH,mBAAA,YAAY,WAAW,OAAO;AAAA,MAC3C;AAAA,IAAA;AAAA,EACF,GACC,CAAC,QAAQ,CAAC;AAEb,SAAO,SAAS,aAAa,UAAU,WAAW,OAAO;AAC3D;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { a as above } from "../../screen-DfYo7XQ_.js";
|
|
3
|
-
import { Portal } from "../Portal/index.es.js";
|
|
4
3
|
import { B as BREAKPOINT_MD } from "../../tokens-D_iASp38.js";
|
|
4
|
+
import { Portal } from "../Portal/index.es.js";
|
|
5
5
|
const PortalHolder = ({ withPortal, children }) => {
|
|
6
6
|
const shouldUsePortal = !above(BREAKPOINT_MD) && withPortal;
|
|
7
7
|
if (shouldUsePortal) return /* @__PURE__ */ jsx(Portal, { children });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Conditional } from "../Conditional/index.es.js";
|
|
3
|
-
import { c as classNames } from "../../index-
|
|
3
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
4
4
|
import { Text } from "../Text/index.es.js";
|
|
5
5
|
import './styles.css';const ProgressBar = ({
|
|
6
6
|
percentageMode = false,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import "../icons/IconChevronDown/index.es.js";
|
|
5
5
|
import "../icons/IconChevronLeft/index.es.js";
|
|
6
6
|
import "../icons/IconX/index.es.js";
|
|
7
|
-
import { S } from "../../index-
|
|
7
|
+
import { S } from "../../index-AOefAAO5.js";
|
|
8
8
|
export {
|
|
9
9
|
S as Segment
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createPortal } from "react-dom";
|
|
3
|
-
import { c as classNames } from "../../index-
|
|
3
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
4
4
|
import "../Icon/index.es.js";
|
|
5
5
|
import { IconCheck } from "../icons/IconCheck/index.es.js";
|
|
6
6
|
import { IconChevronDown } from "../icons/IconChevronDown/index.es.js";
|
|
@@ -9,10 +9,10 @@ import { IconSlash } from "../icons/IconSlash/index.es.js";
|
|
|
9
9
|
import { Modal } from "../Modal/index.es.js";
|
|
10
10
|
import { Text } from "../Text/index.es.js";
|
|
11
11
|
import { Conditional } from "../Conditional/index.es.js";
|
|
12
|
+
import { c as COLOR_NEUTRAL_40 } from "../../tokens-D_iASp38.js";
|
|
12
13
|
import { i as isMobile } from "../../isMobile-RyKhTreE.js";
|
|
13
14
|
import { F as Field } from "../../index-ZE6zszxw.js";
|
|
14
15
|
import { useState, useRef, useEffect } from "react";
|
|
15
|
-
import { c as COLOR_NEUTRAL_40 } from "../../tokens-D_iASp38.js";
|
|
16
16
|
import './styles.css';const useSelectField = (options, initialValue, onChange, onBlur, disabled, register, autocomplete = false, fullScreenOptions = false) => {
|
|
17
17
|
var _a;
|
|
18
18
|
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import "../Icon/index.es.js";
|
|
4
4
|
import { IconAlertOctagon } from "../icons/IconAlertOctagon/index.es.js";
|
|
5
5
|
import { IconAlertTriangle } from "../icons/IconAlertTriangle/index.es.js";
|
|
6
6
|
import { IconCheck } from "../icons/IconCheck/index.es.js";
|
|
7
7
|
import { IconInfo } from "../icons/IconInfo/index.es.js";
|
|
8
8
|
import { IconSlash } from "../icons/IconSlash/index.es.js";
|
|
9
|
-
import { Conditional } from "../Conditional/index.es.js";
|
|
10
9
|
import { C as COLOR_SUCCESS_50, b as COLOR_ERROR_50, e as COLOR_WARNING_50, f as COLOR_INFO_50, g as COLOR_BRAND_CYAN_50, d as COLOR_NEUTRAL_70 } from "../../tokens-D_iASp38.js";
|
|
10
|
+
import { Conditional } from "../Conditional/index.es.js";
|
|
11
11
|
import './styles.css';const Tag = ({
|
|
12
12
|
status,
|
|
13
13
|
border = "square",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import DynamicTagComponent from "../DynamicTagComponent/index.es.js";
|
|
4
4
|
import { Conditional } from "../Conditional/index.es.js";
|
|
5
5
|
import './styles.css';const Text = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as classNames } from "../../index-
|
|
2
|
+
import { c as classNames } from "../../index-BXRA68j0.js";
|
|
3
3
|
import { Text } from "../Text/index.es.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
const useFieldTextArea = ({ onChange }) => {
|
|
@@ -20,8 +20,10 @@ const FieldTextArea = ({
|
|
|
20
20
|
maxLength,
|
|
21
21
|
...props
|
|
22
22
|
}) => {
|
|
23
|
+
const { onChange, ...rest } = props;
|
|
24
|
+
const forwardedOnChange = onChange ? (e) => onChange(e) : void 0;
|
|
23
25
|
const { charCount, handleInputChange } = useFieldTextArea({
|
|
24
|
-
onChange:
|
|
26
|
+
onChange: forwardedOnChange
|
|
25
27
|
});
|
|
26
28
|
const textareaClasses = classNames("au-field__textarea", customClass, {
|
|
27
29
|
"au-field__textarea--horizontal-resize": horizontalResize
|
|
@@ -33,8 +35,8 @@ const FieldTextArea = ({
|
|
|
33
35
|
ref: textareaRef,
|
|
34
36
|
className: textareaClasses,
|
|
35
37
|
maxLength,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
...rest,
|
|
39
|
+
onChange: handleInputChange
|
|
38
40
|
}
|
|
39
41
|
),
|
|
40
42
|
maxLength && /* @__PURE__ */ jsxs(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../lib/components/form/Field/TextArea/hook.ts","../../../lib/components/form/Field/TextArea/index.tsx"],"sourcesContent":["import { useState } from 'react'\n\ntype UseFieldTextAreaProps = {\n onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void\n}\n\nexport const useFieldTextArea = ({ onChange }: UseFieldTextAreaProps) => {\n const [charCount, setCharCount] = useState(0)\n\n const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setCharCount(e.target.value.length)\n if (onChange) onChange(e)\n }\n\n return {\n charCount,\n handleInputChange,\n }\n}\n","import React from 'react'\nimport classNames from 'classnames'\nimport { Text } from '@components/Text'\nimport { useFieldTextArea } from './hook'\n\ntype FieldTextAreaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {\n textareaRef?: React.RefObject<HTMLTextAreaElement>\n customClass?: string\n horizontalResize?: boolean\n maxLength?: number\n}\n\nexport const FieldTextArea = ({\n textareaRef,\n customClass,\n horizontalResize,\n maxLength,\n ...props\n}: FieldTextAreaProps) => {\n const { charCount, handleInputChange } = useFieldTextArea({\n onChange:
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/form/Field/TextArea/hook.ts","../../../lib/components/form/Field/TextArea/index.tsx"],"sourcesContent":["import { useState } from 'react'\n\ntype UseFieldTextAreaProps = {\n onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void\n}\n\nexport const useFieldTextArea = ({ onChange }: UseFieldTextAreaProps) => {\n const [charCount, setCharCount] = useState(0)\n\n const handleInputChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {\n setCharCount(e.target.value.length)\n if (onChange) onChange(e)\n }\n\n return {\n charCount,\n handleInputChange,\n }\n}\n","import React from 'react'\nimport classNames from 'classnames'\nimport { Text } from '@components/Text'\nimport { useFieldTextArea } from './hook'\n\ntype FieldTextAreaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {\n textareaRef?: React.RefObject<HTMLTextAreaElement>\n customClass?: string\n horizontalResize?: boolean\n maxLength?: number\n}\n\nexport const FieldTextArea = ({\n textareaRef,\n customClass,\n horizontalResize,\n maxLength,\n ...props\n}: FieldTextAreaProps) => {\n const { onChange, ...rest } = props as FieldTextAreaProps\n const forwardedOnChange = onChange\n ? (e: React.ChangeEvent<HTMLTextAreaElement>) => onChange(e)\n : undefined\n\n const { charCount, handleInputChange } = useFieldTextArea({\n onChange: forwardedOnChange,\n })\n const textareaClasses = classNames('au-field__textarea', customClass, {\n 'au-field__textarea--horizontal-resize': horizontalResize,\n })\n\n return (\n <div className=\"au-field__textarea-container\">\n <textarea\n ref={textareaRef}\n className={textareaClasses}\n maxLength={maxLength}\n {...rest}\n onChange={handleInputChange}\n />\n {maxLength && (\n <Text\n variant=\"caption\"\n className=\"au-field__char-counter\"\n aria-live=\"polite\">\n {charCount}/{maxLength}\n </Text>\n )}\n </div>\n )\n}\n"],"names":[],"mappings":";;;;AAMO,MAAM,mBAAmB,CAAC,EAAE,eAAsC;AACvE,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,CAAC;AAEtC,QAAA,oBAAoB,CAAC,MAA8C;AAC1D,iBAAA,EAAE,OAAO,MAAM,MAAM;AAC9B,QAAA,mBAAmB,CAAC;AAAA,EAAA;AAGnB,SAAA;AAAA,IACL;AAAA,IACA;AAAA,EAAA;AAEJ;ACNO,MAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA0B;AACxB,QAAM,EAAE,UAAU,GAAG,KAAA,IAAS;AAC9B,QAAM,oBAAoB,WACtB,CAAC,MAA8C,SAAS,CAAC,IACzD;AAEJ,QAAM,EAAE,WAAW,kBAAkB,IAAI,iBAAiB;AAAA,IACxD,UAAU;AAAA,EAAA,CACX;AACK,QAAA,kBAAkB,WAAW,sBAAsB,aAAa;AAAA,IACpE,yCAAyC;AAAA,EAAA,CAC1C;AAGC,SAAA,qBAAC,OAAI,EAAA,WAAU,gCACb,UAAA;AAAA,IAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,WAAW;AAAA,QACX;AAAA,QACC,GAAG;AAAA,QACJ,UAAU;AAAA,MAAA;AAAA,IACZ;AAAA,IACC,aACC;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,WAAU;AAAA,QACV,aAAU;AAAA,QACT,UAAA;AAAA,UAAA;AAAA,UAAU;AAAA,UAAE;AAAA,QAAA;AAAA,MAAA;AAAA,IACf;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|