@pedidopago/ui 1.5.16 → 1.5.19

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.
Files changed (44) hide show
  1. package/dist/components/DateInput/index.d.ts.map +1 -1
  2. package/dist/components/DateInput/index.js +3 -2
  3. package/dist/components/MultipleSelect/animations.d.ts +3 -0
  4. package/dist/components/MultipleSelect/animations.d.ts.map +1 -0
  5. package/dist/components/MultipleSelect/animations.js +25 -0
  6. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts +2 -2
  7. package/dist/components/MultipleSelect/components/InputWrapper/index.d.ts.map +1 -1
  8. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts +5 -0
  9. package/dist/components/MultipleSelect/components/InputWrapper/types.d.ts.map +1 -0
  10. package/dist/components/MultipleSelect/components/InputWrapper/types.js +1 -0
  11. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts +3 -20
  12. package/dist/components/MultipleSelect/components/OptionsArea/index.d.ts.map +1 -1
  13. package/dist/components/MultipleSelect/components/OptionsArea/index.js +28 -8
  14. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts +262 -8
  15. package/dist/components/MultipleSelect/components/OptionsArea/styles.d.ts.map +1 -1
  16. package/dist/components/MultipleSelect/components/OptionsArea/styles.js +30 -64
  17. package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts +21 -0
  18. package/dist/components/MultipleSelect/components/OptionsArea/types.d.ts.map +1 -0
  19. package/dist/components/MultipleSelect/components/OptionsArea/types.js +1 -0
  20. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts +6 -3
  21. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.d.ts.map +1 -1
  22. package/dist/components/MultipleSelect/components/SelectArea/ButtonsArea.js +3 -3
  23. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts +2 -2
  24. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.d.ts.map +1 -1
  25. package/dist/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.js +9 -9
  26. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts +5 -4
  27. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.d.ts.map +1 -1
  28. package/dist/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.js +11 -20
  29. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts +3 -17
  30. package/dist/components/MultipleSelect/components/SelectArea/index.d.ts.map +1 -1
  31. package/dist/components/MultipleSelect/components/SelectArea/index.js +25 -11
  32. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts +5 -3
  33. package/dist/components/MultipleSelect/components/SelectArea/styles.d.ts.map +1 -1
  34. package/dist/components/MultipleSelect/components/SelectArea/styles.js +4 -7
  35. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts +23 -0
  36. package/dist/components/MultipleSelect/components/SelectArea/types.d.ts.map +1 -0
  37. package/dist/components/MultipleSelect/components/SelectArea/types.js +1 -0
  38. package/dist/components/MultipleSelect/index.d.ts.map +1 -1
  39. package/dist/components/MultipleSelect/index.js +52 -15
  40. package/dist/components/MultipleSelect/types.d.ts +4 -2
  41. package/dist/components/MultipleSelect/types.d.ts.map +1 -1
  42. package/dist/components/Pagination/index.d.ts.map +1 -1
  43. package/dist/components/Pagination/index.js +25 -24
  44. package/package.json +1 -1
@@ -7,7 +7,9 @@ exports.Span = exports.OptionsAreaWrapper = exports.OptionItem = exports.AutoCom
7
7
 
8
8
  var _styled = _interopRequireDefault(require("@emotion/styled"));
9
9
 
10
- var _react = require("react");
10
+ var _framerMotion = require("framer-motion");
11
+
12
+ var _react = require("@emotion/react");
11
13
 
12
14
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
13
15
 
@@ -15,90 +17,54 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
17
 
16
18
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
19
 
