demio-ui 5.1.23 → 5.3.1

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/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import React__default, { MouseEventHandler, FC, ReactNode, CSSProperties, SetStateAction, DragEvent, ReactEventHandler, MouseEvent, PropsWithChildren } from 'react';
2
+ import React__default, { MouseEventHandler, FC, ReactNode, CSSProperties, SetStateAction, DragEvent, MouseEvent, PropsWithChildren } from 'react';
3
3
  import { CheckedState } from '@radix-ui/react-checkbox';
4
4
  import { Point, Area } from 'react-easy-crop';
5
5
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
@@ -103,7 +103,7 @@ type Props$e = {
103
103
  onCheckedChange?: (checked: CheckedState) => void;
104
104
  value?: string;
105
105
  };
106
- declare const Checkbox: React__default.MemoExoticComponent<React__default.ForwardRefExoticComponent<Props$e & React__default.RefAttributes<HTMLDivElement>>>;
106
+ declare const Checkbox: React__default.NamedExoticComponent<Props$e & React__default.RefAttributes<HTMLDivElement>>;
107
107
 
108
108
  type InputProps = {
109
109
  autoComplete?: 'off' | 'on';
@@ -198,7 +198,7 @@ declare const DropdownMenuPortal: React__default.FC<DropdownMenuPrimitive.Dropdo
198
198
  type Props$c = {
199
199
  children: ReactNode;
200
200
  className?: string;
201
- onSelect?: ReactEventHandler<HTMLDivElement>;
201
+ onSelect?: DropdownMenuPrimitive.DropdownMenuItemProps['onSelect'];
202
202
  isWarning?: boolean;
203
203
  isLabel?: boolean;
204
204
  disabled?: boolean;
@@ -512,7 +512,7 @@ type Props = {
512
512
  /**
513
513
  * Accessibility [Keyboard Interactions](https://www.radix-ui.com/docs/primitives/components/tooltip#keyboard-interactions)
514
514
  **/
515
- declare function Tooltip({ align, alignOffset, children, className, collisionBoundary, container, content, defaultOpen, delayDuration, isCustomTrigger, isPortal, isTriggerAsChild, open, onOpenChange, side, sideOffset, skipDelayDuration, ...props }: Props): string | number | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | null | undefined;
515
+ declare function Tooltip({ align, alignOffset, children, className, collisionBoundary, container, content, defaultOpen, delayDuration, isCustomTrigger, isPortal, isTriggerAsChild, open, onOpenChange, side, sideOffset, skipDelayDuration, ...props }: Props): string | number | bigint | boolean | React__default.JSX.Element | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | null | undefined;
516
516
  /**
517
517
  * PopoverTooltip is a wrapper around Popover that provides a tooltip-like experience.
518
518
  **/
@@ -2267,13 +2267,10 @@ var SvgRadio = function SvgRadio(props) {
2267
2267
  return /*#__PURE__*/React.createElement("svg", _extends$5({
2268
2268
  xmlns: "http://www.w3.org/2000/svg",
2269
2269
  fill: "none",
2270
- viewBox: "0 0 20 20"
2270
+ viewBox: "0 0 20 14"
2271
2271
  }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
2272
- stroke: "#545C60",
2273
- strokeLinecap: "round",
2274
- strokeLinejoin: "round",
2275
- strokeWidth: 1.667,
2276
- d: "M13.54 6.468a5 5 0 0 1 0 7.065m2.356-9.422a8.333 8.333 0 0 1 0 11.778m-11.792 0a8.334 8.334 0 0 1 0-11.778m2.357 9.422a5 5 0 0 1 0-7.065M11.667 10a1.667 1.667 0 1 1-3.333 0 1.667 1.667 0 0 1 3.333 0"
2272
+ fill: "#545C60",
2273
+ d: "M2.825 13.575A9.5 9.5 0 0 1 .75 10.538Q0 8.801 0 6.812q0-2.011.75-3.75A10 10 0 0 1 2.8 0l1.275 1.275a8.2 8.2 0 0 0-1.662 2.49A7.5 7.5 0 0 0 1.8 6.79q0 1.635.612 3.048T4.1 12.3zM5.35 11.05a6.4 6.4 0 0 1-1.275-1.913 5.8 5.8 0 0 1-.475-2.33q0-1.27.475-2.35A6.4 6.4 0 0 1 5.35 2.55l1.275 1.275a4.3 4.3 0 0 0-.9 1.345A4.1 4.1 0 0 0 5.4 6.805q0 .87.326 1.631.326.762.899 1.339zm2.763-2.769A2.04 2.04 0 0 1 7.5 6.794q0-.87.619-1.481A2.04 2.04 0 0 1 9.606 4.7q.87 0 1.482.619.612.618.612 1.487t-.619 1.481a2.04 2.04 0 0 1-1.487.613q-.87 0-1.481-.619m5.712 2.744-1.25-1.25q.573-.58.9-1.345.325-.765.325-1.635t-.326-1.631a4.3 4.3 0 0 0-.899-1.339L13.85 2.55q.8.825 1.275 1.909.475 1.083.475 2.354 0 1.245-.475 2.329a5.9 5.9 0 0 1-1.3 1.883m2.55 2.55L15.1 12.3a7.7 7.7 0 0 0 1.688-2.465A7.5 7.5 0 0 0 17.4 6.81q0-1.635-.612-3.047a8.2 8.2 0 0 0-1.663-2.488L16.4 0a10 10 0 0 1 2.05 3.062q.75 1.737.75 3.75a9.3 9.3 0 0 1-.75 3.725 9.5 9.5 0 0 1-2.075 3.038"
2277
2274
  })));
2278
2275
  };
2279
2276
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "5.1.23",
3
+ "version": "5.3.1",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,6 +46,7 @@
46
46
  "storybook": "storybook dev -p 6006",
47
47
  "stylelint": "stylelint './src/**/*.css'",
48
48
  "stylelint:fix": "stylelint './src/**/*.css' --fix",
49
+ "typecheck": "tsc --noEmit",
49
50
  "test": "jest --passWithNoTests",
50
51
  "test-watch": "jest --watchAll",
51
52
  "preversion": "npm run lint-all",
@@ -68,88 +69,87 @@
68
69
  ]
