@muraldevkit/ui-toolkit 2.74.0-dev.1 → 2.75.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.
@@ -18,6 +18,13 @@ $mrl-notification-close-inset: var(--mrl-spacing-02);
18
18
  padding: var(--mrl-blockNotification-inset-spacing);
19
19
  position: relative;
20
20
  width: 100%;
21
+ &[data-scope='inline'] {
22
+ display: inline-flex;
23
+ width: auto;
24
+ .cta {
25
+ margin: var(--mrl-blockNotification-cta-spacing);
26
+ }
27
+ }
21
28
  .mrl-blockNotification-close-wrapper {
22
29
  position: absolute;
23
30
  right: $mrl-notification-close-inset;
@@ -11,16 +11,42 @@
11
11
  --mrl-blockNotification-radius: 0;
12
12
  --mrl-blockNotification-svg-color: var(--mrl-color-text-inverse);
13
13
  }
14
+ .mrl-blockNotification[data-kind='info'] {
15
+ --mrl-blockNotification-background: var(--mrl-color-background-info);
16
+ &[data-scope='inline'] {
17
+ --mrl-blockNotification-background: var(--mrl-color-background-info-light);
18
+ --mrl-blockNotification-color: var(--mrl-color-text-info);
19
+ --mrl-blockNotification-heading-color: var(--mrl-color-text-info);
20
+ }
21
+ }
14
22
  .mrl-blockNotification[data-kind='error'] {
15
23
  --mrl-blockNotification-background: var(--mrl-color-background-error);
24
+ &[data-scope='inline'] {
25
+ --mrl-blockNotification-background: var(--mrl-color-background-error-light);
26
+ --mrl-blockNotification-color: var(--mrl-color-text-error);
27
+ --mrl-blockNotification-heading-color: var(--mrl-color-text-error);
28
+ }
16
29
  }
17
30
  .mrl-blockNotification[data-kind='success'] {
18
31
  --mrl-blockNotification-background: var(--mrl-color-background-success);
32
+ &[data-scope='inline'] {
33
+ --mrl-blockNotification-background: var(--mrl-color-background-success-light);
34
+ --mrl-blockNotification-color: var(--mrl-color-text-success);
35
+ --mrl-blockNotification-heading-color: var(--mrl-color-text-success);
36
+ }
19
37
  }
20
38
  .mrl-blockNotification[data-kind='warning'] {
21
39
  --mrl-blockNotification-background: var(--mrl-color-background-warning);
22
40
  --mrl-blockNotification-color: rgba(var(--mrl-gray-90), 1);
23
41
  --mrl-blockNotification-heading-color: rgba(var(--mrl-black), 1);
42
+ &[data-scope='inline'] {
43
+ --mrl-blockNotification-background: var(--mrl-color-background-warning-light);
44
+ --mrl-blockNotification-color: var(--mrl-color-text-warning);
45
+ --mrl-blockNotification-heading-color: var(--mrl-color-text-warning);
46
+ svg {
47
+ --mrl-blockNotification-color: var(--mrl-color-text-warning);
48
+ }
49
+ }
24
50
  }
25
51
  .mrl-blockNotification[data-kind='general'],
