@consumidor-positivo/aurora 0.0.45 → 0.0.47
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/Field/index.es.js +5 -0
- package/dist/components/Field/index.es.js.map +1 -0
- package/dist/components/InputField/index.es.js +44 -18
- package/dist/components/InputField/index.es.js.map +1 -1
- package/dist/components/TokenField/index.es.js +186 -0
- package/dist/components/TokenField/index.es.js.map +1 -0
- package/dist/components/form/Field/ErrorMessage.d.ts +6 -0
- package/dist/components/form/Field/Input.d.ts +7 -0
- package/dist/components/form/Field/Label.d.ts +11 -0
- package/dist/components/form/Field/Root.d.ts +11 -0
- package/dist/components/form/Field/index.d.ts +29 -0
- package/dist/components/{InputField → form/InputField}/index.d.ts +2 -2
- package/dist/components/form/TokenField/hook.d.ts +16 -0
- package/dist/components/form/TokenField/index.d.ts +17 -0
- package/dist/components/tokens/styles.css +1 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.es.js +70 -67
- package/dist/main.es.js.map +1 -1
- package/dist/{tokens-rQ0Hp63r.js → tokens-BPzuCjxd.js} +112 -116
- package/dist/tokens-BPzuCjxd.js.map +1 -0
- package/package.json +1 -1
- package/dist/tokens-rQ0Hp63r.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,21 +1,47 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "../../
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/*
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { aJ as Field } from "../../tokens-BPzuCjxd.js";
|
|
3
|
+
const InputField = ({
|
|
4
|
+
optional,
|
|
5
|
+
requiredInput,
|
|
6
|
+
success,
|
|
7
|
+
error,
|
|
8
|
+
errorMessage,
|
|
9
|
+
label,
|
|
10
|
+
ref,
|
|
11
|
+
id,
|
|
12
|
+
disabled,
|
|
13
|
+
style,
|
|
14
|
+
className,
|
|
15
|
+
...props
|
|
16
|
+
}) => {
|
|
17
|
+
return /* @__PURE__ */ jsxs(
|
|
18
|
+
Field.Root,
|
|
19
|
+
{
|
|
20
|
+
style,
|
|
21
|
+
customclass: className,
|
|
22
|
+
success,
|
|
23
|
+
error,
|
|
24
|
+
disabled,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
Field.Label,
|
|
28
|
+
{
|
|
29
|
+
text: label,
|
|
30
|
+
id,
|
|
31
|
+
required: requiredInput,
|
|
32
|
+
optional,
|
|
33
|
+
success,
|
|
34
|
+
error,
|
|
35
|
+
disabled
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ jsx(Field.Input, { id, ref, disabled, ...props }),
|
|
39
|
+
/* @__PURE__ */ jsx(Field.ErrorMessage, { hasError: !!error, message: errorMessage })
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
};
|
|
18
44
|
export {
|
|
19
|
-
|
|
45
|
+
InputField
|
|
20
46
|
};
|
|
21
47
|
//# sourceMappingURL=index.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/form/InputField/index.tsx"],"sourcesContent":["import Field from '../Field'\n\ntype InputProps = React.InputHTMLAttributes<HTMLInputElement> & {\n optional?: boolean\n requiredInput?: boolean\n success?: boolean\n error?: boolean\n errorMessage?: string\n label?: string\n ref?: React.RefObject<HTMLInputElement>\n}\n\nexport const InputField = ({\n optional,\n requiredInput,\n success,\n error,\n errorMessage,\n label,\n ref,\n id,\n disabled,\n style,\n className,\n ...props\n}: InputProps) => {\n return (\n <Field.Root\n style={style}\n customclass={className}\n success={success}\n error={error}\n disabled={disabled}>\n <Field.Label\n text={label}\n id={id}\n required={requiredInput}\n optional={optional}\n success={success}\n error={error}\n disabled={disabled}\n />\n <Field.Input id={id} ref={ref} disabled={disabled} {...props} />\n <Field.ErrorMessage hasError={!!error} message={errorMessage} />\n </Field.Root>\n )\n}\n"],"names":[],"mappings":";;AAYO,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkB;AAEd,SAAA;AAAA,IAAC,MAAM;AAAA,IAAN;AAAA,MACC;AAAA,MACA,aAAa;AAAA,MACb;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAA;AAAA,QAAA;AAAA,UAAC,MAAM;AAAA,UAAN;AAAA,YACC,MAAM;AAAA,YACN;AAAA,YACA,UAAU;AAAA,YACV;AAAA,YACA;AAAA,YACA;AAAA,YACA;AAAA,UAAA;AAAA,QACF;AAAA,QACA,oBAAC,MAAM,OAAN,EAAY,IAAQ,KAAU,UAAqB,GAAG,OAAO;AAAA,QAC9D,oBAAC,MAAM,cAAN,EAAmB,UAAU,CAAC,CAAC,OAAO,SAAS,cAAc;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGpE;"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { aJ as Field } from "../../tokens-BPzuCjxd.js";
|
|
3
|
+
import { useRef, useState, useEffect } from "react";
|
|
4
|
+
function inputtedValueIsValid(value) {
|
|
5
|
+
const numberValue = Number(value);
|
|
6
|
+
const isNaN = Number.isNaN(numberValue);
|
|
7
|
+
return !isNaN;
|
|
8
|
+
}
|
|
9
|
+
function useTokenField({
|
|
10
|
+
size,
|
|
11
|
+
onComplete,
|
|
12
|
+
onChange,
|
|
13
|
+
onChangeTimer,
|
|
14
|
+
timer = null
|
|
15
|
+
}) {
|
|
16
|
+
const rootElementRef = useRef(null);
|
|
17
|
+
const [tokenMap, setTokenMap] = useState(_getDefaultTokens());
|
|
18
|
+
const [timerTime, setTimerTime] = useState(timer);
|
|
19
|
+
useEffect(_handleValueEvents, [tokenMap]);
|
|
20
|
+
useEffect(_handleStartTimer, [timer]);
|
|
21
|
+
useEffect(_handleTimerUpdate, [timerTime]);
|
|
22
|
+
function _handleValueEvents() {
|
|
23
|
+
const tokenValueArray = Object.keys(tokenMap).map((key) => tokenMap[key]) || [];
|
|
24
|
+
const stringField = tokenValueArray.join("");
|
|
25
|
+
const isTokenValid = stringField.length === size;
|
|
26
|
+
if (onChange) onChange(stringField);
|
|
27
|
+
if (!!isTokenValid && !!onComplete) {
|
|
28
|
+
onComplete(stringField);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function _handleStartTimer() {
|
|
32
|
+
let interval;
|
|
33
|
+
if (timer) {
|
|
34
|
+
interval = setInterval(() => {
|
|
35
|
+
setTimerTime((currentTime) => {
|
|
36
|
+
if (!currentTime) return null;
|
|
37
|
+
const reachedTheLimit = currentTime === 0;
|
|
38
|
+
if (reachedTheLimit) {
|
|
39
|
+
return timer;
|
|
40
|
+
} else {
|
|
41
|
+
return currentTime - 1;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
}, 1e3);
|
|
45
|
+
if (interval) {
|
|
46
|
+
return () => clearInterval(interval);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function _handleTimerUpdate() {
|
|
51
|
+
if (onChangeTimer && timerTime) onChangeTimer(timerTime);
|
|
52
|
+
if (timerTime === 0) {
|
|
53
|
+
setTokenMap(_getDefaultTokens());
|
|
54
|
+
_resetFocus();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function _getDefaultTokens() {
|
|
58
|
+
return [...Array(size)].reduce((acc, _, i) => ({ ...acc, [i]: "" }), {});
|
|
59
|
+
}
|
|
60
|
+
function _goToNextInput(i) {
|
|
61
|
+
var _a;
|
|
62
|
+
const nextItem = (_a = rootElementRef == null ? void 0 : rootElementRef.current) == null ? void 0 : _a.querySelector(
|
|
63
|
+
`[data-token-i='${i + 1}']`
|
|
64
|
+
);
|
|
65
|
+
if (nextItem) nextItem.focus();
|
|
66
|
+
}
|
|
67
|
+
function _resetFocus() {
|
|
68
|
+
var _a;
|
|
69
|
+
const firstItem = (_a = rootElementRef.current) == null ? void 0 : _a.querySelector(
|
|
70
|
+
`[data-token-i='0']`
|
|
71
|
+
);
|
|
72
|
+
firstItem == null ? void 0 : firstItem.focus();
|
|
73
|
+
}
|
|
74
|
+
function onKeyUpHandler(e, i) {
|
|
75
|
+
var _a, _b;
|
|
76
|
+
const hasBackspacePressed = e.which === 8 || e.key === "Backspace";
|
|
77
|
+
if (hasBackspacePressed) {
|
|
78
|
+
const previousItem = (_a = rootElementRef == null ? void 0 : rootElementRef.current) == null ? void 0 : _a.querySelector(
|
|
79
|
+
`[data-token-i='${i - 1}']`
|
|
80
|
+
);
|
|
81
|
+
const currentItem = (_b = rootElementRef == null ? void 0 : rootElementRef.current) == null ? void 0 : _b.querySelector(
|
|
82
|
+
`[data-token-i='${i}']`
|
|
83
|
+
);
|
|
84
|
+
setTokenMap({ ...tokenMap, [i]: "" });
|
|
85
|
+
if (!!previousItem && !(currentItem == null ? void 0 : currentItem.value)) previousItem.focus();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function onChangeNumber(e, i) {
|
|
89
|
+
var _a;
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
let value = (_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value;
|
|
92
|
+
const isNumberValid = inputtedValueIsValid(value);
|
|
93
|
+
const isEmpty = value === "";
|
|
94
|
+
if (isNumberValid) {
|
|
95
|
+
let firstEmptyIndex = Object.keys(tokenMap).findIndex(
|
|
96
|
+
(index) => tokenMap[index] === ""
|
|
97
|
+
);
|
|
98
|
+
if (value.length > 1) {
|
|
99
|
+
firstEmptyIndex = firstEmptyIndex - 1;
|
|
100
|
+
value = value[value.length - 1];
|
|
101
|
+
}
|
|
102
|
+
if (firstEmptyIndex < 0) {
|
|
103
|
+
if (value) {
|
|
104
|
+
setTokenMap({ ...tokenMap, [i]: value });
|
|
105
|
+
}
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
setTokenMap({ ...tokenMap, [firstEmptyIndex]: value });
|
|
109
|
+
if (!isEmpty) _goToNextInput(firstEmptyIndex);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function onPasteNumber(e) {
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
const value = e.clipboardData.getData("Text");
|
|
115
|
+
const isNumberValid = inputtedValueIsValid(value);
|
|
116
|
+
if (isNumberValid) {
|
|
117
|
+
const arrValue = value.split("").slice(0, size);
|
|
118
|
+
setTokenMap({ ..._getDefaultTokens(), ...arrValue });
|
|
119
|
+
_goToNextInput(arrValue.length - 1);
|
|
120
|
+
} else {
|
|
121
|
+
setTokenMap(_getDefaultTokens());
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
onKeyUpHandler,
|
|
126
|
+
onChangeNumber,
|
|
127
|
+
onPasteNumber,
|
|
128
|
+
tokenMap,
|
|
129
|
+
rootElementRef
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
const TokenField = ({
|
|
133
|
+
label,
|
|
134
|
+
disabled,
|
|
135
|
+
success,
|
|
136
|
+
error,
|
|
137
|
+
errorMessage,
|
|
138
|
+
size = 6,
|
|
139
|
+
type,
|
|
140
|
+
style,
|
|
141
|
+
timer,
|
|
142
|
+
onChangeTimer,
|
|
143
|
+
onComplete,
|
|
144
|
+
onChange
|
|
145
|
+
}) => {
|
|
146
|
+
const { tokenMap, rootElementRef, onChangeNumber, onKeyUpHandler, onPasteNumber } = useTokenField({ size, onComplete, onChange, onChangeTimer, timer });
|
|
147
|
+
return /* @__PURE__ */ jsxs(
|
|
148
|
+
Field.Root,
|
|
149
|
+
{
|
|
150
|
+
style,
|
|
151
|
+
customclass: "au-token-field",
|
|
152
|
+
success,
|
|
153
|
+
error,
|
|
154
|
+
disabled,
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsx(
|
|
157
|
+
Field.Label,
|
|
158
|
+
{
|
|
159
|
+
text: label,
|
|
160
|
+
success,
|
|
161
|
+
error,
|
|
162
|
+
disabled
|
|
163
|
+
}
|
|
164
|
+
),
|
|
165
|
+
/* @__PURE__ */ jsx("div", { ref: rootElementRef, className: "au-token-field__container", children: [...Object.values(tokenMap)].map((_, i) => /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
166
|
+
Field.Input,
|
|
167
|
+
{
|
|
168
|
+
customclass: "au-token-field__input",
|
|
169
|
+
type: type || "number",
|
|
170
|
+
value: tokenMap[i],
|
|
171
|
+
disabled,
|
|
172
|
+
onChange: (e) => onChangeNumber(e, i),
|
|
173
|
+
onKeyUp: (e) => onKeyUpHandler(e, i),
|
|
174
|
+
onPaste: (e) => onPasteNumber(e),
|
|
175
|
+
"data-token-i": i
|
|
176
|
+
}
|
|
177
|
+
) }, `token-digit-${i}`)) }),
|
|
178
|
+
/* @__PURE__ */ jsx(Field.ErrorMessage, { hasError: error, message: errorMessage })
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
};
|
|
183
|
+
export {
|
|
184
|
+
TokenField
|
|
185
|
+
};
|
|
186
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/form/TokenField/hook.tsx","../../../lib/components/form/TokenField/index.tsx"],"sourcesContent":["import { useState, useEffect, useRef } from 'react'\n\ntype UseTokenInputProps = {\n size: number\n onComplete?: (token: string) => void\n onChange?: (value: string) => void\n onChangeTimer?: (time: number) => void\n timer?: number | null\n}\n\nfunction inputtedValueIsValid(value: unknown) {\n const numberValue = Number(value)\n const isNaN = Number.isNaN(numberValue)\n return !isNaN\n}\n\nexport default function useTokenField({\n size,\n onComplete,\n onChange,\n onChangeTimer,\n timer = null,\n}: UseTokenInputProps) {\n const rootElementRef = useRef<HTMLDivElement | null>(null)\n const [tokenMap, setTokenMap] = useState(_getDefaultTokens())\n const [timerTime, setTimerTime] = useState<number | null>(timer)\n\n useEffect(_handleValueEvents, [tokenMap])\n useEffect(_handleStartTimer, [timer])\n useEffect(_handleTimerUpdate, [timerTime])\n\n function _handleValueEvents() {\n const tokenValueArray =\n Object.keys(tokenMap).map((key) => tokenMap[key]) || []\n const stringField = tokenValueArray.join('')\n const isTokenValid = stringField.length === size\n if (onChange) onChange(stringField)\n\n if (!!isTokenValid && !!onComplete) {\n onComplete(stringField)\n }\n }\n\n function _handleStartTimer() {\n let interval: NodeJS.Timeout\n\n if (timer) {\n interval = setInterval(() => {\n setTimerTime((currentTime) => {\n if (!currentTime) return null\n const reachedTheLimit = currentTime === 0\n if (reachedTheLimit) {\n return timer\n } else {\n return currentTime - 1\n }\n })\n }, 1000)\n \n if (interval) {\n return () => clearInterval(interval)\n }\n }\n }\n\n function _handleTimerUpdate() {\n if (onChangeTimer && timerTime) onChangeTimer(timerTime)\n\n if (timerTime === 0) {\n setTokenMap(_getDefaultTokens())\n _resetFocus()\n }\n }\n\n function _getDefaultTokens() {\n return [...Array(size)].reduce((acc, _, i) => ({ ...acc, [i]: '' }), {})\n }\n\n function _goToNextInput(i: number) {\n const nextItem = rootElementRef?.current?.querySelector<HTMLInputElement>(\n `[data-token-i='${i + 1}']`,\n )\n if (nextItem) nextItem.focus()\n }\n\n function _resetFocus() {\n const firstItem =\n rootElementRef.current?.querySelector<HTMLInputElement>(\n `[data-token-i='0']`,\n )\n firstItem?.focus()\n }\n\n function onKeyUpHandler(e: React.KeyboardEvent<HTMLInputElement>, i: number) {\n const hasBackspacePressed = e.which === 8 || e.key === 'Backspace'\n if (hasBackspacePressed) {\n const previousItem =\n rootElementRef?.current?.querySelector<HTMLInputElement>(\n `[data-token-i='${i - 1}']`,\n )\n const currentItem =\n rootElementRef?.current?.querySelector<HTMLInputElement>(\n `[data-token-i='${i}']`,\n )\n\n setTokenMap({ ...tokenMap, [i]: '' })\n if (!!previousItem && !currentItem?.value) previousItem.focus()\n }\n }\n\n function onChangeNumber(e: React.ChangeEvent<HTMLInputElement>, i: number) {\n e.preventDefault()\n let value = e?.target?.value\n const isNumberValid = inputtedValueIsValid(value)\n const isEmpty = value === ''\n\n if (isNumberValid) {\n let firstEmptyIndex = Object.keys(tokenMap).findIndex(\n (index) => tokenMap[index] === '',\n )\n\n if (value.length > 1) {\n firstEmptyIndex = firstEmptyIndex - 1\n value = value[value.length - 1]\n }\n\n if (firstEmptyIndex < 0) {\n if (value) {\n setTokenMap({ ...tokenMap, [i]: value })\n }\n\n return\n }\n\n setTokenMap({ ...tokenMap, [firstEmptyIndex]: value })\n if (!isEmpty) _goToNextInput(firstEmptyIndex)\n }\n }\n\n function onPasteNumber(e: React.ClipboardEvent<HTMLInputElement>) {\n e.preventDefault()\n const value = e.clipboardData.getData('Text')\n const isNumberValid = inputtedValueIsValid(value)\n\n if (isNumberValid) {\n const arrValue = value.split('').slice(0, size)\n setTokenMap({ ..._getDefaultTokens(), ...arrValue })\n\n _goToNextInput(arrValue.length - 1)\n } else {\n setTokenMap(_getDefaultTokens())\n }\n }\n\n return {\n onKeyUpHandler,\n onChangeNumber,\n onPasteNumber,\n tokenMap,\n rootElementRef,\n }\n}\n","import Field from '../Field'\nimport useTokenField from './hook'\nimport './styles.scss'\n\ntype TokenFieldProps = {\n label?: string\n disabled?: boolean\n success?: boolean\n error?: boolean\n errorMessage?: string\n size?: number\n type?: 'number' | 'password' | 'text'\n style?: React.CSSProperties\n timer?: number\n onChangeTimer?: () => void\n onComplete?: (value: string) => void\n onChange?: (value: string) => void\n}\n\nexport const TokenField = ({\n label,\n disabled,\n success,\n error,\n errorMessage,\n size = 6,\n type,\n style,\n timer,\n onChangeTimer,\n onComplete,\n onChange,\n}: TokenFieldProps) => {\n const { tokenMap, rootElementRef, onChangeNumber, onKeyUpHandler, onPasteNumber } =\n useTokenField({ size, onComplete, onChange, onChangeTimer, timer })\n\n return (\n <Field.Root\n style={style}\n customclass=\"au-token-field\"\n success={success}\n error={error}\n disabled={disabled}>\n <Field.Label\n text={label}\n success={success}\n error={error}\n disabled={disabled}\n />\n <div ref={rootElementRef} className=\"au-token-field__container\">\n {[...Object.values(tokenMap)].map((_, i) => (\n <div key={`token-digit-${i}`}>\n <Field.Input\n customclass=\"au-token-field__input\"\n type={type || 'number'}\n value={tokenMap[i]}\n disabled={disabled}\n onChange={(e) => onChangeNumber(e, i)}\n onKeyUp={(e) => onKeyUpHandler(e, i)}\n onPaste={(e) => onPasteNumber(e)}\n data-token-i={i}\n />\n </div>\n ))}\n </div>\n <Field.ErrorMessage hasError={error} message={errorMessage} />\n </Field.Root>\n )\n}\n"],"names":[],"mappings":";;;AAUA,SAAS,qBAAqB,OAAgB;AACtC,QAAA,cAAc,OAAO,KAAK;AAC1B,QAAA,QAAQ,OAAO,MAAM,WAAW;AACtC,SAAO,CAAC;AACV;AAEA,SAAwB,cAAc;AAAA,EACpC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,QAAQ;AACV,GAAuB;AACf,QAAA,iBAAiB,OAA8B,IAAI;AACzD,QAAM,CAAC,UAAU,WAAW,IAAI,SAAS,kBAAmB,CAAA;AAC5D,QAAM,CAAC,WAAW,YAAY,IAAI,SAAwB,KAAK;AAErD,YAAA,oBAAoB,CAAC,QAAQ,CAAC;AAC9B,YAAA,mBAAmB,CAAC,KAAK,CAAC;AAC1B,YAAA,oBAAoB,CAAC,SAAS,CAAC;AAEzC,WAAS,qBAAqB;AAC5B,UAAM,kBACJ,OAAO,KAAK,QAAQ,EAAE,I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
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type FieldInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
ref?: React.RefObject<HTMLInputElement>;
|
|
4
|
+
customclass?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const FieldInput: (props: FieldInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type FieldLabelProps = {
|
|
2
|
+
id?: string;
|
|
3
|
+
text?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
optional?: boolean;
|
|
6
|
+
success?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const FieldLabel: ({ id, text, required, optional, success, error, disabled, }: FieldLabelProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type FieldRootProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
success?: boolean;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
customclass?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const FieldRoot: ({ children, disabled, success, error, style, customclass, }: FieldRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: {
|
|
3
|
+
Root: ({ children, disabled, success, error, style, customclass, }: {
|
|
4
|
+
children: import('react').ReactNode;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
success?: boolean | undefined;
|
|
7
|
+
error?: boolean | undefined;
|
|
8
|
+
style?: import('react').CSSProperties | undefined;
|
|
9
|
+
customclass?: string | undefined;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Input: (props: import('react').InputHTMLAttributes<HTMLInputElement> & {
|
|
12
|
+
ref?: import('react').RefObject<HTMLInputElement> | undefined;
|
|
13
|
+
customclass?: string | undefined;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
Label: ({ id, text, required, optional, success, error, disabled, }: {
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
text?: string | undefined;
|
|
18
|
+
required?: boolean | undefined;
|
|
19
|
+
optional?: boolean | undefined;
|
|
20
|
+
success?: boolean | undefined;
|
|
21
|
+
error?: boolean | undefined;
|
|
22
|
+
disabled?: boolean | undefined;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
24
|
+
ErrorMessage: ({ hasError, message }: {
|
|
25
|
+
hasError?: boolean | undefined;
|
|
26
|
+
message?: string | undefined;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
optional?: boolean;
|
|
4
4
|
requiredInput?: boolean;
|
|
@@ -8,5 +8,5 @@ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
ref?: React.RefObject<HTMLInputElement>;
|
|
10
10
|
};
|
|
11
|
-
export declare const InputField: ({ optional, requiredInput, success, error, errorMessage, label, ref, id, disabled, style, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const InputField: ({ optional, requiredInput, success, error, errorMessage, label, ref, id, disabled, style, className, ...props }: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type UseTokenInputProps = {
|
|
3
|
+
size: number;
|
|
4
|
+
onComplete?: (token: string) => void;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onChangeTimer?: (time: number) => void;
|
|
7
|
+
timer?: number | null;
|
|
8
|
+
};
|
|
9
|
+
export default function useTokenField({ size, onComplete, onChange, onChangeTimer, timer, }: UseTokenInputProps): {
|
|
10
|
+
onKeyUpHandler: (e: React.KeyboardEvent<HTMLInputElement>, i: number) => void;
|
|
11
|
+
onChangeNumber: (e: React.ChangeEvent<HTMLInputElement>, i: number) => void;
|
|
12
|
+
onPasteNumber: (e: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
13
|
+
tokenMap: any;
|
|
14
|
+
rootElementRef: import('react').MutableRefObject<HTMLDivElement | null>;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
type TokenFieldProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
success?: boolean;
|
|
6
|
+
error?: boolean;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
type?: 'number' | 'password' | 'text';
|
|
10
|
+
style?: React.CSSProperties;
|
|
11
|
+
timer?: number;
|
|
12
|
+
onChangeTimer?: () => void;
|
|
13
|
+
onComplete?: (value: string) => void;
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export declare const TokenField: ({ label, disabled, success, error, errorMessage, size, type, style, timer, onChangeTimer, onComplete, onChange, }: TokenFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
html{box-sizing:border-box;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*,*:before,*:after{box-sizing:inherit;margin:0;padding:0}:focus{outline:none}body{font-family:"Source Sans 3",sans-serif;background-color:#fff}.au-
|
|
1
|
+
html{box-sizing:border-box;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}*,*:before,*:after{box-sizing:inherit;margin:0;padding:0}:focus{outline:none}body{font-family:"Source Sans 3",sans-serif;background-color:#fff}.au-field{cursor:pointer}.au-field__input{background-color:#fff;border:1px solid #454a54;border-radius:8px;box-sizing:border-box;font-size:16px;line-height:22px;padding:16px;height:56px;width:100%}.au-field__input:hover{border:1px solid #16181d}.au-field__input:focus{border-color:#0048db;outline:1px solid #0048db}.au-field:focus-within:not(.au-field--error) [class*=__header-label],.au-field:focus-within:not(.au-field--error) .au-field{color:#0048db}.au-field__header{display:flex;justify-content:space-between;align-items:center;padding-bottom:8px}.au-field__header-label{color:#454a54;cursor:pointer;font-size:14px;font-weight:600}.au-field__header-label--required{color:#991717}.au-field__header-icon span{font-size:14px;color:#454a54}.au-field__error-message{color:#991717;font-size:16px;font-weight:400;line-height:24px;padding-top:8px}.au-field--disabled{cursor:not-allowed}.au-field--disabled [class*=__input],.au-field--disabled .au-field{background-color:#e2e4e9;border-color:#5e6573;color:#5e6573;cursor:not-allowed}.au-field--disabled [class*=__header-label],.au-field--disabled .au-field{color:#5e6573;cursor:not-allowed}.au-field--error [class*=__input],.au-field--error .au-field{background-color:#f5eff0;border-color:#991717}.au-field--error [class*=__input]:focus,.au-field--error .au-field:focus{border-color:#991717;outline:1px solid #991717}.au-field--error [class*=__header-label],.au-field--error .au-field{color:#991717}.au-field--success [class*=__input],.au-field--success .au-field{animation:inputSuccess 2s forwards}.au-field--success [class*=__header-label],.au-field--success .au-field{animation:labelSuccess 2s forwards}.au-field--success [class*=__header-icon] .au-icon{animation:iconSucess 2s forwards}@keyframes inputSuccess{0%,70%{background-color:#f0fcf5;border-color:#10593b}}@keyframes labelSuccess{0%,70%{color:#10593b}}@keyframes iconSucess{0%,70%{opacity:1}to{opacity:0}}.au-token-field{max-width:max-content}.au-token-field__container{display:flex;gap:8px}.au-token-field__input{font-size:20px;text-align:center;padding:8px}.au-token-field__input[type=number]::-webkit-inner-spin-button,.au-token-field__input[type=number]::-webkit-outer-spin-button{display:none}
|
package/dist/main.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export { NotificationsBar } from './components/NotificationsBar';
|
|
|
9
9
|
export { ProfileNav } from './components/ProfileNav';
|
|
10
10
|
export { Text } from './components/Text';
|
|
11
11
|
export { Footer } from './components/Footer';
|
|
12
|
-
export { InputField } from './components/InputField';
|
|
12
|
+
export { InputField } from './components/form/InputField';
|
|
13
|
+
export { TokenField } from './components/form/TokenField';
|
|
13
14
|
export { useDrawer } from './components/Drawer/hooks';
|
|
14
15
|
export * from './components/Logo';
|
|
15
16
|
export * from './components/icons';
|
package/dist/main.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b, a, c, B,
|
|
1
|
+
import { b, a, c, B, ah, ag, af, ai, ae, p, o, n, m, l, k, D, A, z, y, x, w, v, u, t, s, r, q, R, Q, P, O, N, M, L, a3, a2, a1, a0, $, _, Z, j, i, h, g, f, e, d, C, K, J, I, H, G, F, E, Y, X, W, V, U, T, S, aj, au, az, aA, aB, aC, aD, aE, aF, aG, aH, aI, at, av, ax, ay, aw, ak, al, am, an, ao, ap, aq, ar, as, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad } from "./tokens-BPzuCjxd.js";
|
|
2
2
|
import { Button } from "./components/Button/index.es.js";
|
|
3
3
|
import { Conditional } from "./components/Conditional/index.es.js";
|
|
4
4
|
import { Drawer } from "./components/Drawer/index.es.js";
|
|
@@ -9,6 +9,8 @@ import { NotificationsBar } from "./components/NotificationsBar/index.es.js";
|
|
|
9
9
|
import { ProfileNav } from "./components/ProfileNav/index.es.js";
|
|
10
10
|
import { Text } from "./components/Text/index.es.js";
|
|
11
11
|
import { Footer } from "./components/Footer/index.es.js";
|
|
12
|
+
import { InputField } from "./components/InputField/index.es.js";
|
|
13
|
+
import { TokenField } from "./components/TokenField/index.es.js";
|
|
12
14
|
import { useState } from "react";
|
|
13
15
|
import { L as L2, a as a10, b as b2, c as c2, d as d2, e as e2, f as f2, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2 } from "./Tertiary-DMp-1eWT.js";
|
|
14
16
|
import { IconActivity } from "./components/icons/IconActivity/index.es.js";
|
|
@@ -342,11 +344,11 @@ export {
|
|
|
342
344
|
a as BORDER_RADIUS_MEDIUM,
|
|
343
345
|
c as BORDER_RADIUS_PILL,
|
|
344
346
|
B as BORDER_RADIUS_SMALL,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
347
|
+
ah as BREAKPOINT_LG,
|
|
348
|
+
ag as BREAKPOINT_MD,
|
|
349
|
+
af as BREAKPOINT_SM,
|
|
350
|
+
ai as BREAKPOINT_XLG,
|
|
351
|
+
ae as BREAKPOINT_XSM,
|
|
350
352
|
Button,
|
|
351
353
|
p as COLOR_BRAND_BLUE_10,
|
|
352
354
|
o as COLOR_BRAND_BLUE_20,
|
|
@@ -366,20 +368,20 @@ export {
|
|
|
366
368
|
s as COLOR_BRAND_EMERALD_40,
|
|
367
369
|
r as COLOR_BRAND_EMERALD_50,
|
|
368
370
|
q as COLOR_BRAND_EMERALD_60,
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
371
|
+
R as COLOR_ERROR_00,
|
|
372
|
+
Q as COLOR_ERROR_10,
|
|
373
|
+
P as COLOR_ERROR_20,
|
|
374
|
+
O as COLOR_ERROR_30,
|
|
375
|
+
N as COLOR_ERROR_40,
|
|
376
|
+
M as COLOR_ERROR_50,
|
|
377
|
+
L as COLOR_ERROR_60,
|
|
378
|
+
a3 as COLOR_INFO_00,
|
|
379
|
+
a2 as COLOR_INFO_10,
|
|
380
|
+
a1 as COLOR_INFO_20,
|
|
381
|
+
a0 as COLOR_INFO_30,
|
|
382
|
+
$ as COLOR_INFO_40,
|
|
383
|
+
_ as COLOR_INFO_50,
|
|
384
|
+
Z as COLOR_INFO_60,
|
|
383
385
|
j as COLOR_NEUTRAL_00,
|
|
384
386
|
i as COLOR_NEUTRAL_10,
|
|
385
387
|
h as COLOR_NEUTRAL_20,
|
|
@@ -388,39 +390,39 @@ export {
|
|
|
388
390
|
e as COLOR_NEUTRAL_50,
|
|
389
391
|
d as COLOR_NEUTRAL_60,
|
|
390
392
|
C as COLOR_NEUTRAL_70,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
393
|
+
K as COLOR_SUCCESS_00,
|
|
394
|
+
J as COLOR_SUCCESS_10,
|
|
395
|
+
I as COLOR_SUCCESS_20,
|
|
394
396
|
H as COLOR_SUCCESS_30,
|
|
395
397
|
G as COLOR_SUCCESS_40,
|
|
396
398
|
F as COLOR_SUCCESS_50,
|
|
397
399
|
E as COLOR_SUCCESS_60,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
400
|
+
Y as COLOR_WARNING_00,
|
|
401
|
+
X as COLOR_WARNING_10,
|
|
402
|
+
W as COLOR_WARNING_20,
|
|
403
|
+
V as COLOR_WARNING_30,
|
|
404
|
+
U as COLOR_WARNING_40,
|
|
405
|
+
T as COLOR_WARNING_50,
|
|
406
|
+
S as COLOR_WARNING_60,
|
|
407
|
+
aj as CONTAINER_SIZE,
|
|
406
408
|
Conditional,
|
|
407
409
|
Drawer,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
410
|
+
au as FONT_BODY,
|
|
411
|
+
az as FONT_SIZE_H1,
|
|
412
|
+
aA as FONT_SIZE_H2,
|
|
413
|
+
aB as FONT_SIZE_H3,
|
|
414
|
+
aC as FONT_SIZE_H4,
|
|
415
|
+
aD as FONT_SIZE_H5,
|
|
416
|
+
aE as FONT_SIZE_H6,
|
|
417
|
+
aF as FONT_SIZE_P1,
|
|
418
|
+
aG as FONT_SIZE_P2,
|
|
419
|
+
aH as FONT_SIZE_P3,
|
|
420
|
+
aI as FONT_SIZE_P4,
|
|
421
|
+
at as FONT_TITLE,
|
|
422
|
+
av as FONT_WEIGHT_BOLD,
|
|
423
|
+
ax as FONT_WEIGHT_MEDIUM,
|
|
424
|
+
ay as FONT_WEIGHT_REGULAR,
|
|
425
|
+
aw as FONT_WEIGHT_SEMIBOLD,
|
|
424
426
|
Footer,
|
|
425
427
|
Header,
|
|
426
428
|
IconActivity,
|
|
@@ -734,7 +736,7 @@ export {
|
|
|
734
736
|
IconZapOff,
|
|
735
737
|
IconZoomIn,
|
|
736
738
|
IconZoomOut,
|
|
737
|
-
|
|
739
|
+
InputField,
|
|
738
740
|
LazyImage,
|
|
739
741
|
L2 as LogoBadgetAC,
|
|
740
742
|
a10 as LogoBadgetCP,
|
|
@@ -752,27 +754,28 @@ export {
|
|
|
752
754
|
m2 as LogoTertiaryAC,
|
|
753
755
|
NavbarVertical,
|
|
754
756
|
NotificationsBar,
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
757
|
+
ak as OPACITY_00,
|
|
758
|
+
al as OPACITY_10,
|
|
759
|
+
am as OPACITY_20,
|
|
760
|
+
an as OPACITY_30,
|
|
761
|
+
ao as OPACITY_40,
|
|
760
762
|
ProfileNav,
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
763
|
+
ap as SHADOW_01,
|
|
764
|
+
aq as SHADOW_02,
|
|
765
|
+
ar as SHADOW_03,
|
|
766
|
+
as as SHADOW_04,
|
|
767
|
+
a4 as SPACING_050,
|
|
768
|
+
a5 as SPACING_100,
|
|
769
|
+
a6 as SPACING_200,
|
|
770
|
+
a7 as SPACING_300,
|
|
771
|
+
a8 as SPACING_400,
|
|
772
|
+
a9 as SPACING_500,
|
|
773
|
+
aa as SPACING_600,
|
|
774
|
+
ab as SPACING_700,
|
|
775
|
+
ac as SPACING_800,
|
|
776
|
+
ad as SPACING_900,
|
|
775
777
|
Text,
|
|
778
|
+
TokenField,
|
|
776
779
|
useDrawer
|
|
777
780
|
};
|
|
778
781
|
//# sourceMappingURL=main.es.js.map
|
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\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 return {\n handleOpenDrawer,\n drawerOpen,\n }\n}\n"],"names":[],"mappings":"
|
|
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 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;AAEO,SAAA;AAAA,IACL;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c as classNames } from "./index-CweZ_OcN.js";
|
|
3
|
-
import { Conditional } from "./components/Conditional/index.es.js";
|
|
4
3
|
import "./components/Icon/index.es.js";
|
|
5
4
|
import { IconAlertCircle } from "./components/icons/IconAlertCircle/index.es.js";
|
|
6
5
|
import { IconCheck } from "./components/icons/IconCheck/index.es.js";
|
|
@@ -14,25 +13,26 @@ import "./components/Text/index.es.js";
|
|
|
14
13
|
/* empty css */
|
|
15
14
|
/* empty css */
|
|
16
15
|
/* empty css */
|
|
17
|
-
const
|
|
16
|
+
const FieldErrorMessage = ({ hasError, message }) => {
|
|
17
|
+
if (!hasError || !message) return;
|
|
18
|
+
return /* @__PURE__ */ jsx("p", { className: "au-field__error-message", children: message });
|
|
19
|
+
};
|
|
20
|
+
const FieldInput = (props) => {
|
|
21
|
+
const { ref, customclass } = props;
|
|
22
|
+
const inputClasses = classNames("au-field__input", customclass);
|
|
23
|
+
return /* @__PURE__ */ jsx("input", { className: inputClasses, ref, ...props });
|
|
24
|
+
};
|
|
25
|
+
const FieldLabel = ({
|
|
26
|
+
id,
|
|
27
|
+
text,
|
|
28
|
+
required,
|
|
18
29
|
optional,
|
|
19
|
-
requiredInput,
|
|
20
30
|
success,
|
|
21
31
|
error,
|
|
22
|
-
|
|
23
|
-
label,
|
|
24
|
-
ref,
|
|
25
|
-
id,
|
|
26
|
-
disabled,
|
|
27
|
-
style,
|
|
28
|
-
...props
|
|
32
|
+
disabled
|
|
29
33
|
}) => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"au-input--success": success,
|
|
33
|
-
"au-input--error": error
|
|
34
|
-
});
|
|
35
|
-
const statesFlag = [
|
|
34
|
+
if (!text) return;
|
|
35
|
+
const states = [
|
|
36
36
|
{ state: "optional", value: !!optional, icon: /* @__PURE__ */ jsx("span", { children: "(Opcional)" }) },
|
|
37
37
|
{
|
|
38
38
|
state: "success",
|
|
@@ -50,41 +50,37 @@ const InputField = ({
|
|
|
50
50
|
icon: /* @__PURE__ */ jsx(IconSlash, { rawColor: COLOR_NEUTRAL_40 })
|
|
51
51
|
}
|
|
52
52
|
];
|
|
53
|
-
const currentState =
|
|
54
|
-
return /* @__PURE__ */ jsxs("div", { className:
|
|
55
|
-
/* @__PURE__ */ jsxs("
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
condition: !!label,
|
|
60
|
-
renderIf: /* @__PURE__ */ jsxs("label", { htmlFor: id, className: "au-input__header-label", children: [
|
|
61
|
-
label,
|
|
62
|
-
" ",
|
|
63
|
-
requiredInput && /* @__PURE__ */ jsx("strong", { className: "au-input__header-label--required", children: "*" })
|
|
64
|
-
] })
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ jsx("div", { className: "au-input__header-icon", children: currentState == null ? void 0 : currentState.icon })
|
|
53
|
+
const currentState = states.find(({ value }) => !!value);
|
|
54
|
+
return /* @__PURE__ */ jsxs("div", { className: "au-field__header", children: [
|
|
55
|
+
/* @__PURE__ */ jsxs("label", { htmlFor: id, className: "au-field__header-label", children: [
|
|
56
|
+
text,
|
|
57
|
+
" ",
|
|
58
|
+
required && /* @__PURE__ */ jsx("strong", { className: "au-field__header-label--required", children: "*" })
|
|
68
59
|
] }),
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
"input",
|
|
71
|
-
{
|
|
72
|
-
id,
|
|
73
|
-
className: "au-input__field",
|
|
74
|
-
ref,
|
|
75
|
-
disabled,
|
|
76
|
-
...props
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ jsx(
|
|
80
|
-
Conditional,
|
|
81
|
-
{
|
|
82
|
-
condition: !!errorMessage && !!error,
|
|
83
|
-
renderIf: /* @__PURE__ */ jsx("p", { className: "au-input__error-message", children: errorMessage })
|
|
84
|
-
}
|
|
85
|
-
)
|
|
60
|
+
/* @__PURE__ */ jsx("div", { className: "au-field__header-icon", children: currentState == null ? void 0 : currentState.icon })
|
|
86
61
|
] });
|
|
87
62
|
};
|
|
63
|
+
const FieldRoot = ({
|
|
64
|
+
children,
|
|
65
|
+
disabled,
|
|
66
|
+
success,
|
|
67
|
+
error,
|
|
68
|
+
style,
|
|
69
|
+
customclass
|
|
70
|
+
}) => {
|
|
71
|
+
const inputClasses = classNames("au-field", customclass, {
|
|
72
|
+
"au-field--disabled": !!disabled,
|
|
73
|
+
"au-field--success": !!success,
|
|
74
|
+
"au-field--error": !!error
|
|
75
|
+
});
|
|
76
|
+
return /* @__PURE__ */ jsx("div", { className: inputClasses, style, children });
|
|
77
|
+
};
|
|
78
|
+
const Field = {
|
|
79
|
+
Root: FieldRoot,
|
|
80
|
+
Input: FieldInput,
|
|
81
|
+
Label: FieldLabel,
|
|
82
|
+
ErrorMessage: FieldErrorMessage
|
|
83
|
+
};
|
|
88
84
|
const BORDER_RADIUS_SMALL = "4px";
|
|
89
85
|
const BORDER_RADIUS_MEDIUM = "8px";
|
|
90
86
|
const BORDER_RADIUS_BIG = "16px";
|
|
@@ -185,7 +181,7 @@ const FONT_SIZE_P2 = "16px";
|
|
|
185
181
|
const FONT_SIZE_P3 = "14px";
|
|
186
182
|
const FONT_SIZE_P4 = "12px";
|
|
187
183
|
export {
|
|
188
|
-
|
|
184
|
+
COLOR_INFO_40 as $,
|
|
189
185
|
COLOR_BRAND_CYAN_20 as A,
|
|
190
186
|
BORDER_RADIUS_SMALL as B,
|
|
191
187
|
COLOR_NEUTRAL_70 as C,
|
|
@@ -194,72 +190,72 @@ export {
|
|
|
194
190
|
COLOR_SUCCESS_50 as F,
|
|
195
191
|
COLOR_SUCCESS_40 as G,
|
|
196
192
|
COLOR_SUCCESS_30 as H,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
193
|
+
COLOR_SUCCESS_20 as I,
|
|
194
|
+
COLOR_SUCCESS_10 as J,
|
|
195
|
+
COLOR_SUCCESS_00 as K,
|
|
196
|
+
COLOR_ERROR_60 as L,
|
|
197
|
+
COLOR_ERROR_50 as M,
|
|
198
|
+
COLOR_ERROR_40 as N,
|
|
199
|
+
COLOR_ERROR_30 as O,
|
|
200
|
+
COLOR_ERROR_20 as P,
|
|
201
|
+
COLOR_ERROR_10 as Q,
|
|
202
|
+
COLOR_ERROR_00 as R,
|
|
203
|
+
COLOR_WARNING_60 as S,
|
|
204
|
+
COLOR_WARNING_50 as T,
|
|
205
|
+
COLOR_WARNING_40 as U,
|
|
206
|
+
COLOR_WARNING_30 as V,
|
|
207
|
+
COLOR_WARNING_20 as W,
|
|
208
|
+
COLOR_WARNING_10 as X,
|
|
209
|
+
COLOR_WARNING_00 as Y,
|
|
210
|
+
COLOR_INFO_60 as Z,
|
|
211
|
+
COLOR_INFO_50 as _,
|
|
216
212
|
BORDER_RADIUS_MEDIUM as a,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
213
|
+
COLOR_INFO_30 as a0,
|
|
214
|
+
COLOR_INFO_20 as a1,
|
|
215
|
+
COLOR_INFO_10 as a2,
|
|
216
|
+
COLOR_INFO_00 as a3,
|
|
217
|
+
SPACING_050 as a4,
|
|
218
|
+
SPACING_100 as a5,
|
|
219
|
+
SPACING_200 as a6,
|
|
220
|
+
SPACING_300 as a7,
|
|
221
|
+
SPACING_400 as a8,
|
|
222
|
+
SPACING_500 as a9,
|
|
223
|
+
FONT_SIZE_H2 as aA,
|
|
224
|
+
FONT_SIZE_H3 as aB,
|
|
225
|
+
FONT_SIZE_H4 as aC,
|
|
226
|
+
FONT_SIZE_H5 as aD,
|
|
227
|
+
FONT_SIZE_H6 as aE,
|
|
228
|
+
FONT_SIZE_P1 as aF,
|
|
229
|
+
FONT_SIZE_P2 as aG,
|
|
230
|
+
FONT_SIZE_P3 as aH,
|
|
231
|
+
FONT_SIZE_P4 as aI,
|
|
232
|
+
Field as aJ,
|
|
233
|
+
SPACING_600 as aa,
|
|
234
|
+
SPACING_700 as ab,
|
|
235
|
+
SPACING_800 as ac,
|
|
236
|
+
SPACING_900 as ad,
|
|
237
|
+
BREAKPOINT_XSM as ae,
|
|
238
|
+
BREAKPOINT_SM as af,
|
|
239
|
+
BREAKPOINT_MD as ag,
|
|
240
|
+
BREAKPOINT_LG as ah,
|
|
241
|
+
BREAKPOINT_XLG as ai,
|
|
242
|
+
CONTAINER_SIZE as aj,
|
|
243
|
+
OPACITY_00 as ak,
|
|
244
|
+
OPACITY_10 as al,
|
|
245
|
+
OPACITY_20 as am,
|
|
246
|
+
OPACITY_30 as an,
|
|
247
|
+
OPACITY_40 as ao,
|
|
248
|
+
SHADOW_01 as ap,
|
|
249
|
+
SHADOW_02 as aq,
|
|
250
|
+
SHADOW_03 as ar,
|
|
251
|
+
SHADOW_04 as as,
|
|
252
|
+
FONT_TITLE as at,
|
|
253
|
+
FONT_BODY as au,
|
|
254
|
+
FONT_WEIGHT_BOLD as av,
|
|
255
|
+
FONT_WEIGHT_SEMIBOLD as aw,
|
|
256
|
+
FONT_WEIGHT_MEDIUM as ax,
|
|
257
|
+
FONT_WEIGHT_REGULAR as ay,
|
|
258
|
+
FONT_SIZE_H1 as az,
|
|
263
259
|
BORDER_RADIUS_BIG as b,
|
|
264
260
|
BORDER_RADIUS_PILL as c,
|
|
265
261
|
COLOR_NEUTRAL_60 as d,
|
|
@@ -286,4 +282,4 @@ export {
|
|
|
286
282
|
COLOR_BRAND_CYAN_40 as y,
|
|
287
283
|
COLOR_BRAND_CYAN_30 as z
|
|
288
284
|
};
|
|
289
|
-
//# sourceMappingURL=tokens-
|
|
285
|
+
//# sourceMappingURL=tokens-BPzuCjxd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens-BPzuCjxd.js","sources":["../lib/components/form/Field/ErrorMessage.tsx","../lib/components/form/Field/Input.tsx","../lib/components/form/Field/Label.tsx","../lib/components/form/Field/Root.tsx","../lib/components/form/Field/index.tsx","../lib/core/tokens/.cache/tokens.ts"],"sourcesContent":["type ErrorMessageProps = {\n hasError?: boolean\n message?: string\n}\n\nexport const FieldErrorMessage = ({ hasError, message }: ErrorMessageProps) => {\n if (!hasError || !message) return\n\n return <p className=\"au-field__error-message\">{message}</p>\n}\n","import classNames from \"classnames\"\n\ntype FieldInputProps = React.InputHTMLAttributes<HTMLInputElement> & {\n ref?: React.RefObject<HTMLInputElement>\n customclass?: string\n}\n\nexport const FieldInput = (props: FieldInputProps) => {\n const { ref, customclass } = props\n\n const inputClasses = classNames(\"au-field__input\", customclass)\n\n return <input className={inputClasses} ref={ref} {...props} />\n}\n","import { IconAlertCircle, IconCheck, IconSlash } from '../../icons'\nimport {\n COLOR_ERROR_50,\n COLOR_NEUTRAL_40,\n COLOR_SUCCESS_50,\n} from '../../../main'\n\ntype FieldLabelProps = {\n id?: string\n text?: string\n required?: boolean\n optional?: boolean\n success?: boolean\n error?: boolean\n disabled?: boolean\n}\n\nexport const FieldLabel = ({\n id,\n text,\n required,\n optional,\n success,\n error,\n disabled,\n}: FieldLabelProps) => {\n if (!text) return\n\n const states = [\n { state: 'optional', value: !!optional, icon: <span>(Opcional)</span> },\n {\n state: 'success',\n value: !!success,\n icon: <IconCheck rawColor={COLOR_SUCCESS_50} />,\n },\n {\n state: 'error',\n value: !!error,\n icon: <IconAlertCircle rawColor={COLOR_ERROR_50} />,\n },\n {\n state: 'disabled',\n value: !!disabled,\n icon: <IconSlash rawColor={COLOR_NEUTRAL_40} />,\n },\n ]\n\n const currentState = states.find(({ value }) => !!value)\n\n return (\n <div className=\"au-field__header\">\n <label htmlFor={id} className=\"au-field__header-label\">\n {text}{' '}\n {required && (\n <strong className=\"au-field__header-label--required\">*</strong>\n )}\n </label>\n <div className=\"au-field__header-icon\">{currentState?.icon}</div>\n </div>\n )\n}\n","import classNames from 'classnames'\n\ntype FieldRootProps = {\n children: React.ReactNode\n disabled?: boolean\n success?: boolean\n error?: boolean\n style?: React.CSSProperties\n customclass?: string\n}\n\nexport const FieldRoot = ({\n children,\n disabled,\n success,\n error,\n style,\n customclass,\n}: FieldRootProps) => {\n const inputClasses = classNames('au-field', customclass, {\n 'au-field--disabled': !!disabled,\n 'au-field--success': !!success,\n 'au-field--error': !!error,\n })\n\n return (\n <div className={inputClasses} style={style}>\n {children}\n </div>\n )\n}\n","import { FieldErrorMessage } from './ErrorMessage'\nimport { FieldInput } from './Input'\nimport { FieldLabel } from './Label'\nimport { FieldRoot } from './Root'\nimport './styles.scss'\n\nexport default {\n Root: FieldRoot,\n Input: FieldInput,\n Label: FieldLabel,\n ErrorMessage: FieldErrorMessage\n}","export const BORDER_RADIUS_SMALL = \"4px\";\nexport const BORDER_RADIUS_MEDIUM = \"8px\";\nexport const BORDER_RADIUS_BIG = \"16px\";\nexport const BORDER_RADIUS_PILL = \"999px\";\nexport const COLOR_NEUTRAL_70 = \"#16181d\";\nexport const COLOR_NEUTRAL_60 = \"#313131\";\nexport const COLOR_NEUTRAL_50 = \"#454a54\";\nexport const COLOR_NEUTRAL_40 = \"#5e6573\";\nexport const COLOR_NEUTRAL_30 = \"#c4c9d4\";\nexport const COLOR_NEUTRAL_20 = \"#e2e4e9\";\nexport const COLOR_NEUTRAL_10 = \"#f6f7fa\";\nexport const COLOR_NEUTRAL_00 = \"#ffffff\";\nexport const COLOR_BRAND_BLUE_60 = \"#18256c\";\nexport const COLOR_BRAND_BLUE_50 = \"#1737a4\";\nexport const COLOR_BRAND_BLUE_40 = \"#0048db\";\nexport const COLOR_BRAND_BLUE_30 = \"#9abcff\";\nexport const COLOR_BRAND_BLUE_20 = \"#dce8ff\";\nexport const COLOR_BRAND_BLUE_10 = \"#fafbff\";\nexport const COLOR_BRAND_EMERALD_60 = \"#013220\";\nexport const COLOR_BRAND_EMERALD_50 = \"#026441\";\nexport const COLOR_BRAND_EMERALD_40 = \"#04d98c\";\nexport const COLOR_BRAND_EMERALD_30 = \"#95f0cf\";\nexport const COLOR_BRAND_EMERALD_20 = \"#ccf2e4\";\nexport const COLOR_BRAND_EMERALD_10 = \"#edfef7\";\nexport const COLOR_BRAND_CYAN_60 = \"#004155\";\nexport const COLOR_BRAND_CYAN_50 = \"#005c77\";\nexport const COLOR_BRAND_CYAN_40 = \"#02bedf\";\nexport const COLOR_BRAND_CYAN_30 = \"#3edcff\";\nexport const COLOR_BRAND_CYAN_20 = \"#ccf3ff\";\nexport const COLOR_BRAND_CYAN_10 = \"#f1fcff\";\nexport const COLOR_SUCCESS_60 = \"#08331a\";\nexport const COLOR_SUCCESS_50 = \"#10593b\";\nexport const COLOR_SUCCESS_40 = \"#138040\";\nexport const COLOR_SUCCESS_30 = \"#66cc90\";\nexport const COLOR_SUCCESS_20 = \"#a1e5bd\";\nexport const COLOR_SUCCESS_10 = \"#e5fff0\";\nexport const COLOR_SUCCESS_00 = \"#f0fcf5\";\nexport const COLOR_ERROR_60 = \"#731111\";\nexport const COLOR_ERROR_50 = \"#991717\";\nexport const COLOR_ERROR_40 = \"#e52222\";\nexport const COLOR_ERROR_30 = \"#ff8080\";\nexport const COLOR_ERROR_20 = \"#ffbfbf\";\nexport const COLOR_ERROR_10 = \"#ffe5e5\";\nexport const COLOR_ERROR_00 = \"#f5eff0\";\nexport const COLOR_WARNING_60 = \"#803500\";\nexport const COLOR_WARNING_50 = \"#a64a08\";\nexport const COLOR_WARNING_40 = \"#fa822c\";\nexport const COLOR_WARNING_30 = \"#ffc59c\";\nexport const COLOR_WARNING_20 = \"#ffdabf\";\nexport const COLOR_WARNING_10 = \"#fff0e6\";\nexport const COLOR_WARNING_00 = \"#fcf4f0\";\nexport const COLOR_INFO_60 = \"#46008c\";\nexport const COLOR_INFO_50 = \"#510cb2\";\nexport const COLOR_INFO_40 = \"#6728e5\";\nexport const COLOR_INFO_30 = \"#bd9cff\";\nexport const COLOR_INFO_20 = \"#d4bfff\";\nexport const COLOR_INFO_10 = \"#eee6ff\";\nexport const COLOR_INFO_00 = \"#f3f0fc\";\nexport const SPACING_050 = \"4px\";\nexport const SPACING_100 = \"8px\";\nexport const SPACING_200 = \"16px\";\nexport const SPACING_300 = \"24px\";\nexport const SPACING_400 = \"32px\";\nexport const SPACING_500 = \"40px\";\nexport const SPACING_600 = \"48px\";\nexport const SPACING_700 = \"56px\";\nexport const SPACING_800 = \"64px\";\nexport const SPACING_900 = \"72px\";\nexport const BREAKPOINT_XSM = \"0px\";\nexport const BREAKPOINT_SM = \"320px\";\nexport const BREAKPOINT_MD = \"600px\";\nexport const BREAKPOINT_LG = \"1024px\";\nexport const BREAKPOINT_XLG = \"1920px\";\nexport const CONTAINER_SIZE = \"1240px\";\nexport const OPACITY_00 = \"0.05\";\nexport const OPACITY_10 = \"0.2\";\nexport const OPACITY_20 = \"0.4\";\nexport const OPACITY_30 = \"0.6\";\nexport const OPACITY_40 = \"0.8\";\nexport const SHADOW_01 = \"0px 2px 8px 0px rgba(169, 177, 197, 0.08), 0px 4px 4px 0px rgba(0, 72, 219, 0.04)\";\nexport const SHADOW_02 = \"0px 8px 24px 0px rgba(118, 134, 173, 0.08), 0px 4px 4px 0px rgba(0, 72, 219, 0.04)\";\nexport const SHADOW_03 = \"0px 16px 40px 0px rgba(118, 134, 173, 0.08), 0px 8px 8px 0px rgba(0, 72, 219, 0.04)\";\nexport const SHADOW_04 = \"0px 24px 56px 0px rgba(118, 134, 173, 0.08), 0px 12px 12px 0px rgba(0, 72, 219, 0.04)\";\nexport const FONT_TITLE = \"'Lexend Deca', sans-serif\";\nexport const FONT_BODY = \"'Source Sans 3', sans-serif\";\nexport const FONT_WEIGHT_BOLD = \"700\";\nexport const FONT_WEIGHT_SEMIBOLD = \"600\";\nexport const FONT_WEIGHT_MEDIUM = \"500\";\nexport const FONT_WEIGHT_REGULAR = \"400\";\nexport const FONT_SIZE_H1 = \"56px\";\nexport const FONT_SIZE_H2 = \"48px\";\nexport const FONT_SIZE_H3 = \"40px\";\nexport const FONT_SIZE_H4 = \"32px\";\nexport const FONT_SIZE_H5 = \"28px\";\nexport const FONT_SIZE_H6 = \"24px\";\nexport const FONT_SIZE_P1 = \"20px\";\nexport const FONT_SIZE_P2 = \"16px\";\nexport const FONT_SIZE_P3 = \"14px\";\nexport const FONT_SIZE_P4 = \"12px\";"],"names":[],"mappings":";;;;;;;;;;;;;;;AAKO,MAAM,oBAAoB,CAAC,EAAE,UAAU,cAAiC;AACzE,MAAA,CAAC,YAAY,CAAC,QAAS;AAE3B,SAAQ,oBAAA,KAAA,EAAE,WAAU,2BAA2B,UAAQ,QAAA,CAAA;AACzD;ACFa,MAAA,aAAa,CAAC,UAA2B;AAC9C,QAAA,EAAE,KAAK,YAAgB,IAAA;AAEvB,QAAA,eAAe,WAAW,mBAAmB,WAAW;AAE9D,6BAAQ,SAAM,EAAA,WAAW,cAAc,KAAW,GAAG,MAAO,CAAA;AAC9D;ACIO,MAAM,aAAa,CAAC;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAuB;AACrB,MAAI,CAAC,KAAM;AAEX,QAAM,SAAS;AAAA,IACb,EAAE,OAAO,YAAY,OAAO,CAAC,CAAC,UAAU,MAAM,oBAAC,QAAK,EAAA,UAAA,aAAU,CAAA,EAAQ;AAAA,IACtE;AAAA,MACE,OAAO;AAAA,MACP,OAAO,CAAC,CAAC;AAAA,MACT,MAAM,oBAAC,WAAU,EAAA,UAAU,iBAAkB,CAAA;AAAA,IAC/C;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,OAAO,CAAC,CAAC;AAAA,MACT,MAAM,oBAAC,iBAAgB,EAAA,UAAU,eAAgB,CAAA;AAAA,IACnD;AAAA,IACA;AAAA,MACE,OAAO;AAAA,MACP,OAAO,CAAC,CAAC;AAAA,MACT,MAAM,oBAAC,WAAU,EAAA,UAAU,iBAAkB,CAAA;AAAA,IAC/C;AAAA,EAAA;AAGI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ClB,MAAM,aAAa;AACnB,MAAM,YAAY;AAClB,MAAM,mBAAmB;AACzB,MAAM,uBAAuB;AAC7B,MAAM,qBAAqB;AAC3B,MAAM,sBAAsB;AAC5B,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;AACrB,MAAM,eAAe;"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens-rQ0Hp63r.js","sources":["../lib/components/InputField/index.tsx","../lib/core/tokens/.cache/tokens.ts"],"sourcesContent":["import classNames from 'classnames'\nimport { COLOR_ERROR_50, COLOR_NEUTRAL_40, COLOR_SUCCESS_50 } from '../../main'\nimport { IconAlertCircle, IconCheck, IconSlash } from '../icons'\nimport { Conditional } from '../misc'\n\nimport './styles.scss'\n\ntype InputProps = React.InputHTMLAttributes<HTMLInputElement> & {\n optional?: boolean\n requiredInput?: boolean\n success?: boolean\n error?: boolean\n errorMessage?: string\n label?: string\n ref?: React.RefObject<HTMLInputElement>\n}\n\nexport const InputField = ({\n optional,\n requiredInput,\n success,\n error,\n errorMessage,\n label,\n ref,\n id,\n disabled,\n style,\n ...props\n}: InputProps) => {\n const inputClasses = classNames('au-input', {\n 'au-input--disabled': disabled,\n 'au-input--success': success,\n 'au-input--error': error,\n })\n\n const statesFlag = [\n { state: 'optional', value: !!optional, icon: <span>(Opcional)</span> },\n {\n state: 'success',\n value: !!success,\n icon: <IconCheck rawColor={COLOR_SUCCESS_50} />,\n },\n {\n state: 'error',\n value: !!error,\n icon: <IconAlertCircle rawColor={COLOR_ERROR_50} />,\n },\n {\n state: 'disabled',\n value: !!disabled,\n icon: <IconSlash rawColor={COLOR_NEUTRAL_40} />,\n },\n ]\n\n const currentState = statesFlag.find(({ value }) => !!value)\n\n return (\n <div className={inputClasses} style={style}>\n <div className=\"au-input__header\">\n <Conditional\n condition={!!label}\n renderIf={\n <label htmlFor={id} className=\"au-input__header-label\">\n {label}{' '}\n {requiredInput && (\n <strong className=\"au-input__header-label--required\">*</strong>\n )}\n </label>\n }\n />\n <div className=\"au-input__header-icon\">{currentState?.icon}</div>\n </div>\n <input\n id={id}\n className=\"au-input__field\"\n ref={ref}\n disabled={disabled}\n {...props}\n />\n <Conditional\n condition={!!errorMessage && !!error}\n renderIf={<p className=\"au-input__error-message\">{errorMessage}</p>}\n />\n </div>\n )\n}\n","export const BORDER_RADIUS_SMALL = \"4px\";\nexport const BORDER_RADIUS_MEDIUM = \"8px\";\nexport const BORDER_RADIUS_BIG = \"16px\";\nexport const BORDER_RADIUS_PILL = \"999px\";\nexport const COLOR_NEUTRAL_70 = \"#16181d\";\nexport const COLOR_NEUTRAL_60 = \"#313131\";\nexport const COLOR_NEUTRAL_50 = \"#454a54\";\nexport const COLOR_NEUTRAL_40 = \"#5e6573\";\nexport const COLOR_NEUTRAL_30 = \"#c4c9d4\";\nexport const COLOR_NEUTRAL_20 = \"#e2e4e9\";\nexport const COLOR_NEUTRAL_10 = \"#f6f7fa\";\nexport const COLOR_NEUTRAL_00 = \"#ffffff\";\nexport const COLOR_BRAND_BLUE_60 = \"#18256c\";\nexport const COLOR_BRAND_BLUE_50 = \"#1737a4\";\nexport const COLOR_BRAND_BLUE_40 = \"#0048db\";\nexport const COLOR_BRAND_BLUE_30 = \"#9abcff\";\nexport const COLOR_BRAND_BLUE_20 = \"#dce8ff\";\nexport const COLOR_BRAND_BLUE_10 = \"#fafbff\";\nexport const COLOR_BRAND_EMERALD_60 = \"#013220\";\nexport const COLOR_BRAND_EMERALD_50 = \"#026441\";\nexport const COLOR_BRAND_EMERALD_40 = \"#04d98c\";\nexport const COLOR_BRAND_EMERALD_30 = \"#95f0cf\";\nexport const COLOR_BRAND_EMERALD_20 = \"#ccf2e4\";\nexport const COLOR_BRAND_EMERALD_10 = \"#edfef7\";\nexport const COLOR_BRAND_CYAN_60 = \"#004155\";\nexport const COLOR_BRAND_CYAN_50 = \"#005c77\";\nexport const COLOR_BRAND_CYAN_40 = \"#02bedf\";\nexport const COLOR_BRAND_CYAN_30 = \"#3edcff\";\nexport const COLOR_BRAND_CYAN_20 = \"#ccf3ff\";\nexport const COLOR_BRAND_CYAN_10 = \"#f1fcff\";\nexport const COLOR_SUCCESS_60 = \"#08331a\";\nexport const COLOR_SUCCESS_50 = \"#10593b\";\nexport const COLOR_SUCCESS_40 = \"#138040\";\nexport const COLOR_SUCCESS_30 = \"#66cc90\";\nexport const COLOR_SUCCESS_20 = \"#a1e5bd\";\nexport const COLOR_SUCCESS_10 = \"#e5fff0\";\nexport const COLOR_SUCCESS_00 = \"#f0fcf5\";\nexport const COLOR_ERROR_60 = \"#731111\";\nexport const COLOR_ERROR_50 = \"#991717\";\nexport const COLOR_ERROR_40 = \"#e52222\";\nexport const COLOR_ERROR_30 = \"#ff8080\";\nexport const COLOR_ERROR_20 = \"#ffbfbf\";\nexport const COLOR_ERROR_10 = \"#ffe5e5\";\nexport const COLOR_ERROR_00 = \"#f5eff0\";\nexport const COLOR_WARNING_60 = \"#803500\";\nexport const COLOR_WARNING_50 = \"#a64a08\";\nexport const COLOR_WARNING_40 = \"#fa822c\";\nexport const COLOR_WARNING_30 = \"#ffc59c\";\nexport const COLOR_WARNING_20 = \"#ffdabf\";\nexport const COLOR_WARNING_10 = \"#fff0e6\";\nexport const COLOR_WARNING_00 = \"#fcf4f0\";\nexport const COLOR_INFO_60 = \"#46008c\";\nexport const COLOR_INFO_50 = \"#510cb2\";\nexport const COLOR_INFO_40 = \"#6728e5\";\nexport const COLOR_INFO_30 = \"#bd9cff\";\nexport const COLOR_INFO_20 = \"#d4bfff\";\nexport const COLOR_INFO_10 = \"#eee6ff\";\nexport const COLOR_INFO_00 = \"#f3f0fc\";\nexport const SPACING_050 = \"4px\";\nexport const SPACING_100 = \"8px\";\nexport const SPACING_200 = \"16px\";\nexport const SPACING_300 = \"24px\";\nexport const SPACING_400 = \"32px\";\nexport const SPACING_500 = \"40px\";\nexport const SPACING_600 = \"48px\";\nexport const SPACING_700 = \"56px\";\nexport const SPACING_800 = \"64px\";\nexport const SPACING_900 = \"72px\";\nexport const BREAKPOINT_XSM = \"0px\";\nexport const BREAKPOINT_SM = \"320px\";\nexport const BREAKPOINT_MD = \"600px\";\nexport const BREAKPOINT_LG = \"1024px\";\nexport const BREAKPOINT_XLG = \"1920px\";\nexport const CONTAINER_SIZE = \"1240px\";\nexport const OPACITY_00 = \"0.05\";\nexport const OPACITY_10 = \"0.2\";\nexport const OPACITY_20 = \"0.4\";\nexport const OPACITY_30 = \"0.6\";\nexport const OPACITY_40 = \"0.8\";\nexport const SHADOW_01 = \"0px 2px 8px 0px rgba(169, 177, 197, 0.08), 0px 4px 4px 0px rgba(0, 72, 219, 0.04)\";\nexport const SHADOW_02 = \"0px 8px 24px 0px rgba(118, 134, 173, 0.08), 0px 4px 4px 0px rgba(0, 72, 219, 0.04)\";\nexport const SHADOW_03 = \"0px 16px 40px 0px rgba(118, 134, 173, 0.08), 0px 8px 8px 0px rgba(0, 72, 219, 0.04)\";\nexport const SHADOW_04 = \"0px 24px 56px 0px rgba(118, 134, 173, 0.08), 0px 12px 12px 0px rgba(0, 72, 219, 0.04)\";\nexport const FONT_TITLE = \"'Lexend Deca', sans-serif\";\nexport const FONT_BODY = \"'Source Sans 3', sans-serif\";\nexport const FONT_WEIGHT_BOLD = \"700\";\nexport const FONT_WEIGHT_SEMIBOLD = \"600\";\nexport const FONT_WEIGHT_MEDIUM = \"500\";\nexport const FONT_WEIGHT_REGULAR = \"400\";\nexport const FONT_SIZE_H1 = \"56px\";\nexport const FONT_SIZE_H2 = \"48px\";\nexport const FONT_SIZE_H3 = \"40px\";\nexport const FONT_SIZE_H4 = \"32px\";\nexport const FONT_SIZE_H5 = \"28px\";\nexport const FONT_SIZE_H6 = \"24px\";\nexport const FONT_SIZE_P1 = \"20px\";\nexport const FONT_SIZE_P2 = \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