18
- var OptionsAreaWrapper = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n top: 54px;\n left: 0;\n z-index: ", ";\n\n display: flex;\n scroll-behavior: smooth;\n\n flex-direction: column;\n box-sizing: border-box;\n background-color: ", ";\n\n color: ", ";\n\n width: 100%;\n max-height: 248px;\n border-radius: ", ";\n\n overflow-y: auto;\n\n padding: 8px;\n\n box-shadow: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: ", ";\n }\n"])), function (props) {
19
- return props.theme.zIndex.level2;
20
- }, function (_ref) {
21
- var theme = _ref.theme;
22
- return {
23
- dark: theme.colors.neutral.neutral6,
24
- light: theme.colors.body.light
25
- }[theme.colorMode];
26
- }, function (_ref2) {
20
+ var OptionsAreaWrapper = (0, _styled.default)(_framerMotion.motion.div)(function (_ref) {
21
+ var theme = _ref.theme,
22
+ top = _ref.top,
23
+ selectType = _ref.selectType,
24
+ width = _ref.width;
25
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: fixed;\n top: ", ";\n display: flex;\n scroll-behavior: smooth;\n flex-direction: column;\n box-sizing: border-box;\n background-color: ", ";\n\n color: ", ";\n\n width: ", ";\n max-height: 248px;\n border-radius: ", ";\n\n overflow-y: auto;\n\n padding: 8px;\n\n box-shadow: ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ", ";\n border-radius: ", ";\n }\n "])), top, theme.colors.body.light, theme.colors.neutral.black, width + 'px', theme.borderRadius.default, theme.shadow.level3, selectType ? theme.colors[selectType].default : theme.colors.primary.default, theme.borderRadius.default);
26
+ });
27
+ exports.OptionsAreaWrapper = OptionsAreaWrapper;
28
+
29
+ var OptionItem = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n box-sizing: border-box;\n\n padding: 16px 24px;\n\n outline: 0;\n background: none;\n border: 0;\n\n font-size: ", ";\n font-weight: ", ";\n color: ", ";\n\n cursor: pointer;\n\n :focus,\n :hover {\n background-color: ", ";\n\n border-radius: ", ";\n }\n"])), function (_ref2) {
27
30
  var theme = _ref2.theme;
28
- return {
29
- dark: theme.colors.neutral.white,
30
- light: theme.colors.neutral.black
31
- }[theme.colorMode];
31
+ return theme.fontSizes.xs;
32
32
  }, function (_ref3) {
33
33
  var theme = _ref3.theme;
34
- return theme.borderRadius.default;
34
+ return theme.fontWeight['500'];
35
35
  }, function (_ref4) {
36
36
  var theme = _ref4.theme;
37
- return {
38
- dark: "0px 16px 32px ".concat(theme.colors.neutral.black),
39
- light: theme.shadow.level3
40
- }[theme.colorMode];
37
+ return theme.colors.neutral.neutral5;
41
38
  }, function (_ref5) {
42
- var theme = _ref5.theme,
43
- selectType = _ref5.selectType;
44
- return selectType ? theme.colors[selectType].default : theme.colors.primary.default;
39
+ var theme = _ref5.theme;
40
+ return theme.colors.neutral.neutral1;
45
41
  }, function (_ref6) {
46
42
  var theme = _ref6.theme;
47
43
  return theme.borderRadius.default;
48
44
  });
49
45
 
50
- exports.OptionsAreaWrapper = OptionsAreaWrapper;
46
+ exports.OptionItem = OptionItem;
51
47
 
52
- var OptionItemStyle = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n box-sizing: border-box;\n\n padding: 16px 24px;\n\n outline: 0;\n background: none;\n border: 0;\n\n font-size: ", ";\n font-weight: ", ";\n\n cursor: pointer;\n\n :focus,\n :hover {\n background-color: ", ";\n\n border-radius: ", ";\n }\n"])), function (_ref7) {
53
- var theme = _ref7.theme;
54
- return theme.fontSizes.xs;
48
+ var AutoCompleteInput = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 8px;\n padding-left: ", ";\n outline: 0;\n\n font: inherit;\n\n margin-bottom: 8px;\n width: 100%;\n\n border: 2px solid\n ", ";\n\n border-radius: ", "; ;\n"])), function (_ref7) {
49
+ var isLoadingData = _ref7.isLoadingData;
50
+ return isLoadingData ? '2em' : '1em';
55
51
  }, function (_ref8) {
56
- var theme = _ref8.theme;
57
- return theme.fontWeight['500'];
52
+ var theme = _ref8.theme,
53
+ selectType = _ref8.selectType;
54
+ return selectType ? theme.colors[selectType].blurred : theme.colors.primary.disabled;
58
55
  }, function (_ref9) {
59
56
  var theme = _ref9.theme;
60
- return {
61
- dark: theme.colors.neutral.neutral5,
62
- light: theme.colors.neutral.neutral1
63
- }[theme.colorMode];
64
- }, function (_ref10) {
65
- var theme = _ref10.theme;
66
- return theme.borderRadius.default;
67
- });
68
-
69
- var AutoCompleteInput = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: 8px;\n padding-left: 2em;\n outline: 0;\n color: ", ";\n\n background: ", ";\n\n margin-bottom: 8px;\n width: 100%;\n\n border: 2px solid\n ", ";\n\n border-radius: ", "; ;\n"])), function (_ref11) {
70
- var theme = _ref11.theme;
71
- return {
72
- dark: theme.colors.neutral.white,
73
- light: ''
74
- }[theme.colorMode];
75
- }, function (_ref12) {
76
- var theme = _ref12.theme;
77
- return {
78
- dark: theme.colors.neutral.neutral3,
79
- light: ''
80
- }[theme.colorMode];
81
- }, function (_ref13) {
82
- var theme = _ref13.theme,
83
- selectType = _ref13.selectType;
84
- return selectType ? theme.colors[selectType].blurred : theme.colors.primary.disabled;
85
- }, function (_ref14) {
86
- var theme = _ref14.theme;
87
57
  return theme.borderRadius.default;
88
58
  });
