demio-ui 1.0.96 → 2.0.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.
@@ -12,6 +12,7 @@ type Props = {
12
12
  onClose?: () => void;
13
13
  actionButtonType?: 'primary' | 'danger';
14
14
  maxWidth?: string;
15
+ showCloseButton?: boolean;
15
16
  };
16
- declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, }: Props): React.JSX.Element;
17
+ declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, showCloseButton, }: Props): React.JSX.Element;
17
18
  export default Alert;
@@ -2,14 +2,13 @@ import React from 'react';
2
2
  type Props = {
3
3
  children: string | React.ReactNode;
4
4
  contentClassName?: string;
5
- hideCloseButton?: boolean;
6
- maxHeight?: string;
5
+ showCloseButton?: boolean;
7
6
  onClose?: () => void;
8
7
  onOpenChange: (open: boolean) => void;
9
8
  open: boolean;
10
9
  overlayClassName: string;
11
10
  title?: string | React.ReactNode;
12
- width?: string;
11
+ contentStyle?: React.CSSProperties;
13
12
  };
14
13
  /**
15
14
  - Focus is automatically trapped when modal.
@@ -17,5 +16,5 @@ type Props = {
17
16
  - Esc closes the component automatically.
18
17
  - [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
19
18
  **/
20
- declare function Modal({ children, contentClassName, hideCloseButton, maxHeight, onClose, onOpenChange, open, overlayClassName, title, width, }: Props): React.JSX.Element;
19
+ declare function Modal({ children, contentClassName, showCloseButton, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props): React.JSX.Element;
21
20
  export default Modal;
package/dist/types.d.ts CHANGED
@@ -15,8 +15,9 @@ type Props$d = {
15
15
  onClose?: () => void;
16
16
  actionButtonType?: 'primary' | 'danger';
17
17
  maxWidth?: string;
18
+ showCloseButton?: boolean;
18
19
  };
19
- declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, }: Props$d): React__default.JSX.Element;
20
+ declare function Alert({ open, actionText, onActionClick, cancelText, onCancelClick, title, description, showLoader, isOkDisabled, actionButtonType, maxWidth, onClose, showCloseButton, }: Props$d): React__default.JSX.Element;
20
21
 
21
22
  type Props$c = {
22
23
  disabled?: boolean;
@@ -116,14 +117,13 @@ declare function Loader({ size, className, inheritColor }: Props$6): React__defa
116
117
  type Props$5 = {
117
118
  children: string | React__default.ReactNode;
118
119
  contentClassName?: string;
119
- hideCloseButton?: boolean;
120
- maxHeight?: string;
120
+ showCloseButton?: boolean;
121
121
  onClose?: () => void;
122
122
  onOpenChange: (open: boolean) => void;
123
123
  open: boolean;
124
124
  overlayClassName: string;
125
125
  title?: string | React__default.ReactNode;
126
- width?: string;
126
+ contentStyle?: React__default.CSSProperties;
127
127
  };
128
128
  /**
129
129
  - Focus is automatically trapped when modal.
@@ -131,7 +131,7 @@ type Props$5 = {
131
131
  - Esc closes the component automatically.
132
132
  - [Accessibility and Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/dialog#accessibility)
133
133
  **/
134
- declare function Modal({ children, contentClassName, hideCloseButton, maxHeight, onClose, onOpenChange, open, overlayClassName, title, width, }: Props$5): React__default.JSX.Element;
134
+ declare function Modal({ children, contentClassName, showCloseButton, onClose, onOpenChange, open, overlayClassName, title, contentStyle, }: Props$5): React__default.JSX.Element;
135
135
 
136
136
  type Props$4 = {
137
137
  align: 'center' | 'start' | 'end';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "1.0.96",
3
+ "version": "2.0.0",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,79 +44,79 @@
44
44
  ]
45
45
  },
