flipper-ui 0.34.0 → 0.34.2
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.
|
@@ -67,11 +67,12 @@ var Dialog = function Dialog(_ref) {
|
|
|
67
67
|
};
|
|
68
68
|
var renderContent = function renderContent(content) {
|
|
69
69
|
return /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
70
|
-
classes: {
|
|
71
|
-
root: classes.root
|
|
72
|
-
},
|
|
73
70
|
style: contentStyle
|
|
74
|
-
},
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
style: {
|
|
73
|
+
padding: '8px 0px 0px'
|
|
74
|
+
}
|
|
75
|
+
}, content));
|
|
75
76
|
};
|
|
76
77
|
var renderText = function renderText(text) {
|
|
77
78
|
var content = /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], {
|
|
@@ -90,9 +91,9 @@ var Dialog = function Dialog(_ref) {
|
|
|
90
91
|
var renderSnippet = function renderSnippet() {
|
|
91
92
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_styles.Snippet, {
|
|
92
93
|
style: snippetStyle
|
|
93
|
-
}, /*#__PURE__*/_react["default"].createElement(_styles.SnippetContent, {
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement(_styles.PaperContent, null, renderPaperContent()), /*#__PURE__*/_react["default"].createElement(_styles.SnippetContent, {
|
|
94
95
|
style: snippetContentStyle
|
|
95
|
-
}, snippet))
|
|
96
|
+
}, snippet)));
|
|
96
97
|
};
|
|
97
98
|
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], (0, _extends2["default"])({}, otherProps, {
|
|
98
99
|
open: open,
|
|
@@ -11,5 +11,5 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
11
11
|
var PaperContent = exports.PaperContent = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])([""])));
|
|
12
12
|
var TitleWrapper = exports.TitleWrapper = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n"])));
|
|
13
13
|
var TitleAction = exports.TitleAction = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n padding: 16px 24px;\n align-items: center;\n display: flex;\n"])));
|
|
14
|
-
var Snippet = exports.Snippet = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: flex-end;\n
|
|
14
|
+
var Snippet = exports.Snippet = _styledComponents["default"].div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: flex-end;\n"])));
|
|
15
15
|
var SnippetContent = exports.SnippetContent = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n height: inherit;\n display: flex;\n"])));
|
|
@@ -12,5 +12,5 @@ export interface IProps {
|
|
|
12
12
|
fullWidth?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export type TDateTime = DatePickerProps<Date> & TimePickerProps<Date> & DateTimePickerProps<Date> & IProps & DefaultProps;
|
|
15
|
-
declare const DateTime: ({ padding, margin, style, value, onChange, error, minDate, minDateTime, maxDate, maxDateTime, required, disabled, placeholder, fullWidth, type, ...otherProps }: TDateTime) => React.JSX.Element;
|
|
15
|
+
declare const DateTime: ({ id, padding, margin, style, value, onChange, error, minDate, minDateTime, maxDate, maxDateTime, required, disabled, placeholder, fullWidth, type, ...otherProps }: TDateTime) => React.JSX.Element;
|
|
16
16
|
export default DateTime;
|
|
@@ -20,7 +20,7 @@ var _format = _interopRequireDefault(require("date-fns/format"));
|
|
|
20
20
|
var _ptBR = _interopRequireDefault(require("date-fns/locale/pt-BR"));
|
|
21
21
|
var _styles = require("./styles");
|
|
22
22
|
var _theme = require("../../../theme");
|
|
23
|
-
var _excluded = ["padding", "margin", "style", "value", "onChange", "error", "minDate", "minDateTime", "maxDate", "maxDateTime", "required", "disabled", "placeholder", "fullWidth", "type"];
|
|
23
|
+
var _excluded = ["id", "padding", "margin", "style", "value", "onChange", "error", "minDate", "minDateTime", "maxDate", "maxDateTime", "required", "disabled", "placeholder", "fullWidth", "type"];
|
|
24
24
|
/* eslint-disable import/no-duplicates */
|
|
25
25
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
26
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -137,7 +137,8 @@ var CustomStaticDateTimePicker = function CustomStaticDateTimePicker(props) {
|
|
|
137
137
|
}));
|
|
138
138
|
};
|
|
139
139
|
var DateTime = function DateTime(_ref) {
|
|
140
|
-
var
|
|
140
|
+
var id = _ref.id,
|
|
141
|
+
padding = _ref.padding,
|
|
141
142
|
margin = _ref.margin,
|
|
142
143
|
style = _ref.style,
|
|
143
144
|
value = _ref.value,
|
|
@@ -183,6 +184,7 @@ var DateTime = function DateTime(_ref) {
|
|
|
183
184
|
},
|
|
184
185
|
slotProps: {
|
|
185
186
|
textField: {
|
|
187
|
+
id: id,
|
|
186
188
|
size: 'small',
|
|
187
189
|
error: error,
|
|
188
190
|
required: required,
|
|
@@ -229,6 +231,7 @@ var DateTime = function DateTime(_ref) {
|
|
|
229
231
|
},
|
|
230
232
|
slotProps: {
|
|
231
233
|
textField: {
|
|
234
|
+
id: id,
|
|
232
235
|
size: 'small',
|
|
233
236
|
error: error,
|
|
234
237
|
required: required,
|
|
@@ -281,6 +284,7 @@ var DateTime = function DateTime(_ref) {
|
|
|
281
284
|
},
|
|
282
285
|
slotProps: {
|
|
283
286
|
textField: {
|
|
287
|
+
id: id,
|
|
284
288
|
size: 'small',
|
|
285
289
|
error: error,
|
|
286
290
|
required: required,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flipper-ui",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.2",
|
|
4
4
|
"description": "React UI based on the @mui/material toolkit for the web",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "NG",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"publish:yalc": "cd dist/ && yalc publish && cd ..",
|
|
31
31
|
"release": "yarn build && node pre-publish.js && npm publish ./dist --access public",
|
|
32
32
|
"test:ci": "yarn test --coverage",
|
|
33
|
-
"test": "jest --verbose --silent --passWithNoTests --noStackTrace --runInBand"
|
|
33
|
+
"test": "jest --verbose --silent --passWithNoTests --noStackTrace --runInBand --updateSnapshot"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@emotion/react": "11.11.4",
|
|
37
37
|
"@emotion/styled": "11.11.5",
|
|
38
|
-
"@mui/icons-material": "5.
|
|
39
|
-
"@mui/material": "5.
|
|
40
|
-
"@mui/styles": "5.
|
|
41
|
-
"@mui/x-date-pickers": "7.
|
|
38
|
+
"@mui/icons-material": "5.16.0",
|
|
39
|
+
"@mui/material": "5.16.0",
|
|
40
|
+
"@mui/styles": "5.16.0",
|
|
41
|
+
"@mui/x-date-pickers": "7.10.0",
|
|
42
42
|
"date-fns": "2.30.0",
|
|
43
43
|
"ramda": "0.25.0",
|
|
44
44
|
"react-loading-skeleton": "3.4.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"uuid": "10.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@babel/cli": "7.24.
|
|
51
|
-
"@babel/core": "7.24.
|
|
50
|
+
"@babel/cli": "7.24.8",
|
|
51
|
+
"@babel/core": "7.24.8",
|
|
52
52
|
"@babel/plugin-transform-runtime": "7.24.7",
|
|
53
|
-
"@babel/preset-env": "7.24.
|
|
53
|
+
"@babel/preset-env": "7.24.8",
|
|
54
54
|
"@babel/preset-typescript": "7.24.7",
|
|
55
55
|
"@faker-js/faker": "8.4.1",
|
|
56
56
|
"@storybook/addon-essentials": "7.6.17",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
"@storybook/react": "7.6.17",
|
|
59
59
|
"@storybook/react-webpack5": "7.6.17",
|
|
60
60
|
"@stylistic/eslint-plugin": "2.3.0",
|
|
61
|
-
"@testing-library/dom": "10.3.
|
|
61
|
+
"@testing-library/dom": "10.3.1",
|
|
62
62
|
"@testing-library/jest-dom": "6.4.6",
|
|
63
63
|
"@testing-library/react": "16.0.0",
|
|
64
64
|
"@testing-library/user-event": "14.5.2",
|
|
65
65
|
"@types/jest": "29.5.12",
|
|
66
|
-
"@types/node": "20.14.
|
|
66
|
+
"@types/node": "20.14.10",
|
|
67
67
|
"@types/ramda": "0.25.36",
|
|
68
68
|
"@types/react": "18.3.3",
|
|
69
69
|
"@types/sprintf-js": "1.1.4",
|
|
70
70
|
"@types/uuid": "10.0.0",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
72
|
-
"@typescript-eslint/parser": "7.
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "7.16.0",
|
|
72
|
+
"@typescript-eslint/parser": "7.16.0",
|
|
73
73
|
"babel-loader": "9.1.3",
|
|
74
74
|
"babel-plugin-import": "1.13.8",
|
|
75
75
|
"babel-plugin-module-resolver": "5.0.2",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"react-dom": "18.3.1",
|
|
90
90
|
"storybook": "7.6.17",
|
|
91
91
|
"styled-components": "6.1.11",
|
|
92
|
-
"ts-jest": "29.
|
|
92
|
+
"ts-jest": "29.2.2",
|
|
93
93
|
"ts-loader": "9.5.1",
|
|
94
94
|
"typescript": "5.5.3",
|
|
95
95
|
"webpack": "5.92.1"
|