@moda/om 18.3.0 → 18.3.2
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/index.cjs.js +1103 -848
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1103 -848
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/Popover/Popover.d.ts +3 -3
- package/package.json +18 -16
- package/src/components/Popover/Popover.tsx +3 -3
- package/CHANGELOG.md +0 -709
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import './Popover.scss';
|
|
3
|
-
export type PopoverProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4
|
-
content:
|
|
3
|
+
export type PopoverProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> & {
|
|
4
|
+
content: ReactNode;
|
|
5
5
|
children: JSX.Element;
|
|
6
6
|
open?: boolean;
|
|
7
7
|
anchor?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moda/om",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.2",
|
|
4
4
|
"description": "Moda Operandi design system",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build:documentation": "NODE_ENV=production cd documentation && yarn build",
|
|
23
|
-
"build:storybook": "NODE_ENV=storybook build
|
|
23
|
+
"build:storybook": "NODE_ENV=storybook storybook build",
|
|
24
24
|
"build": "NODE_ENV=production yarn compile && yarn types",
|
|
25
25
|
"clean": "rm -rf ./dist",
|
|
26
26
|
"commit": "yarn git-cz",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"scaffold:function": "node scripts/scaffold/sass Functions",
|
|
35
35
|
"semantic-release": "semantic-release",
|
|
36
36
|
"start": "cd documentation && yarn start",
|
|
37
|
-
"storybook": "
|
|
37
|
+
"storybook": "storybook dev -p 6006",
|
|
38
38
|
"test": "jest -w 1",
|
|
39
39
|
"types": "tsc -p tsconfig.json --emitDeclarationOnly",
|
|
40
40
|
"unlink-all": "yalc remove --all && yarn --check-files",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@moda/icons": "^5.18.0",
|
|
51
51
|
"@moda/tokens": "^5.7.0",
|
|
52
|
+
"@storybook/addon-styling": "^1.0.1",
|
|
52
53
|
"@types/classnames": "^2.2.9",
|
|
53
54
|
"classnames": "^2.2.6",
|
|
54
55
|
"credit-card-type": "^9.0.0",
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
"react-focus-on": "^3.3.0",
|
|
58
59
|
"react-input-mask": "^2.0.4",
|
|
59
60
|
"scroll-into-view-if-needed": "^3.0.3",
|
|
61
|
+
"storybook": "^7.0.5",
|
|
60
62
|
"use-cursor": "^1.0.0"
|
|
61
63
|
},
|
|
62
64
|
"devDependencies": {
|
|
@@ -71,22 +73,22 @@
|
|
|
71
73
|
"@rollup/plugin-babel": "^6.0.0",
|
|
72
74
|
"@rollup/plugin-commonjs": "^24.0.0",
|
|
73
75
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
74
|
-
"@storybook/addon-actions": "^
|
|
75
|
-
"@storybook/addon-essentials": "^
|
|
76
|
-
"@storybook/addon-links": "^
|
|
76
|
+
"@storybook/addon-actions": "^7.0.2",
|
|
77
|
+
"@storybook/addon-essentials": "^7.0.2",
|
|
78
|
+
"@storybook/addon-links": "^7.0.2",
|
|
79
|
+
"@storybook/addon-mdx-gfm": "^7.0.5",
|
|
77
80
|
"@storybook/addon-postcss": "^2.0.0",
|
|
78
|
-
"@storybook/addon-viewport": "^
|
|
79
|
-
"@storybook/addons": "^
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/
|
|
82
|
-
"@storybook/react": "^6.5.6",
|
|
81
|
+
"@storybook/addon-viewport": "^7.0.2",
|
|
82
|
+
"@storybook/addons": "^7.0.2",
|
|
83
|
+
"@storybook/react": "^7.0.2",
|
|
84
|
+
"@storybook/react-webpack5": "^7.0.5",
|
|
83
85
|
"@testing-library/jest-dom": "^5.16.4",
|
|
84
|
-
"@testing-library/react": "^
|
|
86
|
+
"@testing-library/react": "^14.0.0",
|
|
85
87
|
"@testing-library/user-event": "^14.1.1",
|
|
86
88
|
"@types/cheerio": "^0.22.22",
|
|
87
89
|
"@types/credit-card-type": "^9.0.0",
|
|
88
90
|
"@types/jest": "^29.0.3",
|
|
89
|
-
"@types/ramda": "^0.
|
|
91
|
+
"@types/ramda": "^0.29.0",
|
|
90
92
|
"@types/react": "^18.0.9",
|
|
91
93
|
"@types/react-dom": "^18.0.1",
|
|
92
94
|
"@types/react-input-mask": "^3.0.2",
|
|
@@ -125,7 +127,7 @@
|
|
|
125
127
|
"postcss": "^8.1.10",
|
|
126
128
|
"postcss-loader": "^7.0.0",
|
|
127
129
|
"prettier": "^2.7.1",
|
|
128
|
-
"ramda": "^0.
|
|
130
|
+
"ramda": "^0.29.0",
|
|
129
131
|
"react": "^18.1.0",
|
|
130
132
|
"react-dom": "^18.1.0",
|
|
131
133
|
"react-router-dom": "^5.1.2",
|
|
@@ -134,11 +136,11 @@
|
|
|
134
136
|
"rollup-plugin-scss": "^4.0.0",
|
|
135
137
|
"sass": "^1.57.1",
|
|
136
138
|
"sass-loader": "^13.0.0",
|
|
137
|
-
"semantic-release": "^
|
|
139
|
+
"semantic-release": "^21.0.0",
|
|
138
140
|
"storybook-states": "^1.2.0",
|
|
139
141
|
"style-loader": "^3.0.0",
|
|
140
142
|
"ts-jest": "^29.0.1",
|
|
141
|
-
"typescript": "^
|
|
143
|
+
"typescript": "^5.0.2",
|
|
142
144
|
"waait": "^1.0.5",
|
|
143
145
|
"webpack": "^5.72.1",
|
|
144
146
|
"webpack-cli": "^5.0.0"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { useState, useCallback, useEffect, useRef } from 'react';
|
|
1
|
+
import React, { useState, useCallback, useEffect, useRef, ReactNode } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import './Popover.scss';
|
|
4
4
|
|
|
5
|
-
export type PopoverProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
|
-
content:
|
|
5
|
+
export type PopoverProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'content'> & {
|
|
6
|
+
content: ReactNode;
|
|
7
7
|
children: JSX.Element;
|
|
8
8
|
open?: boolean;
|
|
9
9
|
anchor?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|