@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.
Files changed (55) hide show
  1. package/dist/bundle.js +1093 -1056
  2. package/dist/bundle.umd.cjs +12 -12
  3. package/dist/components/Alert/AlertButton/index.d.ts +5 -0
  4. package/dist/components/Alert/AlertButton/index.d.ts.map +1 -0
  5. package/dist/components/Alert/AlertButton/index.js +12 -0
  6. package/dist/components/Alert/AlertContainer/index.d.ts +6 -0
  7. package/dist/components/Alert/AlertContainer/index.d.ts.map +1 -0
  8. package/dist/components/Alert/AlertContainer/index.js +13 -0
  9. package/dist/components/Alert/AlertContent/index.d.ts +5 -0
  10. package/dist/components/Alert/AlertContent/index.d.ts.map +1 -0
  11. package/dist/components/Alert/AlertContent/index.js +8 -0
  12. package/dist/components/Alert/AlertDescription/index.d.ts +5 -0
  13. package/dist/components/Alert/AlertDescription/index.d.ts.map +1 -0
  14. package/dist/components/Alert/AlertDescription/index.js +8 -0
  15. package/dist/components/Alert/AlertIcon/index.d.ts +5 -0
  16. package/dist/components/Alert/AlertIcon/index.d.ts.map +1 -0
  17. package/dist/components/Alert/AlertIcon/index.js +20 -0
  18. package/dist/components/Alert/AlertTitle/index.d.ts +5 -0
  19. package/dist/components/Alert/AlertTitle/index.d.ts.map +1 -0
  20. package/dist/components/Alert/AlertTitle/index.js +8 -0
  21. package/dist/components/Alert/index.d.ts +7 -0
  22. package/dist/components/Alert/index.d.ts.map +1 -0
  23. package/dist/components/Alert/index.js +6 -0
  24. package/dist/components/Input/CpfCpnjInput/getConfig.d.ts +47 -47
  25. package/dist/components/Input/CurrencyInput/getConfig.d.ts +46 -46
  26. package/dist/components/Input/MaskInput/getConfig.d.ts +47 -47
  27. package/dist/components/Input/MaskInput/index.d.ts.map +1 -1
  28. package/dist/components/Input/MaskInput/index.js +1 -1
  29. package/dist/components/Input/SimpleInput/getConfig.d.ts +48 -48
  30. package/dist/components/Select/getConfig.d.ts +45 -46
  31. package/dist/components/Select/getConfig.d.ts.map +1 -1
  32. package/dist/components/Select/getConfig.js +1 -2
  33. package/dist/components/Select/index.js +3 -3
  34. package/dist/index.d.ts +1 -0
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +1 -0
  37. package/dist/style.css +1 -1
  38. package/package.json +1 -1
  39. package/src/components/Alert/AlertButton/index.tsx +43 -0
  40. package/src/components/Alert/AlertButton/styles.css +214 -0
  41. package/src/components/Alert/AlertContainer/index.tsx +25 -0
  42. package/src/components/Alert/AlertContainer/styles.css +29 -0
  43. package/src/components/Alert/AlertContent/index.tsx +16 -0
  44. package/src/components/Alert/AlertContent/styles.css +5 -0
  45. package/src/components/Alert/AlertDescription/index.tsx +15 -0
  46. package/src/components/Alert/AlertDescription/styles.css +8 -0
  47. package/src/components/Alert/AlertIcon/index.tsx +25 -0
  48. package/src/components/Alert/AlertIcon/styles.css +23 -0
  49. package/src/components/Alert/AlertTitle/index.tsx +15 -0
  50. package/src/components/Alert/AlertTitle/styles.css +8 -0
  51. package/src/components/Alert/index.ts +13 -0
  52. package/src/components/Input/MaskInput/index.tsx +1 -0
  53. package/src/components/Select/getConfig.tsx +2 -2
  54. package/src/components/Select/index.tsx +3 -3
  55. package/src/index.ts +8 -0
@@ -0,0 +1,8 @@
1
+ .arkyn_title {
2
+ font-size: 16px;
3
+ font-weight: 600;
4
+ line-height: 17px;
5
+ text-align: left;
6
+
7
+ color: var(--text-heading);
8
+ }
@@ -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
+ };
@@ -81,6 +81,7 @@ function MaskedInput(props: MaskedInputProps) {
81
81
  ref={ref}
82
82
  onFocus={handleFocus}
83
83
  onBlur={handleBlur}
84
+ disabled={disabled}
84
85
  {...rest}
85
86
  />
86
87
 
@@ -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 || isLoading}
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";