89
59
 
90
60
  exports.AutoCompleteInput = AutoCompleteInput;
91
61
 
92
- var Span = _styled.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n text-align: center;\n color: ", ";\n"])), function (_ref15) {
93
- var theme = _ref15.theme;
62
+ var Span = _styled.default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: ", ";\n text-align: center;\n color: ", ";\n"])), function (_ref10) {
63
+ var theme = _ref10.theme;
94
64
  return theme.fontSizes.xxs;
95
- }, function (_ref16) {
96
- var theme = _ref16.theme;
65
+ }, function (_ref11) {
66
+ var theme = _ref11.theme;
97
67
  return theme.colors.error.default;
98
68
  });
99
69
 
100
- exports.Span = Span;
101
- var OptionItem = /*#__PURE__*/(0, _react.memo)(OptionItemStyle, function (prevProps, nextProps) {
102
- return prevProps.active === nextProps.active;
103
- });
104
- exports.OptionItem = OptionItem;
70
+ exports.Span = Span;
@@ -0,0 +1,21 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { SelectData, SelectType } from '../../types';
3
+ export interface IOptionsAreaProps {
4
+ inputAlert: SelectType;
5
+ showOptionsArea: boolean;
6
+ data: SelectData[];
7
+ isLoadingData?: boolean;
8
+ selectedOptions: SelectData[];
9
+ AutoComplete: boolean;
10
+ chooseOption: (option: SelectData) => void;
11
+ scrollHandler: (e: React.UIEvent<HTMLDivElement>) => void;
12
+ setShowOptionsArea: (state: boolean) => void;
13
+ onChangeSearch?: (data: string) => void;
14
+ hasMoreData?: boolean;
15
+ loadMoreData?: () => void;
16
+ autoCompleteHelperText?: string;
17
+ infiniteScroll: boolean;
18
+ parentRef: MutableRefObject<HTMLDivElement | null>;
19
+ positionOptions: number;
20
+ }
21
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/OptionsArea/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IAC1D,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IACnD,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -1,11 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { IStyleProps } from '../../types';
3
2
  export declare const ButtonsArea: import("@emotion/styled").StyledComponent<{
4
3
  theme?: import("@emotion/react").Theme | undefined;
5
4
  as?: import("react").ElementType<any> | undefined;
6
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ } & {
6
+ disabled: boolean;
7
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
8
  export declare const Button: import("@emotion/styled").StyledComponent<{
8
9
  theme?: import("@emotion/react").Theme | undefined;
9
10
  as?: import("react").ElementType<any> | undefined;
10
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
11
+ } & {
12
+ show: boolean;
13
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
11
14
  //# sourceMappingURL=ButtonsArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonsArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/ButtonsArea.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,WAAW;;;uHA+BvB,CAAC;AAEF,eAAO,MAAM,MAAM;;;mIAOlB,CAAC"}
1
+ {"version":3,"file":"ButtonsArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/ButtonsArea.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,WAAW;;;;cAA0B,OAAO;yGAgCxD,CAAC;AAEF,eAAO,MAAM,MAAM;;;;UAAyB,OAAO;qHAOlD,CAAC"}
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.ButtonsArea = exports.Button = void 0;
7
7
 
8
- var _styled = _interopRequireDefault(require("@emotion/styled"));
9
-
10
8
  var _react = require("@emotion/react");
11
9
 
10
+ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
+
12
12
  var _templateObject, _templateObject2, _templateObject3;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
 
18
- var ButtonsArea = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n min-width: 64px;\n\n button {\n align-items: center;\n\n width: 24px;\n height: 24px;\n margin-left: 8px;\n padding: 0;\n\n background: none;\n border: 0;\n border-radius: 12px;\n outline: 0;\n\n cursor: default;\n\n ", "\n\n :focus {\n box-shadow: 0 0 0 2px ", ";\n }\n }\n"])), function (_ref) {
18
+ var ButtonsArea = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n flex-wrap: wrap;\n\n button {\n align-items: center;\n\n width: 24px;\n height: 24px;\n margin-left: 8px;\n padding: 0;\n\n background: none;\n border: 0;\n border-radius: 12px;\n outline: 0;\n\n cursor: default;\n\n ", "\n\n :focus {\n box-shadow: 0 0 0 2px ", ";\n }\n }\n"])), function (_ref) {
19
19
  var disabled = _ref.disabled;
20
20
  return !disabled && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n cursor: pointer;\n "])));
21
21
  }, function (_ref2) {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { IStyleProps } from '../../types';
2
+ import { InputWrapperType } from './types';
3
3
  export declare const SelectAreaWrapper: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
6
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ } & InputWrapperType, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
7
  //# sourceMappingURL=SelectAreaWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAreaWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.ts"],"names":[],"mappings":";AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,aAAa,CAAC;AAGtD,eAAO,MAAM,iBAAiB;;;uHAsB7B,CAAC"}
1
+ {"version":3,"file":"SelectAreaWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/SelectAreaWrapper.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;4HAqB7B,CAAC"}
@@ -15,20 +15,20 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
 
18
- var SelectAreaWrapper = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n position: relative;\n\n width: 100%;\n min-height: 52px;\n padding: 4px 20px;\n\n border: 2px solid\n ", ";\n border-radius: 8px;\n\n transition: all ease-in-out 0.2s;\n\n ", "\n"])), function (_ref) {
18
+ var SelectAreaWrapper = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: grid;\n grid-template-columns: 80% 20%;\n box-sizing: border-box;\n position: relative;\n width: 100%;\n min-height: 52px;\n padding: 4px 20px;\n\n border: 2px solid ", ";\n border-radius: 8px;\n\n transition: all ease-in-out 0.2s;\n\n &:hover {\n label {\n color: ", ";\n }\n }\n\n ", "\n"])), function (_ref) {
19
19
  var theme = _ref.theme;
20
- return {
21
- light: theme.colors.neutral.neutral2,
22
- dark: theme.colors.neutral.neutral5
23
- }[theme.colorMode];
20
+ return theme.colors.neutral.neutral2;
21
+ }, function (_ref2) {
22
+ var theme = _ref2.theme;
23
+ return theme.colors.neutral.neutral5;
24
24
  }, InputWrapperDisabledTratamentFunction);
