@pedidopago/ui 1.7.12 → 1.7.14

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 (87) hide show
  1. package/dist/components/ComposeIcon/index.d.ts.map +1 -1
  2. package/dist/components/ComposeIcon/index.js +7 -1
  3. package/dist/components/ComposeIcon/styles.d.ts.map +1 -1
  4. package/dist/components/ComposeIcon/styles.js +13 -4
  5. package/dist/components/ComposeIcon/types.d.ts +2 -0
  6. package/dist/components/ComposeIcon/types.d.ts.map +1 -1
  7. package/dist/components/Icon/data/dash.js +1 -1
  8. package/dist/components/Icon/data/illustrations.d.ts.map +1 -1
  9. package/dist/components/Icon/data/illustrations.js +7 -0
  10. package/dist/components/Icon/types.d.ts +1 -1
  11. package/dist/components/Icon/types.d.ts.map +1 -1
  12. package/dist/components/Input/index.d.ts.map +1 -1
  13. package/dist/components/Input/index.js +5 -3
  14. package/dist/components/Input/styles.d.ts.map +1 -1
  15. package/dist/components/Input/styles.js +8 -4
  16. package/dist/components/NewSelect/Examples/index.d.ts.map +1 -1
  17. package/dist/components/NewSelect/Examples/index.js +4 -6
  18. package/dist/components/NewSelect/components/Chip/index.d.ts.map +1 -1
  19. package/dist/components/NewSelect/components/Chip/index.js +2 -2
  20. package/dist/components/NewSelect/components/OptionsSelect/styles.d.ts.map +1 -1
  21. package/dist/components/NewSelect/components/OptionsSelect/styles.js +1 -1
  22. package/dist/components/NewSelect/components/OptionsSelect/types.d.ts +0 -4
  23. package/dist/components/NewSelect/components/OptionsSelect/types.d.ts.map +1 -1
  24. package/dist/components/NewSelect/components/SelectInputSearch/index.js +1 -3
  25. package/dist/components/NewSelect/components/SelectItem/index.js +1 -1
  26. package/dist/components/NewSelect/components/SelectItem/styles.d.ts +2 -3
  27. package/dist/components/NewSelect/components/SelectItem/styles.d.ts.map +1 -1
  28. package/dist/components/NewSelect/components/SelectItem/styles.js +3 -3
  29. package/dist/components/NewSelect/components/SelectItem/types.d.ts +2 -5
  30. package/dist/components/NewSelect/components/SelectItem/types.d.ts.map +1 -1
  31. package/dist/components/NewSelect/index.d.ts +1 -4
  32. package/dist/components/NewSelect/index.d.ts.map +1 -1
  33. package/dist/components/NewSelect/index.js +11 -247
  34. package/dist/components/NewSelect/multiple/index.d.ts +4 -0
  35. package/dist/components/NewSelect/multiple/index.d.ts.map +1 -0
  36. package/dist/components/NewSelect/multiple/index.js +236 -0
  37. package/dist/components/NewSelect/single/index.d.ts +4 -0
  38. package/dist/components/NewSelect/single/index.d.ts.map +1 -0
  39. package/dist/components/NewSelect/single/index.js +174 -0
  40. package/dist/components/NewSelect/styles.d.ts +1 -1
  41. package/dist/components/NewSelect/styles.d.ts.map +1 -1
  42. package/dist/components/NewSelect/styles.js +3 -3
  43. package/dist/components/NewSelect/types.d.ts +14 -13
  44. package/dist/components/NewSelect/types.d.ts.map +1 -1
  45. package/package.json +1 -1
  46. package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts +0 -5
  47. package/dist/components/Illustration/AlternativeOrderSvg/index.d.ts.map +0 -1
  48. package/dist/components/Illustration/AlternativeOrderSvg/index.js +0 -107
  49. package/dist/components/Illustration/BoletoSvg/index.d.ts +0 -5
  50. package/dist/components/Illustration/BoletoSvg/index.d.ts.map +0 -1
  51. package/dist/components/Illustration/BoletoSvg/index.js +0 -168
  52. package/dist/components/Illustration/BoxClosedSvg/index.d.ts +0 -5
  53. package/dist/components/Illustration/BoxClosedSvg/index.d.ts.map +0 -1
  54. package/dist/components/Illustration/BoxClosedSvg/index.js +0 -99
  55. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +0 -5
  56. package/dist/components/Illustration/BoxDeliverySvg/index.d.ts.map +0 -1
  57. package/dist/components/Illustration/BoxDeliverySvg/index.js +0 -111
  58. package/dist/components/Illustration/BoxOpenSvg/index.d.ts +0 -5
  59. package/dist/components/Illustration/BoxOpenSvg/index.d.ts.map +0 -1
  60. package/dist/components/Illustration/BoxOpenSvg/index.js +0 -108
  61. package/dist/components/Illustration/CalendarSvg/index.d.ts +0 -5
  62. package/dist/components/Illustration/CalendarSvg/index.d.ts.map +0 -1
  63. package/dist/components/Illustration/CalendarSvg/index.js +0 -109
  64. package/dist/components/Illustration/CardSvg/index.d.ts +0 -5
  65. package/dist/components/Illustration/CardSvg/index.d.ts.map +0 -1
  66. package/dist/components/Illustration/CardSvg/index.js +0 -110
  67. package/dist/components/Illustration/CollaboratorSvg/index.d.ts +0 -5
  68. package/dist/components/Illustration/CollaboratorSvg/index.d.ts.map +0 -1
  69. package/dist/components/Illustration/CollaboratorSvg/index.js +0 -99
  70. package/dist/components/Illustration/InquirySvg/index.d.ts +0 -5
  71. package/dist/components/Illustration/InquirySvg/index.d.ts.map +0 -1
  72. package/dist/components/Illustration/InquirySvg/index.js +0 -219
  73. package/dist/components/Illustration/OrderSvg/index.d.ts +0 -5
  74. package/dist/components/Illustration/OrderSvg/index.d.ts.map +0 -1
  75. package/dist/components/Illustration/OrderSvg/index.js +0 -135
  76. package/dist/components/Illustration/PixSvg/index.d.ts +0 -5
  77. package/dist/components/Illustration/PixSvg/index.d.ts.map +0 -1
  78. package/dist/components/Illustration/PixSvg/index.js +0 -93
  79. package/dist/components/Illustration/PrescriptionSvg/index.d.ts +0 -5
  80. package/dist/components/Illustration/PrescriptionSvg/index.d.ts.map +0 -1
  81. package/dist/components/Illustration/PrescriptionSvg/index.js +0 -81
  82. package/dist/components/Illustration/TransportSvg/index.d.ts +0 -5
  83. package/dist/components/Illustration/TransportSvg/index.d.ts.map +0 -1
  84. package/dist/components/Illustration/TransportSvg/index.js +0 -102
  85. package/dist/components/NewSelect/components/OptionsSelect/index.d.ts +0 -4
  86. package/dist/components/NewSelect/components/OptionsSelect/index.d.ts.map +0 -1
  87. package/dist/components/NewSelect/components/OptionsSelect/index.js +0 -56
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.NewSingleSelect = NewSingleSelect;
7
+ var _react = require("react");
8
+ var _Flex = _interopRequireDefault(require("../../Flex"));
9
+ var _Icon = _interopRequireDefault(require("../../Icon"));
10
+ var _ReactPortal = require("../../ReactPortal");
11
+ var _useReposition = require("../../../shared/hooks/useReposition");
12
+ var _useOnClickOutside = require("../../../shared/hooks/useOnClickOutside");
13
+ var _styles = require("../components/OptionsSelect/styles");
14
+ var _styles2 = require("../styles");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
+ var _excluded = ["label", "placeholder", "alert", "helperText", "variant", "children", "value", "onClose", "onOpen", "onChange", "renderOptions"];
17
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
19
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
22
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
23
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
26
+ function NewSingleSelect(_ref) {
27
+ var _containerRef$current;
28
+ var _ref$label = _ref.label,
29
+ label = _ref$label === void 0 ? '' : _ref$label,
30
+ _ref$placeholder = _ref.placeholder,
31
+ placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
32
+ alert = _ref.alert,
33
+ helperText = _ref.helperText,
34
+ variant = _ref.variant,
35
+ children = _ref.children,
36
+ value = _ref.value,
37
+ onClose = _ref.onClose,
38
+ onOpen = _ref.onOpen,
39
+ onChange = _ref.onChange,
40
+ renderOptions = _ref.renderOptions,
41
+ rest = _objectWithoutProperties(_ref, _excluded);
42
+ var containerRef = (0, _react.useRef)(null);
43
+ var selectRef = (0, _react.useRef)(null);
44
+ var _useState = (0, _react.useState)(false),
45
+ _useState2 = _slicedToArray(_useState, 2),
46
+ isOpenOptions = _useState2[0],
47
+ setIsOpenOptions = _useState2[1];
48
+ var _useState3 = (0, _react.useState)(),
49
+ _useState4 = _slicedToArray(_useState3, 2),
50
+ selectedOption = _useState4[0],
51
+ setSelectedOption = _useState4[1];
52
+ var optionsModalRef = (0, _react.useRef)(null);
53
+ var _useState5 = (0, _react.useState)([]),
54
+ _useState6 = _slicedToArray(_useState5, 2),
55
+ options = _useState6[0],
56
+ setOptions = _useState6[1];
57
+ var findOption = options.find(function (option) {
58
+ return option.value === selectedOption;
59
+ });
60
+ var isFalseOptions = (findOption === null || findOption === void 0 ? void 0 : findOption.value) === false;
61
+ var textPlaceholder = findOption !== null && findOption !== void 0 && findOption.value || isFalseOptions ? findOption === null || findOption === void 0 ? void 0 : findOption.label : placeholder;
62
+ (0, _react.useEffect)(function () {
63
+ var _options$, _optionsModalRef$curr;
64
+ if (options !== null && options !== void 0 && (_options$ = options[0]) !== null && _options$ !== void 0 && _options$.value) return;
65
+ var childs = (_optionsModalRef$curr = optionsModalRef.current) === null || _optionsModalRef$curr === void 0 ? void 0 : _optionsModalRef$curr.childNodes;
66
+ var newOptions = [];
67
+ _react.Children.forEach(children, function (child, index) {
68
+ if (childs !== null && childs !== void 0 && childs[index].classList.contains('select-item')) {
69
+ newOptions.push({
70
+ value: child.props.value,
71
+ label: childs[index].innerText
72
+ });
73
+ }
74
+ });
75
+ setOptions(newOptions);
76
+ }, [children, optionsModalRef.current, containerRef.current]);
77
+ (0, _react.useEffect)(function () {
78
+ function handler() {
79
+ setIsOpenOptions(false);
80
+ }
81
+ if (isOpenOptions) {
82
+ var _document;
83
+ onOpen === null || onOpen === void 0 ? void 0 : onOpen();
84
+ (_document = document) === null || _document === void 0 ? void 0 : _document.addEventListener('scroll', handler);
85
+ } else {
86
+ var _document2;
87
+ onClose === null || onClose === void 0 ? void 0 : onClose();
88
+ (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.removeEventListener('scroll', handler);
89
+ }
90
+ return function () {
91
+ var _document3;
92
+ return (_document3 = document) === null || _document3 === void 0 ? void 0 : _document3.removeEventListener('scroll', handler);
93
+ };
94
+ }, [isOpenOptions]);
95
+ (0, _useOnClickOutside.useOnClickOutside)([containerRef, optionsModalRef], function () {
96
+ if (isOpenOptions) {
97
+ setIsOpenOptions(false);
98
+ }
99
+ });
100
+ var positionsSelect = (0, _useReposition.useReposition)({
101
+ containerRef: optionsModalRef,
102
+ triggerRef: selectRef
103
+ }, [children]);
104
+ var SelectedOptionsWithCustomComponent = function SelectedOptionsWithCustomComponent() {
105
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
106
+ children: renderOptions === null || renderOptions === void 0 ? void 0 : renderOptions(selectedOption)
107
+ });
108
+ };
109
+ (0, _react.useEffect)(function () {
110
+ setSelectedOption(value);
111
+ }, [value]);
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
113
+ ref: selectRef,
114
+ style: {
115
+ width: '100%'
116
+ },
117
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Flex.default, {
118
+ direction: "column",
119
+ style: {
120
+ width: '100%'
121
+ },
122
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles2.SelectContainer, {
123
+ "data-disabled": rest.disabled,
124
+ "data-variant": variant,
125
+ "data-label-in-top": !!textPlaceholder || !!placeholder,
126
+ alert: alert,
127
+ tabIndex: rest.disabled ? -1 : 0,
128
+ onClick: function onClick() {
129
+ return setIsOpenOptions(!isOpenOptions);
130
+ },
131
+ className: rest.className,
132
+ style: rest.style,
133
+ ref: containerRef,
134
+ children: [label && variant !== 'unstyled' && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
135
+ children: label
136
+ }), typeof renderOptions === 'function' && selectedOption ? /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectedOptionsWithCustomComponent, {}, "custom-option-selected-".concat(textPlaceholder)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles2.SelectedOptionSpan, {
137
+ hasSelectedOption: !!selectedOption || isFalseOptions,
138
+ children: textPlaceholder
139
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Flex.default, {
140
+ className: "select_container_icon",
141
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
142
+ name: "chevron-down",
143
+ color: "neutral.neutral5"
144
+ })
145
+ })]
146
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ReactPortal.ReactPortal, {
147
+ wrapperId: "portal-root",
148
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.OptionsContainer, {
149
+ ref: optionsModalRef,
150
+ open: isOpenOptions,
151
+ style: {
152
+ maxWidth: "".concat((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().width, "px"),
153
+ left: positionsSelect.left,
154
+ top: positionsSelect.top
155
+ },
156
+ children: _react.Children.map(children, function (child) {
157
+ return /*#__PURE__*/(0, _react.cloneElement)(child, {
158
+ onClick: function onClick(event) {
159
+ if (event.currentTarget.classList.contains('select-item')) {
160
+ setIsOpenOptions(false);
161
+ setSelectedOption(child.props.value);
162
+ onChange === null || onChange === void 0 ? void 0 : onChange(child.props.value);
163
+ }
164
+ }
165
+ });
166
+ })
167
+ })
168
+ }), !!helperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles2.HelperText, {
169
+ alert: alert,
170
+ children: helperText
171
+ })]
172
+ })
173
+ });
174
+ }
@@ -20,6 +20,6 @@ export declare const SelectedOptionSpan: import("@emotion/styled").StyledCompone
20
20
  theme?: import("@emotion/react").Theme | undefined;
