@instructure/ui-alerts 8.11.2-snapshot.56 → 8.11.2-snapshot.69
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/es/Alert/index.js +2 -2
- package/lib/Alert/index.js +1 -1
- package/package.json +17 -17
- package/src/Alert/index.tsx +2 -2
- package/types/Alert/index.d.ts.map +1 -1
package/es/Alert/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import { Transition } from '@instructure/ui-motion';
|
|
|
37
37
|
import { logError as error } from '@instructure/console';
|
|
38
38
|
import { uid } from '@instructure/uid';
|
|
39
39
|
import { canvas } from '@instructure/ui-themes';
|
|
40
|
-
import { withStyle, jsx,
|
|
40
|
+
import { withStyle, jsx, InstUISettingsProvider } from '@instructure/emotion';
|
|
41
41
|
import generateStyle from './styles';
|
|
42
42
|
import generateComponentTheme from './theme';
|
|
43
43
|
import { propTypes, allowedProps } from './props';
|
|
@@ -164,7 +164,7 @@ let Alert = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
|
|
|
164
164
|
ReactDOM.render( // since ScreenReaderContent gets rendered outside the app,
|
|
165
165
|
// and uses the withStyle decorator, we need to provide a theme for it,
|
|
166
166
|
// otherwise throws warning (any theme, doesn't use any theme variables)
|
|
167
|
-
jsx(
|
|
167
|
+
jsx(InstUISettingsProvider, {
|
|
168
168
|
theme: canvas
|
|
169
169
|
}, content), div);
|
|
170
170
|
}
|
package/lib/Alert/index.js
CHANGED
|
@@ -170,7 +170,7 @@ let Alert = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _d
|
|
|
170
170
|
_reactDom.default.render( // since ScreenReaderContent gets rendered outside the app,
|
|
171
171
|
// and uses the withStyle decorator, we need to provide a theme for it,
|
|
172
172
|
// otherwise throws warning (any theme, doesn't use any theme variables)
|
|
173
|
-
(0, _emotion.jsx)(_emotion.
|
|
173
|
+
(0, _emotion.jsx)(_emotion.InstUISettingsProvider, {
|
|
174
174
|
theme: _uiThemes.canvas
|
|
175
175
|
}, content), div);
|
|
176
176
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "8.11.2-snapshot.
|
|
3
|
+
"version": "8.11.2-snapshot.69+10d1551b9",
|
|
4
4
|
"description": "An alert component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,24 +24,24 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.11.2-snapshot.
|
|
28
|
-
"@instructure/ui-color-utils": "8.11.2-snapshot.
|
|
29
|
-
"@instructure/ui-test-utils": "8.11.2-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.11.2-snapshot.69+10d1551b9",
|
|
28
|
+
"@instructure/ui-color-utils": "8.11.2-snapshot.69+10d1551b9",
|
|
29
|
+
"@instructure/ui-test-utils": "8.11.2-snapshot.69+10d1551b9"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.13.10",
|
|
33
|
-
"@instructure/console": "8.11.2-snapshot.
|
|
34
|
-
"@instructure/emotion": "8.11.2-snapshot.
|
|
35
|
-
"@instructure/shared-types": "8.11.2-snapshot.
|
|
36
|
-
"@instructure/ui-a11y-content": "8.11.2-snapshot.
|
|
37
|
-
"@instructure/ui-buttons": "8.11.2-snapshot.
|
|
38
|
-
"@instructure/ui-icons": "8.11.2-snapshot.
|
|
39
|
-
"@instructure/ui-motion": "8.11.2-snapshot.
|
|
40
|
-
"@instructure/ui-react-utils": "8.11.2-snapshot.
|
|
41
|
-
"@instructure/ui-themes": "8.11.2-snapshot.
|
|
42
|
-
"@instructure/ui-utils": "8.11.2-snapshot.
|
|
43
|
-
"@instructure/ui-view": "8.11.2-snapshot.
|
|
44
|
-
"@instructure/uid": "8.11.2-snapshot.
|
|
33
|
+
"@instructure/console": "8.11.2-snapshot.69+10d1551b9",
|
|
34
|
+
"@instructure/emotion": "8.11.2-snapshot.69+10d1551b9",
|
|
35
|
+
"@instructure/shared-types": "8.11.2-snapshot.69+10d1551b9",
|
|
36
|
+
"@instructure/ui-a11y-content": "8.11.2-snapshot.69+10d1551b9",
|
|
37
|
+
"@instructure/ui-buttons": "8.11.2-snapshot.69+10d1551b9",
|
|
38
|
+
"@instructure/ui-icons": "8.11.2-snapshot.69+10d1551b9",
|
|
39
|
+
"@instructure/ui-motion": "8.11.2-snapshot.69+10d1551b9",
|
|
40
|
+
"@instructure/ui-react-utils": "8.11.2-snapshot.69+10d1551b9",
|
|
41
|
+
"@instructure/ui-themes": "8.11.2-snapshot.69+10d1551b9",
|
|
42
|
+
"@instructure/ui-utils": "8.11.2-snapshot.69+10d1551b9",
|
|
43
|
+
"@instructure/ui-view": "8.11.2-snapshot.69+10d1551b9",
|
|
44
|
+
"@instructure/uid": "8.11.2-snapshot.69+10d1551b9",
|
|
45
45
|
"keycode": "^2",
|
|
46
46
|
"prop-types": "^15"
|
|
47
47
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"sideEffects": false,
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "10d1551b961c568d88c9c5f3393815f637662995"
|
|
57
57
|
}
|
package/src/Alert/index.tsx
CHANGED
|
@@ -40,7 +40,7 @@ import { Transition } from '@instructure/ui-motion'
|
|
|
40
40
|
import { logError as error } from '@instructure/console'
|
|
41
41
|
import { uid } from '@instructure/uid'
|
|
42
42
|
import { canvas } from '@instructure/ui-themes'
|
|
43
|
-
import { withStyle, jsx,
|
|
43
|
+
import { withStyle, jsx, InstUISettingsProvider } from '@instructure/emotion'
|
|
44
44
|
|
|
45
45
|
import generateStyle from './styles'
|
|
46
46
|
import generateComponentTheme from './theme'
|
|
@@ -197,7 +197,7 @@ class Alert extends Component<AlertProps> {
|
|
|
197
197
|
// since ScreenReaderContent gets rendered outside the app,
|
|
198
198
|
// and uses the withStyle decorator, we need to provide a theme for it,
|
|
199
199
|
// otherwise throws warning (any theme, doesn't use any theme variables)
|
|
200
|
-
<
|
|
200
|
+
<InstUISettingsProvider theme={canvas}>{content}</InstUISettingsProvider>,
|
|
201
201
|
div
|
|
202
202
|
)
|
|
203
203
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAK9B,OAAO,EAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAuBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAQjC,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAK9B,OAAO,EAAa,GAAG,EAA0B,MAAM,sBAAsB,CAAA;AAM7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC;;;;GAIG;AACH,cACM,KAAM,SAAQ,SAAS,CAAC,UAAU,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAWlB;gBAGW,KAAK,KAAA;IAQjB,SAAS,UAAK;IAEd,SAAS;;;;;MAKR;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,aAAa,aAUZ;IAED,aAAa;IAKb,gBAAgB,aAIf;IAED,KAAK,aAQJ;IAID,SAAS,CAAC,CAAC,KAAA;IAIX,aAAa;IAUb,cAAc,CAAC,UAAU,KAAA;IAazB,6BAA6B;IAI7B,uBAAuB;IAevB,uBAAuB;IAcvB,wBAAwB,CAAC,GAAG,KAAA;IAW5B,uBAAuB;IAwBvB,WAAW,uBAOV;IAED,iBAAiB;IAajB,kBAAkB,CAAC,SAAS,KAAA;IAc5B,oBAAoB;IAKpB,UAAU;IAUV,iBAAiB;IAgBjB,WAAW;IAgBX,MAAM;CA4BP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
|