flipper-ui 0.34.5 → 0.34.7

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.
Files changed (39) hide show
  1. package/core/data-display/advertise/styles.d.ts +2 -2
  2. package/core/data-display/advertise/styles.js +2 -2
  3. package/core/data-display/chapter/styles.js +2 -2
  4. package/core/data-display/line/index.js +2 -2
  5. package/core/data-display/list/index.js +2 -2
  6. package/core/data-display/table/index.js +2 -2
  7. package/core/data-display/table/table-footer.js +2 -2
  8. package/core/data-display/table/table-pagination.js +3 -3
  9. package/core/data-display/table/table-row.js +2 -2
  10. package/core/feedback/nothing-found/styles.d.ts +1 -1
  11. package/core/feedback/skeleton/index.js +4 -4
  12. package/core/feedback/snackbar/index.js +10 -5
  13. package/core/feedback/validation-dialog/styles.d.ts +2 -2
  14. package/core/inputs/chip-field/chip-field.spec.d.ts +1 -0
  15. package/core/inputs/chip-field/chip-field.stories.d.ts +11 -0
  16. package/core/inputs/chip-field/index.d.ts +16 -0
  17. package/core/inputs/chip-field/index.js +61 -0
  18. package/core/inputs/date-time/index.js +10 -8
  19. package/core/inputs/slider/index.js +10 -6
  20. package/core/inputs/text-field/styles.js +2 -2
  21. package/core/navigation/breadcrumbs/styles.d.ts +2 -2
  22. package/core/navigation/sidebar/index.js +2 -2
  23. package/core/navigation/sidebar/styles.js +2 -2
  24. package/core/surfaces/card/styles.d.ts +2 -2
  25. package/core/surfaces/panel/styles.d.ts +2 -2
  26. package/core/surfaces/step-card/step-card-details.js +3 -3
  27. package/core/surfaces/step-card/step-card-panel.js +6 -6
  28. package/index.d.ts +1 -0
  29. package/index.js +8 -0
  30. package/package.json +32 -35
  31. package/test/util.js +1 -1
  32. package/theme/colors.d.ts +50 -45
  33. package/theme/colors.js +274 -120
  34. package/theme/index.d.ts +0 -1
  35. package/theme/index.js +0 -12
  36. package/theme/theme.d.ts +50 -61
  37. package/theme/theme.js +6 -18
  38. package/theme/presets.d.ts +0 -31
  39. package/theme/presets.js +0 -41
@@ -17,7 +17,7 @@ var _styles = require("./styles");
17
17
  var _theme = require("../../../theme");
18
18
  var _theme$colors = _theme.theme.colors,
19
19
  feedback = _theme$colors.feedback,
20
- grays = _theme$colors.grays;
20
+ gray = _theme$colors.gray;
21
21
  var StepCardPanel = exports.StepCardPanel = function StepCardPanel(props) {
22
22
  var title = props.title,
23
23
  summary = props.summary,
@@ -45,19 +45,19 @@ var StepCardPanel = exports.StepCardPanel = function StepCardPanel(props) {
45
45
  "data-testid": "step-card-title-icon",
46
46
  style: {
47
47
  fontSize: 40,
48
- color: percentage === 100 ? feedback.success : grays.g3
48
+ color: percentage === 100 ? feedback.success : gray[600]
49
49
  }
50
50
  }), /*#__PURE__*/_react["default"].createElement(_styles.TitleContainer, null, /*#__PURE__*/_react["default"].createElement(_typography["default"], (0, _extends2["default"])({
51
51
  variant: "h6",
52
52
  style: {
53
- color: grays.g1,
53
+ color: gray[800],
54
54
  fontSize: 24,
55
55
  textAlign: 'center'
56
56
  }
57
57
  }, titleProps), title), subTitle && /*#__PURE__*/_react["default"].createElement(_typography["default"], (0, _extends2["default"])({
58
58
  variant: "h6",
59
59
  style: {
60
- color: grays.g3,
60
+ color: gray[600],
61
61
  textAlign: 'center'
62
62
  }
63
63
  }, titleProps), subTitle))), /*#__PURE__*/_react["default"].createElement(_styles.StepCardColumn, {
@@ -85,7 +85,7 @@ var StepCardPanel = exports.StepCardPanel = function StepCardPanel(props) {
85
85
  width: '100%',
86
86
  height: '16px',
87
87
  borderRadius: 10,
88
- backgroundColor: grays.g5
88
+ backgroundColor: gray[400]
89
89
  }
90
90
  }, summaryLinearProgressBarProps))))), showBottomPercentage && /*#__PURE__*/_react["default"].createElement(_styles.StepCardRow, {
91
91
  fullWidth: fullWidth,
@@ -97,7 +97,7 @@ var StepCardPanel = exports.StepCardPanel = function StepCardPanel(props) {
97
97
  style: {
98
98
  height: '16px',
99
99
  width: '100%',
100
- backgroundColor: grays.g5
100
+ backgroundColor: gray[400]
101
101
  }
102
102
  }, linearProgressBarProps))));
