@movable/ui 1.18.0 → 1.19.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.
@@ -1,2 +1,3 @@
1
1
  export { default as inkDialog, InkDialogPageObject } from './ink-dialog';
2
2
  export { default as inkSelect } from './ink-select';
3
+ export { default as inkSnackbarAlert } from './ink-snackbar-alert';
@@ -0,0 +1,12 @@
1
+ import { InkSnackbarAlertProps } from '../components/InkSnackbar';
2
+ declare class InkSnackbarAlertPageObject {
3
+ get title(): Cypress.Chainable<JQuery<HTMLElement>>;
4
+ get message(): Cypress.Chainable<JQuery<HTMLElement>>;
5
+ get action(): Cypress.Chainable<JQuery<HTMLElement>>;
6
+ actionButton(label: string): Cypress.Chainable<JQuery<HTMLElement>>;
7
+ get actionClose(): Cypress.Chainable<JQuery<HTMLElement>>;
8
+ get snackbarAlerts(): Cypress.Chainable<JQuery<HTMLElement>>;
9
+ snackbarAlertType(type: InkSnackbarAlertProps['severity']): Cypress.Chainable<JQuery<HTMLElement>>;
10
+ }
11
+ declare const _default: InkSnackbarAlertPageObject;
12
+ export default _default;
package/lib/theme.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ import { InkSnackbarAlertProps } from './components/InkSnackbar/InkSnackbarAlert';
2
+ import { AlertProps } from '@mui/material/Alert';
3
+ import { OptionsObject } from 'notistack';
1
4
  declare module '@mui/material/styles' {
2
5
  interface Palette {
3
6
  ai: Palette['primary'];
@@ -240,5 +243,16 @@ declare module '@mui/material/Chip' {
240
243
  inProgress: true;
241
244
  }
242
245
  }
246
+ type InkSnackbarOptions = OptionsObject & {
247
+ alertProps?: AlertProps;
248
+ title?: InkSnackbarAlertProps['title'];
249
+ action?: InkSnackbarAlertProps['action'];
250
+ onClose?: InkSnackbarAlertProps['onClose'];
251
+ };
252
+ declare module 'notistack' {
253
+ interface EnqueueSnackbar {
254
+ (message: string, options?: InkSnackbarOptions): void;
255
+ }
256
+ }
243
257
  declare const theme: import("@mui/material").Theme;
244
258
  export default theme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movable/ui",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "Movable Ink's shared MUI components and MUI theme for our vite applications",
5
5
  "module": "lib/index.mjs",
6
6
  "types": "lib/index.d.ts",
@@ -45,9 +45,9 @@
45
45
  "@emotion/react": "^11.11.1",
46
46
  "@emotion/styled": "^11.11.0",
47
47
  "@movable/prettier-config": "^2.0.0",
48
- "@mui/x-data-grid-premium": "^6.19.5",
49
48
  "@mui/icons-material": "^5.16.7",
50
49
  "@mui/material": "^5.16.7",
50
+ "@mui/x-data-grid-premium": "^6.19.5",
51
51
  "@percy/cli": "^1.28.2",
52
52
  "@percy/cypress": "^3.1.2",
53
53
  "@percy/storybook": "^6.0.0",
@@ -79,6 +79,7 @@
79
79
  "eslint-plugin-storybook": "^0.8.0",
80
80
  "husky": "^8.0.0",
81
81
  "lint-staged": "^13.2.3",
82
+ "notistack": "^3.0.1",
82
83
  "npm-run-all": "^4.1.5",
83
84
  "postcss": "^8.4.27",
84
85
  "prettier": "3.1.1",
@@ -94,9 +95,10 @@
94
95
  "peerDependencies": {
95
96
  "@emotion/react": "^11.11.1",
96
97
  "@emotion/styled": "^11.11.0",
97
- "@mui/x-data-grid-premium": "^6.19.5",
98
98
  "@mui/icons-material": "^5.16.7",
99
99
  "@mui/material": "^5.16.7",
100
+ "@mui/x-data-grid-premium": "^6.19.5",
101
+ "notistack": "^3.0.1",
100
102
  "react": "^18.2.0",
101
103
  "react-dom": "^18.2.0"
102
104
  },