21
21
  as?: import("react").ElementType<any> | undefined;
22
22
  } & {
23
- hasSelectedOption: boolean;
23
+ hasSelectedOption?: boolean | undefined;
24
24
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
25
25
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe;;;gIAiG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;UAE7B,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAMrB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;qHAsBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;uBAAoC,OAAO;2GAKzE,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe;;;gIAiG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;UAE7B,CAAC;AAEF,eAAO,MAAM,UAAU;;;wHAMrB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;qHAsBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;2GAM9B,CAAC"}
@@ -13,7 +13,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
13
13
  var SelectContainer = _styled.default.div(function (_ref) {
14
14
  var theme = _ref.theme,
15
15
  alert = _ref.alert;
16
- return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n user-select: none;\n width: 100%;\n min-height: 56px;\n border-radius: ", ";\n border: 2px solid ", ";\n transition: all ease 0.2s;\n outline: 0px solid transparent;\n cursor: pointer;\n background: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 20px;\n position: relative;\n\n &:hover {\n color: ", ";\n border-color: ", ";\n\n label {\n color: ", ";\n }\n }\n\n &:focus {\n color: ", ";\n border-color: ", ";\n outline: 2px solid ", ";\n\n svg {\n transform: rotate(180deg);\n }\n }\n\n &[data-label-in-top='true'] {\n label {\n left: 20px;\n top: -1px;\n font-size: 0.875rem;\n background: ", " !important;\n }\n }\n\n &[data-disabled='true'] {\n background: ", ";\n pointer-events: none;\n cursor: none;\n border-color: ", ";\n\n label {\n background: inherit;\n }\n }\n\n &[data-variant='unstyled'] {\n padding: 0;\n border: none;\n background: none;\n height: auto;\n\n &:hover,\n &:focus {\n outline: none;\n }\n }\n\n input {\n display: none;\n }\n\n svg {\n transition: all ease 0.2s;\n }\n\n label {\n position: absolute;\n left: 20px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n transition: all ease 0.2s;\n padding: 0 4px;\n z-index: 1;\n white-space: nowrap;\n max-width: 65%;\n overflow: hidden;\n cursor: pointer;\n text-overflow: ellipsis;\n }\n "])), theme.borderRadius.default, alert ? theme.colors[alert].blurred : theme.colors.neutral.neutral2, alert ? "".concat(theme.colors[alert].blurred, "33") : theme.colors.neutral.white, theme.colors.neutral.neutral5, theme.colors.neutral.black, alert ? theme.colors[alert].default : theme.colors.primary.hover, theme.colors.neutral.neutral5, theme.colors.neutral.black, alert ? theme.colors[alert].default : theme.colors.primary.focus, alert ? theme.colors[alert].blurred : theme.colors.primary.disabled, theme.colors.neutral.white, theme.colors.neutral.neutral1, theme.colors.neutral.neutral2, theme.colors.neutral.neutral3);
16
+ return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n user-select: none;\n width: 100%;\n min-height: 56px;\n border-radius: ", ";\n border: 2px solid ", ";\n transition: all ease 0.2s;\n outline: 0px solid transparent;\n cursor: pointer;\n background: ", ";\n color: ", ";\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 0.5rem;\n padding: 0 20px;\n position: relative;\n\n &:hover {\n color: ", ";\n border-color: ", ";\n\n label {\n color: ", ";\n }\n }\n\n &:focus {\n color: ", ";\n border-color: ", ";\n outline: 2px solid ", ";\n\n .select_container_icon {\n transform: rotate(180deg);\n }\n }\n\n &[data-label-in-top='true'] {\n label {\n left: 20px;\n top: -1px;\n font-size: 0.875rem;\n background: ", " !important;\n }\n }\n\n &[data-disabled='true'] {\n background: ", ";\n pointer-events: none;\n cursor: none;\n border-color: ", ";\n\n label {\n background: inherit;\n }\n }\n\n &[data-variant='unstyled'] {\n padding: 0;\n border: none;\n background: none;\n height: auto;\n\n &:hover,\n &:focus {\n outline: none;\n }\n }\n\n input {\n display: none;\n }\n\n .select_container_icon {\n transition: all ease 0.2s;\n }\n\n label {\n position: absolute;\n left: 20px;\n top: 50%;\n transform: translateY(-50%);\n font-size: 1rem;\n font-weight: 500;\n color: ", ";\n transition: all ease 0.2s;\n padding: 0 4px;\n z-index: 1;\n white-space: nowrap;\n max-width: 65%;\n overflow: hidden;\n cursor: pointer;\n text-overflow: ellipsis;\n }\n "])), theme.borderRadius.default, alert ? theme.colors[alert].blurred : theme.colors.neutral.neutral2, alert ? "".concat(theme.colors[alert].blurred, "33") : theme.colors.neutral.white, theme.colors.neutral.neutral5, theme.colors.neutral.black, alert ? theme.colors[alert].default : theme.colors.primary.hover, theme.colors.neutral.neutral5, theme.colors.neutral.black, alert ? theme.colors[alert].default : theme.colors.primary.focus, alert ? theme.colors[alert].blurred : theme.colors.primary.disabled, theme.colors.neutral.white, theme.colors.neutral.neutral1, theme.colors.neutral.neutral2, theme.colors.neutral.neutral3);
17
17
  });
18
18
  exports.SelectContainer = SelectContainer;
19
19
  var OptionPlaceholder = (0, _styled.default)(_List.default)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n"])), function (_ref2) {
@@ -39,9 +39,9 @@ var SelectMultipleOption = _styled.default.button(_templateObject4 || (_template
39
39
  }[theme.colorMode];
40
40
  });