103
103
  };
package/index.d.ts CHANGED
@@ -37,6 +37,7 @@ export { default as ValidationDialog } from './core/feedback/validation-dialog/'
37
37
  export { default as AddButton } from './core/inputs/add-button';
38
38
  export { default as Button } from './core/inputs/button';
39
39
  export { default as Checkbox } from './core/inputs/checkbox';
40
+ export { default as ChipField } from './core/inputs/chip-field';
40
41
  export { default as DateTime } from './core/inputs/date-time';
41
42
  export { default as IconButton } from './core/inputs/icon-button';
42
43
  export { default as InputAdornment } from './core/inputs/input-adornment';
package/index.js CHANGED
@@ -41,6 +41,7 @@ var _exportNames = {
41
41
  AddButton: true,
42
42
  Button: true,
43
43
  Checkbox: true,
44
+ ChipField: true,
44
45
  DateTime: true,
45
46
  IconButton: true,
46
47
  InputAdornment: true,
@@ -139,6 +140,12 @@ Object.defineProperty(exports, "Chip", {
139
140
  return _chip["default"];
140
141
  }
141
142
  });
143
+ Object.defineProperty(exports, "ChipField", {
144
+ enumerable: true,
145
+ get: function get() {
146
+ return _chipField["default"];
147
+ }
148
+ });
142
149
  Object.defineProperty(exports, "Collapse", {
143
150
  enumerable: true,
144
151
  get: function get() {
@@ -505,6 +512,7 @@ var _validationDialog = _interopRequireDefault(require("./core/feedback/validati
505
512
  var _addButton = _interopRequireDefault(require("./core/inputs/add-button"));
506
513
  var _button = _interopRequireDefault(require("./core/inputs/button"));
507
514
  var _checkbox = _interopRequireDefault(require("./core/inputs/checkbox"));
515
+ var _chipField = _interopRequireDefault(require("./core/inputs/chip-field"));
508
516
  var _dateTime = _interopRequireDefault(require("./core/inputs/date-time"));
509
517
  var _iconButton = _interopRequireDefault(require("./core/inputs/icon-button"));
510
518
  var _inputAdornment = _interopRequireDefault(require("./core/inputs/input-adornment"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flipper-ui",
3
- "version": "0.34.5",
3
+ "version": "0.34.7",
4
4
  "description": "React UI based on the @mui/material toolkit for the web",
5
5
  "main": "dist/index.js",
6
6
  "author": "NG",
@@ -10,9 +10,6 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/nginformatica/flipper-ui.git"
12
12
  },
13
- "resolutions": {
14
- "wrap-ansi": "7.0.0"
15
- },
16
13
  "scripts": {
17
14
  "start": "storybook dev -p 6006",
18
15
  "build": "yarn clean && yarn build:ts && yarn build:babel",
@@ -33,52 +30,52 @@
33
30
  "test": "jest --verbose --silent --passWithNoTests --noStackTrace --runInBand --updateSnapshot"
34
31
  },
35
32
  "dependencies": {
36
- "@emotion/react": "11.13.0",
33
+ "@emotion/react": "11.13.3",
37
34
  "@emotion/styled": "11.13.0",
38
- "@mui/icons-material": "5.16.6",
39
- "@mui/material": "5.16.6",
40
- "@mui/styles": "5.16.6",
41
- "@mui/x-date-pickers": "7.12.0",
35
+ "@mui/icons-material": "6.1.2",
36
+ "@mui/material": "6.1.2",
37
+ "@mui/styles": "6.1.2",
38
+ "@mui/system": "6.1.2",
39
+ "@mui/x-date-pickers": "7.18.0",
42
40
  "date-fns": "2.30.0",
43
41
  "ramda": "0.30.1",
44
- "react-loading-skeleton": "3.4.0",
45
- "react-number-format": "5.4.0",
42
+ "react-loading-skeleton": "3.5.0",
43
+ "react-number-format": "5.4.2",
46
44
  "sprintf-js": "1.1.3",
47
45
  "uuid": "10.0.0"
48
46
  },
49
47
  "devDependencies": {
50
- "@babel/cli": "7.24.8",
51
- "@babel/core": "7.25.2",
52
- "@babel/plugin-transform-runtime": "7.24.7",
53
- "@babel/preset-env": "7.25.3",
54
- "@babel/preset-typescript": "7.24.7",
55
- "@faker-js/faker": "8.4.1",
48
+ "@babel/cli": "7.25.7",
49
+ "@babel/core": "7.25.7",
50
+ "@babel/plugin-transform-runtime": "7.25.7",
51
+ "@babel/preset-env": "7.25.7",
52
+ "@babel/preset-typescript": "7.25.7",
53
+ "@faker-js/faker": "9.0.3",
56
54
  "@storybook/addon-essentials": "7.6.17",
57
- "@storybook/addon-styling-webpack": "1.0.0",
58
55
  "@storybook/react": "7.6.17",
59
56
  "@storybook/react-webpack5": "7.6.17",
60
- "@stylistic/eslint-plugin": "2.6.1",
57
+ "@stylistic/eslint-plugin": "2.8.0",
61
58
  "@testing-library/dom": "10.4.0",
62
- "@testing-library/jest-dom": "6.4.8",
63
- "@testing-library/react": "16.0.0",
59
+ "@testing-library/jest-dom": "6.5.0",
60
+ "@testing-library/react": "16.0.1",
64
61
  "@testing-library/user-event": "14.5.2",
65
- "@types/jest": "29.5.12",
66
- "@types/node": "22.1.0",
67
- "@types/ramda": "0.30.1",
68
- "@types/react": "18.3.3",
62
+ "@types/jest": "29.5.13",
63
+ "@types/node": "22.7.4",
64
+ "@types/ramda": "0.30.2",
65
+ "@types/react": "18.3.11",
69
66
  "@types/sprintf-js": "1.1.4",
70
67
  "@types/uuid": "10.0.0",
71
- "@typescript-eslint/eslint-plugin": "8.0.0",
72
- "@typescript-eslint/parser": "8.0.0",
73
- "babel-loader": "9.1.3",
68
+ "@typescript-eslint/eslint-plugin": "8.8.0",
69
+ "@typescript-eslint/parser": "8.8.0",
70
+ "babel-loader": "9.2.1",
74
71
  "babel-plugin-import": "1.13.8",
75
72
  "babel-plugin-module-resolver": "5.0.2",
76
73
  "eslint": "8.57.0",
77
74
  "eslint-config-prettier": "9.1.0",
78
- "eslint-import-resolver-typescript": "3.6.1",
79
- "eslint-plugin-import": "2.29.1",
75
+ "eslint-import-resolver-typescript": "3.6.3",
76
+ "eslint-plugin-import": "2.31.0",
80
77
  "eslint-plugin-prettier": "5.2.1",
81
- "eslint-plugin-react": "7.35.0",
78
+ "eslint-plugin-react": "7.37.1",
82
79
  "eslint-plugin-react-hooks": "4.6.2",
83
80
  "fs-extra": "11.2.0",
84
81
  "identity-obj-proxy": "3.0.0",
@@ -88,11 +85,11 @@
88
85
  "react": "18.3.1",
89
86
  "react-dom": "18.3.1",
90
87
  "storybook": "7.6.17",
91
- "styled-components": "6.1.12",
92
- "ts-jest": "29.2.4",
88
+ "styled-components": "6.1.13",
89
+ "ts-jest": "29.2.5",
93
90
  "ts-loader": "9.5.1",
94
- "typescript": "5.5.4",
95
- "webpack": "5.93.0"
91
+ "typescript": "5.6.2",
92
+ "webpack": "5.95.0"
96
93
  },
97
94
  "peerDependencies": {
98
95
  "react": "^17.0.0 || ^18.0.0",
package/test/util.js CHANGED
@@ -50,7 +50,7 @@ function drag(_x) {
50
50
  return _drag.apply(this, arguments);
51
51
  }
52
52
  function _drag() {
53
- _drag = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(element) {
53
+ _drag = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(element) {
54
54
  var _ref,
55
55
  inTo,
56
56
  delta,
package/theme/colors.d.ts CHANGED
@@ -1,60 +1,65 @@
1
- import type { Priority, Feedback, Criticality, Graphically } from './presets';
2
1
  declare const _default: {
2
+ red: Record<number, string>;
3
+ pink: Record<number, string>;
4
+ lightPink: Record<number, string>;
5
+ purple: Record<number, string>;
6
+ indigo: Record<number, string>;
7
+ darkBlue: Record<number, string>;
8
+ blue: Record<number, string>;
9
+ lightBlue: Record<number, string>;
10
+ lightTeal: Record<number, string>;
11
+ teal: Record<number, string>;
12
+ green: Record<number, string>;
13
+ lightGreen: Record<number, string>;
14
+ amber: Record<number, string>;
15
+ orange: Record<number, string>;
16
+ deepOrange: Record<number, string>;
17
+ brown: Record<number, string>;
18
+ lightBrown: Record<number, string>;
19
+ gray: Record<number, string>;
20
+ neutral: Record<number, string>;
21
+ action: {
22
+ cancel: string;
23
+ confirm: string;
24
+ };
3
25
  primary: {
26
+ light: string;
4
27
  main: string;
5
28
  dark: string;
6
- light: string;
7
- contrast: string;
8
29
  };
9
30
  secondary: {
31
+ light: string;
10
32
  main: string;
11
33
  dark: string;
12
- light: string;
13
- contrast: string;
14
34
  };
15
- app: {
16
- border: string;
17
- background: {
18
- main: string;
19
- lighter: string;
35
+ criticality: {
36
+ low: string;
37
+ medium: string;
38
+ high: string;
39
+ };
40
+ priority: {
41
+ main: {
42
+ neutral: string;
43
+ minimal: string;
44
+ low: string;
45
+ medium: string;
46
+ high: string;
47
+ critical: string;
20
48
  };
21
- text: {
22
- main: string;
23
- light: string;
24
- disabled: string;
49
+ light: {
50
+ neutral: string;
51
+ minimal: string;
52
+ low: string;
53
+ medium: string;
54
+ high: string;
55
+ critical: string;
25
56
  };
26
57
  };
27
- priority: Record<Priority, {
28
- main: string;
29
- light: string;
30
- }>;
31
- feedback: Record<Feedback, string>;
32
- graphic: Record<Graphically, {
33
- main: string;
34
- light: string;
35
- }>;
36
- criticality: Record<Criticality, string>;
37
- neutral: {
38
- black: string;
39
- white: string;
40
- transparent: string;
41
- };
42
- grays: {
43
- g0: string;
44
- g1: string;
45
- g2: string;
46
- g3: string;
47
- g4: string;
48
- g5: string;
49
- g6: string;
50
- g7: string;
51
- g8: string;
52
- g9: string;
53
- };
54
- action: {
55
- confirm: string;
56
- cancel: string;
57
- neutral: string;
58
+ feedback: {
59
+ danger: string;
60
+ warning: string;
61
+ success: string;
62
+ info: string;
58
63
  };
59
64
  };
60
65
  export default _default;