69
70
  },
70
71
  "dependencies": {
71
- "@radix-ui/react-alert-dialog": "^1.1.14",
72
- "@radix-ui/react-avatar": "^1.1.10",
73
- "@radix-ui/react-checkbox": "^1.3.2",
74
- "@radix-ui/react-dialog": "^1.1.14",
75
- "@radix-ui/react-dropdown-menu": "^2.1.15",
76
- "@radix-ui/react-label": "^2.1.7",
77
- "@radix-ui/react-popover": "^1.1.14",
78
- "@radix-ui/react-progress": "^1.1.7",
79
- "@radix-ui/react-radio-group": "^1.3.7",
80
- "@radix-ui/react-select": "^2.2.5",
81
- "@radix-ui/react-slider": "^1.3.5",
82
- "@radix-ui/react-switch": "^1.2.5",
83
- "@radix-ui/react-tabs": "^1.1.12",
84
- "@radix-ui/react-tooltip": "^1.2.7",
72
+ "@radix-ui/react-alert-dialog": "^1.1.15",
73
+ "@radix-ui/react-avatar": "^1.1.11",
74
+ "@radix-ui/react-checkbox": "^1.3.3",
75
+ "@radix-ui/react-dialog": "^1.1.15",
76
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
77
+ "@radix-ui/react-label": "^2.1.8",
78
+ "@radix-ui/react-popover": "^1.1.15",
79
+ "@radix-ui/react-progress": "^1.1.8",
80
+ "@radix-ui/react-radio-group": "^1.3.8",
81
+ "@radix-ui/react-select": "^2.2.6",
82
+ "@radix-ui/react-slider": "^1.3.6",
83
+ "@radix-ui/react-switch": "^1.2.6",
84
+ "@radix-ui/react-tabs": "^1.1.13",
85
+ "@radix-ui/react-tooltip": "^1.2.8",
85
86
  "classnames": "^2.5.1",
86
- "react-easy-crop": "^5.5.0",
87
+ "react-easy-crop": "^5.5.7",
87
88
  "react-select": "^5.10.2"
88
89
  },
