@madie/madie-design-system 1.2.52 → 1.2.55

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/package.json CHANGED
@@ -1,147 +1,158 @@
1
1
  {
2
- "name": "@madie/madie-design-system",
3
- "version": "1.2.52",
4
- "description": "Shared style guide across the Madie program.",
5
- "main": "dist/index.js",
6
- "homepage": "https://github.com/MeasureAuthoringTool/madie-design-system",
7
- "scripts": {
8
- "prepublishOnly": "npm run build",
9
- "build": "npm run clean && webpack-cli --progress --color --env production && npm run build-react",
10
- "dev": "npm run clean && webpack-cli --progress --color --watch --env production=false",
11
- "clean": "rimraf build && rimraf dist",
12
- "build-react": "webpack --progress --config webpack.config.react.js",
13
- "build-react-watch": "webpack --progress --watch --config webpack.config.react.js",
14
- "start": "npm run build",
15
- "test": "jest",
16
- "watch-tests": "cross-env BABEL_ENV=test jest --watch",
17
- "coverage": "cross-env BABEL_ENV=test jest --coverage",
18
- "precommit": "npm run format && npm run lint && npm run format-styles",
19
- "prepush": "npm test",
20
- "check-format": "prettier --write 'components/**/*.(js|jsx)'",
21
- "format-test": "prettier --write 'test/**/*.(js|jsx)'",
22
- "lint": "eslint 'components/**/*.{js,jsx}'",
23
- "stylelint": "stylelint 'styles/**/*.{css,scss}'",
24
- "format-styles": "prettier 'styles/**/*.{css,scss}' --write --quiet",
25
- "storybook": "storybook dev -p 6007",
26
- "build-storybook": "storybook build",
27
- "predeploy": "npm run build-storybook",
28
- "deploy": "gh-pages -d storybook-static"
29
- },
30
- "devDependencies": {
31
- "@babel/cli": "^7.25.6",
32
- "@babel/core": "^7.25.2",
33
- "@babel/preset-env": "^7.25.4",
34
- "@babel/preset-react": "^7.24.7",
35
- "@babel/register": "^7.24.6",
36
- "@storybook/addon-a11y": "^8.3.0",
37
- "@storybook/addon-actions": "^8.3.0",
38
- "@storybook/addon-backgrounds": "^8.3.0",
39
- "@storybook/addon-docs": "^8.3.0",
40
- "@storybook/addon-knobs": "^8.0.1",
41
- "@storybook/addon-links": "^8.3.0",
42
- "@storybook/addon-postcss": "^2.0.0",
43
- "@storybook/addon-storysource": "^8.3.0",
44
- "@storybook/addon-viewport": "^8.3.0",
45
- "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
46
- "@storybook/addons": "^7.6.17",
47
- "@storybook/react": "^8.3.0",
48
- "@storybook/react-webpack5": "^8.3.0",
49
- "@testing-library/jest-dom": "^6.1.4",
50
- "@testing-library/react": "^12.1.2",
51
- "@testing-library/user-event": "^13.5.0",
52
- "@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
53
- "autoprefixer": "^10.4.2",
54
- "babel-eslint": "^10.1.0",
55
- "babel-jest": "^27.4.6",
56
- "babel-loader": "^8.2.3",
57
- "chai": "^4.3.4",
58
- "copy-webpack-plugin": "^5.1.2",
59
- "css-loader": "^7.1.2",
60
- "enzyme": "^3.11.0",
61
- "enzyme-to-json": "^3.6.2",
62
- "eslint": "^7.32.0",
63
- "eslint-config-prettier": "^6.15.0",
64
- "eslint-plugin-babel": "^5.3.1",
65
- "eslint-plugin-prettier": "^3.4.1",
66
- "eslint-plugin-react": "^7.28.0",
67
- "feather-icons-react": "^0.4.3",
68
- "file-loader": "^6.2.0",
69
- "gh-pages": "^6.0.0",
70
- "html-webpack-plugin": "^5.5.0",
71
- "jest": "^29.7.0",
72
- "jest-environment-jsdom": "^29.7.0",
73
- "mini-css-extract-plugin": "^0.11.3",
74
- "moxios": "^0.4.0",
75
- "node-fetch": "^2.6.7",
76
- "prettier": "^2.5.1",
77
- "raw-loader": "^4.0.2",
78
- "react": "^17.0.2",
79
- "react-dom": "^17.0.2",
80
- "react-test-renderer": "^17.0.2",
81
- "regenerator-runtime": "^0.13.9",
82
- "rimraf": "^3.0.2",
83
- "sass": "^1.48.0",
84
- "sass-loader": "^10.2.1",
85
- "sinon": "^12.0.1",
86
- "style-loader": "^1.3.0",
87
- "svgo-loader": "^4.0.0",
88
- "webpack": "^5.70.0",
89
- "webpack-cli": "^4.9.2"
90
- },
91
- "repository": {
92
- "type": "git",
93
- "url": "git+https://github.com/MeasureAuthoringTool/madie-design-system.git"
94
- },
95
- "keywords": [
96
- "QPP",
97
- "Quality Payment Program",
98
- "style",
99
- "module",
100
- "CMS",
101
- "CMSgov"
102
- ],
103
- "author": "Centers for Medicare & Medicaid Services",
104
- "license": "CC0-1.0",
105
- "bugs": {
106
- "url": "https://github.com/MeasureAuthoringTool/madie-design-system/issues"
107
- },
108
- "dependencies": {
109
- "@cmsgov/design-system": "^5.0.2",
110
- "@emotion/react": "^11.8.2",
111
- "@emotion/styled": "^11.8.1",
112
- "@mui/icons-material": "^6.1.0",
113
- "@mui/material": "^6.1.0",
114
- "@mui/styles": "^6.1.0",
115
- "@mui/system": "^6.1.0",
116
- "@mui/x-date-pickers": "^7.17.0",
117
- "@reach/portal": "^0.16.2",
118
- "@reach/tooltip": "^0.16.2",
119
- "axios": "^1.7.4",
120
- "cookie": "^0.7.2",
121
- "cross-env": "^7.0.3",
122
- "d3-selection": "^1.4.2",
123
- "d3-shape": "^1.3.7",
124
- "dayjs": "^1.11.7",
125
- "jwt-decode": "^3.1.2",
126
- "lodash": "^4.17.21",
127
- "preact": "^10.6.4",
128
- "prop-types": "^15.8.1",
129
- "react-draggable": "^4.4.6",
130
- "react-modal": "^3.14.4",
131
- "retry": "^0.13.1",
132
- "svgo": "^3.0.3",
133
- "what-input": "^5.2.10",
134
- "xss": "^1.0.10"
135
- },
136
- "peerDependencies": {
137
- "classnames": "^2.3.1"
138
- },
139
- "overrides": {
140
- "trim": ">=0.0.3",
141
- "webpack": "^5.70.0",
142
- "trim-newlines": "^3.0.1",
143
- "glob-parent": "^6.0.1",
144
- "semver": "^7.5.3",
145
- "optionator": "0.9.3"
146
- }
2
+ "name": "@madie/madie-design-system",
3
+ "version": "1.2.55",
4
+ "description": "Shared style guide across the Madie program.",
5
+ "main": "dist/index.js",
6
+ "homepage": "https://github.com/MeasureAuthoringTool/madie-design-system",
7
+ "scripts": {
8
+ "prepublishOnly": "npm run build",
9
+ "build": "npm run clean && webpack-cli --progress --color --env production && npm run build-react",
10
+ "dev": "npm run clean && webpack-cli --progress --color --watch --env production=false",
11
+ "clean": "rimraf build && rimraf dist",
12
+ "build-react": "webpack --progress --config webpack.config.react.js",
13
+ "build-react-watch": "webpack --progress --watch --config webpack.config.react.js",
14
+ "start": "npm run build",
15
+ "test": "jest",
16
+ "watch-tests": "cross-env BABEL_ENV=test jest --watch",
17
+ "coverage": "cross-env BABEL_ENV=test jest --coverage",
18
+ "precommit": "npm run format && npm run lint && npm run format-styles",
19
+ "prepush": "npm test",
20
+ "check-format": "prettier --write 'components/**/*.(js|jsx)'",
21
+ "format-test": "prettier --write 'test/**/*.(js|jsx)'",
22
+ "lint": "eslint 'components/**/*.{js,jsx}'",
23
+ "stylelint": "stylelint 'styles/**/*.{css,scss}'",
24
+ "format-styles": "prettier 'styles/**/*.{css,scss}' --write --quiet",
25
+ "storybook": "storybook dev -p 6007",
26
+ "build-storybook": "storybook build",
27
+ "predeploy": "npm run build-storybook",
28
+ "deploy": "gh-pages -d storybook-static"
29
+ },
30
+ "devDependencies": {
31
+ "@babel/cli": "^7.25.6",
32
+ "@babel/core": "^7.25.2",
33
+ "@babel/preset-env": "^7.25.4",
34
+ "@babel/preset-react": "^7.24.7",
35
+ "@babel/register": "^7.24.6",
36
+ "@storybook/addon-a11y": "^8.3.0",
37
+ "@storybook/addon-actions": "^8.3.0",
38
+ "@storybook/addon-backgrounds": "^8.3.0",
39
+ "@storybook/addon-docs": "^8.3.0",
40
+ "@storybook/addon-knobs": "^8.0.1",
41
+ "@storybook/addon-links": "^8.3.0",
42
+ "@storybook/addon-postcss": "^2.0.0",
43
+ "@storybook/addon-storysource": "^8.3.0",
44
+ "@storybook/addon-viewport": "^8.3.0",
45
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.3",
46
+ "@storybook/addons": "^7.6.17",
47
+ "@storybook/react": "^8.3.0",
48
+ "@storybook/react-webpack5": "^8.3.0",
49
+ "@testing-library/jest-dom": "^6.1.4",
50
+ "@testing-library/react": "^12.1.2",
51
+ "@testing-library/user-event": "^13.5.0",
52
+ "@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
53
+ "autoprefixer": "^10.4.2",
54
+ "babel-eslint": "^10.1.0",
55
+ "babel-jest": "^27.4.6",
56
+ "babel-loader": "^8.2.3",
57
+ "chai": "^4.3.4",
58
+ "copy-webpack-plugin": "^5.1.2",
59
+ "css-loader": "^7.1.2",
60
+ "enzyme": "^3.11.0",
61
+ "enzyme-to-json": "^3.6.2",
62
+ "eslint": "^7.32.0",
63
+ "eslint-config-prettier": "^6.15.0",
64
+ "eslint-plugin-babel": "^5.3.1",
65
+ "eslint-plugin-prettier": "^3.4.1",
66
+ "eslint-plugin-react": "^7.28.0",
67
+ "feather-icons-react": "^0.4.3",
68
+ "file-loader": "^6.2.0",
69
+ "gh-pages": "^6.0.0",
70
+ "html-webpack-plugin": "^5.5.0",
71
+ "jest": "^29.7.0",
72
+ "jest-environment-jsdom": "^29.7.0",
73
+ "mini-css-extract-plugin": "^0.11.3",
74
+ "moxios": "^0.4.0",
75
+ "node-fetch": "^2.6.7",
76
+ "prettier": "^2.5.1",
77
+ "raw-loader": "^4.0.2",
78
+ "react": "^17.0.2",
79
+ "react-dom": "^17.0.2",
80
+ "react-test-renderer": "^17.0.2",
81
+ "regenerator-runtime": "^0.13.9",
82
+ "rimraf": "^3.0.2",
83
+ "sass": "^1.48.0",
84
+ "sass-loader": "^10.2.1",
85
+ "sinon": "^12.0.1",
86
+ "style-loader": "^1.3.0",
87
+ "svgo-loader": "^4.0.0",
88
+ "webpack": "^5.70.0",
89
+ "webpack-cli": "^4.9.2"
90
+ },
91
+ "repository": {
92
+ "type": "git",
93
+ "url": "git+https://github.com/MeasureAuthoringTool/madie-design-system.git"
94
+ },
95
+ "keywords": [
96
+ "QPP",
97
+ "Quality Payment Program",
98
+ "style",
99
+ "module",
100
+ "CMS",
101
+ "CMSgov"
102
+ ],
103
+ "author": "Centers for Medicare & Medicaid Services",
104
+ "license": "CC0-1.0",
105
+ "bugs": {
106
+ "url": "https://github.com/MeasureAuthoringTool/madie-design-system/issues"
107
+ },
108
+ "dependencies": {
109
+ "@cmsgov/design-system": "^5.0.2",
110
+ "@emotion/react": "^11.8.2",
111
+ "@emotion/styled": "^11.8.1",
112
+ "@mui/icons-material": "^6.1.0",
113
+ "@mui/material": "^6.1.0",
114
+ "@mui/styles": "^6.1.0",
115
+ "@mui/system": "^6.1.0",
116
+ "@mui/x-date-pickers": "^7.17.0",
117
+ "@reach/portal": "^0.16.2",
118
+ "@reach/tooltip": "^0.16.2",
119
+ "@tiptap/extension-color": "^2.11.7",
120
+ "@tiptap/extension-highlight": "^2.11.7",
121
+ "@tiptap/extension-table": "^2.11.7",
122
+ "@tiptap/extension-table-cell": "^2.11.7",
123
+ "@tiptap/extension-table-header": "^2.11.7",
124
+ "@tiptap/extension-table-row": "^2.11.7",
125
+ "@tiptap/extension-text-align": "^2.11.7",
126
+ "@tiptap/extension-underline": "^2.11.7",
127
+ "@tiptap/react": "^2.11.7",
128
+ "@tiptap/starter-kit": "^2.11.7",
129
+ "axios": "^1.7.4",
130
+ "cookie": "^0.7.2",
131
+ "cross-env": "^7.0.3",
132
+ "d3-selection": "^1.4.2",
133
+ "d3-shape": "^1.3.7",
134
+ "dayjs": "^1.11.7",
135
+ "jwt-decode": "^3.1.2",
136
+ "lodash": "^4.17.21",
137
+ "preact": "^10.6.4",
138
+ "prop-types": "^15.8.1",
139
+ "react-draggable": "^4.4.6",
140
+ "react-modal": "^3.14.4",
141
+ "retry": "^0.13.1",
142
+ "svgo": "^3.0.3",
143
+ "tiptap-markdown": "^0.8.10",
144
+ "what-input": "^5.2.10",
145
+ "xss": "^1.0.10"
146
+ },
147
+ "peerDependencies": {
148
+ "classnames": "^2.3.1"
149
+ },
150
+ "overrides": {
151
+ "trim": ">=0.0.3",
152
+ "webpack": "^5.70.0",
153
+ "trim-newlines": "^3.0.1",
154
+ "glob-parent": "^6.0.1",
155
+ "semver": "^7.5.3",
156
+ "optionator": "0.9.3"
157
+ }
147
158
  }
