@pedidopago/ui 1.2.5 → 1.3.0
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/Card/card.test.tsx.d.ts +2 -0
- package/dist/components/Card/card.test.tsx.d.ts.map +1 -0
- package/dist/components/Card/card.test.tsx.js +41 -0
- package/dist/components/Card/index.d.ts +2 -2
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Card/index.js +25 -69
- package/dist/components/Card/styles.d.ts +2 -52
- package/dist/components/Card/styles.d.ts.map +1 -1
- package/dist/components/Card/styles.js +7 -80
- package/dist/components/Card/types.d.ts +12 -37
- package/dist/components/Card/types.d.ts.map +1 -1
- package/dist/components/DateInput/styles.d.ts +1 -1
- package/dist/components/Flex/styles.d.ts +1 -0
- package/dist/components/Flex/styles.d.ts.map +1 -1
- package/dist/components/Grid/styles.d.ts +1 -0
- package/dist/components/Grid/styles.d.ts.map +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +15 -1
- package/dist/components/Modal/index.d.ts +2 -2
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.js +43 -20
- package/dist/components/Modal/styles.d.ts +15 -2
- package/dist/components/Modal/styles.d.ts.map +1 -1
- package/dist/components/Modal/styles.js +25 -7
- package/dist/components/Modal/types.d.ts +6 -5
- package/dist/components/Modal/types.d.ts.map +1 -1
- package/dist/components/MultipleSelect/components/SelectArea/Label.js +1 -1
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +52 -28
- package/dist/components/Select/styles.d.ts +13 -0
- package/dist/components/Select/styles.d.ts.map +1 -1
- package/dist/components/Select/styles.js +22 -4
- package/dist/components/Select/types.d.ts +2 -0
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Spinner/styles.d.ts +1 -0
- package/dist/components/Spinner/styles.d.ts.map +1 -1
- package/dist/components/Table/styles.d.ts.map +1 -1
- package/dist/components/Table/styles.js +56 -8
- package/dist/components/Tag/styles.d.ts +3 -0
- package/dist/components/Tag/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/index.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +10 -26
- package/dist/components/Tooltip/styles.d.ts.map +1 -1
- package/dist/components/Tooltip/styles.js +13 -20
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts.map +1 -1
- package/dist/components/Tooltip/util.d.ts +0 -4
- package/dist/components/Tooltip/util.d.ts.map +1 -1
- package/dist/components/Tooltip/util.js +1 -87
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -1
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -21
- package/dist/shared/hooks/useDisableBodyScroll.js +2 -2
- package/dist/shared/hooks/useWindowSize.d.ts +5 -0
- package/dist/shared/hooks/useWindowSize.d.ts.map +1 -0
- package/dist/shared/hooks/useWindowSize.js +46 -0
- package/dist/shared/theme/hooks/useTheme.d.ts +1 -0
- package/dist/shared/theme/hooks/useTheme.d.ts.map +1 -1
- package/dist/shared/theme/theme.d.ts +1 -0
- package/dist/shared/theme/theme.d.ts.map +1 -1
- package/dist/shared/theme/theme.js +1 -0
- package/dist/utils/getColorValue.d.ts +1 -9
- package/dist/utils/getColorValue.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Theme } from '@emotion/react';
|
|
3
|
-
|
|
3
|
+
interface ModalContainerProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
maxWidth?: string;
|
|
6
|
+
maxHeight?: string;
|
|
7
|
+
anchorTranslate: string;
|
|
8
|
+
left: string;
|
|
9
|
+
top: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ModalContainer: import("@emotion/styled").StyledComponent<{
|
|
12
|
+
theme?: Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & ModalContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
|
+
export declare const ModalElement: import("@emotion/styled").StyledComponent<{
|
|
4
16
|
theme?: Theme | undefined;
|
|
5
17
|
as?: import("react").ElementType<any> | undefined;
|
|
6
18
|
} & {
|
|
19
|
+
open: boolean;
|
|
7
20
|
maxHeight?: string | undefined;
|
|
8
|
-
maxWidth?: string | undefined;
|
|
9
21
|
hideScrollBar?: boolean | undefined;
|
|
10
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
23
|
export declare const Overlay: import("@emotion/styled").StyledComponent<{
|
|
12
24
|
theme?: Theme | undefined;
|
|
13
25
|
as?: import("react").ElementType<any> | undefined;
|
|
14
26
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
+
export {};
|
|
15
28
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/styles.ts"],"names":[],"mappings":";AACA,OAAO,EAAO,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,UAAU,mBAAmB;IAC3B,IAAI,EAAE,OAAO,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,eAAe,EAAE,MAAM,CAAC;IAExB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,cAAc;;;+HAqBzB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;UACjB,OAAO;;;yGA6Cb,CAAC;AAEH,eAAO,MAAM,OAAO;;;yGAelB,CAAC"}
|
|
@@ -3,28 +3,46 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.Overlay = exports.
|
|
6
|
+
exports.Overlay = exports.ModalElement = exports.ModalContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
9
9
|
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
|
|
12
|
-
var _templateObject, _templateObject2;
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
13
|
+
|
|
14
|
+
var _excluded = ["theme"],
|
|
15
|
+
_excluded2 = ["theme"];
|
|
13
16
|
|
|
14
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
18
|
|
|
16
19
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
20
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
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; }
|
|
22
|
+
|
|
23
|
+
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; }
|
|
24
|
+
|
|
25
|
+
var ModalContainer = _styled.default.div(function (_ref) {
|
|
26
|
+
var theme = _ref.theme,
|
|
27
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
28
|
+
|
|
29
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n\n padding-bottom: 16px;\n\n width: 100%;\n max-width: ", ";\n max-height: ", ";\n\n position: fixed;\n left: ", ";\n top: ", ";\n transform: ", ";\n\n opacity: ", ";\n\n pointer-events: ", ";\n\n transition: opacity ease ", ";\n "])), props.maxWidth, props.maxHeight, props.left, props.top, props.anchorTranslate, props.open ? 1 : 0, props.open ? 'auto' : 'none', theme.transition.speed);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
exports.ModalContainer = ModalContainer;
|
|
33
|
+
|
|
34
|
+
var ModalElement = _styled.default.div(function (_ref2) {
|
|
35
|
+
var theme = _ref2.theme,
|
|
36
|
+
props = _objectWithoutProperties(_ref2, _excluded2);
|
|
37
|
+
|
|
38
|
+
return (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n max-height: ", ";\n\n border-radius: ", ";\n\n z-index: ", ";\n overflow-y: auto;\n overflow-x: hidden;\n\n transform: scale(", ");\n\n background: ", ";\n box-shadow: ", ";\n\n transition: transform ease ", ";\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n border-radius: ", ";\n background: ", ";\n }\n\n ", "\n "])), props.maxHeight, theme.borderRadius.default, theme.zIndex.level24, props.open ? 1 : 0.8, theme.colors.background.light, theme.shadow.level1, theme.transition.speed, theme.borderRadius.default, theme.colors.primary.default, props.hideScrollBar && (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ::-webkit-scrollbar {\n display: none;\n }\n\n scrollbar-width: none;\n\n -ms-overflow-style: none;\n "]))));
|
|
21
39
|
});
|
|
22
40
|
|
|
23
|
-
exports.
|
|
41
|
+
exports.ModalElement = ModalElement;
|
|
24
42
|
|
|
25
43
|
var Overlay = _styled.default.div(function (props) {
|
|
26
44
|
var theme = props.theme;
|
|
27
|
-
return (0, _react.css)(
|
|
45
|
+
return (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: fixed;\n left: 0px;\n right: 0px;\n top: 0px;\n bottom: 0px;\n\n background: ", ";\n opacity: 0;\n\n transition: opacity ease ", ";\n "])), theme.colors.neutral.neutral5, theme.transition.speed);
|
|
28
46
|
});
|
|
29
47
|
|
|
30
48
|
exports.Overlay = Overlay;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export declare type AnchorX = 'left' | 'center' | 'right' | number;
|
|
3
3
|
export declare type AnchorY = 'top' | 'center' | 'bottom' | number;
|
|
4
|
-
export interface
|
|
4
|
+
export interface ModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/** If the modal is open or not. */
|
|
6
6
|
open: boolean;
|
|
7
7
|
/** Optional. Sets the left position where the modal will be shown. */
|
|
@@ -21,15 +21,16 @@ export interface IModalProps {
|
|
|
21
21
|
/** Optional. Offsets the Modal vertically. */
|
|
22
22
|
offsetY?: string;
|
|
23
23
|
/** The max width of the Modal. */
|
|
24
|
-
maxWidth?: string;
|
|
24
|
+
maxWidth?: string | number;
|
|
25
25
|
/** The max height of the Modal. */
|
|
26
|
-
maxHeight?: string;
|
|
26
|
+
maxHeight?: string | number;
|
|
27
27
|
/** Handler called once the Modal is triggered to close. */
|
|
28
28
|
onClose: () => void;
|
|
29
29
|
/** Optional. Will hide the scroll bar if the content inside a container is too big. */
|
|
30
30
|
hideScrollBar?: boolean;
|
|
31
31
|
/** Indicates if the overlay will be visible or not. */
|
|
32
32
|
hideOverlay?: boolean;
|
|
33
|
-
|
|
33
|
+
/** Optional. Will disable the scroll body scroll. */
|
|
34
|
+
disableScrollOnOpen?: boolean;
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAC3D,oBAAY,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,mCAAmC;IACnC,IAAI,EAAE,OAAO,CAAC;IAEd,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;qCAEiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;qCAEiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,kCAAkC;IAClC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE3B,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE5B,2DAA2D;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,uFAAuF;IACvF,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,qDAAqD;IACrD,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B"}
|
|
@@ -26,7 +26,7 @@ var Label = _styled.default.label(_templateObject || (_templateObject = _taggedT
|
|
|
26
26
|
return theme.fontWeight['500'];
|
|
27
27
|
}, function (_ref3) {
|
|
28
28
|
var theme = _ref3.theme;
|
|
29
|
-
return theme.fontSizes.
|
|
29
|
+
return theme.fontSizes.xxs;
|
|
30
30
|
}, function (_ref4) {
|
|
31
31
|
var animate = _ref4.animate,
|
|
32
32
|
theme = _ref4.theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAKpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,mBAAmB,EAKpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQtC,QAAA,MAAM,MAAM,kJA8HX,CAAC;AAGF,eAAe,MAAM,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
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); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -9,26 +7,20 @@ exports.default = void 0;
|
|
|
9
7
|
|
|
10
8
|
var _react = require("react");
|
|
11
9
|
|
|
12
|
-
var
|
|
10
|
+
var _styles = require("./styles");
|
|
13
11
|
|
|
14
12
|
var _Typography = _interopRequireDefault(require("../Typography"));
|
|
15
13
|
|
|
16
14
|
var _Icon = _interopRequireDefault(require("../Icon"));
|
|
17
15
|
|
|
18
|
-
var _Modal = require("../Modal");
|
|
19
|
-
|
|
20
16
|
var _List = _interopRequireDefault(require("../List"));
|
|
21
17
|
|
|
22
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
19
|
|
|
24
|
-
var _excluded = ["label", "options", "alert", "helperText"];
|
|
20
|
+
var _excluded = ["label", "placeholder", "options", "alert", "helperText", "width"];
|
|
25
21
|
|
|
26
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
23
|
|
|
28
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
-
|
|
30
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
|
-
|
|
32
24
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
25
|
|
|
34
26
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -55,9 +47,12 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
55
47
|
var _containerRef$current, _containerRef$current2, _containerRef$current3, _containerRef$current4;
|
|
56
48
|
|
|
57
49
|
var label = _ref.label,
|
|
50
|
+
_ref$placeholder = _ref.placeholder,
|
|
51
|
+
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
|
58
52
|
options = _ref.options,
|
|
59
53
|
alert = _ref.alert,
|
|
60
54
|
helperText = _ref.helperText,
|
|
55
|
+
width = _ref.width,
|
|
61
56
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
62
57
|
|
|
63
58
|
var containerRef = (0, _react.useRef)(null);
|
|
@@ -72,6 +67,11 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
72
67
|
selectedOption = _useState4[0],
|
|
73
68
|
setSelectedOption = _useState4[1];
|
|
74
69
|
|
|
70
|
+
var _useState5 = (0, _react.useState)(false),
|
|
71
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
72
|
+
filled = _useState6[0],
|
|
73
|
+
setFilled = _useState6[1];
|
|
74
|
+
|
|
75
75
|
var inputRef = (0, _react.useRef)(null);
|
|
76
76
|
(0, _react.useImperativeHandle)(ref, function () {
|
|
77
77
|
return inputRef.current;
|
|
@@ -82,7 +82,7 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
82
82
|
var _nativeInputValueSett;
|
|
83
83
|
|
|
84
84
|
var nativeInputValueSetter = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value');
|
|
85
|
-
nativeInputValueSetter === null || nativeInputValueSetter === void 0 ? void 0 : (_nativeInputValueSett = nativeInputValueSetter.set) === null || _nativeInputValueSett === void 0 ? void 0 : _nativeInputValueSett.call(inputRef.current, options[option].value);
|
|
85
|
+
nativeInputValueSetter === null || nativeInputValueSetter === void 0 ? void 0 : (_nativeInputValueSett = nativeInputValueSetter.set) === null || _nativeInputValueSett === void 0 ? void 0 : _nativeInputValueSett.call(inputRef.current, option === undefined ? '' : options[option].value);
|
|
86
86
|
var event = new Event('input', {
|
|
87
87
|
bubbles: true
|
|
88
88
|
});
|
|
@@ -103,27 +103,37 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
103
103
|
}
|
|
104
104
|
}, []);
|
|
105
105
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
106
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
107
|
-
|
|
106
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.SelectContainer, {
|
|
107
|
+
filled: filled || !!placeholder,
|
|
108
108
|
alert: alert,
|
|
109
109
|
disabled: !!rest.disabled,
|
|
110
|
+
width: width,
|
|
110
111
|
tabIndex: rest.disabled ? -1 : 0,
|
|
111
112
|
onFocus: function onFocus() {
|
|
112
113
|
if (!rest.disabled) setOptionsMenuOpen(true);
|
|
113
114
|
},
|
|
115
|
+
className: rest.className,
|
|
116
|
+
style: rest.style,
|
|
114
117
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
118
|
+
ref: containerRef,
|
|
115
119
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
|
|
116
|
-
children:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
children: label
|
|
121
|
+
}), selectedOption === undefined ?
|
|
122
|
+
/*#__PURE__*/
|
|
123
|
+
// Value label
|
|
124
|
+
(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
125
|
+
fontSize: "xs",
|
|
126
|
+
fontWeight: "500",
|
|
127
|
+
color: "neutral.neutral3",
|
|
128
|
+
children: placeholder || ''
|
|
129
|
+
}) :
|
|
130
|
+
/*#__PURE__*/
|
|
131
|
+
// Placeholder label
|
|
132
|
+
(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
123
133
|
fontSize: "xs",
|
|
124
134
|
fontWeight: "500",
|
|
125
135
|
color: "inherit",
|
|
126
|
-
children:
|
|
136
|
+
children: options[selectedOption].label
|
|
127
137
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
128
138
|
name: "chevron-down"
|
|
129
139
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("fieldset", {
|
|
@@ -146,24 +156,38 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
146
156
|
}), !!helperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
147
157
|
fontSize: "xxs",
|
|
148
158
|
children: helperText
|
|
149
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread({
|
|
159
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread(_objectSpread({
|
|
150
160
|
ref: inputRef,
|
|
151
161
|
tabIndex: -1
|
|
152
|
-
}, rest)
|
|
153
|
-
|
|
162
|
+
}, rest), {}, {
|
|
163
|
+
onChange: function onChange(e) {
|
|
164
|
+
var _rest$onChange;
|
|
165
|
+
|
|
166
|
+
setFilled(!!e.currentTarget.value);
|
|
167
|
+
(_rest$onChange = rest.onChange) === null || _rest$onChange === void 0 ? void 0 : _rest$onChange.call(rest, e);
|
|
168
|
+
}
|
|
169
|
+
}))]
|
|
170
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.OptionsModal, {
|
|
154
171
|
open: optionsMenuOpen,
|
|
155
172
|
left: "".concat((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.getBoundingClientRect().left, "px"),
|
|
156
|
-
top: "".concat((_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.getBoundingClientRect().top, "px"),
|
|
173
|
+
top: "".concat((((_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.getBoundingClientRect().top) || 0) + 10, "px"),
|
|
157
174
|
anchorX: "left",
|
|
158
175
|
anchorY: "top",
|
|
159
176
|
offsetY: "".concat((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.getBoundingClientRect().height, "px"),
|
|
160
177
|
maxWidth: "".concat((_containerRef$current4 = containerRef.current) === null || _containerRef$current4 === void 0 ? void 0 : _containerRef$current4.getBoundingClientRect().width, "px"),
|
|
161
178
|
hideOverlay: true,
|
|
179
|
+
disableScrollOnOpen: false,
|
|
162
180
|
onClose: function onClose() {
|
|
163
181
|
return setOptionsMenuOpen(false);
|
|
164
182
|
},
|
|
165
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
166
|
-
children:
|
|
183
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.OptionsModalList, {
|
|
184
|
+
children: [!!placeholder && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.OptionPlaceholder, {
|
|
185
|
+
item: true,
|
|
186
|
+
onClick: function onClick() {
|
|
187
|
+
return selectOption(undefined);
|
|
188
|
+
},
|
|
189
|
+
children: placeholder
|
|
190
|
+
}), options.map(function (option, i) {
|
|
167
191
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default, {
|
|
168
192
|
item: true,
|
|
169
193
|
onClick: function onClick() {
|
|
@@ -171,7 +195,7 @@ var Select = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
171
195
|
},
|
|
172
196
|
children: option.label
|
|
173
197
|
}, option.value);
|
|
174
|
-
})
|
|
198
|
+
})]
|
|
175
199
|
})
|
|
176
200
|
})]
|
|
177
201
|
});
|
|
@@ -4,4 +4,17 @@ export declare const SelectContainer: import("@emotion/styled").StyledComponent<
|
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
} & SelectContainerProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const OptionsModal: import("@emotion/styled").StyledComponent<import("../Modal/types").ModalProps & {
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export declare const OptionsModalList: import("@emotion/styled").StyledComponent<import("../List/types").ListProps & {
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
} & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export declare const OptionPlaceholder: import("@emotion/styled").StyledComponent<import("../List/types").ListProps & {
|
|
16
|
+
children?: import("react").ReactNode;
|
|
17
|
+
} & {
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
}, {}, {}>;
|
|
7
20
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Select/styles.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,eAAe;;;gIAyL1B,CAAC;AAEH,eAAO,MAAM,YAAY;;UAKvB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;UAI3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;UAI5B,CAAC"}
|
|
@@ -3,20 +3,38 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SelectContainer = void 0;
|
|
6
|
+
exports.SelectContainer = exports.OptionsModalList = exports.OptionsModal = exports.OptionPlaceholder = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _List = _interopRequireDefault(require("../List"));
|
|
13
|
+
|
|
14
|
+
var _Modal = require("../Modal");
|
|
15
|
+
|
|
16
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
13
17
|
|
|
14
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
19
|
|
|
16
20
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
17
21
|
|
|
18
22
|
var SelectContainer = _styled.default.div(function (props) {
|
|
19
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n\n width:
|
|
23
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n outline: none;\n\n width: ", ";\n\n ", "\n\n & > div {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n\n border-radius: ", ";\n padding: 0 20px;\n\n width: 100%;\n height: 56px;\n\n position: relative;\n\n cursor: pointer;\n\n color: ", ";\n\n transition: background-color ease;\n transition-duration: ", ";\n\n ", "\n\n ", "\n\n & > label {\n position: absolute;\n left: 20px;\n top: 50%;\n transform: translateY(-50%);\n\n font-size: 1rem;\n font-weight: 500;\n\n color: ", ";\n\n transition: top ease, left ease, color ease;\n transition-duration: ", ";\n\n ", "\n }\n\n // Chevron Down icon\n & > svg {\n flex-shrink: 0;\n\n transform: rotate(0deg);\n\n color: ", ";\n\n transition: transform ease;\n transition-duration: ", ";\n }\n\n & > fieldset {\n border: 2px solid;\n border-color: ", ";\n border-radius: ", ";\n padding: 0 14px;\n\n position: absolute;\n left: 0px;\n right: 0px;\n top: 0px;\n bottom: 0px;\n\n pointer-events: none;\n\n transition: border-color ease;\n transition-duration: ", ";\n\n &:last-of-type {\n border-radius: calc(", " + 2px);\n padding: 0 16px;\n\n border-color: transparent;\n left: -2px;\n right: -2px;\n top: -2px;\n bottom: -2px;\n }\n\n & > legend {\n display: ", ";\n\n line-height: 2px;\n user-select: none;\n padding: 0 4px;\n\n & > span {\n color: transparent;\n }\n }\n }\n }\n\n // Helper text\n & > p {\n margin: 8px 20px;\n\n ", "\n }\n\n & > input {\n appearance: none;\n border: 0;\n\n width: 0px;\n position: absolute;\n opacity: 0;\n pointer-events: none;\n }\n "])), typeof props.width === 'string' ? props.width : typeof props.width === 'number' ? "".concat(props.width, "px") : '100%', !props.disabled && (0, _react.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n &:hover {\n & > div {\n color: ", ";\n\n & > label {\n color: ", ";\n }\n\n & > fieldset {\n &:first-of-type {\n border-color: ", ";\n }\n }\n }\n }\n\n &:focus {\n & > div {\n color: ", ";\n\n & > svg {\n transform: rotate(180deg);\n }\n\n & > fieldset {\n &:first-of-type {\n border-color: ", ";\n }\n &:last-of-type {\n border-color: ", ";\n }\n }\n }\n }\n "])), props.theme.colors.neutral.black, props.theme.colors.neutral.neutral5, props.alert ? props.theme.colors[props.alert].blurred : props.theme.colors.primary.hover, props.theme.colors.neutral.black, props.alert ? props.theme.colors[props.alert].default : props.theme.colors.primary.hover, props.alert ? props.theme.colors[props.alert].blurred : props.theme.colors.primary.disabled), props.theme.borderRadius.default, props.theme.colors.neutral.neutral5, props.theme.transition.speed, props.alert && (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background: ", "33;\n "])), props.theme.colors[props.alert].blurred), props.disabled && (0, _react.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: ", ";\n cursor: default;\n "])), props.theme.colors.neutral.neutral1), props.theme.colors.neutral.neutral3, props.theme.transition.speed, props.filled && (0, _react.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n left: 20px;\n top: -1px;\n\n font-size: 0.875rem;\n "]))), props.theme.colors.neutral.neutral5, props.theme.transition.speed, props.alert && !props.disabled ? props.theme.colors[props.alert].default : props.theme.colors.neutral.neutral2, props.theme.borderRadius.default, props.theme.transition.speed, props.theme.borderRadius.default, props.filled ? 'block' : 'none', props.disabled && (0, _react.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n color: ", ";\n "])), props.theme.colors.neutral.neutral3));
|
|
20
24
|
});
|
|
21
25
|
|
|
22
|
-
exports.SelectContainer = SelectContainer;
|
|
26
|
+
exports.SelectContainer = SelectContainer;
|
|
27
|
+
var OptionsModal = (0, _styled.default)(_Modal.Modal)(function (_ref) {
|
|
28
|
+
var theme = _ref.theme;
|
|
29
|
+
return (0, _react.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border: 2px solid ", ";\n box-shadow: none;\n "])), theme.colors.neutral.neutral1);
|
|
30
|
+
});
|
|
31
|
+
exports.OptionsModal = OptionsModal;
|
|
32
|
+
var OptionsModalList = (0, _styled.default)(_List.default)(function () {
|
|
33
|
+
return (0, _react.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n border: none;\n "])));
|
|
34
|
+
});
|
|
35
|
+
exports.OptionsModalList = OptionsModalList;
|
|
36
|
+
var OptionPlaceholder = (0, _styled.default)(_List.default)(function (_ref2) {
|
|
37
|
+
var theme = _ref2.theme;
|
|
38
|
+
return (0, _react.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n color: ", ";\n "])), theme.colors.neutral.neutral3);
|
|
39
|
+
});
|
|
40
|
+
exports.OptionPlaceholder = OptionPlaceholder;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GACvB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,CAAC;AAExB,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe,GACvB,SAAS,GACT,OAAO,GACP,SAAS,GACT,aAAa,GACb,UAAU,GACV,mBAAmB,GACnB,mBAAmB,CAAC;AAExB,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yGAwCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Table/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,WAAW;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Table/styles.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,eAAO,MAAM,WAAW;;;uIAsGtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;yGAG1B,CAAC;AAEF,eAAO,MAAM,aAAa;;;0IAoExB,CAAC;AAEH,eAAO,MAAM,eAAe;;;yGAE3B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;0IAiBhC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;yGAsB7B,CAAC;AAEF,eAAO,MAAM,eAAe;;;8HA6B3B,CAAC"}
|
|
@@ -17,7 +17,28 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
17
17
|
|
|
18
18
|
var StyledTable = _styled.default.table(function (props) {
|
|
19
19
|
var theme = props.theme;
|
|
20
|
-
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-spacing: 0px;\n\n & > thead {\n & > tr {\n height: 64px;\n\n & > th {\n border-top: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n padding-left: 16px;\n padding-right: 16px;\n
|
|
20
|
+
return (0, _react.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-spacing: 0px;\n\n & > thead {\n & > tr {\n height: 64px;\n\n & > th {\n background: hsla(156, 13%, 92%, 0.5);\n border-top: 1px solid\n ", ";\n border-bottom: 1px solid\n ", ";\n padding-left: 16px;\n padding-right: 16px;\n text-align: left;\n * {\n color: #587169;\n font-size: ", ";\n }\n\n &:first-of-type {\n border-left: 1px solid\n ", ";\n border-radius: 4px 0px 0px 4px;\n }\n\n &:last-child {\n border-right: 1px solid\n ", ";\n border-radius: 0px 4px 4px 0px;\n }\n }\n }\n }\n\n & > tbody {\n tr {\n height: 64px;\n\n &:not(:last-child) {\n & > td {\n border-bottom: 1px solid\n ", ";\n }\n }\n\n &:hover {\n & > td {\n background: ", ";\n\n &:first-of-type {\n border-radius: 4px 0px 0px 4px;\n }\n\n &:last-child {\n border-radius: 0px 4px 4px 0px;\n }\n }\n }\n\n &:focus {\n outline: 2px solid ", ";\n border-radius: 4px;\n }\n\n &[data-selected='true'] {\n & > td {\n background: ", ";\n }\n }\n\n & > td {\n padding-left: 16px;\n padding-right: 16px;\n\n text-align: left;\n\n color: ", ";\n }\n }\n }\n "])), {
|
|
21
|
+
dark: theme.colors.neutral.neutral5,
|
|
22
|
+
light: theme.colors.neutral.neutral2
|
|
23
|
+
}[theme.colorMode], {
|
|
24
|
+
dark: theme.colors.neutral.neutral5,
|
|
25
|
+
light: theme.colors.neutral.neutral2
|
|
26
|
+
}[theme.colorMode], theme.fontSizes.xxxs, {
|
|
27
|
+
dark: theme.colors.neutral.neutral5,
|
|
28
|
+
light: theme.colors.neutral.neutral2
|
|
29
|
+
}[theme.colorMode], {
|
|
30
|
+
dark: theme.colors.neutral.neutral5,
|
|
31
|
+
light: theme.colors.neutral.neutral2
|
|
32
|
+
}[theme.colorMode], {
|
|
33
|
+
dark: theme.colors.neutral.neutral5,
|
|
34
|
+
light: theme.colors.neutral.neutral2
|
|
35
|
+
}[theme.colorMode], {
|
|
36
|
+
dark: theme.colors.neutral.neutral6,
|
|
37
|
+
light: theme.colors.neutral.neutral1
|
|
38
|
+
}[theme.colorMode], theme.colors.primary.focus, {
|
|
39
|
+
dark: theme.colors.neutral.neutral6,
|
|
40
|
+
light: theme.colors.neutral.neutral1
|
|
41
|
+
}[theme.colorMode], theme.colors.neutral.neutral5);
|
|
21
42
|
});
|
|
22
43
|
|
|
23
44
|
exports.StyledTable = StyledTable;
|
|
@@ -28,7 +49,22 @@ exports.SelectedHeader = SelectedHeader;
|
|
|
28
49
|
|
|
29
50
|
var ActionsButton = _styled.default.button(function (props) {
|
|
30
51
|
var theme = props.theme;
|
|
31
|
-
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n appearance: none;\n font-family: inherit;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n margin: 0px -2px 0px 0px;\n outline: none;\n border: 2px solid\n ", ";\n padding: 0px 24px;\n\n height: 44px;\n\n white-space: nowrap;\n\n color: ", ";\n background: ", ";\n\n transition: background-color linear ", ";\n\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:first-of-type {\n color: ", ";\n border-radius: 8px 0px 0px 8px;\n }\n\n &:last-of-type {\n border-radius: 0px 8px 8px 0px;\n }\n\n &:only-child {\n border-radius: 8px;\n }\n\n &:hover,\n &:focus {\n z-index: 1;\n\n border-color: ", ";\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])),
|
|
52
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n appearance: none;\n font-family: inherit;\n\n display: flex;\n align-items: center;\n gap: 8px;\n\n margin: 0px -2px 0px 0px;\n outline: none;\n border: 2px solid\n ", ";\n padding: 0px 24px;\n\n height: 44px;\n\n white-space: nowrap;\n\n color: ", ";\n background: ", ";\n\n transition: background-color linear ", ";\n\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n\n &:first-of-type {\n color: ", ";\n border-radius: 8px 0px 0px 8px;\n }\n\n &:last-of-type {\n border-radius: 0px 8px 8px 0px;\n }\n\n &:only-child {\n border-radius: 8px;\n }\n\n &:hover,\n &:focus {\n z-index: 1;\n\n border-color: ", ";\n background: ", ";\n }\n\n &:active {\n background: ", ";\n }\n "])), {
|
|
53
|
+
dark: theme.colors.neutral.neutral4,
|
|
54
|
+
light: theme.colors.neutral.neutral2
|
|
55
|
+
}[theme.colorMode], theme.colors.neutral.neutral5, {
|
|
56
|
+
dark: theme.colors.neutral.black,
|
|
57
|
+
light: theme.colors.neutral.white
|
|
58
|
+
}[theme.colorMode], theme.transition.speed, theme.colors.neutral.black, {
|
|
59
|
+
dark: theme.colors.neutral.neutral4,
|
|
60
|
+
light: theme.colors.neutral.neutral3
|
|
61
|
+
}[theme.colorMode], {
|
|
62
|
+
dark: theme.colors.neutral.neutral5,
|
|
63
|
+
light: theme.colors.neutral.neutral1
|
|
64
|
+
}[theme.colorMode], {
|
|
65
|
+
dark: theme.colors.neutral.neutral4,
|
|
66
|
+
light: theme.colors.neutral.neutral2
|
|
67
|
+
}[theme.colorMode]);
|
|
32
68
|
});
|
|
33
69
|
|
|
34
70
|
exports.ActionsButton = ActionsButton;
|
|
@@ -47,8 +83,12 @@ exports.VerticalPointsButton = VerticalPointsButton;
|
|
|
47
83
|
|
|
48
84
|
var MenuItemContainer = _styled.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n display: ", ";\n position: absolute;\n border-radius: 8px;\n background-color: ", ";\n box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.1);\n right: ", "px;\n top: ", "px;\n padding: 10px;\n\n z-index: ", ";\n"])), function (props) {
|
|
49
85
|
return props.isOpen ? 'block' : 'none';
|
|
50
|
-
}, function (
|
|
51
|
-
|
|
86
|
+
}, function (_ref) {
|
|
87
|
+
var theme = _ref.theme;
|
|
88
|
+
return {
|
|
89
|
+
dark: theme.colors.neutral.neutral6,
|
|
90
|
+
light: theme.colors.neutral.neutral1
|
|
91
|
+
}[theme.colorMode];
|
|
52
92
|
}, function (props) {
|
|
53
93
|
return props.posRight ? props.posRight : 0;
|
|
54
94
|
}, function (props) {
|
|
@@ -59,12 +99,20 @@ var MenuItemContainer = _styled.default.div(_templateObject6 || (_templateObject
|
|
|
59
99
|
|
|
60
100
|
exports.MenuItemContainer = MenuItemContainer;
|
|
61
101
|
|
|
62
|
-
var MenuItemContent = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n border-radius: 8px;\n padding: 10px 35px;\n cursor: pointer;\n user-select: none;\n font-size: 1rem;\n white-space: nowrap;\n\n color: ", ";\n\n transition: background linear ", ";\n\n &:hover {\n background: ", ";\n }\n"])), function (
|
|
63
|
-
|
|
102
|
+
var MenuItemContent = _styled.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n gap: 8px;\n width: 100%;\n border-radius: 8px;\n padding: 10px 35px;\n cursor: pointer;\n user-select: none;\n font-size: 1rem;\n white-space: nowrap;\n\n color: ", ";\n\n transition: background linear ", ";\n\n &:hover {\n background: ", ";\n }\n"])), function (_ref2) {
|
|
103
|
+
var theme = _ref2.theme;
|
|
104
|
+
return {
|
|
105
|
+
dark: theme.colors.neutral.white,
|
|
106
|
+
light: theme.colors.neutral.black
|
|
107
|
+
}[theme.colorMode];
|
|
64
108
|
}, function (props) {
|
|
65
109
|
return props.theme.transition.speed;
|
|
66
|
-
}, function (
|
|
67
|
-
|
|
110
|
+
}, function (_ref3) {
|
|
111
|
+
var theme = _ref3.theme;
|
|
112
|
+
return {
|
|
113
|
+
dark: theme.colors.neutral.neutral4,
|
|
114
|
+
light: theme.colors.neutral.neutral1
|
|
115
|
+
}[theme.colorMode];
|
|
68
116
|
});
|
|
69
117
|
|
|
70
118
|
exports.MenuItemContent = MenuItemContent;
|
|
@@ -8,6 +8,7 @@ export declare const Wrapper: import("@emotion/styled").StyledComponent<{
|
|
|
8
8
|
size?: string | undefined;
|
|
9
9
|
theme?: {
|
|
10
10
|
fontSizes: {
|
|
11
|
+
tiny: string;
|
|
11
12
|
xxxs: string;
|
|
12
13
|
xxs: string;
|
|
13
14
|
xs: string;
|
|
@@ -294,6 +295,7 @@ export declare const Text: import("@emotion/styled").StyledComponent<{
|
|
|
294
295
|
} & {
|
|
295
296
|
theme?: {
|
|
296
297
|
fontSizes: {
|
|
298
|
+
tiny: string;
|
|
297
299
|
xxxs: string;
|
|
298
300
|
xxs: string;
|
|
299
301
|
xs: string;
|
|
@@ -582,6 +584,7 @@ export declare const Close: import("@emotion/styled").StyledComponent<{
|
|
|
582
584
|
} & {
|
|
583
585
|
theme?: {
|
|
584
586
|
fontSizes: {
|
|
587
|
+
tiny: string;
|
|
585
588
|
xxxs: string;
|
|
586
589
|
xxs: string;
|
|
587
590
|
xs: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yGAoBnB,CAAC;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAGN,OAAO;2GASjB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qHA2BjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGtC,QAAA,MAAM,OAAO,EAAE,EAAE,CAAC,WAAW,CAoF5B,CAAC;AAEF,eAAe,OAAO,CAAC"}
|