41
41
  exports.SelectMultipleOption = SelectMultipleOption;
42
- var SelectedOptionSpan = _styled.default.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-weight: 500;\n cursor: pointer;\n color: ", ";\n"])), function (_ref6) {
42
+ var SelectedOptionSpan = _styled.default.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-weight: 500;\n cursor: pointer;\n padding-block: 0.25rem;\n color: ", ";\n"])), function (_ref6) {
43
43
  var theme = _ref6.theme,
44
44
  hasSelectedOption = _ref6.hasSelectedOption;
45
- return hasSelectedOption ? theme.colors.neutral.black : theme.colors.neutral.neutral3;
45
+ return hasSelectedOption ? theme.colors.neutral.neutral5 : theme.colors.neutral.neutral3;
46
46
  });
47
47
  exports.SelectedOptionSpan = SelectedOptionSpan;
@@ -6,7 +6,7 @@ export type SizeSelect = 'sm' | 'md';
6
6
  export type SelectValue = string | readonly string[] | boolean | number | undefined;
7
7
  export interface SelectOption {
8
8
  label: string;
9
- value: SelectValue;
9
+ value?: SelectValue;
10
10
  }
11
11
  interface SelectPropsBase extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
12
12
  label?: string;
@@ -18,23 +18,24 @@ interface SelectPropsBase extends Omit<InputHTMLAttributes<HTMLInputElement>, 'o
18
18
  onOpen?: () => void;
