@arkyn/components 1.3.70 → 1.3.72
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +1093 -1056
- package/dist/bundle.umd.cjs +12 -12
- package/dist/components/Alert/AlertButton/index.d.ts +5 -0
- package/dist/components/Alert/AlertButton/index.d.ts.map +1 -0
- package/dist/components/Alert/AlertButton/index.js +12 -0
- package/dist/components/Alert/AlertContainer/index.d.ts +6 -0
- package/dist/components/Alert/AlertContainer/index.d.ts.map +1 -0
- package/dist/components/Alert/AlertContainer/index.js +13 -0
- package/dist/components/Alert/AlertContent/index.d.ts +5 -0
- package/dist/components/Alert/AlertContent/index.d.ts.map +1 -0
- package/dist/components/Alert/AlertContent/index.js +8 -0
- package/dist/components/Alert/AlertDescription/index.d.ts +5 -0
- package/dist/components/Alert/AlertDescription/index.d.ts.map +1 -0
- package/dist/components/Alert/AlertDescription/index.js +8 -0
- package/dist/components/Alert/AlertIcon/index.d.ts +5 -0
- package/dist/components/Alert/AlertIcon/index.d.ts.map +1 -0
- package/dist/components/Alert/AlertIcon/index.js +20 -0
- package/dist/components/Alert/AlertTitle/index.d.ts +5 -0
- package/dist/components/Alert/AlertTitle/index.d.ts.map +1 -0
- package/dist/components/Alert/AlertTitle/index.js +8 -0
- package/dist/components/Alert/index.d.ts +7 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Alert/index.js +6 -0
- package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +47 -47
- package/dist/components/Input/CurrencyInput/getConfig.d.ts +46 -46
- package/dist/components/Input/MaskInput/getConfig.d.ts +47 -47
- package/dist/components/Input/MaskInput/index.d.ts.map +1 -1
- package/dist/components/Input/MaskInput/index.js +1 -1
- package/dist/components/Input/SimpleInput/getConfig.d.ts +48 -48
- package/dist/components/Select/getConfig.d.ts +45 -46
- package/dist/components/Select/getConfig.d.ts.map +1 -1
- package/dist/components/Select/getConfig.js +1 -2
- package/dist/components/Select/index.js +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Alert/AlertButton/index.tsx +43 -0
- package/src/components/Alert/AlertButton/styles.css +214 -0
- package/src/components/Alert/AlertContainer/index.tsx +25 -0
- package/src/components/Alert/AlertContainer/styles.css +29 -0
- package/src/components/Alert/AlertContent/index.tsx +16 -0
- package/src/components/Alert/AlertContent/styles.css +5 -0
- package/src/components/Alert/AlertDescription/index.tsx +15 -0
- package/src/components/Alert/AlertDescription/styles.css +8 -0
- package/src/components/Alert/AlertIcon/index.tsx +25 -0
- package/src/components/Alert/AlertIcon/styles.css +23 -0
- package/src/components/Alert/AlertTitle/index.tsx +15 -0
- package/src/components/Alert/AlertTitle/styles.css +8 -0
- package/src/components/Alert/index.ts +13 -0
- package/src/components/Input/MaskInput/index.tsx +1 -0
- package/src/components/Select/getConfig.tsx +2 -2
- package/src/components/Select/index.tsx +3 -3
- package/src/index.ts +8 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
import { AlertContainer } from "./AlertContainer";
|
2
|
+
import { AlertContent } from "./AlertContent";
|
3
|
+
import { AlertDescription } from "./AlertDescription";
|
4
|
+
import { AlertIcon } from "./AlertIcon";
|
5
|
+
import { AlertTitle } from "./AlertTitle";
|
6
|
+
|
7
|
+
export {
|
8
|
+
AlertContainer,
|
9
|
+
AlertContent,
|
10
|
+
AlertDescription,
|
11
|
+
AlertIcon,
|
12
|
+
AlertTitle,
|
13
|
+
};
|
@@ -16,6 +16,7 @@ function getConfig(props: SelectProps, isFocused: boolean) {
|
|
16
16
|
readOnly,
|
17
17
|
onFocus,
|
18
18
|
onBlur,
|
19
|
+
|
19
20
|
title,
|
20
21
|
style,
|
21
22
|
closeOnSelect = true,
|
@@ -36,8 +37,7 @@ function getConfig(props: SelectProps, isFocused: boolean) {
|
|
36
37
|
className,
|
37
38
|
prefix: morpheme(basePrefix, iconSize, "prefix"),
|
38
39
|
LeftIcon,
|
39
|
-
disabled,
|
40
|
-
readOnly,
|
40
|
+
disabled: disabled || isLoading || readOnly,
|
41
41
|
onFocus,
|
42
42
|
onBlur,
|
43
43
|
title,
|
@@ -29,7 +29,6 @@ function Select(props: SelectProps) {
|
|
29
29
|
LeftIcon,
|
30
30
|
value: baseValue = null,
|
31
31
|
defaultValue = "",
|
32
|
-
readOnly,
|
33
32
|
onFocus,
|
34
33
|
onBlur,
|
35
34
|
Spinner,
|
@@ -39,13 +38,14 @@ function Select(props: SelectProps) {
|
|
39
38
|
options,
|
40
39
|
optionMaxHeight,
|
41
40
|
closeOnSelect,
|
41
|
+
|
42
42
|
...rest
|
43
43
|
} = getConfig({ ...props, id, isError }, isFocused);
|
44
44
|
|
45
45
|
const [selectedValue, setSelectedValue] = useState(defaultValue);
|
46
46
|
|
47
47
|
function handleSectionClick() {
|
48
|
-
if (disabled || !ref?.current) return;
|
48
|
+
if (disabled || !ref?.current || isFocused) return;
|
49
49
|
setIsFocused(true);
|
50
50
|
ref.current.focus();
|
51
51
|
}
|
@@ -96,7 +96,7 @@ function Select(props: SelectProps) {
|
|
96
96
|
{LeftIcon && <LeftIcon size={iconSize} strokeWidth={2.5} />}
|
97
97
|
|
98
98
|
<input
|
99
|
-
disabled={disabled
|
99
|
+
disabled={disabled}
|
100
100
|
readOnly
|
101
101
|
placeholder={currentLabel || placeholder}
|
102
102
|
onFocus={handleFocus}
|
package/src/index.ts
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
// Data Display
|
2
|
+
export {
|
3
|
+
AlertContainer,
|
4
|
+
AlertContent,
|
5
|
+
AlertDescription,
|
6
|
+
AlertIcon,
|
7
|
+
AlertTitle,
|
8
|
+
} from "./components/Alert";
|
2
9
|
export { Badge } from "./components/Badge";
|
3
10
|
export { Divider } from "./components/Divider";
|
4
11
|
export { Skeleton } from "./components/Skeleton";
|
@@ -24,6 +31,7 @@ export { Textarea } from "./components/Textarea";
|
|
24
31
|
export { BreadcrumbContainer, BreadcrumbLink } from "./components/Breadcrumb";
|
25
32
|
export { Pagination } from "./components/Pagination";
|
26
33
|
export { TabButton, TabContainer } from "./components/Tabs";
|
34
|
+
|
27
35
|
// Overlay
|
28
36
|
export { DrawerContainer, DrawerHeader } from "./components/Drawer";
|
29
37
|
export { ModalContainer, ModalFooter, ModalHeader } from "./components/Modal";
|