25
25
 
26
26
  exports.SelectAreaWrapper = SelectAreaWrapper;
27
27
 
28
- function InputWrapperDisabledTratamentFunction(_ref2) {
29
- var disabled = _ref2.disabled,
30
- selectType = _ref2.selectType,
31
- theme = _ref2.theme;
28
+ function InputWrapperDisabledTratamentFunction(_ref3) {
29
+ var disabled = _ref3.disabled,
30
+ selectType = _ref3.selectType,
31
+ theme = _ref3.theme;
32
32
  var disableStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n\n label {\n color: ", ";\n }\n\n div:nth-of-type(1) {\n button {\n background-color: ", ";\n color: ", ";\n }\n }\n "])), theme ? theme.colors.neutral.neutral1 : '', theme ? theme.colors.neutral.neutral3 : '', theme ? theme.colors.neutral.white : '', theme ? theme.colors.neutral.neutral3 : '');
33
33
  var enableStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n &:hover {\n border-color: ", ";\n }\n\n &:focus-within {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n\n ", "\n "])), selectType && theme ? theme.colors[selectType].blurred : theme && theme.colors.primary.hover, theme ? theme.colors.primary.focus : '', theme ? theme.colors.primary.disabled : '', alertControl(selectType, theme));
34
34
  return disabled ? disableStyle : enableStyle;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { IStyleProps } from '../../types';
3
2
  export declare const SelectedOptionsArea: import("@emotion/styled").StyledComponent<{
4
3
  theme?: import("@emotion/react").Theme | undefined;
5
4
  as?: import("react").ElementType<any> | undefined;
@@ -9,13 +8,15 @@ export declare const SelectedOptionsArea: import("@emotion/styled").StyledCompon
9
8
  export declare const SelectedSingleOption: import("@emotion/styled").StyledComponent<{
10
9
  theme?: import("@emotion/react").Theme | undefined;
11
10
  as?: import("react").ElementType<any> | undefined;
12
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ } & {
12
+ disabled?: boolean | undefined;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
14
  export declare const SelectedOption: import("@emotion/styled").StyledComponent<{
14
15
  theme?: import("@emotion/react").Theme | undefined;
15
16
  as?: import("react").ElementType<any> | undefined;
16
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
17
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
17
18
  export declare const SelectedOptionText: import("@emotion/styled").StyledComponent<{
18
19
  theme?: import("@emotion/react").Theme | undefined;
19
20
  as?: import("react").ElementType<any> | undefined;
20
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
21
22
  //# sourceMappingURL=SelectedOptionsArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectedOptionsArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,mBAAmB;;;;;yGAe/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;uHA0BhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;mIA4B1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yHAI9B,CAAC"}
1
+ {"version":3,"file":"SelectedOptionsArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/SelectedOptionsArea.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,mBAAmB;;;;;yGAiB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;yGAyBhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;qHAsB1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;2GAO9B,CAAC"}
@@ -9,7 +9,7 @@ var _react = require("@emotion/react");
9
9
 
10
10
  var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
 
12
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
12
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -19,26 +19,23 @@ var SelectedOptionsArea = _styled.default.div(_templateObject || (_templateObjec
19
19
  var multiple = _ref.multiple;
20
20
 
21
21
  if (multiple) {
22
- return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n position: relative;\n "])));
22
+ return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n align-items: center;\n position: relative;\n "])));
23
23
  }
24
24
 
25
- return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: grid;\n "])));
25
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n "])));
26
26
  });
27
27
 
28
28
  exports.SelectedOptionsArea = SelectedOptionsArea;
29
29
 
30
30
  var SelectedSingleOption = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline;\n\n min-width: 73px;\n height: 29px;\n padding: 4px 8px;\n border-radius: 6px;\n\n max-width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n transition: all ease-in-out 0.2s;\n\n font-weight: ", ";\n font-size: ", ";\n\n color: ", ";\n\n ", ";\n"])), function (_ref2) {
31
31
  var theme = _ref2.theme;
32
- return theme.fontWeight['400'];
32
+ return theme.fontWeight['500'];
33
33
  }, function (_ref3) {
34
34
  var theme = _ref3.theme;
35
35
  return theme.fontSizes.xs;
36
36
  }, function (_ref4) {
37
37
  var theme = _ref4.theme;
38
- return {
39
- dark: theme.colors.neutral.white,
40
- light: theme.colors.neutral.neutral5
41
- }[theme.colorMode];
38
+ return theme.colors.neutral.neutral5;
42
39
  }, function (_ref5) {
43
40
  var disabled = _ref5.disabled;
44
41
  return !disabled && (0, _react.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n cursor: pointer;\n "])));
@@ -46,30 +43,24 @@ var SelectedSingleOption = _styled.default.div(_templateObject4 || (_templateObj
46
43
 
47
44
  exports.SelectedSingleOption = SelectedSingleOption;
48
45
 
49
- var SelectedOption = _styled.default.button(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n min-width: 73px;\n height: 29px;\n padding: 4px 8px;\n border-radius: 6px;\n\n margin: 2px;\n\n transition: all ease-in-out 0.2s;\n\n background-color: ", ";\n\n border: 0;\n color: ", ";\n\n ", ";\n"])), function (_ref6) {
46
+ var SelectedOption = _styled.default.button(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n min-width: 73px;\n height: 29px;\n padding: 4px 8px;\n border-radius: 6px;\n margin: 2px;\n\n transition: all ease-in-out 0.2s;\n\n background-color: ", ";\n\n border: 0;\n color: ", ";\n\n &:not(&:disabled) {\n cursor: pointer;\n }\n"])), function (_ref6) {
50
47
  var theme = _ref6.theme;
51
- return {
52
- dark: theme.colors.neutral.neutral4,
53
- light: theme.colors.neutral.neutral1
54
- }[theme.colorMode];
48
+ return theme.colors.neutral.neutral1;
55
49
  }, function (_ref7) {
56
50
  var theme = _ref7.theme;
57
51
  return {
58
52
  dark: theme.colors.neutral.white,
59
53
  light: theme.colors.neutral.neutral6
60
54
  }[theme.colorMode];
61
- }, function (_ref8) {
62
- var disabled = _ref8.disabled;
63
- return !disabled && (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n cursor: pointer;\n "])));
64
55
  });
65
56
 
66
57
  exports.SelectedOption = SelectedOption;
67
58
 
68
- var SelectedOptionText = _styled.default.span(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin-right: 8px;\n font-weight: ", ";\n font-size: ", ";\n"])), function (_ref9) {
69
- var theme = _ref9.theme;
59
+ var SelectedOptionText = _styled.default.span(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-right: 8px;\n font-weight: ", ";\n font-size: ", ";\n"])), function (_ref8) {
60
+ var theme = _ref8.theme;
70
61
  return theme.fontWeight['400'];
71
- }, function (_ref10) {
72
- var theme = _ref10.theme;
62
+ }, function (_ref9) {
63
+ var theme = _ref9.theme;
73
64
  return theme.fontSizes.xxs;
74
65
  });
75
66
 
@@ -1,18 +1,4 @@
1
- import { MouseEvent, ReactElement } from 'react';
2
- import { SelectType, SelectData } from '../../types';
3
- interface ISelectAreaProps {
4
- disabled: boolean;
5
- label?: string;
6
- inputAlert?: SelectType;
7
- dropDownIcon?: ReactElement;
8
- multiple?: boolean;
9
- placeholder?: string;
10
- selectedOptions: SelectData[];
11
- removeSelectedOption: (e: MouseEvent<HTMLElement>, option?: SelectData) => void;
12
- setShowOptionsArea: (show: boolean) => void;
13
- setSelectedOptions: (array: SelectData[]) => void;
14
- toggleOptionsAreaView: (e: MouseEvent<HTMLElement>) => void;
15
- }
16
- export declare function SelectArea({ disabled, label, setShowOptionsArea, toggleOptionsAreaView, inputAlert, multiple, removeSelectedOption, selectedOptions, setSelectedOptions, dropDownIcon, placeholder, }: ISelectAreaProps): JSX.Element;
17
- export {};
1
+ /// <reference types="react" />
2
+ import { ISelectAreaProps } from './types';
3
+ export declare const SelectArea: import("react").ForwardRefExoticComponent<ISelectAreaProps & import("react").RefAttributes<HTMLDivElement>>;
18
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAcjD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,UAAU,gBAAgB;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9B,oBAAoB,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAChF,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,kBAAkB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAClD,qBAAqB,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CAC7D;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,KAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,WAAW,GACZ,EAAE,gBAAgB,eAuDlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/index.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,6GAqFtB,CAAC"}
@@ -3,15 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.SelectArea = SelectArea;
6
+ exports.SelectArea = void 0;
7
7
 
8
- var _SelectAreaWrapper = require("./SelectAreaWrapper");
8
+ var _react = require("react");
9
9
 
10
- var _Icon = _interopRequireDefault(require("../../../Icon"));
10
+ var _ButtonsArea = require("./ButtonsArea");
11
+
12
+ var _SelectAreaWrapper = require("./SelectAreaWrapper");
11
13
 
12
14
  var _SelectedOptionsArea = require("./SelectedOptionsArea");
13
15
 
14
- var _ButtonsArea = require("./ButtonsArea");
16
+ var _Flex = _interopRequireDefault(require("../../../Flex"));
17
+
18
+ var _Icon = _interopRequireDefault(require("../../../Icon"));
15
19
 
16
20
  var _styles = require("./styles");
17
21
 
@@ -19,7 +23,7 @@ var _jsxRuntime = require("react/jsx-runtime");
19
23
 
20
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
25
 
22
- function SelectArea(_ref) {
26
+ var SelectArea = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
23
27
  var disabled = _ref.disabled,
24
28
  _ref$label = _ref.label,
25
29
  label = _ref$label === void 0 ? 'SelectInput' : _ref$label,
@@ -29,10 +33,14 @@ function SelectArea(_ref) {
29
33
  multiple = _ref.multiple,
30
34
  removeSelectedOption = _ref.removeSelectedOption,
31
35
  selectedOptions = _ref.selectedOptions,
32
- setSelectedOptions = _ref.setSelectedOptions,
33
36
  dropDownIcon = _ref.dropDownIcon,
34
37
  placeholder = _ref.placeholder;
38
+ var selectAreaRef = (0, _react.useRef)(null);
39
+ (0, _react.useImperativeHandle)(ref, function () {
40
+ return selectAreaRef.current;
41
+ });
35
42
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SelectAreaWrapper.SelectAreaWrapper, {
43
+ ref: selectAreaRef,
36
44
  "data-testid": "select-area",
37
45
  onKeyDown: function onKeyDown(e) {
38
46
  return e.key === 'ArrowDown' && setShowOptionsArea(true);
@@ -47,6 +55,7 @@ function SelectArea(_ref) {
47
55
  multiple: multiple,
48
56
  children: selectedOptions.length ? multiple ? selectedOptions.map(function (option) {
49
57
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SelectedOptionsArea.SelectedOption, {
58
+ title: option.label,
50
59
  "data-testid": "select-area--selected-option",
51
60
  disabled: disabled,
52
61
  onClick: function onClick(e) {
@@ -54,9 +63,11 @@ function SelectArea(_ref) {
54
63
  },
55
64
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectedOptionsArea.SelectedOptionText, {
56
65
  children: option.label
57
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
58
- name: "x-circle",
59
- size: "12px"
66
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Flex.default, {
67
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
68
+ name: "x-circle",
69
+ size: "12px"
70
+ })
60
71
  })]
61
72
  }, option.label);
62
73
  }) : selectedOptions.map(function (option) {
@@ -88,9 +99,12 @@ function SelectArea(_ref) {
88
99
  disabled: disabled,
89
100
  onClick: toggleOptionsAreaView,
90
101
  children: dropDownIcon || /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
91
- name: "chevron-down"
102
+ name: "chevron-down",
103
+ color: "neutral.neutral5"
92
104
  })
93
105
  })]
94
106
  })]
95
107
  });
96
- }
108
+ });
109
+ exports.SelectArea = SelectArea;
110
+ SelectArea.displayName = 'SelectArea';
@@ -1,13 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { IStyleProps, SelectType } from '../../types';
2
+ import { SelectType } from '../../types';
3
3
  export declare const Label: import("@emotion/styled").StyledComponent<{
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
6
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
6
+ } & {
7
+ animate: boolean;
8
+ }, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
7
9
  export declare const Placeholder: import("@emotion/styled").StyledComponent<{
8
10
  theme?: import("@emotion/react").Theme | undefined;
9
11
  as?: import("react").ElementType<any> | undefined;
10
- } & IStyleProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
12
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
11
13
  export declare const HelperText: import("@emotion/styled").StyledComponent<{
12
14
  theme?: import("@emotion/react").Theme | undefined;
13
15
  as?: import("react").ElementType<any> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEtD,eAAO,MAAM,KAAK;;;gIA8BjB,CAAC;AAEF,eAAO,MAAM,WAAW;;;mIAWvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;gBAA6B,UAAU;2GAU7D,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,eAAO,MAAM,KAAK;;;;aAA2B,OAAO;kHA+BnD,CAAC;AAEF,eAAO,MAAM,WAAW;;;qHAUvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;gBAA6B,UAAU;2GAU7D,CAAC"}
@@ -15,12 +15,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15
15
 
16
16
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
17
 
18
- var Label = _styled.default.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n box-sizing: border-box;\n\n color: ", ";\n transition: all ease-in-out 0.2s;\n\n font-weight: ", ";\n font-size: ", ";\n\n padding: 0 8px;\n\n white-space: nowrap;\n max-width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", ";\n"])), function (_ref) {
18
+ var Label = _styled.default.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n box-sizing: border-box;\n\n color: ", ";\n transition: all ease-in-out 0.2s;\n\n font-weight: ", ";\n font-size: ", ";\n\n padding-inline: 6px;\n\n white-space: nowrap;\n max-width: 80%;\n overflow: hidden;\n text-overflow: ellipsis;\n\n ", ";\n"])), function (_ref) {
19
19
  var theme = _ref.theme;
20
- return {
21
- dark: theme.colors.neutral.white,
22
- light: theme.colors.neutral.neutral5
23
- }[theme.colorMode];
20
+ return theme.colors.neutral.neutral3;
24
21
  }, function (_ref2) {
25
22
  var theme = _ref2.theme;
26
23
  return theme.fontWeight['500'];
@@ -30,12 +27,12 @@ var Label = _styled.default.label(_templateObject || (_templateObject = _taggedT
30
27
  }, function (_ref4) {
31
28
  var animate = _ref4.animate,
32
29
  theme = _ref4.theme;
33
- return animate ? (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n transform: translate(-12px, -11px);\n background-color: ", ";\n height: 20px;\n "])), theme.colorMode === 'dark' ? theme.colors.neutral.black : theme.colors.neutral.white) : '';
30
+ return animate ? (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n top: 0;\n left: 2em;\n\n transform: translate(-12px, -11px);\n background-color: ", ";\n height: 20px;\n "])), theme.colorMode === 'dark' ? theme.colors.neutral.black : theme.colors.neutral.white) : '';
34
31
  });
35
32
 
36
33
  exports.Label = Label;
37
34
 
38
- var Placeholder = _styled.default.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 50%;\n font-weight: 500;\n padding: 0 8px;\n max-width: 70%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n transform: translateY(-50%);\n color: ", ";\n"])), function (props) {
35
+ var Placeholder = _styled.default.p(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n top: 50%;\n font-weight: 500;\n max-width: 70%;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n transform: translateY(-50%);\n color: ", ";\n"])), function (props) {
39
36
  return props.theme.colors.neutral.neutral3;
40
37
  });
41
38
 
@@ -0,0 +1,23 @@
1
+ import { ReactElement } from 'react';
2
+ import { ExtendThemeProps } from '../../../../shared/theme';
3
+ import { SelectType, SelectData } from '../../types';
4
+ export interface ISelectAreaProps {
5
+ disabled: boolean;
6
+ label?: string;
7
+ inputAlert?: SelectType;
8
+ dropDownIcon?: ReactElement;
9
+ multiple?: boolean;
10
+ placeholder?: string;
11
+ isLoadingData?: boolean;
12
+ selectedOptions: SelectData[];
13
+ removeSelectedOption: (e: React.MouseEvent<HTMLElement>, option?: SelectData) => void;
14
+ setShowOptionsArea: (show: boolean) => void;
15
+ setSelectedOptions: (array: SelectData[]) => void;
16
+ toggleOptionsAreaView: (e: React.MouseEvent<HTMLElement>) => void;
17
+ }
18
+ export declare type InputWrapperType = {
19
+ disabled: boolean;
20
+ selectType: SelectType;
21
+ theme?: ExtendThemeProps;
22
+ };
23
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/MultipleSelect/components/SelectArea/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,UAAU,EAAE,CAAC;IAC9B,oBAAoB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtF,kBAAkB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,kBAAkB,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,IAAI,CAAC;IAClD,qBAAqB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACnE;AAED,oBAAY,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,UAAU,CAAC;IACvB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,EAAE,EAOH,MAAM,OAAO,CAAC;AAIf,OAAO,EAAc,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEpE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,CAqJjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultipleSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,EAAE,EAOH,MAAM,OAAO,CAAC;AAYf,OAAO,EAAc,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEpE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,CA6KjD,CAAC;AAEF,eAAe,cAAc,CAAC"}