@pedidopago/ui 1.3.16 → 1.3.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.
- package/dist/components/DateInput/index.js +1 -1
- package/dist/components/MultipleSelect/index.d.ts.map +1 -1
- package/dist/components/MultipleSelect/index.js +0 -6
- package/dist/components/Switch/styles.js +1 -1
- package/dist/components/Typography/styles.d.ts +2 -1
- package/dist/components/Typography/styles.d.ts.map +1 -1
- package/dist/components/Typography/types.d.ts +2 -1
- package/dist/components/Typography/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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;AAEf,OAAO,EAAa,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEnE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,
|
|
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;AAEf,OAAO,EAAa,iBAAiB,EAAc,MAAM,SAAS,CAAC;AAEnE,aAAK,KAAK,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAI3C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,GAAG,KAAK,CA+HjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -107,12 +107,6 @@ var MultipleSelect = function MultipleSelect(_ref) {
|
|
|
107
107
|
(0, _react.useEffect)(function () {
|
|
108
108
|
!!value && setSelectedOptions(value);
|
|
109
109
|
}, [value]);
|
|
110
|
-
(0, _react.useEffect)(function () {
|
|
111
|
-
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(selectedOptions);
|
|
112
|
-
}, [onChangeValue]);
|
|
113
|
-
(0, _react.useEffect)(function () {
|
|
114
|
-
!!disabled && setShowOptionsArea(false);
|
|
115
|
-
}, [disabled]);
|
|
116
110
|
var scrollHandler = (0, _react.useCallback)(function (event) {
|
|
117
111
|
var _ref2 = event.target,
|
|
118
112
|
clientHeight = _ref2.clientHeight,
|
|
@@ -73,5 +73,5 @@ function ActiveEffects(_ref8) {
|
|
|
73
73
|
function disabledStyle(_ref9) {
|
|
74
74
|
var theme = _ref9.theme;
|
|
75
75
|
if (!theme) return '';
|
|
76
|
-
return (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border-color: ", ";\n\n background-color: ", ";\n\n
|
|
76
|
+
return (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border-color: ", ";\n background-color: ", ";\n pointer-events: none;\n cursor: default;\n\n div {\n background-color: ", ";\n }\n\n .switch-token {\n background-color: ", " !important;\n\n svg {\n color: ", ";\n }\n }\n "])), theme.colors.neutral.neutral2, theme.colors.neutral.neutral1, theme.colors.neutral.neutral2, theme.colors.neutral.neutral2, theme.colors.neutral.neutral3);
|
|
77
77
|
}
|
|
@@ -4,7 +4,7 @@ export declare const StyledText: import("@emotion/styled").StyledComponent<{
|
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
} & GenericStyledProps & import("react").ClassAttributes<HTMLParagraphElement> & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
7
|
-
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
|
|
7
|
+
variant?: "small" | "caption" | "em" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "label" | "p" | "span" | "strong" | undefined;
|
|
8
8
|
color?: import("../..").GlobalColorsProps | (string & {}) | undefined;
|
|
9
9
|
fontSize?: number | "display" | "tiny" | "xxxs" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl" | "giant" | undefined;
|
|
10
10
|
fontWeight?: "400" | "700" | "100" | "200" | "300" | "500" | "600" | "800" | "900" | "bold" | "normal" | undefined;
|
|
@@ -14,6 +14,7 @@ export declare const StyledText: import("@emotion/styled").StyledComponent<{
|
|
|
14
14
|
textTransform?: "none" | "capitalize" | "lowercase" | "uppercase" | undefined;
|
|
15
15
|
textDecoration?: "none" | "underline" | "line-through" | undefined;
|
|
16
16
|
letterSpacing?: string | number | undefined;
|
|
17
|
+
htmlFor?: string | undefined;
|
|
17
18
|
children?: import("react").ReactNode;
|
|
18
19
|
} & {
|
|
19
20
|
textColor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAI1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;eAGN,MAAM;qHAsBtB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { GlobalColorsProps, defaultTheme } from './../../shared/theme';
|
|
3
3
|
export declare type TypographyProps = DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> & {
|
|
4
|
-
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
4
|
+
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'label' | 'caption' | 'small' | 'strong' | 'em';
|
|
5
5
|
color?: GlobalColorsProps | (string & {});
|
|
6
6
|
fontSize?: keyof typeof defaultTheme.fontSizes | number;
|
|
7
7
|
fontWeight?: keyof typeof defaultTheme.fontWeight;
|
|
@@ -11,6 +11,7 @@ export declare type TypographyProps = DetailedHTMLProps<HTMLAttributes<HTMLParag
|
|
|
11
11
|
textTransform?: 'uppercase' | 'lowercase' | 'capitalize' | 'none';
|
|
12
12
|
textDecoration?: 'underline' | 'line-through' | 'none';
|
|
13
13
|
letterSpacing?: string | number;
|
|
14
|
+
htmlFor?: string;
|
|
14
15
|
children?: ReactNode;
|
|
15
16
|
};
|
|
16
17
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvE,oBAAY,eAAe,GAAG,iBAAiB,CAC7C,cAAc,CAAC,oBAAoB,CAAC,EACpC,oBAAoB,CACrB,GAAG;IACF,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEvE,oBAAY,eAAe,GAAG,iBAAiB,CAC7C,cAAc,CAAC,oBAAoB,CAAC,EACpC,oBAAoB,CACrB,GAAG;IACF,OAAO,CAAC,EACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,GAAG,GACH,MA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