89
90
  "devDependencies": {
90
- "@babel/core": "^7.28.0",
91
- "@babel/preset-env": "^7.28.0",
92
- "@babel/preset-react": "^7.27.1",
93
- "@babel/preset-typescript": "^7.27.1",
94
- "@chromatic-com/storybook": "^4.1.0",
95
- "@rollup/plugin-commonjs": "^28.0.6",
96
- "@rollup/plugin-node-resolve": "^16.0.1",
97
- "@rollup/plugin-terser": "^0.4.4",
98
- "@rollup/plugin-typescript": "^12.1.4",
99
- "@storybook/addon-a11y": "^9.1.0",
100
- "@storybook/addon-docs": "^9.1.0",
101
- "@storybook/addon-links": "^9.1.0",
102
- "@storybook/addon-styling-webpack": "^2.0.0",
103
- "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
104
- "@storybook/cli": "^9.1.0",
105
- "@storybook/preset-react-webpack": "^9.1.0",
106
- "@storybook/react-webpack5": "^9.1.0",
91
+ "@babel/core": "^7.29.0",
92
+ "@babel/preset-env": "^7.29.2",
93
+ "@babel/preset-react": "^7.28.5",
94
+ "@babel/preset-typescript": "^7.28.5",
95
+ "@eslint/js": "^10.0.1",
96
+ "@rollup/plugin-commonjs": "^29.0.2",
97
+ "@rollup/plugin-node-resolve": "^16.0.3",
98
+ "@rollup/plugin-terser": "^1.0.0",
99
+ "@rollup/plugin-typescript": "^12.3.0",
100
+ "@storybook/addon-a11y": "^10.3.3",
101
+ "@storybook/addon-docs": "^10.3.3",
102
+ "@storybook/addon-links": "^10.3.3",
103
+ "@storybook/addon-styling-webpack": "^3.0.1",
104
+ "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
105
+ "@storybook/cli": "^10.3.3",
106
+ "@storybook/preset-react-webpack": "^10.3.3",
107
+ "@storybook/react-webpack5": "^10.3.3",
107
108
  "@svgr/rollup": "^8.1.0",
108
109
  "@svgr/webpack": "^8.1.0",
109
- "@testing-library/jest-dom": "^6.6.4",
110
- "@testing-library/react": "^16.3.0",
110
+ "@testing-library/jest-dom": "^6.9.1",
111
+ "@testing-library/react": "^16.3.2",
111
112
  "@testing-library/user-event": "^14.6.1",
112
113
  "@types/jest": "^30.0.0",
113
- "@types/react": "^18.3.23",
114
- "@types/react-dom": "^18.3.7",
115
- "@typescript-eslint/eslint-plugin": "^8.38.0",
116
- "@typescript-eslint/parser": "^8.38.0",
117
- "babel-loader": "^10.0.0",
118
- "chromatic": "^13.1.3",
119
- "css-loader": "^7.1.2",
120
- "eslint": "^9.32.0",
121
- "eslint-plugin-prettier": "^5.5.3",
114
+ "@types/react": "^19.2.14",
115
+ "@types/react-dom": "^19.2.3",
116
+ "@typescript-eslint/eslint-plugin": "^8.57.2",
117
+ "@typescript-eslint/parser": "^8.57.2",
118
+ "babel-loader": "^10.1.1",
119
+ "chromatic": "^16.0.0",
120
+ "css-loader": "^7.1.4",
121
+ "eslint": "^10.1.0",
122
+ "eslint-plugin-prettier": "^5.5.5",
122
123
  "eslint-plugin-simple-import-sort": "^12.1.1",
123
- "eslint-plugin-storybook": "^9.1.17",
124
+ "eslint-plugin-storybook": "^10.3.3",
124
125
  "file-loader": "^6.2.0",
125
126
  "husky": "^9.1.7",
126
127
  "identity-obj-proxy": "^3.0.0",
127
- "jest": "^30.0.5",
128
- "jest-environment-jsdom": "^29.7.0",
129
- "lint-staged": "^16.1.2",
128
+ "jest": "^30.3.0",
129
+ "jest-environment-jsdom": "^30.3.0",
130
+ "lint-staged": "^16.4.0",
130
131
  "postcss-import": "^16.1.1",
131
- "prettier": "^3.6.2",
132
+ "prettier": "^3.8.1",
132
133
  "pretty-quick": "^4.2.2",
133
- "react": "^18.2.0",
134
+ "react": "^19.2.4",
134
135
  "react-docgen-typescript": "^2.4.0",
135
- "react-dom": "^18.2.0",
136
+ "react-dom": "^19.2.4",
136
137
  "resize-observer-polyfill": "^1.5.1",
137
- "rollup": "^4.46.2",
138
- "rollup-plugin-dts": "^6.2.1",
138
+ "rollup": "^4.60.0",
139
+ "rollup-plugin-dts": "^6.4.1",
139
140
  "rollup-plugin-peer-deps-external": "^2.2.4",
140
141
  "rollup-plugin-postcss": "^4.0.2",
141
- "rollup-plugin-visualizer": "^6.0.3",
142
- "storybook": "^9.1.17",
143
- "storybook-css-modules": "^1.0.8",
144
- "stylelint": "^16.23.0",
145
- "stylelint-config-standard": "^39.0.0",
142
+ "rollup-plugin-visualizer": "^6.0.11",
143
+ "storybook": "^10.3.3",
144
+ "stylelint": "^17.5.0",
145
+ "stylelint-config-standard": "^40.0.0",
146
146
  "ts-node": "^10.9.2",
147
147
  "tsconfig-paths-webpack-plugin": "^4.2.0",
148
148
  "tslib": "^2.8.1",
149
- "typescript": "^5.8.3"
149
+ "typescript": "^5.9.3"
150
150
  },
151
151
  "optionalDependencies": {
152
- "@rollup/rollup-linux-x64-gnu": "^4.46.2"
152
+ "@rollup/rollup-linux-x64-gnu": "^4.60.0"
153
153
  },
154
154
  "peerDependencies": {
155
155
  "react": "^18.2.0",