@pedidopago/ui 1.3.8 → 1.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DateInput/dateInput.test.js +11 -0
- package/dist/components/DateInput/index.d.ts +1 -1
- package/dist/components/DateInput/index.d.ts.map +1 -1
- package/dist/components/DateInput/index.js +17 -13
- package/dist/components/DateInput/types.d.ts +2 -0
- package/dist/components/DateInput/types.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.d.ts.map +1 -1
- package/dist/components/DatePicker/components/DatePickerContent.js +17 -7
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +5 -4
- package/dist/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/components/DatePicker/styles.js +1 -1
- package/dist/components/Icon/data/dash.d.ts.map +1 -1
- package/dist/components/Icon/data/dash.js +1 -1
- package/dist/components/Icon/data/payment.d.ts.map +1 -1
- package/dist/components/Icon/data/payment.js +7 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/Icon/types.d.ts.map +1 -1
- package/dist/components/Illustration/BoletoSvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoletoSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoletoSvg/index.js +168 -0
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoxClosedSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoxClosedSvg/index.js +99 -0
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoxDeliverySvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoxDeliverySvg/index.js +111 -0
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts +5 -0
- package/dist/components/Illustration/BoxOpenSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/BoxOpenSvg/index.js +108 -0
- package/dist/components/Illustration/CalendarSvg/index.d.ts +5 -0
- package/dist/components/Illustration/CalendarSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/CalendarSvg/index.js +109 -0
- package/dist/components/Illustration/CardSvg/index.d.ts +5 -0
- package/dist/components/Illustration/CardSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/CardSvg/index.js +110 -0
- package/dist/components/Illustration/InquirySvg/index.d.ts +5 -0
- package/dist/components/Illustration/InquirySvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/InquirySvg/index.js +219 -0
- package/dist/components/Illustration/OrderSvg/index.d.ts +5 -0
- package/dist/components/Illustration/OrderSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/OrderSvg/index.js +135 -0
- package/dist/components/Illustration/PixSvg/index.d.ts +5 -0
- package/dist/components/Illustration/PixSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/PixSvg/index.js +93 -0
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts +5 -0
- package/dist/components/Illustration/PrescriptionSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/PrescriptionSvg/index.js +81 -0
- package/dist/components/Illustration/TransportSvg/index.d.ts +5 -0
- package/dist/components/Illustration/TransportSvg/index.d.ts.map +1 -0
- package/dist/components/Illustration/TransportSvg/index.js +102 -0
- package/dist/components/Illustration/illustration.test.d.ts +2 -0
- package/dist/components/Illustration/illustration.test.d.ts.map +1 -0
- package/dist/components/Illustration/illustration.test.js +61 -0
- package/dist/components/Illustration/index.d.ts +5 -0
- package/dist/components/Illustration/index.d.ts.map +1 -0
- package/dist/components/Illustration/index.js +134 -0
- package/dist/components/Illustration/styles.d.ts +11 -0
- package/dist/components/Illustration/styles.d.ts.map +1 -0
- package/dist/components/Illustration/styles.js +38 -0
- package/dist/components/Illustration/types.d.ts +7 -0
- package/dist/components/Illustration/types.d.ts.map +1 -0
- package/dist/components/Illustration/types.js +1 -0
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.d.ts.map +1 -1
- package/dist/components/RadioInput/components/ChoiceList/index.js +61 -76
- package/dist/components/RadioInput/index.d.ts.map +1 -1
- package/dist/components/RadioInput/index.js +22 -69
- package/dist/components/RadioInput/radio-input.test.js +44 -98
- package/dist/components/RadioInput/styles.d.ts.map +1 -1
- package/dist/components/RadioInput/styles.js +5 -11
- package/dist/components/RadioInput/types.d.ts +6 -34
- package/dist/components/RadioInput/types.d.ts.map +1 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +4 -5
- package/dist/components/Skeleton/styles.d.ts.map +1 -1
- package/dist/components/Skeleton/styles.js +4 -2
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +3 -0
- package/dist/components/Steps/components/StepIcon/index.d.ts +2 -2
- package/dist/components/Steps/components/StepIcon/index.d.ts.map +1 -1
- package/dist/components/Steps/components/StepIconMobile/index.d.ts +2 -2
- package/dist/components/Steps/components/StepIconMobile/index.d.ts.map +1 -1
- package/dist/components/Steps/index.d.ts +2 -2
- package/dist/components/Steps/index.d.ts.map +1 -1
- package/dist/components/Steps/index.js +22 -9
- package/dist/components/Steps/styles.d.ts.map +1 -1
- package/dist/components/Steps/styles.js +30 -19
- package/dist/components/Steps/types.d.ts +10 -5
- package/dist/components/Steps/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/dist/shared/hooks/useDisableBodyScroll.d.ts.map +1 -1
- package/dist/shared/hooks/useDisableBodyScroll.js +2 -1
- package/package.json +1 -1
|
@@ -24,13 +24,8 @@ var Label = _styled.default.label(_templateObject2 || (_templateObject2 = _tagge
|
|
|
24
24
|
exports.Label = Label;
|
|
25
25
|
|
|
26
26
|
var Input = _styled.default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
theme = _ref.theme;
|
|
30
|
-
return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n appearance: none;\n display: flex;\n justify-content: center;\n align-items: center;\n box-sizing: border-box;\n margin: 0;\n width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid\n ", ";\n\n cursor: pointer;\n\n + label {\n color: ", ";\n line-height: 20px;\n cursor: pointer;\n }\n\n :hover {\n border-color: ", ";\n }\n :focus {\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n :disabled {\n cursor: default;\n border-color: ", ";\n background-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n :checked {\n background-color: ", ";\n border-color: ", ";\n &:focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n &::after {\n display: none;\n }\n }\n\n &::after {\n content: '';\n display: block;\n width: 6px;\n height: 6px;\n background: #fff;\n border-radius: 50%;\n }\n }\n "])), {
|
|
31
|
-
light: theme.colors.neutral.neutral2,
|
|
32
|
-
dark: theme.colors.neutral.neutral5
|
|
33
|
-
}[theme.colorMode], theme.colorMode === 'light' ? colorProps === null || colorProps === void 0 ? void 0 : colorProps.black : theme.colors.neutral.white, theme.colors.primary.hover, colorProps === null || colorProps === void 0 ? void 0 : colorProps.focus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.grayLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, color, color, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturationFocus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturationFocus, colorProps === null || colorProps === void 0 ? void 0 : colorProps.shadowLightness, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturation, colorProps === null || colorProps === void 0 ? void 0 : colorProps.saturation, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, colorProps === null || colorProps === void 0 ? void 0 : colorProps.gray, colorProps === null || colorProps === void 0 ? void 0 : colorProps.graySaturation);
|
|
27
|
+
var colors = _ref.theme.colors;
|
|
28
|
+
return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n appearance: none;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n min-width: 20px;\n height: 20px;\n border-radius: 50%;\n border: 2px solid ", ";\n transition: all ease 0.2s;\n cursor: pointer;\n\n + label {\n color: ", ";\n line-height: 20px;\n cursor: pointer;\n }\n\n :hover {\n border-color: ", ";\n }\n\n :disabled {\n cursor: default;\n border-color: ", ";\n background-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n :checked {\n background-color: ", ";\n border-color: ", ";\n &:focus {\n background-color: ", ";\n border-color: ", ";\n box-shadow: 0 0 0 2px ", ";\n }\n &:hover {\n background-color: ", ";\n border-color: ", ";\n }\n &:disabled {\n background-color: ", ";\n border-color: ", ";\n + label {\n color: ", ";\n cursor: default;\n }\n }\n\n &::after {\n content: '';\n width: 6px;\n height: 6px;\n background: #fff;\n border-radius: 50%;\n }\n }\n "])), colors.neutral.neutral2, colors.neutral.black, colors.primary.hover, colors.neutral.neutral1, colors.neutral.neutral1, colors.neutral.neutral2, colors.primary.default, colors.primary.default, colors.primary.focus, colors.primary.focus, colors.primary.disabled, colors.primary.hover, colors.primary.hover, colors.neutral.neutral2, colors.neutral.neutral2, colors.neutral.neutral4);
|
|
34
29
|
});
|
|
35
30
|
|
|
36
31
|
exports.Input = Input;
|
|
@@ -48,9 +43,8 @@ var ListWrapper = _styled.default.div(_templateObject6 || (_templateObject6 = _t
|
|
|
48
43
|
exports.ListWrapper = ListWrapper;
|
|
49
44
|
|
|
50
45
|
var ChoiceLabel = _styled.default.label(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref3) {
|
|
51
|
-
var
|
|
52
|
-
|
|
53
|
-
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), theme.colorMode === 'light' ? colorProps === null || colorProps === void 0 ? void 0 : colorProps.black : theme.colors.neutral.white);
|
|
46
|
+
var colors = _ref3.theme.colors;
|
|
47
|
+
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: block;\n font-weight: 500;\n font-size: 16px;\n line-height: 24px;\n color: ", ";\n margin-bottom: 16px;\n "])), colors.neutral.black);
|
|
54
48
|
});
|
|
55
49
|
|
|
56
50
|
exports.ChoiceLabel = ChoiceLabel;
|
|
@@ -58,7 +52,7 @@ exports.ChoiceLabel = ChoiceLabel;
|
|
|
58
52
|
var HelpText = _styled.default.span(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref4) {
|
|
59
53
|
var theme = _ref4.theme,
|
|
60
54
|
textColor = _ref4.textColor;
|
|
61
|
-
return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n font-weight:
|
|
55
|
+
return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n font-size: ", ";\n color: ", ";\n font-weight: 500;\n display: block;\n padding-left: 30px;\n margin-top: 18px;\n "])), theme.fontSizes.xxs, textColor);
|
|
62
56
|
});
|
|
63
57
|
|
|
64
58
|
exports.HelpText = HelpText;
|
|
@@ -1,61 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type FormRegister = {
|
|
3
|
-
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
4
|
-
onBlur: ChangeEventHandler;
|
|
5
|
-
ref: Ref<any>;
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
export declare type ColorProps = {
|
|
9
|
-
black: string;
|
|
10
|
-
gray: string;
|
|
11
|
-
grayLightness: string;
|
|
12
|
-
graySaturation: string;
|
|
13
|
-
focus: string;
|
|
14
|
-
focusChecked: string;
|
|
15
|
-
shadowLightness: string;
|
|
16
|
-
saturation: string;
|
|
17
|
-
saturationFocus: string;
|
|
18
|
-
};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
19
2
|
export interface IRadioInputProps {
|
|
20
3
|
isDisabled?: boolean;
|
|
21
4
|
name?: string;
|
|
22
5
|
value: string;
|
|
23
6
|
id: string;
|
|
24
|
-
children
|
|
7
|
+
children?: ReactNode;
|
|
25
8
|
color?: string;
|
|
26
9
|
defaultChecked?: boolean;
|
|
27
10
|
onChange?: (value: string) => void;
|
|
28
|
-
formRegister?: FormRegister;
|
|
29
11
|
}
|
|
30
12
|
export interface ChoiceListProps {
|
|
31
|
-
|
|
13
|
+
onChangeValue?: (value: string) => void;
|
|
32
14
|
label?: string;
|
|
33
|
-
value: string;
|
|
34
15
|
defaultValue?: string;
|
|
35
16
|
isDisabled?: boolean;
|
|
36
|
-
|
|
17
|
+
radiosName: string;
|
|
37
18
|
alignDirection?: 'column' | 'row';
|
|
38
19
|
color?: string;
|
|
39
20
|
helpText?: string;
|
|
40
21
|
children: ReactNode;
|
|
41
|
-
formRegister?: FormRegister;
|
|
42
22
|
}
|
|
43
23
|
export declare type ChoiceListContext = {
|
|
44
|
-
handleRadioClick: (e:
|
|
45
|
-
|
|
24
|
+
handleRadioClick: (e: string) => void;
|
|
25
|
+
defaultValue?: string;
|
|
46
26
|
groupName: string;
|
|
47
|
-
groupColor: string;
|
|
48
|
-
groupFormRegister?: FormRegister;
|
|
49
27
|
isDisabled?: boolean;
|
|
50
28
|
};
|
|
51
29
|
export interface IStyledRadioInput {
|
|
52
|
-
color?: string;
|
|
53
|
-
colorProps?: ColorProps;
|
|
54
30
|
textColor?: string;
|
|
55
31
|
alignDirection?: 'column' | 'row';
|
|
56
|
-
disabledColor?: string;
|
|
57
|
-
disabledWithCheckedColor?: string;
|
|
58
|
-
disabledTextColor?: string;
|
|
59
|
-
disabledTextWithCheckedColor?: string;
|
|
60
32
|
}
|
|
61
33
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/RadioInput/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,eAAe;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,oBAAY,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,QAAA,MAAM,QAAQ,oCAAqC,cAAc,gBAMhE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
var _styles = require("./styles");
|
|
11
9
|
|
|
12
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -28,9 +26,10 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
28
26
|
isLoaded = _ref.isLoaded,
|
|
29
27
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
28
|
|
|
31
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.SkeletonElement, _objectSpread(_objectSpread({}, rest), {}, {
|
|
30
|
+
isLoaded: isLoaded,
|
|
31
|
+
children: children
|
|
32
|
+
}));
|
|
34
33
|
};
|
|
35
34
|
|
|
36
35
|
var _default = Skeleton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,eAAO,MAAM,eAAe;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,eAAO,MAAM,eAAe;;;iJAuF1B,CAAC"}
|
|
@@ -15,7 +15,7 @@ var _colorCheck = require("../../utils/colorCheck");
|
|
|
15
15
|
|
|
16
16
|
var _invertColor = require("../../utils/invertColor");
|
|
17
17
|
|
|
18
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
18
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
21
|
|
|
@@ -34,7 +34,9 @@ var SkeletonElement = _styled.default.span(function (props) {
|
|
|
34
34
|
wave: (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow: hidden;\n transform-origin: 0px 55%;\n\n &::after {\n content: '';\n inset: 0px;\n position: absolute;\n animation: 1.6s linear 0.5s infinite normal none running move;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n ", ",\n transparent\n );\n }\n\n @keyframes move {\n 0% {\n transform: translateX(-100%);\n }\n 40% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n "])), (0, _colorCheck.parseHexColorToRgba)(waveColor, waveColorOpacity)),
|
|
35
35
|
pulse: (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n animation: 1.6s linear 0.5s infinite normal none running pulse;\n\n @keyframes pulse {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n }\n "])))
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
var unloadedCss = (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: relative;\n user-select: none;\n pointer-events: none;\n cursor: default;\n background: padding-box ", ";\n border-radius: ", ";\n width: ", ";\n height: ", ";\n color: transparent;\n\n ", ";\n "])), skeletonColor, borderRadiusByVariant[props.variant || 'text'], typeof props.width === 'number' ? props.width + 'px' : props.width || '', typeof props.height === 'number' ? props.height + 'px' : props.height || '', props.animation !== 'static' ? animationsCss[props.animation || 'wave'] : '');
|
|
38
|
+
var loadedCss = (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: block;\n background: transparent;\n\n transition: all 300ms ease;\n "])));
|
|
39
|
+
return props.isLoaded ? loadedCss : unloadedCss;
|
|
38
40
|
});
|
|
39
41
|
|
|
40
42
|
exports.SkeletonElement = SkeletonElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,MAAM,yFAUT,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,QAAA,MAAM,MAAM,yFAUT,YAAY,gBAgDd,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -85,6 +85,9 @@ var Slider = function Slider(_ref) {
|
|
|
85
85
|
onChange && onChange(sliderValue);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
(0, _react.useEffect)(function () {
|
|
89
|
+
setSliderValue(value);
|
|
90
|
+
}, [value]);
|
|
88
91
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.SliderContent, {
|
|
89
92
|
direction: direction,
|
|
90
93
|
fullSize: fullSize,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const StepIcon: ({ isSelectedStep, stepPosition, hasStartGradient, hasEndGratient, activeColor, }:
|
|
2
|
+
import { StepIconProps } from '../../types';
|
|
3
|
+
export declare const StepIcon: ({ isSelectedStep, stepPosition, hasStartGradient, hasEndGratient, activeColor, }: StepIconProps) => JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/components/StepIcon/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/components/StepIcon/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAa5C,eAAO,MAAM,QAAQ,qFAMlB,aAAa,gBAsFf,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const StepIconMobile: ({ stepPosition, isSelectedStep, hasStartGradient, hasEndGratient, activeColor, }:
|
|
2
|
+
import { StepIconProps } from '../../types';
|
|
3
|
+
export declare const StepIconMobile: ({ stepPosition, isSelectedStep, hasStartGradient, hasEndGratient, activeColor, }: StepIconProps) => JSX.Element;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/components/StepIconMobile/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Steps/components/StepIconMobile/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAO5C,eAAO,MAAM,cAAc,qFAMxB,aAAa,gBAgGf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const Steps: ({ current, steps, activeColor, fullWidth, isReducedSteps, enableCurrentStepChecked, }:
|
|
2
|
+
import { StepsProps } from './types';
|
|
3
|
+
declare const Steps: ({ current, steps, activeColor, fullWidth, isReducedSteps, enableCurrentStepChecked, }: StepsProps) => JSX.Element;
|
|
4
4
|
export default Steps;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/index.tsx"],"names":[],"mappings":";AAiBA,OAAO,EAAc,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,QAAA,MAAM,KAAK,0FAOR,UAAU,gBA2GZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
8
10
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
9
11
|
|
|
10
12
|
var _StepIcon = require("./components/StepIcon");
|
|
@@ -15,12 +17,12 @@ var _utils = require("./utils");
|
|
|
15
17
|
|
|
16
18
|
var _styles = require("./styles");
|
|
17
19
|
|
|
18
|
-
var _react = require("react");
|
|
19
|
-
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
25
|
+
|
|
24
26
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
25
27
|
|
|
26
28
|
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."); }
|
|
@@ -48,6 +50,17 @@ var Steps = function Steps(_ref) {
|
|
|
48
50
|
isMobile = _useState2[0],
|
|
49
51
|
setIsMobile = _useState2[1];
|
|
50
52
|
|
|
53
|
+
var handleEnableControlledSteps = function handleEnableControlledSteps(step, index) {
|
|
54
|
+
var isControlledSteps = _typeof(step) === 'object';
|
|
55
|
+
if (isControlledSteps) return step.isCompleted;
|
|
56
|
+
return current > index + 1 || enableCurrentStepChecked && current === index + 1;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
var handleStepName = function handleStepName(step) {
|
|
60
|
+
if (_typeof(step) === 'object') return step.name;
|
|
61
|
+
return step;
|
|
62
|
+
};
|
|
63
|
+
|
|
51
64
|
var getStepIconPosition = function getStepIconPosition(index) {
|
|
52
65
|
if (index === 0 && index < steps.length - 1) {
|
|
53
66
|
return _utils.STEP_POSITION.INITIAL_BEFORE_UNSELECTED;
|
|
@@ -93,12 +106,12 @@ var Steps = function Steps(_ref) {
|
|
|
93
106
|
activeColor: activeColor
|
|
94
107
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StepsItemText, {
|
|
95
108
|
isReducedSteps: isReducedSteps,
|
|
96
|
-
children: step
|
|
109
|
+
children: handleStepName(step)
|
|
97
110
|
})]
|
|
98
|
-
}, "".concat(step, "-").concat(index)) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ReducedStepsContainer, {
|
|
111
|
+
}, "".concat(handleStepName(step), "-").concat(index)) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.ReducedStepsContainer, {
|
|
99
112
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StepsItemText, {
|
|
100
113
|
isReducedSteps: isReducedSteps,
|
|
101
|
-
children: step
|
|
114
|
+
children: handleStepName(step)
|
|
102
115
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_StepIcon.StepIcon, {
|
|
103
116
|
stepPosition: getStepIconPosition(index),
|
|
104
117
|
isSelectedStep: index < current,
|
|
@@ -106,7 +119,7 @@ var Steps = function Steps(_ref) {
|
|
|
106
119
|
hasEndGratient: checkEndGradient(index),
|
|
107
120
|
activeColor: activeColor
|
|
108
121
|
})]
|
|
109
|
-
}, step) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StepsItemContainer, {
|
|
122
|
+
}, handleStepName(step)) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.StepsItemContainer, {
|
|
110
123
|
id: "simple-step-".concat(index + 1),
|
|
111
124
|
tabIndex: index + 1 === current ? 0 : -1,
|
|
112
125
|
isCurrent: current === index + 1,
|
|
@@ -114,13 +127,13 @@ var Steps = function Steps(_ref) {
|
|
|
114
127
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StepsCircle, {
|
|
115
128
|
activeColor: activeColor,
|
|
116
129
|
isCurrent: current === index + 1,
|
|
117
|
-
isFinished:
|
|
118
|
-
children:
|
|
130
|
+
isFinished: handleEnableControlledSteps(step, index),
|
|
131
|
+
children: handleEnableControlledSteps(step, index) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
119
132
|
name: "check"
|
|
120
133
|
}) : index + 1
|
|
121
134
|
}), current === index + 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StepsItemText, {
|
|
122
135
|
isDisabled: enableCurrentStepChecked,
|
|
123
|
-
children: step
|
|
136
|
+
children: handleStepName(step)
|
|
124
137
|
})]
|
|
125
138
|
}), current === index + 1 && current < steps.length && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.StepsSeparator, {})]
|
|
126
139
|
}, index);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,cAAc;;;;;;yGAc1B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;iBACT,SAAS,GAAG,WAAW,GAAG,UAAU;;;yGA0DlD,CAAC;AAEF,eAAO,MAAM,cAAc;;;yGAM1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;eAClB,OAAO;yGAkBnB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;yGAajC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;yGAIvC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;yGAItC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;iHA0CzB,CAAC"}
|
|
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.StepsSeparator = exports.StepsItemsDetailsContainer = exports.StepsItemText = exports.StepsItemContainer = exports.StepsContainer = exports.StepsCircle = exports.ReducedStepsMobileContainer = exports.ReducedStepsContainer = void 0;
|
|
7
7
|
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
|
+
|
|
8
10
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
11
|
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
@@ -26,47 +28,56 @@ var StepsContainer = _styled.default.div(_templateObject || (_templateObject = _
|
|
|
26
28
|
|
|
27
29
|
exports.StepsContainer = StepsContainer;
|
|
28
30
|
|
|
29
|
-
var StepsCircle = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width:
|
|
30
|
-
var theme = _ref4.theme
|
|
31
|
-
|
|
32
|
-
isFinished = _ref4.isFinished,
|
|
33
|
-
isCurrent = _ref4.isCurrent;
|
|
34
|
-
return theme.colors[activeColor] && "\n background-color: ".concat(isFinished ? theme.colors[activeColor].default : isCurrent ? theme.colors[activeColor].disabled : 'transparent', ";\n color: ").concat(isFinished ? theme.colors.body.light : isCurrent ? theme.colors.neutral.black : theme.colors.neutral.neutral3, ";\n\n ").concat(!isCurrent && !isFinished && "\n border: solid 2px ".concat(theme.colors.neutral.neutral1, ";\n "), "\n ");
|
|
31
|
+
var StepsCircle = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 32px;\n height: 32px;\n min-width: 32px;\n min-height: 32px;\n border-radius: 99999px;\n\n ", "\n\n font-family: inherit;\n font-weight: 600;\n font-size: 1.125rem;\n\n ", "\n\n & svg {\n stroke: ", ";\n stroke-width: 2px;\n }\n"])), function (_ref4) {
|
|
32
|
+
var theme = _ref4.theme;
|
|
33
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n @media screen and (min-width: ", ") {\n width: 42px;\n height: 42px;\n min-width: 42px;\n min-height: 42px;\n }\n "])), theme.breakpoints.md);
|
|
35
34
|
}, function (_ref5) {
|
|
36
|
-
var theme = _ref5.theme
|
|
35
|
+
var theme = _ref5.theme,
|
|
36
|
+
activeColor = _ref5.activeColor,
|
|
37
|
+
isFinished = _ref5.isFinished,
|
|
38
|
+
isCurrent = _ref5.isCurrent;
|
|
39
|
+
return theme.colors[activeColor] && "\n background-color: ".concat(isFinished ? theme.colors[activeColor].default : isCurrent ? theme.colors[activeColor].disabled : 'transparent', ";\n color: ").concat(isFinished ? theme.colors.body.light : isCurrent ? theme.colors.neutral.black : theme.colors.neutral.neutral3, ";\n\n ").concat(!isCurrent && !isFinished && "\n border: solid 2px ".concat(theme.colors.neutral.neutral1, ";\n "), "\n ");
|
|
40
|
+
}, function (_ref6) {
|
|
41
|
+
var theme = _ref6.theme;
|
|
37
42
|
return theme.colors.body.light;
|
|
38
43
|
});
|
|
39
44
|
|
|
40
45
|
exports.StepsCircle = StepsCircle;
|
|
41
46
|
|
|
42
|
-
var StepsSeparator = _styled.default.div(
|
|
43
|
-
var theme =
|
|
47
|
+
var StepsSeparator = _styled.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: 2px;\n width: 100%;\n min-width: 40px;\n max-width: 20px;\n background-color: ", ";\n"])), function (_ref7) {
|
|
48
|
+
var theme = _ref7.theme;
|
|
44
49
|
return theme.colors.neutral.neutral1;
|
|
45
50
|
});
|
|
46
51
|
|
|
47
52
|
exports.StepsSeparator = StepsSeparator;
|
|
48
53
|
|
|
49
|
-
var StepsItemContainer = _styled.default.div(
|
|
54
|
+
var StepsItemContainer = _styled.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n flex: ", ";\n\n gap: 8px;\n\n &:last-of-type {\n flex-direction: row-reverse;\n }\n\n ", "\n"])), function (props) {
|
|
50
55
|
return props.isCurrent ? 1 : 0;
|
|
56
|
+
}, function (_ref8) {
|
|
57
|
+
var theme = _ref8.theme;
|
|
58
|
+
return (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n @media screen and (min-width: ", ") {\n gap: 12px;\n }\n "])), theme.breakpoints.sm);
|
|
51
59
|
});
|
|
52
60
|
|
|
53
61
|
exports.StepsItemContainer = StepsItemContainer;
|
|
54
62
|
|
|
55
|
-
var ReducedStepsContainer = _styled.default.div(
|
|
63
|
+
var ReducedStepsContainer = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 100px;\n\n @media only screen and (max-width: 500px) {\n flex-direction: row;\n height: max-content;\n width: 300px;\n justify-content: start;\n }\n"])));
|
|
56
64
|
|
|
57
65
|
exports.ReducedStepsContainer = ReducedStepsContainer;
|
|
58
66
|
|
|
59
|
-
var ReducedStepsMobileContainer = _styled.default.div(
|
|
67
|
+
var ReducedStepsMobileContainer = _styled.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n width: 100%;\n"])));
|
|
60
68
|
|
|
61
69
|
exports.ReducedStepsMobileContainer = ReducedStepsMobileContainer;
|
|
62
70
|
|
|
63
|
-
var StepsItemsDetailsContainer = _styled.default.div(
|
|
71
|
+
var StepsItemsDetailsContainer = _styled.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 12px;\n"])));
|
|
64
72
|
|
|
65
73
|
exports.StepsItemsDetailsContainer = StepsItemsDetailsContainer;
|
|
66
74
|
|
|
67
|
-
var StepsItemText = _styled.default.h3(
|
|
68
|
-
var
|
|
69
|
-
|
|
75
|
+
var StepsItemText = _styled.default.h3(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n font-family: inherit;\n font-weight: 600;\n font-size: 1rem;\n\n white-space: nowrap;\n\n ", "\n\n ", "\n\n @media only screen and (max-width: 500px) {\n ", ";\n white-space: normal;\n }\n"])), function (_ref9) {
|
|
76
|
+
var theme = _ref9.theme;
|
|
77
|
+
return (0, _react.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n @media screen and (min-width: ", ") {\n font-size: 1.25rem;\n }\n "])), theme.breakpoints.sm);
|
|
78
|
+
}, function (_ref10) {
|
|
79
|
+
var isDisabled = _ref10.isDisabled,
|
|
80
|
+
theme = _ref10.theme;
|
|
70
81
|
|
|
71
82
|
if (isDisabled) {
|
|
72
83
|
return "\n color: ".concat({
|
|
@@ -79,8 +90,8 @@ var StepsItemText = _styled.default.h3(_templateObject8 || (_templateObject8 = _
|
|
|
79
90
|
light: theme.colors.neutral.black,
|
|
80
91
|
dark: theme.colors.neutral.white
|
|
81
92
|
}[theme.colorMode], ";\n ");
|
|
82
|
-
}, function (
|
|
83
|
-
var isReducedSteps =
|
|
93
|
+
}, function (_ref11) {
|
|
94
|
+
var isReducedSteps = _ref11.isReducedSteps;
|
|
84
95
|
return isReducedSteps ? "width: 100%;" : "";
|
|
85
96
|
});
|
|
86
97
|
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export interface StepsControlled {
|
|
2
|
+
name: string;
|
|
3
|
+
isCompleted: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare type StepsItems = string | StepsControlled;
|
|
6
|
+
export interface StepsProps {
|
|
7
|
+
steps: StepsItems[];
|
|
3
8
|
current: number;
|
|
4
9
|
activeColor?: 'primary' | 'secondary' | 'tertiary';
|
|
5
10
|
fullWidth?: boolean;
|
|
6
11
|
isReducedSteps?: boolean;
|
|
7
12
|
enableCurrentStepChecked?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export
|
|
13
|
+
}
|
|
14
|
+
export interface StepIconProps {
|
|
10
15
|
isSelectedStep: boolean;
|
|
11
16
|
hasStartGradient: boolean;
|
|
12
17
|
hasEndGratient: boolean;
|
|
13
18
|
stepPosition: string;
|
|
14
19
|
activeColor: 'primary' | 'secondary' | 'tertiary';
|
|
15
|
-
}
|
|
20
|
+
}
|
|
16
21
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Steps/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,oBAAY,UAAU,GAAG,MAAM,GAAG,eAAe,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,SAAS,GAAG,WAAW,GAAG,UAAU,CAAC;CACnD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export { default as Icon } from './components/Icon';
|
|
|
13
13
|
export { type IconName } from './components/Icon/types';
|
|
14
14
|
export { default as IconItem } from './components/IconItem';
|
|
15
15
|
export { ReactPortal } from './components/ReactPortal';
|
|
16
|
+
export { default as Illustration } from './components/Illustration';
|
|
16
17
|
export { default as Label } from './components/Label';
|
|
17
18
|
export { default as List } from './components/List';
|
|
18
19
|
export { Modal } from './components/Modal';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qB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: true,
|
|
21
22
|
Label: true,
|
|
22
23
|
List: true,
|
|
23
24
|
Modal: true,
|
|
@@ -142,6 +143,12 @@ Object.defineProperty(exports, "IconItem", {
|
|
|
142
143
|
return _IconItem.default;
|
|
143
144
|
}
|
|
144
145
|
});
|
|
146
|
+
Object.defineProperty(exports, "Illustration", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function get() {
|
|
149
|
+
return _Illustration.default;
|
|
150
|
+
}
|
|
151
|
+
});
|
|
145
152
|
Object.defineProperty(exports, "Input", {
|
|
146
153
|
enumerable: true,
|
|
147
154
|
get: function get() {
|
|
@@ -321,6 +328,8 @@ var _IconItem = _interopRequireDefault(require("./components/IconItem"));
|
|
|
321
328
|
|
|
322
329
|
var _ReactPortal = require("./components/ReactPortal");
|
|
323
330
|
|
|
331
|
+
var _Illustration = _interopRequireDefault(require("./components/Illustration"));
|
|
332
|
+
|
|
324
333
|
var _Label = _interopRequireDefault(require("./components/Label"));
|
|
325
334
|
|
|
326
335
|
var _List = _interopRequireDefault(require("./components/List"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useDisableBodyScroll.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,YAAa,OAAO,
|
|
1
|
+
{"version":3,"file":"useDisableBodyScroll.d.ts","sourceRoot":"","sources":["../../../src/shared/hooks/useDisableBodyScroll.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,YAAa,OAAO,SAWpD,CAAC"}
|
|
@@ -10,8 +10,9 @@ var _react = require("react");
|
|
|
10
10
|
var useDisableBodyScroll = function useDisableBodyScroll(disable) {
|
|
11
11
|
(0, _react.useEffect)(function () {
|
|
12
12
|
if (disable) {
|
|
13
|
+
var scrollBarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
14
|
+
document.body.style.paddingRight = "".concat(scrollBarWidth, "px");
|
|
13
15
|
document.body.style.overflow = 'hidden';
|
|
14
|
-
document.body.style.paddingRight = '18px';
|
|
15
16
|
} else {
|
|
16
17
|
document.body.style.overflow = '';
|
|
17
18
|
document.body.style.paddingRight = '';
|