46
46
  "dependencies": {
47
- "@radix-ui/react-alert-dialog": "^1.0.4",
47
+ "@radix-ui/react-alert-dialog": "^1.0.5",
48
48
  "@radix-ui/react-checkbox": "^1.0.4",
49
- "@radix-ui/react-dialog": "^1.0.4",
49
+ "@radix-ui/react-dialog": "^1.0.5",
50
50
  "@radix-ui/react-label": "^2.0.2",
51
- "@radix-ui/react-popover": "^1.0.6",
51
+ "@radix-ui/react-popover": "^1.0.7",
52
52
  "@radix-ui/react-progress": "^1.0.3",
53
53
  "@radix-ui/react-radio-group": "^1.1.3",
54
- "@radix-ui/react-select": "^1.2.2",
54
+ "@radix-ui/react-select": "^2.0.0",
55
55
  "@radix-ui/react-switch": "^1.0.3",
56
56
  "@radix-ui/react-tabs": "^1.0.4",
57
- "@radix-ui/react-tooltip": "^1.0.6",
58
- "classnames": "^2.3.2"
57
+ "@radix-ui/react-tooltip": "^1.0.7",
58
+ "classnames": "^2.5.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/core": "^7.22.5",
62
- "@babel/preset-env": "^7.22.5",
63
- "@babel/preset-react": "^7.22.5",
64
- "@babel/preset-typescript": "^7.22.5",
65
- "@rollup/plugin-commonjs": "^25.0.1",
66
- "@rollup/plugin-node-resolve": "^15.1.0",
67
- "@rollup/plugin-terser": "^0.4.3",
68
- "@rollup/plugin-typescript": "^11.1.1",
69
- "@storybook/addon-a11y": "^7.4.5",
70
- "@storybook/addon-actions": "^7.4.5",
71
- "@storybook/addon-essentials": "^7.4.5",
72
- "@storybook/addon-interactions": "^7.4.5",
73
- "@storybook/addon-links": "^7.4.5",
74
- "@storybook/addon-mdx-gfm": "^7.4.5",
61
+ "@babel/core": "^7.23.7",
62
+ "@babel/preset-env": "^7.23.7",
63
+ "@babel/preset-react": "^7.23.3",
64
+ "@babel/preset-typescript": "^7.23.3",
65
+ "@rollup/plugin-commonjs": "^25.0.7",
66
+ "@rollup/plugin-node-resolve": "^15.2.3",
67
+ "@rollup/plugin-terser": "^0.4.4",
68
+ "@rollup/plugin-typescript": "^11.1.5",
69
+ "@storybook/addon-a11y": "^7.6.7",
70
+ "@storybook/addon-actions": "^7.6.7",
71
+ "@storybook/addon-essentials": "^7.6.7",
72
+ "@storybook/addon-interactions": "^7.6.7",
73
+ "@storybook/addon-links": "^7.6.7",
74
+ "@storybook/addon-mdx-gfm": "^7.6.7",
75
75
  "@storybook/addon-styling": "^1.3.7",
76
- "@storybook/cli": "^7.4.5",
77
- "@storybook/manager-api": "^7.4.5",
78
- "@storybook/react": "^7.4.5",
79
- "@storybook/react-webpack5": "^7.4.5",
80
- "@storybook/testing-library": "^0.2.1",
81
- "@storybook/theming": "^7.4.5",
82
- "@svgr/rollup": "^8.0.1",
83
- "@svgr/webpack": "^8.0.1",
84
- "@testing-library/jest-dom": "^5.16.5",
85
- "@testing-library/react": "^14.0.0",
86
- "@testing-library/user-event": "^14.4.3",
87
- "@types/jest": "^29.5.2",
88
- "@types/react": "^18.2.11",
89
- "@typescript-eslint/eslint-plugin": "^5.59.11",
90
- "@typescript-eslint/parser": "^5.59.11",
91
- "babel-loader": "^8.3.0",
92
- "eslint": "^8.42.0",
93
- "eslint-plugin-prettier": "^4.2.1",
94
- "eslint-plugin-storybook": "^0.6.14",
76
+ "@storybook/cli": "^7.6.7",
77
+ "@storybook/manager-api": "^7.6.7",
78
+ "@storybook/react": "^7.6.7",
79
+ "@storybook/react-webpack5": "^7.6.7",
80
+ "@storybook/testing-library": "^0.2.2",
81
+ "@storybook/theming": "^7.6.7",
82
+ "@svgr/rollup": "^8.1.0",
83
+ "@svgr/webpack": "^8.1.0",
84
+ "@testing-library/jest-dom": "^6.1.6",
85
+ "@testing-library/react": "^14.1.2",
86
+ "@testing-library/user-event": "^14.5.2",
87
+ "@types/jest": "^29.5.11",
88
+ "@types/react": "^18.2.46",
89
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
90
+ "@typescript-eslint/parser": "^6.17.0",
91
+ "babel-loader": "^9.1.3",
92
+ "eslint": "^8.56.0",
93
+ "eslint-plugin-prettier": "^5.1.2",
94
+ "eslint-plugin-storybook": "^0.6.15",
95
95
  "file-loader": "^6.2.0",
96
- "husky": "^6.0.0",
96
+ "husky": "^8.0.3",
97
97
  "identity-obj-proxy": "^3.0.0",
98
- "jest": "^29.5.0",
99
- "jest-environment-jsdom": "^29.5.0",
100
- "lint-staged": "^13.2.2",
101
- "postcss-import": "^15.1.0",
102
- "prettier": "^2.8.8",
98
+ "jest": "^29.7.0",
99
+ "jest-environment-jsdom": "^29.7.0",
100
+ "lint-staged": "^15.2.0",
101
+ "postcss-import": "^16.0.0",
102
+ "prettier": "^3.1.1",
103
103
  "pretty-quick": "^3.1.3",
104
104
  "react": "^18.2.0",
105
105
  "react-docgen-typescript": "^2.2.2",
106
106
  "react-dom": "^18.2.0",
107
107
  "resize-observer-polyfill": "^1.5.1",
108
- "rollup": "^3.25.1",
109
- "rollup-plugin-dts": "^5.3.0",
108
+ "rollup": "^4.9.2",
109
+ "rollup-plugin-dts": "^6.1.0",
110
110
  "rollup-plugin-peer-deps-external": "^2.2.4",
111
111
  "rollup-plugin-postcss": "^4.0.2",
112
- "storybook": "^7.4.5",
112
+ "storybook": "^7.6.7",
113
113
  "storybook-css-modules": "^1.0.8",
114
- "stylelint": "^15.7.0",
115
- "stylelint-config-standard": "^33.0.0",
116
- "ts-node": "^10.9.1",
117
- "tsconfig-paths-webpack-plugin": "^4.0.1",
118
- "tslib": "^2.5.3",
119
- "typescript": "^5.1.3"
114
+ "stylelint": "^16.1.0",
115
+ "stylelint-config-standard": "^36.0.0",
116
+ "ts-node": "^10.9.2",
117
+ "tsconfig-paths-webpack-plugin": "^4.1.0",
118
+ "tslib": "^2.6.2",
119
+ "typescript": "^5.3.3"
120
120
  },
121
121
  "peerDependencies": {
122
122
  "react": "^18.2.0",
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- message?: string;
4
- };
5
- declare function Toast({ message, }: Props): React.JSX.Element;
6
- export default Toast;
@@ -1 +0,0 @@
1
- export { default } from './Toast';
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- type Props = {
3
- message?: string;
4
- };
5
- declare function Toast({ message, }: Props): React.JSX.Element;
6
- export default Toast;
@@ -1 +0,0 @@
1
- export { default } from './Toast';