19
19
  onClose?: () => void;
20
20
  multiple?: boolean;
21
- renderOptions?: (option: SelectOption, remove: (removeOption: SelectOption) => void) => ReactNode | ReactNode[];
22
21
  }
23
- interface SelectPropsSingleSelect extends SelectPropsBase {
22
+ export type SelectPropsSingleSelect<T> = SelectPropsBase & {
24
23
  multiple?: false;
25
- onChange: (value: SelectValue) => void;
26
- value: SelectValue;
27
- }
28
- interface SelectPropsMultipleSelect extends SelectPropsBase {
24
+ onChange?: (value: T) => void;
25
+ value?: T;
26
+ renderOptions?: (option: T) => ReactNode | ReactNode[];
27
+ };
28
+ export type SelectPropsMultipleSelect = SelectPropsBase & {
29
29
  multiple: true;
30
- value: SelectValue[];
31
- onChange: (value: SelectValue[]) => void;
32
- }
33
- export type SelectProps = SelectPropsSingleSelect | SelectPropsMultipleSelect;
34
- export interface SelectContainerProps {
30
+ value?: SelectValue[];
31
+ onChange?: (value: SelectValue[]) => void;
32
+ renderOptions?: (option: SelectOption, remove: (removeOption: SelectOption) => void) => ReactNode | ReactNode[];
33
+ };
34
+ export type SelectProps<T> = SelectPropsSingleSelect<T> | SelectPropsMultipleSelect;
35
+ export type SelectContainerProps = {
35
36
  alert?: SelectAlertType;
36
37
  size?: SizeSelect;
37
- }
38
+ };
38
39
  export type ChangeOption = {
39
40
  event: React.MouseEvent;
40
41
  value: string | boolean | number;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,UAAU,eACR,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,CACd,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,KACzC,SAAS,GAAG,SAAS,EAAE,CAAC;CAC9B;AAGD,UAAU,uBAAwB,SAAQ,eAAe;IACvD,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,KAAK,EAAE,WAAW,CAAC;CACpB;AAED,UAAU,yBAA0B,SAAQ,eAAe;IACzD,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;CAC1C;AAGD,MAAM,MAAM,WAAW,GAAG,uBAAuB,GAAG,yBAAyB,CAAC;AAE9E,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,sBAAsB,GAAG,eAAe,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/NewSelect/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,CAAC;AAExB,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpF,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB;AAED,UAAU,eACR,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAGD,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,eAAe,GAAG;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,SAAS,GAAG,SAAS,EAAE,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,eAAe,GAAG;IACxD,QAAQ,EAAE,IAAI,CAAC;IACf,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CACd,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,CAAC,YAAY,EAAE,YAAY,KAAK,IAAI,KACzC,SAAS,GAAG,SAAS,EAAE,CAAC;CAC9B,CAAC;AAGF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,uBAAuB,CAAC,CAAC,CAAC,GAAG,yBAAyB,CAAC;AAEpF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,sBAAsB,GAAG,eAAe,EAAE,aAAa,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pedidopago/ui",
3
- "version": "1.7.12",
3
+ "version": "1.7.14",
4
4
  "description": "Quick build beatiful Pedido Pago apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function AlternativeOrderSvg({ color }: {
3
- color: string;
4
- }): JSX.Element;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Illustration/AlternativeOrderSvg/index.tsx"],"names":[],"mappings":";AAAA,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,eA8E/D"}
@@ -1,107 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AlternativeOrderSvg = AlternativeOrderSvg;
7
-
8
- var _jsxRuntime = require("react/jsx-runtime");
9
-
10
- function AlternativeOrderSvg(_ref) {
11
- var color = _ref.color;
12
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
13
- width: "168",
14
- height: "167",
15
- viewBox: "0 0 168 167",
16
- fill: "none",
17
- xmlns: "http://www.w3.org/2000/svg",
18
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
19
- d: "M167.066 83.1856C167.066 95.5397 164.356 107.276 159.491 117.82C146.307 146.474 117.251 166.371 83.5328 166.371C49.8149 166.371 20.759 146.474 7.57439 117.82C2.70917 107.276 0 95.5397 0 83.1856C0 37.2424 37.3979 0 83.5328 0C129.668 0 167.066 37.2424 167.066 83.1856Z",
20
- fill: "#EAEFED"
21
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
22
- filter: "url(#filter0_d_3_37)",
23
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
24
- d: "M8.1759 37.5051C8.1759 31.799 12.8016 27.1733 18.5077 27.1733H148.947C154.653 27.1733 159.278 31.799 159.278 37.5051V128.554C159.278 134.26 154.653 138.886 148.947 138.886H18.5077C12.8016 138.886 8.1759 134.26 8.1759 128.554V37.5051Z",
25
- fill: "white"
26
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("ellipse", {
27
- cx: "84.1606",
28
- cy: "83.0296",
29
- rx: "39.7536",
30
- ry: "39.7536",
31
- fill: "#0FB075"
32
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("ellipse", {
33
- cx: "87.1798",
34
- cy: "84.5392",
35
- rx: "37.7407",
36
- ry: "38.2439",
37
- fill: "url(#paint0_linear_3_37)"
38
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
39
- fillRule: "evenodd",
40
- clipRule: "evenodd",
41
- d: "M86.8013 68.9429C88.3337 68.9008 89.8497 69.2712 91.1905 70.0159C92.5466 70.7691 93.6725 71.8768 94.4474 73.2207C95.2341 74.585 94.7659 76.3287 93.4016 77.1154C92.0373 77.9021 90.2936 77.4339 89.5069 76.0696C89.2487 75.6219 88.8735 75.2526 88.4214 75.0015C87.9693 74.7504 87.4573 74.627 86.9403 74.6444C86.9084 74.6454 86.8764 74.646 86.8444 74.646H81.1414C80.3848 74.646 79.6594 74.9464 79.1247 75.481C78.5901 76.0155 78.2898 76.7403 78.2898 77.4959C78.2898 78.2515 78.5901 78.9763 79.1247 79.5108C79.6594 80.0453 80.3848 80.3458 81.1414 80.3458H86.8444C89.113 80.3458 91.2887 81.2467 92.8931 82.8506C94.4975 84.4545 95.399 86.6301 95.399 88.8987C95.399 91.1674 94.4975 93.3429 92.8931 94.9469C91.2887 96.5508 89.113 97.4517 86.8444 97.4517H81.1845C79.6521 97.4938 78.1361 97.1234 76.7953 96.3788C75.4391 95.6256 74.3133 94.5178 73.5384 93.1739C72.7517 91.8096 73.2199 90.0659 74.5842 89.2792C75.9484 88.4925 77.6922 88.9607 78.4789 90.325C78.737 90.7727 79.1122 91.142 79.5643 91.3931C80.0165 91.6442 80.5284 91.7677 81.0454 91.7503C81.0774 91.7492 81.1094 91.7486 81.1414 91.7486H86.8444C87.6009 91.7486 88.3263 91.4482 88.861 90.9136C89.3957 90.3791 89.6959 89.6543 89.6959 88.8987C89.6959 88.1432 89.3957 87.4184 88.861 86.8838C88.3263 86.3493 87.6009 86.0488 86.8444 86.0488H81.1414C78.8728 86.0488 76.697 85.1479 75.0927 83.544C73.4883 81.9401 72.5868 79.7645 72.5868 77.4959C72.5868 75.2272 73.4883 73.0517 75.0927 71.4477C76.697 69.8438 78.8728 68.9429 81.1414 68.9429H86.8013Z",
42
- fill: "white"
43
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
44
- fillRule: "evenodd",
45
- clipRule: "evenodd",
46
- d: "M83.9929 60.3851C85.5678 60.3851 86.8445 61.6617 86.8445 63.2366V69.8901C86.8445 71.465 85.5678 72.7417 83.9929 72.7417C82.4181 72.7417 81.1414 71.465 81.1414 69.8901V63.2366C81.1414 61.6617 82.4181 60.3851 83.9929 60.3851ZM83.9929 93.6528C85.5678 93.6528 86.8445 94.9295 86.8445 96.5043V103.158C86.8445 104.733 85.5678 106.009 83.9929 106.009C82.4181 106.009 81.1414 104.733 81.1414 103.158V96.5043C81.1414 94.9295 82.4181 93.6528 83.9929 93.6528Z",
47
- fill: "white"
48
- })]
49
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
50
- cx: "30.5001",
51
- cy: "135.203",
52
- r: "30.3756",
53
- fill: color
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("defs", {
55
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
56
- id: "filter0_d_3_37",
57
- x: "2.1759",
58
- y: "23.1733",
59
- width: "163.103",
60
- height: "123.713",
61
- filterUnits: "userSpaceOnUse",
62
- colorInterpolationFilters: "sRGB",
63
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
64
- floodOpacity: "0",
65
- result: "BackgroundImageFix"
66
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
67
- in: "SourceAlpha",
68
- type: "matrix",
69
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
70
- result: "hardAlpha"
71
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feOffset", {
72
- dy: "2"
73
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feGaussianBlur", {
74
- stdDeviation: "3"
75
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feComposite", {
76
- in2: "hardAlpha",
77
- operator: "out"
78
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
79
- type: "matrix",
80
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
81
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
82
- mode: "normal",
83
- in2: "BackgroundImageFix",
84
- result: "effect1_dropShadow_3_37"
85
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
86
- mode: "normal",
87
- in: "SourceGraphic",
88
- in2: "effect1_dropShadow_3_37",
89
- result: "shape"
90
- })]
91
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("linearGradient", {
92
- id: "paint0_linear_3_37",
93
- x1: "59.9492",
94
- y1: "55.009",
95
- x2: "119.169",
96
- y2: "127.341",
97
- gradientUnits: "userSpaceOnUse",
98
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
99
- stopColor: "#10C281"
100
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("stop", {
101
- offset: "1",
102
- stopColor: "#34D399"
103
- })]
104
- })]
105
- })]
106
- });
107
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function BoletoSvg({ color }: {
3
- color: string;
4
- }): JSX.Element;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Illustration/BoletoSvg/index.tsx"],"names":[],"mappings":";AAAA,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,eA+JrD"}
@@ -1,168 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.BoletoSvg = BoletoSvg;
7
-
8
- var _jsxRuntime = require("react/jsx-runtime");
9
-
10
- function BoletoSvg(_ref) {
11
- var color = _ref.color;
12
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("svg", {
13
- width: "167",
14
- height: "192",
15
- viewBox: "0 0 167 192",
16
- fill: "none",
17
- xmlns: "http://www.w3.org/2000/svg",
18
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
19
- d: "M166.876 108.655C166.876 120.93 164.185 132.591 159.35 143.068C146.25 171.54 117.379 191.31 83.8765 191.31C50.3736 191.31 21.5031 171.54 8.40255 143.068C3.56836 132.591 0.876465 120.93 0.876465 108.655C0.876465 63.0049 38.0358 26 83.8765 26C129.717 26 166.876 63.0049 166.876 108.655Z",
20
- fill: "#EAEFED"
21
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("mask", {
22
- id: "mask0_3288_3250",
23
- maskUnits: "userSpaceOnUse",
24
- x: "1",
25
- y: "11",
26
- width: "166",
27
- height: "180",
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
29
- d: "M1 11H167V108.5C167 154.063 129.563 191 84 191V191C38.4365 191 1 154.063 1 108.5V11Z",
30
- fill: "#C4C4C4"
31
- })
32
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
33
- mask: "url(#mask0_3288_3250)",
34
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
35
- filter: "url(#filter0_d_3288_3250)",
36
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
37
- d: "M7.25977 63.5434C7.25977 57.7204 11.9802 53 17.8031 53H150.913C156.736 53 161.456 57.7204 161.456 63.5434V156.457C161.456 162.28 156.736 167 150.913 167H17.8031C11.9802 167 7.25977 162.28 7.25977 156.457V63.5434Z",
38
- fill: "#CAD6D1"
39
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
40
- x: "25.0498",
41
- y: "68.9745",
42
- width: "8.83147",
43
- height: "81.6911",
44
- rx: "4.41573",
45
- fill: "#709085"
46
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
47
- x: "135.154",
48
- y: "68.9745",
49
- width: "8.83147",
50
- height: "81.6911",
51
- rx: "4.41573",
52
- fill: "#709085"
53
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
54
- x: "46.7798",
55
- y: "68.9745",
56
- width: "8.83147",
57
- height: "67.34",
58
- rx: "4.41573",
59
- fill: "#709085"
60
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
61
- x: "83.2393",
62
- y: "68.9745",
63
- width: "8.83147",
64
- height: "67.34",
65
- rx: "4.41573",
66
- fill: "#709085"
67
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
68
- x: "46.7798",
69
- y: "141.834",
70
- width: "8.83147",
71
- height: "8.83147",
72
- rx: "4.41573",
73
- fill: "#709085"
74
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
75
- x: "83.2393",
76
- y: "141.834",
77
- width: "8.83147",
78
- height: "8.83147",
79
- rx: "4.41573",
80
- fill: "#709085"
81
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
82
- x: "62.2354",
83
- y: "68.9745",
84
- width: "8.83147",
85
- height: "67.34",
86
- rx: "4.41573",
87
- fill: "#709085"
88
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
89
- x: "98.6943",
90
- y: "68.9745",
91
- width: "8.83147",
92
- height: "67.34",
93
- rx: "4.41573",
94
- fill: "#709085"
95
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
96
- x: "119.699",
97
- y: "68.9745",
98
- width: "8.83147",
99
- height: "67.34",
100
- rx: "4.41573",
101
- fill: "#709085"
102
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
103
- x: "62.2354",
104
- y: "141.834",
105
- width: "8.83147",
106
- height: "8.83147",
107
- rx: "4.41573",
108
- fill: "#709085"
109
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
110
- x: "98.6943",
111
- y: "141.834",
112
- width: "8.83147",
113
- height: "8.83147",
114
- rx: "4.41573",
115
- fill: "#709085"
116
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
117
- x: "119.699",
118
- y: "141.834",
119
- width: "8.83147",
120
- height: "8.83147",
121
- rx: "4.41573",
122
- fill: "#709085"
123
- })]
124
- })
125
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
126
- d: "M55 154C55 158.01 54.1243 161.819 52.5518 165.241C48.2901 174.542 38.8985 181 28 181C17.1015 181 7.70986 174.542 3.44824 165.241C1.87568 161.819 1 158.01 1 154C1 139.088 13.088 127 28 127C42.912 127 55 139.088 55 154Z",
127
- fill: color
128
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("defs", {
129
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("filter", {
130
- id: "filter0_d_3288_3250",
131
- x: "1.25977",
132
- y: "49",
133
- width: "166.196",
134
- height: "126",
135
- filterUnits: "userSpaceOnUse",
136
- colorInterpolationFilters: "sRGB",
137
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("feFlood", {
138
- floodOpacity: "0",
139
- result: "BackgroundImageFix"
140
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
141
- in: "SourceAlpha",
142
- type: "matrix",
143
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
144
- result: "hardAlpha"
145
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feOffset", {
146
- dy: "2"
147
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feGaussianBlur", {
148
- stdDeviation: "3"
149
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feComposite", {
150
- in2: "hardAlpha",
151
- operator: "out"
152
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feColorMatrix", {
153
- type: "matrix",
154
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"
155
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
156
- mode: "normal",
157
- in2: "BackgroundImageFix",
158
- result: "effect1_dropShadow_3288_3250"
159
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("feBlend", {
160
- mode: "normal",
161
- in: "SourceGraphic",
162
- in2: "effect1_dropShadow_3288_3250",
163
- result: "shape"
164
- })]
165
- })
166
- })]
167
- });
168
- }
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function BoxClosedSvg({ color }: {
3
- color: string;
4
- }): JSX.Element;
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Illustration/BoxClosedSvg/index.tsx"],"names":[],"mappings":";AAAA,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,eAsFxD"}