flipper-ui 0.34.6 → 0.34.8
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/core/data-display/advertise/advertise.stories.d.ts +5 -4
- package/core/data-display/advertise/styles.d.ts +1 -1
- package/core/data-display/advertise/styles.js +2 -2
- package/core/data-display/chapter/chapter.stories.d.ts +5 -5
- package/core/data-display/chapter/styles.js +2 -2
- package/core/data-display/chip/chip.stories.d.ts +5 -9
- package/core/data-display/chip/index.js +7 -14
- package/core/data-display/data-table/data-table-field.js +2 -2
- package/core/data-display/data-table/data-table-query-paginated.stories.d.ts +2 -2
- package/core/data-display/data-table/data-table.js +6 -4
- package/core/data-display/data-table/data-table.stories.d.ts +2 -2
- package/core/data-display/fab/fab.stories.d.ts +5 -4
- package/core/data-display/fab/index.d.ts +1 -1
- package/core/data-display/fab/index.js +8 -13
- package/core/data-display/line/index.js +2 -2
- package/core/data-display/list/index.d.ts +1 -1
- package/core/data-display/list/index.js +9 -22
- package/core/data-display/list/list.stories.d.ts +5 -6
- package/core/data-display/list-item/index.js +28 -35
- package/core/data-display/table/index.js +2 -2
- package/core/data-display/table/table-footer.js +2 -2
- package/core/data-display/table/table-pagination.js +3 -3
- package/core/data-display/table/table-row.js +2 -2
- package/core/data-display/table/table.stories.d.ts +5 -4
- package/core/data-display/typography/typography.stories.d.ts +5 -21
- package/core/feedback/dialog/index.js +6 -13
- package/core/feedback/progress/index.d.ts +1 -9
- package/core/feedback/progress/index.js +9 -38
- package/core/feedback/progress/progress.stories.d.ts +6 -13
- package/core/feedback/skeleton/index.js +4 -4
- package/core/feedback/skeleton/skeleton.stories.d.ts +5 -6
- package/core/feedback/snackbar/index.js +13 -12
- package/core/feedback/snackbar/snackbar.stories.d.ts +5 -7
- package/core/feedback/snackbar/styles.d.ts +2 -0
- package/core/feedback/snackbar/styles.js +12 -0
- package/core/feedback/tooltip/styles.d.ts +1 -0
- package/core/feedback/tooltip/styles.js +11 -0
- package/core/feedback/tooltip/tooltip.stories.d.ts +5 -7
- package/core/feedback/validation-dialog/styles.d.ts +1 -1
- package/core/inputs/autocomplete/autocomplete.stories.d.ts +1 -1
- package/core/inputs/button/button.stories.d.ts +5 -18
- package/core/inputs/checkbox/checkbox.stories.d.ts +5 -10
- package/core/inputs/chip-field/chip-field.stories.d.ts +5 -10
- package/core/inputs/date-time/index.js +10 -8
- package/core/inputs/icon-button/icon-button.stories.d.ts +5 -7
- package/core/inputs/input-adornment/input-adornment.stories.d.ts +5 -5
- package/core/inputs/mask-field/mask-field.stories.d.ts +5 -6
- package/core/inputs/pin-input/index.js +15 -13
- package/core/inputs/radio/radio.stories.d.ts +5 -7
- package/core/inputs/radio-group/radio-group.stories.d.ts +5 -5
- package/core/inputs/select/select.stories.d.ts +5 -6
- package/core/inputs/slider/index.js +15 -22
- package/core/inputs/slider/slider.stories.d.ts +6 -10
- package/core/inputs/text-field/index.js +19 -27
- package/core/inputs/text-field/styles.js +2 -2
- package/core/inputs/text-field/text-field.stories.d.ts +0 -1
- package/core/navigation/breadcrumbs/styles.d.ts +1 -1
- package/core/navigation/menu/menu.stories.d.ts +5 -4
- package/core/navigation/sidebar/index.d.ts +1 -3
- package/core/navigation/sidebar/index.js +5 -21
- package/core/navigation/sidebar/styles.js +2 -2
- package/core/navigation/stepper/index.js +3 -3
- package/core/navigation/stepper/stepper.stories.d.ts +6 -5
- package/core/navigation/tabs/tabs.stories.d.ts +5 -4
- package/core/surfaces/box/box.stories.d.ts +5 -4
- package/core/surfaces/card/styles.d.ts +1 -1
- package/core/surfaces/expansion-panel/expansion-panel.stories.d.ts +5 -6
- package/core/surfaces/header/header.stories.d.ts +5 -6
- package/core/surfaces/header/styles.d.ts +1 -0
- package/core/surfaces/header/styles.js +11 -0
- package/core/surfaces/panel/styles.d.ts +1 -1
- package/core/surfaces/step-card/step-card-details.js +3 -3
- package/core/surfaces/step-card/step-card-panel.js +7 -8
- package/core/surfaces/step-card/step-card.stories.d.ts +7 -6
- package/package.json +34 -37
- package/test/mocks/chip-field-mock.d.ts +8 -0
- package/test/mocks/chip-field-mock.js +26 -0
- package/test/util.js +1 -1
- package/theme/colors.d.ts +50 -45
- package/theme/colors.js +274 -120
- package/theme/index.d.ts +0 -1
- package/theme/index.js +0 -12
- package/theme/theme.d.ts +50 -61
- package/theme/theme.js +6 -18
- package/theme/presets.d.ts +0 -31
- package/theme/presets.js +0 -41
|
@@ -8,7 +8,6 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _makeStyles2 = _interopRequireDefault(require("@mui/styles/makeStyles"));
|
|
12
11
|
var _react = _interopRequireDefault(require("react"));
|
|
13
12
|
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
14
13
|
var _DialogActions = _interopRequireDefault(require("@mui/material/DialogActions"));
|
|
@@ -19,11 +18,6 @@ var _styles = require("./styles");
|
|
|
19
18
|
var _excluded = ["snippet", "style", "padding", "margin", "scroll", "PaperProps", "open", "fullScreen", "fullWidth", "maxWidth", "onClose", "titleAction", "titleWrapperStyle", "titleStyle", "titleActionStyle", "contentStyle", "contentTextStyle", "actionsStyle", "actions", "content", "text", "title", "snippetStyle", "snippetContentStyle", "aria-title"];
|
|
20
19
|
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; }
|
|
21
20
|
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; }
|
|
22
|
-
var useStyles = (0, _makeStyles2["default"])({
|
|
23
|
-
root: {
|
|
24
|
-
overflowY: 'unset'
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
21
|
var Dialog = function Dialog(_ref) {
|
|
28
22
|
var snippet = _ref.snippet,
|
|
29
23
|
style = _ref.style,
|
|
@@ -51,7 +45,6 @@ var Dialog = function Dialog(_ref) {
|
|
|
51
45
|
snippetContentStyle = _ref.snippetContentStyle,
|
|
52
46
|
ariaTitle = _ref['aria-title'],
|
|
53
47
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
54
|
-
var classes = useStyles();
|
|
55
48
|
var renderTitle = function renderTitle(title) {
|
|
56
49
|
return titleAction ? /*#__PURE__*/_react["default"].createElement(_styles.TitleWrapper, {
|
|
57
50
|
style: titleWrapperStyle
|
|
@@ -103,13 +96,13 @@ var Dialog = function Dialog(_ref) {
|
|
|
103
96
|
padding: padding,
|
|
104
97
|
margin: margin
|
|
105
98
|
}, style),
|
|
106
|
-
PaperProps: _objectSpread(_objectSpread({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
classes: {
|
|
110
|
-
root: classes.root
|
|
99
|
+
PaperProps: _objectSpread(_objectSpread({
|
|
100
|
+
sx: {
|
|
101
|
+
overflowY: 'unset'
|
|
111
102
|
}
|
|
112
|
-
},
|
|
103
|
+
}, ariaTitle ? {
|
|
104
|
+
title: ariaTitle
|
|
105
|
+
} : {}), PaperProps),
|
|
113
106
|
onClose: onClose
|
|
114
107
|
}), snippet ? renderSnippet() : renderPaperContent());
|
|
115
108
|
};
|
|
@@ -2,15 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import type { DefaultProps } from '../../types';
|
|
3
3
|
export interface ILinear {
|
|
4
4
|
color?: 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'inherit';
|
|
5
|
-
classes?: {
|
|
6
|
-
root?: string;
|
|
7
|
-
colorPrimary?: string;
|
|
8
|
-
barColorPrimary?: string;
|
|
9
|
-
barColorSecondary?: string;
|
|
10
|
-
};
|
|
11
5
|
variant?: 'buffer' | 'determinate' | 'indeterminate' | 'query';
|
|
12
6
|
valueBuffer?: number;
|
|
13
|
-
rootColor?: string;
|
|
14
7
|
primaryColor?: string;
|
|
15
8
|
barPrimaryColor?: string;
|
|
16
9
|
barSecondaryColor?: string;
|
|
@@ -25,10 +18,9 @@ export interface ProgressProps extends DefaultProps {
|
|
|
25
18
|
linear?: boolean;
|
|
26
19
|
}
|
|
27
20
|
export interface IColors {
|
|
28
|
-
rootColor?: string;
|
|
29
21
|
primaryColor?: string;
|
|
30
22
|
barPrimaryColor?: string;
|
|
31
23
|
barSecondaryColor?: string;
|
|
32
24
|
}
|
|
33
|
-
declare const Progress: ({ linear, style, margin, padding,
|
|
25
|
+
declare const Progress: ({ linear, style, margin, padding, primaryColor, barPrimaryColor, barSecondaryColor, ...otherProps }: ProgressProps & ICircular & ILinear) => React.JSX.Element;
|
|
34
26
|
export default Progress;
|
|
@@ -8,64 +8,35 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
var _makeStyles2 = _interopRequireDefault(require("@mui/styles/makeStyles"));
|
|
12
11
|
var _react = _interopRequireDefault(require("react"));
|
|
13
12
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
14
13
|
var _LinearProgress = _interopRequireDefault(require("@mui/material/LinearProgress"));
|
|
15
|
-
var _excluded = ["linear", "style", "margin", "padding", "
|
|
14
|
+
var _excluded = ["linear", "style", "margin", "padding", "primaryColor", "barPrimaryColor", "barSecondaryColor"];
|
|
16
15
|
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; }
|
|
17
16
|
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; }
|
|
18
|
-
var useStyles = (0, _makeStyles2["default"])(function () {
|
|
19
|
-
return {
|
|
20
|
-
root: function root(props) {
|
|
21
|
-
return {
|
|
22
|
-
backgroundColor: props.rootColor
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
colorPrimary: function colorPrimary(props) {
|
|
26
|
-
return {
|
|
27
|
-
backgroundColor: props.primaryColor
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
barColorPrimary: function barColorPrimary(props) {
|
|
31
|
-
return {
|
|
32
|
-
backgroundColor: props.barPrimaryColor
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
barColorSecondary: function barColorSecondary(props) {
|
|
36
|
-
return {
|
|
37
|
-
backgroundColor: props.barSecondaryColor
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
17
|
var Progress = function Progress(_ref) {
|
|
43
18
|
var linear = _ref.linear,
|
|
44
19
|
_ref$style = _ref.style,
|
|
45
20
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
46
21
|
margin = _ref.margin,
|
|
47
22
|
padding = _ref.padding,
|
|
48
|
-
rootColor = _ref.rootColor,
|
|
49
23
|
primaryColor = _ref.primaryColor,
|
|
50
24
|
barPrimaryColor = _ref.barPrimaryColor,
|
|
51
25
|
barSecondaryColor = _ref.barSecondaryColor,
|
|
52
26
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
53
|
-
var classes = useStyles({
|
|
54
|
-
rootColor: rootColor,
|
|
55
|
-
primaryColor: primaryColor,
|
|
56
|
-
barPrimaryColor: barPrimaryColor,
|
|
57
|
-
barSecondaryColor: barSecondaryColor
|
|
58
|
-
});
|
|
59
27
|
return linear ? /*#__PURE__*/_react["default"].createElement(_LinearProgress["default"], (0, _extends2["default"])({
|
|
60
28
|
style: _objectSpread({
|
|
61
29
|
margin: margin,
|
|
62
30
|
padding: padding
|
|
63
31
|
}, style),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
32
|
+
sx: {
|
|
33
|
+
backgroundColor: primaryColor,
|
|
34
|
+
'.MuiLinearProgress-barColorPrimary': {
|
|
35
|
+
backgroundColor: barPrimaryColor
|
|
36
|
+
},
|
|
37
|
+
'.MuiLinearProgress-barColorSecondary': {
|
|
38
|
+
backgroundColor: barSecondaryColor
|
|
39
|
+
}
|
|
69
40
|
}
|
|
70
41
|
}, otherProps)) : /*#__PURE__*/_react["default"].createElement(_CircularProgress["default"], (0, _extends2["default"])({
|
|
71
42
|
style: _objectSpread({
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import Progress from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const Inherit: any;
|
|
9
|
-
export declare const Linear: any;
|
|
10
|
-
export declare const LinearSecondary: any;
|
|
11
|
-
export declare const LinearBuffer: any;
|
|
12
|
-
export declare const LinearQuery: any;
|
|
13
|
-
export declare const LinearQuerySecondary: any;
|
|
14
|
-
export declare const LinearWithCustom: any;
|
|
3
|
+
declare const meta: Meta<typeof Progress>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Progress>;
|
|
6
|
+
export declare const progress: Story;
|
|
7
|
+
export declare const progressCustom: Story;
|
|
@@ -8,14 +8,14 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
|
|
11
|
-
require("react-loading-skeleton/dist/skeleton.css");
|
|
12
11
|
var _theme = require("../../../theme");
|
|
13
|
-
|
|
12
|
+
require("react-loading-skeleton/dist/skeleton.css");
|
|
13
|
+
var gray = _theme.theme.colors.gray;
|
|
14
14
|
var Skeleton = function Skeleton(props) {
|
|
15
15
|
return /*#__PURE__*/_react["default"].createElement(_reactLoadingSkeleton["default"], (0, _extends2["default"])({
|
|
16
16
|
containerTestId: "skeleton-container",
|
|
17
|
-
baseColor:
|
|
18
|
-
highlightColor:
|
|
17
|
+
baseColor: gray[200],
|
|
18
|
+
highlightColor: gray[300]
|
|
19
19
|
}, props));
|
|
20
20
|
};
|
|
21
21
|
var _default = exports["default"] = Skeleton;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import Skeleton from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const Circle: any;
|
|
3
|
+
declare const meta: Meta<typeof Skeleton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Skeleton>;
|
|
6
|
+
export declare const skeleton: Story;
|
|
@@ -14,28 +14,34 @@ var _CheckCircle2 = _interopRequireDefault(require("@mui/icons-material/CheckCir
|
|
|
14
14
|
var _Info2 = _interopRequireDefault(require("@mui/icons-material/Info"));
|
|
15
15
|
var _Error2 = _interopRequireDefault(require("@mui/icons-material/Error"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var _colors = require("@mui/material/colors");
|
|
18
17
|
var _Snackbar = _interopRequireDefault(require("@mui/material/Snackbar"));
|
|
19
18
|
var _SnackbarContent = _interopRequireDefault(require("@mui/material/SnackbarContent"));
|
|
20
19
|
var _iconButton = _interopRequireDefault(require("../../inputs/icon-button"));
|
|
20
|
+
var _styles = require("./styles");
|
|
21
|
+
var _theme = require("../../../theme");
|
|
21
22
|
var _excluded = ["id", "action", "anchorOrigin", "autoHide", "icon", "message", "onClose", "open", "padding", "margin", "style", "variant", "className", "TransitionComponent", "TransitionProps", "onClick"];
|
|
22
23
|
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; }
|
|
23
24
|
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; }
|
|
25
|
+
var _theme$colors = _theme.theme.colors,
|
|
26
|
+
blue = _theme$colors.blue,
|
|
27
|
+
green = _theme$colors.green,
|
|
28
|
+
orange = _theme$colors.orange,
|
|
29
|
+
red = _theme$colors.red;
|
|
24
30
|
var variants = {
|
|
25
31
|
error: {
|
|
26
|
-
color:
|
|
32
|
+
color: red[500],
|
|
27
33
|
icon: _Error2["default"]
|
|
28
34
|
},
|
|
29
35
|
info: {
|
|
30
|
-
color:
|
|
36
|
+
color: blue[600],
|
|
31
37
|
icon: _Info2["default"]
|
|
32
38
|
},
|
|
33
39
|
success: {
|
|
34
|
-
color:
|
|
40
|
+
color: green[400],
|
|
35
41
|
icon: _CheckCircle2["default"]
|
|
36
42
|
},
|
|
37
43
|
warning: {
|
|
38
|
-
color:
|
|
44
|
+
color: orange[600],
|
|
39
45
|
icon: _Warning2["default"]
|
|
40
46
|
}
|
|
41
47
|
};
|
|
@@ -93,13 +99,8 @@ var SnackBar = function SnackBar(props) {
|
|
|
93
99
|
flexWrap: 'nowrap',
|
|
94
100
|
cursor: cursor
|
|
95
101
|
},
|
|
96
|
-
message: /*#__PURE__*/_react["default"].createElement(
|
|
97
|
-
id: "client-snackbar"
|
|
98
|
-
style: {
|
|
99
|
-
alignItems: 'center',
|
|
100
|
-
display: 'flex',
|
|
101
|
-
gap: '12px'
|
|
102
|
-
}
|
|
102
|
+
message: /*#__PURE__*/_react["default"].createElement(_styles.Message, {
|
|
103
|
+
id: "client-snackbar"
|
|
103
104
|
}, icon || /*#__PURE__*/_react["default"].createElement(Icon, {
|
|
104
105
|
style: {
|
|
105
106
|
opacity: 0.9
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import Snackbar from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const Warning: any;
|
|
8
|
-
export declare const Error: any;
|
|
3
|
+
declare const meta: Meta<typeof Snackbar>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Snackbar>;
|
|
6
|
+
export declare const snackbar: Story;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const Message: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
2
|
+
export declare const StoriesWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.StoriesWrapper = exports.Message = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = require("styled-components");
|
|
10
|
+
var _templateObject, _templateObject2;
|
|
11
|
+
var Message = exports.Message = _styledComponents.styled.span(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n gap: 12px;\n"])));
|
|
12
|
+
var StoriesWrapper = exports.StoriesWrapper = _styledComponents.styled.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n height: 150px;\n"])));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StoriesWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.StoriesWrapper = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = require("styled-components");
|
|
10
|
+
var _templateObject;
|
|
11
|
+
var StoriesWrapper = exports.StoriesWrapper = _styledComponents.styled.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n justify-content: center;\n"])));
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import Tooltip from '.';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const Disabled: any;
|
|
3
|
+
declare const meta: Meta<typeof Tooltip>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Tooltip>;
|
|
6
|
+
export declare const tooltip: Story;
|
|
@@ -2,6 +2,6 @@ export declare const MuiDialog: import("styled-components/dist/types").IStyledCo
|
|
|
2
2
|
export declare const DialogTypography: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
4
4
|
}, "color" | "children" | "padding" | "margin" | "style" | "className" | "classes" | "sx" | "p" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "overflow" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
|
5
|
-
component?:
|
|
5
|
+
component?: React.ElementType;
|
|
6
6
|
} & import("../../types").DefaultProps, never>> & string & Omit<({ children, margin, padding, style, variant, ...otherProps }: import("@mui/material").TypographyProps & import("../../types").DefaultProps) => import("react").JSX.Element, keyof import("react").Component<any, {}, any>>;
|
|
7
7
|
export declare const ValidationWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -3,4 +3,4 @@ import type { Meta } from '@storybook/react';
|
|
|
3
3
|
import { Autocomplete } from '.';
|
|
4
4
|
declare const _default: Meta<typeof Autocomplete>;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const AutocompleteLab: () => React.JSX.Element;
|
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import Button from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const Secondary: any;
|
|
8
|
-
export declare const ContainedPrimary: any;
|
|
9
|
-
export declare const ContainedSecondary: any;
|
|
10
|
-
export declare const OutlinedPrimary: any;
|
|
11
|
-
export declare const OutlinedSecondary: any;
|
|
12
|
-
export declare const Selected: any;
|
|
13
|
-
export declare const DashedPrimary: any;
|
|
14
|
-
export declare const DashedSecondary: any;
|
|
15
|
-
export declare const AddIcon: any;
|
|
16
|
-
export declare const Small: any;
|
|
17
|
-
export declare const Medium: any;
|
|
18
|
-
export declare const Large: any;
|
|
19
|
-
export declare const Disabled: any;
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Button>;
|
|
6
|
+
export declare const button: Story;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import Checkbox from '.';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const Primary: any;
|
|
9
|
-
export declare const WithoutLabel: any;
|
|
10
|
-
export declare const Switch: any;
|
|
11
|
-
export declare const SwitchWithHelper: any;
|
|
3
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Checkbox>;
|
|
6
|
+
export declare const checkbox: Story;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { SyntheticEvent } from 'react';
|
|
3
|
-
import type { AutocompleteChangeReason } from '../autocomplete';
|
|
4
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
2
|
import ChipField from '.';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const
|
|
10
|
-
export default _default;
|
|
11
|
-
export declare const MultipleField: ({ onChange }: IMultiple) => React.JSX.Element;
|
|
3
|
+
declare const meta: Meta<typeof ChipField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ChipField>;
|
|
6
|
+
export declare const chipField: Story;
|
|
@@ -24,7 +24,9 @@ var _excluded = ["id", "padding", "margin", "style", "value", "onChange", "error
|
|
|
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; }
|
|
27
|
-
var
|
|
27
|
+
var _theme$colors = _theme.theme.colors,
|
|
28
|
+
neutral = _theme$colors.neutral,
|
|
29
|
+
primary = _theme$colors.primary;
|
|
28
30
|
var formatter = function formatter(weekday) {
|
|
29
31
|
return (0, _format["default"])(weekday, 'eee', {
|
|
30
32
|
locale: _ptBR["default"]
|
|
@@ -37,10 +39,10 @@ var CustomDatePickerToolbar = function CustomDatePickerToolbar(props) {
|
|
|
37
39
|
borderRadius: '4px 4px 0 0',
|
|
38
40
|
padding: '16px',
|
|
39
41
|
'.MuiTypography-root': {
|
|
40
|
-
color: "".concat(
|
|
42
|
+
color: "".concat(neutral[50], "90")
|
|
41
43
|
},
|
|
42
44
|
'.MuiDatePickerToolbar-title': {
|
|
43
|
-
color:
|
|
45
|
+
color: neutral[50]
|
|
44
46
|
}
|
|
45
47
|
}
|
|
46
48
|
}));
|
|
@@ -52,13 +54,13 @@ var CustomTimePickerToolbar = function CustomTimePickerToolbar(props) {
|
|
|
52
54
|
borderRadius: '4px 4px 0 0',
|
|
53
55
|
padding: '16px',
|
|
54
56
|
'.MuiTypography-root': {
|
|
55
|
-
color: "".concat(
|
|
57
|
+
color: "".concat(neutral[50], "90")
|
|
56
58
|
},
|
|
57
59
|
'.MuiPickersToolbarText-root': {
|
|
58
|
-
color:
|
|
60
|
+
color: neutral[50]
|
|
59
61
|
},
|
|
60
62
|
'.MuiPickersToolbarText-root.Mui-selected': {
|
|
61
|
-
color: "".concat(
|
|
63
|
+
color: "".concat(neutral[50], "90")
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
66
|
}));
|
|
@@ -73,11 +75,11 @@ var CustomDateTimePickerToolbar = function CustomDateTimePickerToolbar(props) {
|
|
|
73
75
|
display: 'none'
|
|
74
76
|
},
|
|
75
77
|
'.MuiPickersToolbarText-root': {
|
|
76
|
-
color:
|
|
78
|
+
color: neutral[50],
|
|
77
79
|
display: 'block'
|
|
78
80
|
},
|
|
79
81
|
'.MuiPickersToolbarText-root.Mui-selected': {
|
|
80
|
-
color: "".concat(
|
|
82
|
+
color: "".concat(neutral[50], "90"),
|
|
81
83
|
display: 'block'
|
|
82
84
|
}
|
|
83
85
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import IconButton from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const Secondary: any;
|
|
8
|
-
export declare const Disabled: any;
|
|
3
|
+
declare const meta: Meta<typeof IconButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof IconButton>;
|
|
6
|
+
export declare const iconButton: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import InputAdornment from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
3
|
+
declare const meta: Meta<typeof InputAdornment>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof InputAdornment>;
|
|
6
|
+
export declare const inputAdornment: Story;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import MaskField from '.';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
3
|
+
declare const meta: Meta<typeof MaskField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MaskField>;
|
|
6
|
+
export declare const maskField: Story;
|
|
@@ -99,34 +99,36 @@ var PinInput = function PinInput(_ref) {
|
|
|
99
99
|
}, function (_, index) {
|
|
100
100
|
return /*#__PURE__*/_react["default"].createElement(_TextField["default"], {
|
|
101
101
|
key: index,
|
|
102
|
-
className: "pin-input-field",
|
|
103
102
|
color: "primary",
|
|
104
|
-
variant: variant || 'outlined',
|
|
105
|
-
value: pin[index] === 0 ? 0 : pin[index] || '',
|
|
106
103
|
disabled: isValidating,
|
|
107
104
|
error: validationResult,
|
|
105
|
+
className: "pin-input-field",
|
|
106
|
+
variant: variant || 'outlined',
|
|
107
|
+
value: pin[index] === 0 ? 0 : pin[index] || '',
|
|
108
108
|
style: _objectSpread({
|
|
109
109
|
width: size === 'small' ? '40px' : '40px',
|
|
110
110
|
height: size === 'small' ? '30px' : '40px',
|
|
111
111
|
marginInline: size === 'small' ? '5px' : '10px'
|
|
112
112
|
}, styleProps),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
113
|
+
slotProps: {
|
|
114
|
+
input: {
|
|
115
|
+
role: 'pin-input-field',
|
|
116
|
+
style: _objectSpread({
|
|
117
|
+
fontWeight: 'bold',
|
|
118
|
+
textAlign: 'center',
|
|
119
|
+
width: size === 'small' ? '40px' : '45px',
|
|
120
|
+
fontSize: size === 'small' ? '16px' : '20px',
|
|
121
|
+
padding: 'auto'
|
|
122
|
+
}, inputProps)
|
|
123
|
+
}
|
|
122
124
|
},
|
|
123
125
|
inputRef: function inputRef(el) {
|
|
124
126
|
inputRefs.current[index] = el;
|
|
125
127
|
},
|
|
128
|
+
onPaste: onPaste,
|
|
126
129
|
onKeyDown: function onKeyDown(event) {
|
|
127
130
|
return _onKeyDown(event, index);
|
|
128
131
|
},
|
|
129
|
-
onPaste: onPaste,
|
|
130
132
|
onChange: function onChange(event) {
|
|
131
133
|
_onChange(event, index);
|
|
132
134
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import Radio from '.';
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const Secondary: any;
|
|
8
|
-
export declare const PrimaryChecked: any;
|
|
3
|
+
declare const meta: Meta<typeof Radio>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Radio>;
|
|
6
|
+
export declare const radio: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import RadioGroup from '.';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
3
|
+
declare const meta: Meta<typeof RadioGroup>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof RadioGroup>;
|
|
6
|
+
export declare const radioGroup: Story;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Meta } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import Select from '.';
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
3
|
+
declare const meta: Meta<typeof Select>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Select>;
|
|
6
|
+
export declare const select: Story;
|