@@ -19,6 +19,7 @@
19
19
  @import "components/madie-tooltip";
20
20
  @import "components/text-field-variable";
21
21
  @import "components/pie-chart";
22
+ @import "components/rich-text-editor";
22
23
  @import "components/score-chart";
23
24
  @import "components/wells";
24
25
  @import "components/tables";
@@ -0,0 +1,199 @@
1
+ .control-group {
2
+ border: solid 1px #9c9c9c;
3
+ border-top-left-radius: 3px;
4
+ border-top-right-radius: 3px;
5
+ background-color: #ededed;
6
+ padding-left: 4px;
7
+ padding-right: 4px;
8
+
9
+ .button-group > button {
10
+ padding: 18px;
11
+ border-radius: 0;
12
+ height: 24px;
13
+ width: 24px;
14
+ }
15
+ }
16
+ /* Basic editor styles */
17
+ .tiptap {
18
+ border: solid 1px #9c9c9c;
19
+ border-top: 0;
20
+ border-bottom-left-radius: 3px;
21
+ border-bottom-right-radius: 3px;
22
+ padding-left: 4px;
23
+ padding-right: 4px;
24
+
25
+ :first-child {
26
+ margin-top: 0;
27
+ }
28
+
29
+ /* List styles */
30
+ ul,
31
+ ol {
32
+ padding: 0 1rem;
33
+ margin: 1.25rem 1rem 1.25rem 0.4rem;
34
+
35
+ li p {
36
+ margin-top: 0.25em;
37
+ margin-bottom: 0.25em;
38
+ }
39
+ }
40
+ //unorder
41
+ ul {
42
+ list-style: disc;
43
+ li {
44
+ margin-bottom: 5px;
45
+ }
46
+ li:before {
47
+ margin-right: 10px;
48
+ color: #000;
49
+ text-align: center;
50
+ display: inline-block;
51
+ }
52
+ }
53
+
54
+ //order
55
+ ol {
56
+ counter-reset: item;
57
+ list-style: decimal;
58
+ li {
59
+ counter-increment: item;
60
+ margin-bottom: 5px;
61
+ }
62
+ }
63
+
64
+ /* Heading styles */
65
+ h1,
66
+ h2,
67
+ h3,
68
+ h4,
69
+ h5,
70
+ h6 {
71
+ line-height: 1.1;
72
+ margin-top: 2.5rem;
73
+ text-wrap: pretty;
74
+ }
75
+
76
+ h1,
77
+ h2 {
78
+ margin-top: 3.5rem;
79
+ margin-bottom: 1.5rem;
80
+ }
81
+
82
+ h1 {
83
+ font-size: 1.4rem;
84
+ }
85
+
86
+ h2 {
87
+ font-size: 1.2rem;
88
+ }
89
+
90
+ h3 {
91
+ font-size: 1.1rem;
92
+ }
93
+
94
+ h4,
95
+ h5,
96
+ h6 {
97
+ font-size: 1rem;
98
+ }
99
+
100
+ /* Code and preformatted text styles */
101
+ code {
102
+ background-color: var(--purple-light);
103
+ border-radius: 0.4rem;
104
+ color: var(--black);
105
+ font-size: 0.85rem;
106
+ padding: 0.25em 0.3em;
107
+ }
108
+
109
+ pre {
110
+ background: var(--black);
111
+ border-radius: 0.5rem;
112
+ color: var(--white);
113
+ font-family: "JetBrainsMono", monospace;
114
+ margin: 1.5rem 0;
115
+ padding: 0.75rem 1rem;
116
+
117
+ code {
118
+ background: none;
119
+ color: inherit;
120
+ font-size: 0.8rem;
121
+ padding: 0;
122
+ }
123
+ }
124
+
125
+ blockquote {
126
+ border-left: 3px solid var(--gray-3);
127
+ margin: 1.5rem 0;
128
+ padding-left: 1rem;
129
+ }
130
+
131
+ hr {
132
+ border: none;
133
+ border-top: 1px solid var(--gray-2);
134
+ margin: 2rem 0;
135
+ }
136
+ }
137
+
138
+ /* Bubble menu */
139
+ .bubble-menu {
140
+ background-color: var(--white);
141
+ border: 1px solid var(--gray-1);
142
+ border-radius: 0.7rem;
143
+ box-shadow: var(--shadow);
144
+ display: flex;
145
+ padding: 0.2rem;
146
+
147
+ button {
148
+ background-color: unset;
149
+
150
+ &:hover {
151
+ background-color: var(--gray-3);
152
+ }
153
+
154
+ &.is-active {
155
+ background-color: var(--purple);
156
+
157
+ &:hover {
158
+ background-color: var(--purple-contrast);
159
+ }
160
+ }
161
+ }
162
+ }
163
+
164
+ /* Floating menu */
165
+ .floating-menu {
166
+ display: flex;
167
+ background-color: var(--gray-3);
168
+ padding: 0.1rem;
169
+ border-radius: 0.5rem;
170
+
171
+ button {
172
+ background-color: unset;
173
+ padding: 0.275rem 0.425rem;
174
+ border-radius: 0.3rem;
175
+
176
+ &:hover {
177
+ background-color: var(--gray-3);
178
+ }
179
+
180
+ &.is-active {
181
+ background-color: var(--white);
182
+ color: var(--purple);
183
+
184
+ &:hover {
185
+ color: var(--purple-contrast);
186
+ }
187
+ }
188
+ }
189
+ }
190
+
191
+ table {
192
+ border: solid 1px #000;
193
+ tr {
194
+ border: solid 1px #000;
195
+ td {
196
+ border: solid 1px #000;
197
+ }
198
+ }
199
+ }