26
52
  .mrl-blockNotification[data-kind='private'] {
@@ -29,3 +55,13 @@
29
55
  .mrl-blockNotification[data-scope='component'] {
30
56
  --mrl-blockNotification-radius: var(--mrl-radii-01);
31
57
  }
58
+ .mrl-blockNotification[data-scope='inline'] {
59
+ --mrl-blockNotification-radius: var(--mrl-border-radius-content-large);
60
+ --mrl-blockNotification-inset-spacing: calc(var(--mrl-spacing-03) + var(--mrl-spacing-01))
61
+ var(--mrl-spacing-04);
62
+ --mrl-blockNotification-cta-spacing: calc(
63
+ calc(var(--mrl-spacing-03) - var(--mrl-spacing-01)) * -1
64
+ )
65
+ calc(var(--mrl-spacing-03) * -1) calc(calc(var(--mrl-spacing-03) - var(--mrl-spacing-01)) * -1)
66
+ 0;
67
+ }
package/package.json CHANGED
@@ -1,148 +1,149 @@
1
1
  {
2
- "name": "@muraldevkit/ui-toolkit",
3
- "version": "2.74.0-dev.1",
4
- "description": "Mural's UI Toolkit",
5
- "main": "./dist/index.js",
6
- "module": "./dist/index.js",
7
- "types": "./dist/index.d.ts",
8
- "engines": {
9
- "node": "18.x",
10
- "npm": "9.x"
11
- },
12
- "files": [
13
- "dist"
14
- ],
15
- "scripts": {
16
- "build": "webpack --mode=production",
17
- "compile": "storybook build",
18
- "dev": "npm run compile && npm run serve",
19
- "lint": "npm run lint:scripts && npm run lint:styles",
20
- "lint:config": "eslint '.storybook/*.{js,jsx,ts,tsx}'",
21
- "lint:config:fix": "eslint '.storybook/*.{js,jsx,ts,tsx}' --fix",
22
- "lint:fix": "npm run lint:scripts:fix && npm run lint:styles:fix",
23
- "lint:scripts": "eslint '**/*.{js,jsx,ts,tsx}'",
24
- "lint:styles": "stylelint src/components/**/*.{css,scss}",
25
- "lint:scripts:fix": "eslint '**/*.{js,jsx,ts,tsx}' --fix",
26
- "lint:styles:fix": "stylelint --fix src/components/**/*.{css,scss}",
27
- "prebuild": "rimraf dist",
28
- "create-component": "./scripts/createComponent.sh; npm run lint:fix;",
29
- "prepare": "husky install",
30
- "publish:local": "npm run build && npm pack",
31
- "release": "npx semantic-release",
32
- "serve": "storybook dev -p 6006",
33
- "test": "jest",
34
- "test:scan": "npx test-storybook --maxWorkers=2",
35
- "test:single": "jest $1",
36
- "test:single:watch": "jest --watch $1",
37
- "test:watch": "jest --watchAll",
38
- "test:watch:file": "jest --watch $npm_config_file",
39
- "test:updateSnapshot": "jest --updateSnapshot",
40
- "yalc": "npm run build; yalc publish"
41
- },
42
- "publishConfig": {
43
- "access": "public"
44
- },
45
- "license": "https://www.mural.co/terms/developer-addendum",
46
- "peerDependencies": {
47
- "@muraldevkit/ds-foundation": ">=2.1.0",
48
- "@muraldevkit/ds-icons": ">=1.1.0",
49
- "@muraldevkit/ds-icons-animated": ">=1.0.1",
50
- "@muraldevkit/ds-pictograms": ">=1.1.0",
51
- "@react-spring/web": "9.4.2",
52
- "@tactivos/mural-shared": "2.8.0",
53
- "lottie-web": "^5.9.6",
54
- "react": ">=16.9",
55
- "react-dom": ">=16.9"
56
- },
57
- "devDependencies": {
58
- "@babel/core": "7.21.4",
59
- "@babel/node": "7.20.7",
60
- "@babel/plugin-proposal-class-properties": "7.18.6",
61
- "@babel/preset-env": "7.21.4",
62
- "@babel/preset-react": "7.18.6",
63
- "@babel/preset-typescript": "7.21.4",
64
- "@muraldevkit/ds-foundation": "2.5.0",
65
- "@muraldevkit/ds-icons": "3.0.1",
66
- "@storybook/addon-a11y": "7.0.26",
67
- "@storybook/addon-docs": "7.0.26",
68
- "@storybook/addon-essentials": "7.0.26",
69
- "@storybook/addon-interactions": "7.0.26",
70
- "@storybook/addon-links": "7.0.26",
71
- "@storybook/blocks": "7.0.26",
72
- "@storybook/react": "7.0.26",
73
- "@storybook/react-webpack5": "7.0.26",
74
- "@storybook/test-runner": "0.11.0",
75
- "@storybook/testing-library": "0.2.0",
76
- "@testing-library/dom": "7.31.0",
77
- "@testing-library/jest-dom": "5.16.5",
78
- "@testing-library/react": "12.1.2",
79
- "@testing-library/user-event": "13.1.9",
80
- "@types/classnames": "2.2.5",
81
- "@types/jest": "29.5.1",
82
- "@types/lodash.debounce": "4.0.7",
83
- "@types/lodash.isequal": "4.5.8",
84
- "@types/path-browserify": "1.0.2",
85
- "@types/react": "16.8.25",
86
- "@types/react-dom": "16.9.0",
87
- "@typescript-eslint/eslint-plugin": "4.33.0",
88
- "@typescript-eslint/parser": "4.33.0",
89
- "axe-playwright": "1.2.3",
90
- "babel-loader": "9.1.2",
91
- "copy-webpack-plugin": "11.0.0",
92
- "css-loader": "6.7.3",
93
- "eslint": "7.32.0",
94
- "eslint-config-prettier": "8.6.0",
95
- "eslint-plugin-import": "2.26.0",
96
- "eslint-plugin-jsdoc": "39.6.4",
97
- "eslint-plugin-jsx-a11y": "6.7.1",
98
- "eslint-plugin-prettier": "3.4.1",
99
- "eslint-plugin-react": "7.31.11",
100
- "eslint-plugin-react-hooks": "4.6.0",
101
- "eslint-plugin-storybook": "0.6.12",
102
- "file-loader": "6.2.0",
103
- "html-webpack-plugin": "5.5.1",
104
- "husky": "8.0.0",
105
- "identity-obj-proxy": "3.0.0",
106
- "jest": "29.5.0",
107
- "jest-canvas-mock": "2.5.1",
108
- "jest-environment-jsdom": "29.5.0",
109
- "jest-matchmedia-mock": "1.1.0",
110
- "lint-staged": "13.2.2",
111
- "null-loader": "4.0.1",
112
- "prettier": "2.8.8",
113
- "react-markdown": "8.0.7",
114
- "rimraf": "5.0.0",
115
- "sass": "1.62.1",
116
- "sass-loader": "13.2.2",
117
- "semantic-release": "19.0.5",
118
- "storybook": "7.0.26",
119
- "style-loader": "3.3.2",
120
- "stylelint": "14.16.1",
121
- "stylelint-config-prettier": "9.0.4",
122
- "stylelint-config-standard": "29.0.0",
123
- "stylelint-config-standard-scss": "6.1.0",
124
- "stylelint-order": "6.0.0",
125
- "stylelint-sassdoc": "0.4.2",
126
- "stylelint-scss": "4.6.0",
127
- "ts-jest": "29.1.0",
128
- "ts-loader": "9.4.2",
129
- "typescript": "5.0.4",
130
- "webpack": "5.80.0",
131
- "webpack-cli": "5.0.1",
132
- "webpack-dev-server": "4.13.3"
133
- },
134
- "dependencies": {
135
- "@react-spring/web": "9.4.2",
136
- "classnames": "2.2.5",
137
- "lodash.debounce": "4.0.8",
138
- "lodash.isequal": "4.4.0",
139
- "path-browserify": "1.0.1",
140
- "react": ">=16.9",
141
- "react-dom": ">=16.9"
142
- },
143
- "lint-staged": {
144
- "src/**": "prettier --ignore-unknown --write",
145
- "src/**/*.{ts,tsx,js,jsx}": "eslint --fix",
146
- "src/**/*.{css,sass,scss}": "stylelint --fix"
147
- }
2
+ "name": "@muraldevkit/ui-toolkit",
3
+ "version": "2.75.0",
4
+ "description": "Mural's UI Toolkit",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "engines": {
9
+ "node": "18.x",
10
+ "npm": "9.x"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "scripts": {
16
+ "build": "webpack --mode=production",
17
+ "compile": "storybook build",
18
+ "dev": "npm run compile && npm run serve",
19
+ "lint": "npm run lint:scripts && npm run lint:styles",
20
+ "lint:config": "eslint '.storybook/*.{js,jsx,ts,tsx}'",
21
+ "lint:config:fix": "eslint '.storybook/*.{js,jsx,ts,tsx}' --fix",
22
+ "lint:fix": "npm run lint:scripts:fix && npm run lint:styles:fix",
23
+ "lint:scripts": "eslint '**/*.{js,jsx,ts,tsx}'",
24
+ "lint:styles": "stylelint src/components/**/*.{css,scss}",
25
+ "lint:scripts:fix": "eslint '**/*.{js,jsx,ts,tsx}' --fix",
26
+ "lint:styles:fix": "stylelint --fix src/components/**/*.{css,scss}",
27
+ "prebuild": "rimraf dist",
28
+ "create-component": "./scripts/createComponent.sh; npm run lint:fix;",
29
+ "prepare": "husky install",
30
+ "publish:local": "npm run build && npm pack",
31
+ "release": "npx semantic-release",
32
+ "serve": "storybook dev -p 6006",
33
+ "test": "jest",
34
+ "test:scan": "npx test-storybook --maxWorkers=2",
35
+ "test:single": "jest $1",
36
+ "test:single:watch": "jest --watch $1",
37
+ "test:watch": "jest --watchAll",
38
+ "test:watch:file": "jest --watch $npm_config_file",
39
+ "test:updateSnapshot": "jest --updateSnapshot",
40
+ "yalc": "npm run build; yalc publish"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "license": "https://www.mural.co/terms/developer-addendum",
46
+ "peerDependencies": {
47
+ "@muraldevkit/ds-foundation": ">=2.1.0",
48
+ "@muraldevkit/ds-icons": ">=1.1.0",
49
+ "@muraldevkit/ds-icons-animated": ">=1.0.1",
50
+ "@muraldevkit/ds-pictograms": ">=1.1.0",
51
+ "@react-spring/web": "9.4.2",
52
+ "@tactivos/mural-shared": "2.8.0",
53
+ "lottie-web": "^5.9.6",
54
+ "react": ">=16.9",
55
+ "react-dom": ">=16.9"
56
+ },
57
+ "devDependencies": {
58
+ "@babel/core": "7.21.4",
59
+ "@babel/node": "7.20.7",
60
+ "@babel/plugin-proposal-class-properties": "7.18.6",
61
+ "@babel/preset-env": "7.21.4",
62
+ "@babel/preset-react": "7.18.6",
63
+ "@babel/preset-typescript": "7.21.4",
64
+ "@muraldevkit/ds-foundation": "2.6.0",
65
+ "@muraldevkit/ds-icons": "3.0.1",
66
+ "@storybook/addon-a11y": "8.0.10",
67
+ "@storybook/addon-docs": "8.0.10",
68
+ "@storybook/addon-essentials": "8.0.10",
69
+ "@storybook/addon-interactions": "8.0.10",
70
+ "@storybook/addon-links": "8.0.10",
71
+ "@storybook/addon-webpack5-compiler-swc": "1.0.2",
72
+ "@storybook/blocks": "8.0.10",
73
+ "@storybook/react": "8.0.10",
74
+ "@storybook/react-webpack5": "8.0.10",
75
+ "@storybook/test-runner": "0.17.0",
76
+ "@testing-library/dom": "7.31.0",
77
+ "@testing-library/jest-dom": "5.16.5",
78
+ "@testing-library/react": "12.1.2",
79
+ "@testing-library/user-event": "13.1.9",
80
+ "@types/classnames": "2.2.5",
81
+ "@types/jest": "29.5.1",
82
+ "@types/lodash.debounce": "4.0.7",
83
+ "@types/lodash.isequal": "4.5.8",
84
+ "@types/path-browserify": "1.0.2",
85
+ "@types/react": "16.8.25",
86
+ "@types/react-dom": "16.9.0",
87
+ "@typescript-eslint/eslint-plugin": "4.33.0",
88
+ "@typescript-eslint/parser": "4.33.0",
89
+ "axe-playwright": "1.2.3",
90
+ "babel-loader": "9.1.2",
91
+ "copy-webpack-plugin": "11.0.0",
92
+ "css-loader": "6.7.3",
93
+ "eslint": "7.32.0",
94
+ "eslint-config-prettier": "8.6.0",
95
+ "eslint-plugin-import": "2.26.0",
96
+ "eslint-plugin-jsdoc": "39.6.4",
97
+ "eslint-plugin-jsx-a11y": "6.7.1",
98
+ "eslint-plugin-prettier": "3.4.1",
99
+ "eslint-plugin-react": "7.31.11",
100
+ "eslint-plugin-react-hooks": "4.6.0",
101
+ "eslint-plugin-storybook": "0.8.0",
102
+ "file-loader": "6.2.0",
103
+ "html-webpack-plugin": "5.5.1",
104
+ "husky": "8.0.0",
105
+ "identity-obj-proxy": "3.0.0",
106
+ "jest": "29.5.0",
107
+ "jest-canvas-mock": "2.5.1",
108
+ "jest-environment-jsdom": "29.5.0",
109
+ "jest-matchmedia-mock": "1.1.0",
110
+ "lint-staged": "13.2.2",
111
+ "null-loader": "4.0.1",
112
+ "prettier": "2.8.8",
113
+ "react-markdown": "8.0.7",
114
+ "rimraf": "5.0.0",
115
+ "sass": "1.62.1",
116
+ "sass-loader": "13.2.2",
117
+ "semantic-release": "19.0.5",
118
+ "storybook": "8.0.10",
119
+ "style-loader": "3.3.2",
120
+ "stylelint": "14.16.1",
121
+ "stylelint-config-prettier": "9.0.4",
122
+ "stylelint-config-standard": "29.0.0",
123
+ "stylelint-config-standard-scss": "6.1.0",
124
+ "stylelint-order": "6.0.0",
125
+ "stylelint-sassdoc": "0.4.2",
126
+ "stylelint-scss": "4.6.0",
127
+ "ts-jest": "29.1.0",
128
+ "ts-loader": "9.4.2",
129
+ "typescript": "5.0.4",
130
+ "webpack": "5.80.0",
131
+ "webpack-cli": "5.0.1",
132
+ "webpack-dev-server": "4.13.3"
133
+ },
134
+ "dependencies": {
135
+ "@react-spring/web": "9.4.2",
136
+ "@storybook/test": "8.0.10",
137
+ "classnames": "2.2.5",
138
+ "lodash.debounce": "4.0.8",
139
+ "lodash.isequal": "4.4.0",
140
+ "path-browserify": "1.0.1",
141
+ "react": ">=16.9",
142
+ "react-dom": ">=16.9"
143
+ },
144
+ "lint-staged": {
145
+ "src/**": "prettier --ignore-unknown --write",
146
+ "src/**/*.{ts,tsx,js,jsx}": "eslint --fix",
147
+ "src/**/*.{css,sass,scss}": "stylelint --fix"
148
+ }
148
149
  }