@instructure/ui-table 8.53.3-pr-snapshot-8 → 8.53.3-pr-snapshot-1709124298948

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +5 -2
  2. package/README.md +1 -1
  3. package/es/Table/Body/index.js +4 -3
  4. package/es/Table/Cell/index.js +4 -3
  5. package/es/Table/ColHeader/index.js +21 -12
  6. package/es/Table/Head/index.js +11 -10
  7. package/es/Table/Row/index.js +4 -3
  8. package/es/Table/RowHeader/index.js +4 -3
  9. package/es/Table/index.js +5 -4
  10. package/lib/Table/Body/index.js +3 -2
  11. package/lib/Table/Cell/index.js +3 -2
  12. package/lib/Table/ColHeader/index.js +20 -12
  13. package/lib/Table/Head/index.js +10 -9
  14. package/lib/Table/Row/index.js +3 -2
  15. package/lib/Table/RowHeader/index.js +3 -2
  16. package/lib/Table/index.js +4 -3
  17. package/package.json +16 -16
  18. package/src/Table/Body/index.tsx +1 -2
  19. package/src/Table/Body/props.ts +1 -1
  20. package/src/Table/Cell/index.tsx +1 -2
  21. package/src/Table/ColHeader/index.tsx +2 -3
  22. package/src/Table/Head/index.tsx +1 -2
  23. package/src/Table/Head/props.ts +0 -1
  24. package/src/Table/Row/index.tsx +1 -2
  25. package/src/Table/Row/props.ts +0 -1
  26. package/src/Table/RowHeader/index.tsx +1 -2
  27. package/src/Table/index.tsx +1 -2
  28. package/src/Table/props.ts +1 -1
  29. package/tsconfig.build.tsbuildinfo +1 -1
  30. package/types/Table/Body/index.d.ts +1 -3
  31. package/types/Table/Body/index.d.ts.map +1 -1
  32. package/types/Table/Body/props.d.ts +1 -1
  33. package/types/Table/Body/props.d.ts.map +1 -1
  34. package/types/Table/Cell/index.d.ts +1 -3
  35. package/types/Table/Cell/index.d.ts.map +1 -1
  36. package/types/Table/ColHeader/index.d.ts +7 -9
  37. package/types/Table/ColHeader/index.d.ts.map +1 -1
  38. package/types/Table/Head/index.d.ts +2 -4
  39. package/types/Table/Head/index.d.ts.map +1 -1
  40. package/types/Table/Head/props.d.ts +1 -1
  41. package/types/Table/Head/props.d.ts.map +1 -1
  42. package/types/Table/Row/index.d.ts +1 -3
  43. package/types/Table/Row/index.d.ts.map +1 -1
  44. package/types/Table/Row/props.d.ts +1 -1
  45. package/types/Table/Row/props.d.ts.map +1 -1
  46. package/types/Table/RowHeader/index.d.ts +1 -3
  47. package/types/Table/RowHeader/index.d.ts.map +1 -1
  48. package/types/Table/index.d.ts +1 -3
  49. package/types/Table/index.d.ts.map +1 -1
  50. package/types/Table/props.d.ts +1 -1
  51. package/types/Table/props.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,9 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [8.53.3-pr-snapshot-8](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.53.3-pr-snapshot-8) (2024-02-23)
6
+ ## [8.53.3-pr-snapshot-1709124298948](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.53.3-pr-snapshot-1709124298948) (2024-02-28)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-table
8
+
9
+ ### Bug Fixes
10
+
11
+ * **many:** remove emotion's jsx pragma ([7435d5c](https://github.com/instructure/instructure-ui/commit/7435d5c31ca6556a1f95c4dfde156d5a76aad7de))
9
12
 
10
13
 
11
14
 
package/README.md CHANGED
@@ -28,7 +28,7 @@ npm install @instructure/ui-table
28
28
  ---
29
29
  type: code
30
30
  ---
31
- import React from 'react'
31
+
32
32
  import { Table } from '@instructure/ui-table'
33
33
 
34
34
  const MyTable = () => {
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  var _dec, _class, _class2;
2
3
  /*
3
4
  * The MIT License (MIT)
@@ -23,11 +24,10 @@ var _dec, _class, _class2;
23
24
  * SOFTWARE.
24
25
  */
25
26
 
26
- /** @jsx jsx */
27
27
  import { Component, Children } from 'react';
28
28
  import { matchComponentTypes, safeCloneElement, omitProps } from '@instructure/ui-react-utils';
29
29
  import { View } from '@instructure/ui-view';
30
- import { withStyle, jsx } from '@instructure/emotion';
30
+ import { withStyle } from '@instructure/emotion';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
33
33
  import { Row } from '../Row';
@@ -39,6 +39,7 @@ parent: Table
39
39
  id: Table.Body
40
40
  ---
41
41
  **/
42
+ import { jsx as ___EmotionJSX } from "@emotion/react";
42
43
  let Body = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Body extends Component {
43
44
  componentDidMount() {
44
45
  var _this$props$makeStyle, _this$props;
@@ -55,7 +56,7 @@ let Body = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
55
56
  isStacked = _this$props3.isStacked,
56
57
  headers = _this$props3.headers,
57
58
  styles = _this$props3.styles;
58
- return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Body.allowedProps), Body), {
59
+ return ___EmotionJSX(View, _extends({}, View.omitViewProps(omitProps(this.props, Body.allowedProps), Body), {
59
60
  as: isStacked ? 'div' : 'tbody',
60
61
  css: styles === null || styles === void 0 ? void 0 : styles.body,
61
62
  role: isStacked ? 'rowgroup' : void 0
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  var _dec, _class, _class2;
2
3
  /*
3
4
  * The MIT License (MIT)
@@ -23,11 +24,10 @@ var _dec, _class, _class2;
23
24
  * SOFTWARE.
24
25
  */
25
26
 
26
- /** @jsx jsx */
27
27
  import { Component } from 'react';
28
28
  import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
29
29
  import { View } from '@instructure/ui-view';
30
- import { withStyle, jsx } from '@instructure/emotion';
30
+ import { withStyle } from '@instructure/emotion';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
33
33
  import { allowedProps, propTypes } from './props';
@@ -38,6 +38,7 @@ parent: Table
38
38
  id: Table.Cell
39
39
  ---
40
40
  **/
41
+ import { jsx as ___EmotionJSX } from "@emotion/react";
41
42
  let Cell = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Cell extends Component {
42
43
  componentDidMount() {
43
44
  var _this$props$makeStyle, _this$props;
@@ -53,7 +54,7 @@ let Cell = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
53
54
  styles = _this$props3.styles,
54
55
  isStacked = _this$props3.isStacked,
55
56
  header = _this$props3.header;
56
- return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Cell.allowedProps), Cell), {
57
+ return ___EmotionJSX(View, _extends({}, View.omitViewProps(omitProps(this.props, Cell.allowedProps), Cell), {
57
58
  as: isStacked ? 'div' : 'td',
58
59
  css: styles === null || styles === void 0 ? void 0 : styles.cell,
59
60
  role: isStacked ? 'cell' : void 0
@@ -1,4 +1,6 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  var _dec, _class, _class2, _IconMiniArrowUpLine, _IconMiniArrowDownLin;
3
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
4
  /*
3
5
  * The MIT License (MIT)
4
6
  *
@@ -23,11 +25,10 @@ var _dec, _class, _class2, _IconMiniArrowUpLine, _IconMiniArrowDownLin;
23
25
  * SOFTWARE.
24
26
  */
25
27
 
26
- /** @jsx jsx */
27
- import React, { Component } from 'react';
28
+ import { Component } from 'react';
28
29
  import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
29
30
  import { IconMiniArrowUpLine, IconMiniArrowDownLine, IconMiniArrowDoubleLine } from '@instructure/ui-icons';
30
- import { withStyle, jsx } from '@instructure/emotion';
31
+ import { withStyle } from '@instructure/emotion';
31
32
  import generateStyle from './styles';
32
33
  import generateComponentTheme from './theme';
33
34
  import { allowedProps, propTypes } from './props';
@@ -38,6 +39,16 @@ parent: Table
38
39
  id: Table.ColHeader
39
40
  ---
40
41
  **/
42
+ import { jsx as ___EmotionJSX } from "@emotion/react";
43
+ var _ref = process.env.NODE_ENV === "production" ? {
44
+ name: "12nu0b9",
45
+ styles: "opacity:30%"
46
+ } : {
47
+ name: "1s4709l-ColHeader",
48
+ styles: "opacity:30%;label:ColHeader;",
49
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9UYWJsZS9Db2xIZWFkZXIvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9Gc0MiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL1RhYmxlL0NvbEhlYWRlci9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogVGhlIE1JVCBMaWNlbnNlIChNSVQpXG4gKlxuICogQ29weXJpZ2h0IChjKSAyMDE1IC0gcHJlc2VudCBJbnN0cnVjdHVyZSwgSW5jLlxuICpcbiAqIFBlcm1pc3Npb24gaXMgaGVyZWJ5IGdyYW50ZWQsIGZyZWUgb2YgY2hhcmdlLCB0byBhbnkgcGVyc29uIG9idGFpbmluZyBhIGNvcHlcbiAqIG9mIHRoaXMgc29mdHdhcmUgYW5kIGFzc29jaWF0ZWQgZG9jdW1lbnRhdGlvbiBmaWxlcyAodGhlIFwiU29mdHdhcmVcIiksIHRvIGRlYWxcbiAqIGluIHRoZSBTb2Z0d2FyZSB3aXRob3V0IHJlc3RyaWN0aW9uLCBpbmNsdWRpbmcgd2l0aG91dCBsaW1pdGF0aW9uIHRoZSByaWdodHNcbiAqIHRvIHVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwgcHVibGlzaCwgZGlzdHJpYnV0ZSwgc3VibGljZW5zZSwgYW5kL29yIHNlbGxcbiAqIGNvcGllcyBvZiB0aGUgU29mdHdhcmUsIGFuZCB0byBwZXJtaXQgc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xuICAgICAgICB7Li4ub21pdFByb3BzKHRoaXMucHJvcHMsIENvbEhlYWRlci5hbGxvd2VkUHJvcHMpfVxuICAgICAgICBjc3M9e3N0eWxlcz8uY29sSGVhZGVyfVxuICAgICAgICBzdHlsZT17e1xuICAgICAgICAgIHdpZHRoXG4gICAgICAgIH19XG4gICAgICAgIHNjb3BlPXtzY29wZX1cbiAgICAgICAgYXJpYS1zb3J0PXtzb3J0RGlyZWN0aW9ufVxuICAgICAgPlxuICAgICAgICB7b25SZXF1ZXN0U29ydCAmJiAoXG4gICAgICAgICAgPGJ1dHRvbiBvbkNsaWNrPXt0aGlzLmhhbmRsZUNsaWNrfSBjc3M9e3N0eWxlcz8uYnV0dG9ufT5cbiAgICAgICAgICAgIDxkaXYgY3NzPXtzdHlsZXM/LmJ1dHRvbkNvbnRlbnR9PlxuICAgICAgICAgICAgICB7Y2FsbFJlbmRlclByb3AoY2hpbGRyZW4pfVxuICAgICAgICAgICAgICB7dGhpcy5yZW5kZXJTb3J0QXJyb3coKX1cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICApfVxuICAgICAgICB7IW9uUmVxdWVzdFNvcnQgJiYgY2hpbGRyZW59XG4gICAgICAgIHshb25SZXF1ZXN0U29ydCAmJiB0aGlzLnJlbmRlclNvcnRBcnJvdygpfVxuICAgICAgPC90aD5cbiAgICApXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29sSGVhZGVyXG5leHBvcnQgeyBDb2xIZWFkZXIgfVxuIl19 */",
50
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
51
+ };
41
52
  let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class ColHeader extends Component {
42
53
  constructor(...args) {
43
54
  super(...args);
@@ -63,16 +74,14 @@ let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
63
74
  sortDirection = _this$props4.sortDirection,
64
75
  onRequestSort = _this$props4.onRequestSort;
65
76
  if (sortDirection === 'ascending') {
66
- return _IconMiniArrowUpLine || (_IconMiniArrowUpLine = jsx(IconMiniArrowUpLine, null));
77
+ return _IconMiniArrowUpLine || (_IconMiniArrowUpLine = ___EmotionJSX(IconMiniArrowUpLine, null));
67
78
  }
68
79
  if (sortDirection === 'descending') {
69
- return _IconMiniArrowDownLin || (_IconMiniArrowDownLin = jsx(IconMiniArrowDownLine, null));
80
+ return _IconMiniArrowDownLin || (_IconMiniArrowDownLin = ___EmotionJSX(IconMiniArrowDownLine, null));
70
81
  }
71
82
  if (onRequestSort) {
72
- return jsx(IconMiniArrowDoubleLine, {
73
- css: {
74
- opacity: '30%'
75
- }
83
+ return ___EmotionJSX(IconMiniArrowDoubleLine, {
84
+ css: _ref
76
85
  });
77
86
  }
78
87
  return void 0;
@@ -85,17 +94,17 @@ let ColHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
85
94
  sortDirection = _this$props5.sortDirection,
86
95
  scope = _this$props5.scope,
87
96
  styles = _this$props5.styles;
88
- return jsx("th", Object.assign({}, omitProps(this.props, ColHeader.allowedProps), {
97
+ return ___EmotionJSX("th", _extends({}, omitProps(this.props, ColHeader.allowedProps), {
89
98
  css: styles === null || styles === void 0 ? void 0 : styles.colHeader,
90
99
  style: {
91
100
  width
92
101
  },
93
102
  scope: scope,
94
103
  "aria-sort": sortDirection
95
- }), onRequestSort && jsx("button", {
104
+ }), onRequestSort && ___EmotionJSX("button", {
96
105
  onClick: this.handleClick,
97
106
  css: styles === null || styles === void 0 ? void 0 : styles.button
98
- }, jsx("div", {
107
+ }, ___EmotionJSX("div", {
99
108
  css: styles === null || styles === void 0 ? void 0 : styles.buttonContent
100
109
  }, callRenderProp(children), this.renderSortArrow())), !onRequestSort && children, !onRequestSort && this.renderSortArrow());
101
110
  }
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
3
  var _dec, _class, _class2, _ScreenReaderContent;
3
4
  /*
@@ -24,14 +25,13 @@ var _dec, _class, _class2, _ScreenReaderContent;
24
25
  * SOFTWARE.
25
26
  */
26
27
 
27
- /** @jsx jsx */
28
28
  import { Component, Children } from 'react';
29
29
  import { omitProps, matchComponentTypes, callRenderProp } from '@instructure/ui-react-utils';
30
30
  import { SimpleSelect } from '@instructure/ui-simple-select';
31
31
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
32
32
  import { IconCheckLine } from '@instructure/ui-icons';
33
33
  import { warn } from '@instructure/console';
34
- import { withStyle, jsx } from '@instructure/emotion';
34
+ import { withStyle } from '@instructure/emotion';
35
35
  import generateStyle from './styles';
36
36
  import generateComponentTheme from './theme';
37
37
  import { Row } from '../Row';
@@ -44,6 +44,7 @@ parent: Table
44
44
  id: Table.Head
45
45
  ---
46
46
  **/
47
+ import { jsx as ___EmotionJSX } from "@emotion/react";
47
48
  let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Head extends Component {
48
49
  get isSortable() {
49
50
  const _ref = Children.toArray(this.props.children),
@@ -117,26 +118,26 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
117
118
  });
118
119
  }
119
120
  };
120
- return jsx("div", {
121
+ return ___EmotionJSX("div", {
121
122
  role: "rowgroup"
122
- }, jsx("div", {
123
+ }, ___EmotionJSX("div", {
123
124
  role: "row"
124
- }, jsx("div", {
125
+ }, ___EmotionJSX("div", {
125
126
  role: "cell",
126
127
  "aria-colspan": count
127
- }, jsx(SimpleSelect, {
128
- renderLabel: renderSortLabel ? callRenderProp(renderSortLabel) : _ScreenReaderContent || (_ScreenReaderContent = jsx(ScreenReaderContent, null)),
128
+ }, ___EmotionJSX(SimpleSelect, {
129
+ renderLabel: renderSortLabel ? callRenderProp(renderSortLabel) : _ScreenReaderContent || (_ScreenReaderContent = ___EmotionJSX(ScreenReaderContent, null)),
129
130
  renderBeforeInput: selectedOption && IconCheckLine,
130
131
  value: selectedOption,
131
132
  onChange: handleSelect
132
133
  }, options.map(({
133
134
  id,
134
135
  label
135
- }) => jsx(SimpleSelect.Option, {
136
+ }) => ___EmotionJSX(SimpleSelect.Option, {
136
137
  id: id,
137
138
  key: id,
138
139
  value: id,
139
- renderBeforeLabel: id === selectedOption ? IconCheckLine : () => jsx(IconCheckLine, {
140
+ renderBeforeLabel: id === selectedOption ? IconCheckLine : () => ___EmotionJSX(IconCheckLine, {
140
141
  style: {
141
142
  color: 'transparent'
142
143
  }
@@ -148,7 +149,7 @@ let Head = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
148
149
  children = _this$props4.children,
149
150
  isStacked = _this$props4.isStacked,
150
151
  styles = _this$props4.styles;
151
- return isStacked ? this.renderSelect() : jsx("thead", Object.assign({}, omitProps(this.props, Head.allowedProps), {
152
+ return isStacked ? this.renderSelect() : ___EmotionJSX("thead", _extends({}, omitProps(this.props, Head.allowedProps), {
152
153
  css: styles === null || styles === void 0 ? void 0 : styles.head
153
154
  }), Children.map(children, child => matchComponentTypes(child, [Row]) ? child : null));
154
155
  }
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  var _dec, _class, _class2;
2
3
  /*
3
4
  * The MIT License (MIT)
@@ -23,11 +24,10 @@ var _dec, _class, _class2;
23
24
  * SOFTWARE.
24
25
  */
25
26
 
26
- /** @jsx jsx */
27
27
  import { Component, Children } from 'react';
28
28
  import { omitProps, matchComponentTypes, safeCloneElement } from '@instructure/ui-react-utils';
29
29
  import { View } from '@instructure/ui-view';
30
- import { withStyle, jsx } from '@instructure/emotion';
30
+ import { withStyle } from '@instructure/emotion';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
33
33
  import { ColHeader } from '../ColHeader';
@@ -41,6 +41,7 @@ parent: Table
41
41
  id: Table.Row
42
42
  ---
43
43
  **/
44
+ import { jsx as ___EmotionJSX } from "@emotion/react";
44
45
  let Row = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Row extends Component {
45
46
  componentDidMount() {
46
47
  var _this$props$makeStyle, _this$props;
@@ -56,7 +57,7 @@ let Row = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class
56
57
  styles = _this$props3.styles,
57
58
  isStacked = _this$props3.isStacked,
58
59
  headers = _this$props3.headers;
59
- return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Row.allowedProps), Row), {
60
+ return ___EmotionJSX(View, _extends({}, View.omitViewProps(omitProps(this.props, Row.allowedProps), Row), {
60
61
  as: isStacked ? 'div' : 'tr',
61
62
  css: styles === null || styles === void 0 ? void 0 : styles.row,
62
63
  role: isStacked ? 'row' : void 0
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  var _dec, _class, _class2;
2
3
  /*
3
4
  * The MIT License (MIT)
@@ -23,11 +24,10 @@ var _dec, _class, _class2;
23
24
  * SOFTWARE.
24
25
  */
25
26
 
26
- /** @jsx jsx */
27
27
  import { Component } from 'react';
28
28
  import { omitProps, callRenderProp } from '@instructure/ui-react-utils';
29
29
  import { View } from '@instructure/ui-view';
30
- import { withStyle, jsx } from '@instructure/emotion';
30
+ import { withStyle } from '@instructure/emotion';
31
31
  import generateStyle from './styles';
32
32
  import generateComponentTheme from './theme';
33
33
  import { allowedProps, propTypes } from './props';
@@ -38,6 +38,7 @@ parent: Table
38
38
  id: Table.RowHeader
39
39
  ---
40
40
  **/
41
+ import { jsx as ___EmotionJSX } from "@emotion/react";
41
42
  let RowHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class RowHeader extends Component {
42
43
  componentDidMount() {
43
44
  var _this$props$makeStyle, _this$props;
@@ -52,7 +53,7 @@ let RowHeader = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_
52
53
  children = _this$props3.children,
53
54
  isStacked = _this$props3.isStacked,
54
55
  styles = _this$props3.styles;
55
- return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, RowHeader.allowedProps), RowHeader), {
56
+ return ___EmotionJSX(View, _extends({}, View.omitViewProps(omitProps(this.props, RowHeader.allowedProps), RowHeader), {
56
57
  as: isStacked ? 'div' : 'th',
57
58
  css: styles === null || styles === void 0 ? void 0 : styles.rowHeader,
58
59
  scope: "row",
package/es/Table/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
3
  var _dec, _class, _class2;
3
4
  /*
@@ -24,12 +25,11 @@ var _dec, _class, _class2;
24
25
  * SOFTWARE.
25
26
  */
26
27
 
27
- /** @jsx jsx */
28
28
  import { Component, Children } from 'react';
29
29
  import { matchComponentTypes, safeCloneElement, omitProps } from '@instructure/ui-react-utils';
30
30
  import { View } from '@instructure/ui-view';
31
31
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
32
- import { withStyle, jsx } from '@instructure/emotion';
32
+ import { withStyle } from '@instructure/emotion';
33
33
  import generateStyle from './styles';
34
34
  import generateComponentTheme from './theme';
35
35
  import { Head } from './Head';
@@ -45,6 +45,7 @@ import { allowedProps, propTypes } from './props';
45
45
  category: components
46
46
  ---
47
47
  **/
48
+ import { jsx as ___EmotionJSX } from "@emotion/react";
48
49
  let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_class2 = class Table extends Component {
49
50
  constructor(...args) {
50
51
  super(...args);
@@ -92,14 +93,14 @@ let Table = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_clas
92
93
  styles = _this$props3.styles;
93
94
  const isStacked = layout === 'stacked';
94
95
  const headers = isStacked ? this.getHeaders() : void 0;
95
- return jsx(View, Object.assign({}, View.omitViewProps(omitProps(this.props, Table.allowedProps), Table), {
96
+ return ___EmotionJSX(View, _extends({}, View.omitViewProps(omitProps(this.props, Table.allowedProps), Table), {
96
97
  as: isStacked ? 'div' : 'table',
97
98
  margin: margin,
98
99
  elementRef: this.handleRef,
99
100
  css: styles === null || styles === void 0 ? void 0 : styles.table,
100
101
  role: isStacked ? 'table' : void 0,
101
102
  "aria-label": isStacked ? caption : void 0
102
- }), !isStacked && jsx("caption", null, jsx(ScreenReaderContent, null, caption)), Children.map(children, child => {
103
+ }), !isStacked && ___EmotionJSX("caption", null, ___EmotionJSX(ScreenReaderContent, null, caption)), Children.map(children, child => {
103
104
  if (matchComponentTypes(child, [Head])) {
104
105
  return safeCloneElement(child, {
105
106
  key: child.props.name,
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.Body = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
9
  var _react = require("react");
9
10
  var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
10
11
  var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElement.js");
@@ -15,6 +16,7 @@ var _styles = _interopRequireDefault(require("./styles"));
15
16
  var _theme = _interopRequireDefault(require("./theme"));
16
17
  var _Row = require("../Row");
17
18
  var _props = require("./props");
19
+ var _react2 = require("@emotion/react");
18
20
  var _dec, _class, _class2;
19
21
  /*
20
22
  * The MIT License (MIT)
@@ -39,7 +41,6 @@ var _dec, _class, _class2;
39
41
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
42
  * SOFTWARE.
41
43
  */
42
- /** @jsx jsx */
43
44
  /**
44
45
  ---
45
46
  parent: Table
@@ -62,7 +63,7 @@ let Body = exports.Body = (_dec = (0, _emotion.withStyle)(_styles.default, _them
62
63
  isStacked = _this$props3.isStacked,
63
64
  headers = _this$props3.headers,
64
65
  styles = _this$props3.styles;
65
- return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Body.allowedProps), Body), {
66
+ return (0, _react2.jsx)(_View.View, (0, _extends2.default)({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Body.allowedProps), Body), {
66
67
  as: isStacked ? 'div' : 'tbody',
67
68
  css: styles === null || styles === void 0 ? void 0 : styles.body,
68
69
  role: isStacked ? 'rowgroup' : void 0
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.Cell = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
9
  var _react = require("react");
9
10
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
11
  var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
@@ -13,6 +14,7 @@ var _emotion = require("@instructure/emotion");
13
14
  var _styles = _interopRequireDefault(require("./styles"));
14
15
  var _theme = _interopRequireDefault(require("./theme"));
15
16
  var _props = require("./props");
17
+ var _react2 = require("@emotion/react");
16
18
  var _dec, _class, _class2;
17
19
  /*
18
20
  * The MIT License (MIT)
@@ -37,7 +39,6 @@ var _dec, _class, _class2;
37
39
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
40
  * SOFTWARE.
39
41
  */
40
- /** @jsx jsx */
41
42
  /**
42
43
  ---
43
44
  parent: Table
@@ -59,7 +60,7 @@ let Cell = exports.Cell = (_dec = (0, _emotion.withStyle)(_styles.default, _them
59
60
  styles = _this$props3.styles,
60
61
  isStacked = _this$props3.isStacked,
61
62
  header = _this$props3.header;
62
- return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Cell.allowedProps), Cell), {
63
+ return (0, _react2.jsx)(_View.View, (0, _extends2.default)({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Cell.allowedProps), Cell), {
63
64
  as: isStacked ? 'div' : 'td',
64
65
  css: styles === null || styles === void 0 ? void 0 : styles.cell,
65
66
  role: isStacked ? 'cell' : void 0
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = exports.ColHeader = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _react = require("react");
10
10
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
11
11
  var _callRenderProp = require("@instructure/ui-react-utils/lib/callRenderProp.js");
12
12
  var _IconMiniArrowUpLine2 = require("@instructure/ui-icons/lib/IconMiniArrowUpLine.js");
@@ -16,6 +16,7 @@ var _emotion = require("@instructure/emotion");
16
16
  var _styles = _interopRequireDefault(require("./styles"));
17
17
  var _theme = _interopRequireDefault(require("./theme"));
18
18
  var _props = require("./props");
19
+ var _react2 = require("@emotion/react");
19
20
  var _dec, _class, _class2, _IconMiniArrowUpLine, _IconMiniArrowDownLin;
20
21
  /*
21
22
  * The MIT License (MIT)
@@ -40,13 +41,22 @@ var _dec, _class, _class2, _IconMiniArrowUpLine, _IconMiniArrowDownLin;
40
41
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
41
42
  * SOFTWARE.
42
43
  */
43
- /** @jsx jsx */
44
44
  /**
45
45
  ---
46
46
  parent: Table
47
47
  id: Table.ColHeader
48
48
  ---
49
49
  **/
50
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
51
+ var _ref = process.env.NODE_ENV === "production" ? {
52
+ name: "12nu0b9",
53
+ styles: "opacity:30%"
54
+ } : {
55
+ name: "1s4709l-ColHeader",
56
+ styles: "opacity:30%;label:ColHeader;",
57
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW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gPlxuICAgICAgICB7b25SZXF1ZXN0U29ydCAmJiAoXG4gICAgICAgICAgPGJ1dHRvbiBvbkNsaWNrPXt0aGlzLmhhbmRsZUNsaWNrfSBjc3M9e3N0eWxlcz8uYnV0dG9ufT5cbiAgICAgICAgICAgIDxkaXYgY3NzPXtzdHlsZXM/LmJ1dHRvbkNvbnRlbnR9PlxuICAgICAgICAgICAgICB7Y2FsbFJlbmRlclByb3AoY2hpbGRyZW4pfVxuICAgICAgICAgICAgICB7dGhpcy5yZW5kZXJTb3J0QXJyb3coKX1cbiAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgIDwvYnV0dG9uPlxuICAgICAgICApfVxuICAgICAgICB7IW9uUmVxdWVzdFNvcnQgJiYgY2hpbGRyZW59XG4gICAgICAgIHshb25SZXF1ZXN0U29ydCAmJiB0aGlzLnJlbmRlclNvcnRBcnJvdygpfVxuICAgICAgPC90aD5cbiAgICApXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQgQ29sSGVhZGVyXG5leHBvcnQgeyBDb2xIZWFkZXIgfVxuIl19 */",
58
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
59
+ };
50
60
  let ColHeader = exports.ColHeader = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class ColHeader extends _react.Component {
51
61
  constructor(...args) {
52
62
  super(...args);
@@ -72,16 +82,14 @@ let ColHeader = exports.ColHeader = (_dec = (0, _emotion.withStyle)(_styles.defa
72
82
  sortDirection = _this$props4.sortDirection,
73
83
  onRequestSort = _this$props4.onRequestSort;
74
84
  if (sortDirection === 'ascending') {
75
- return _IconMiniArrowUpLine || (_IconMiniArrowUpLine = (0, _emotion.jsx)(_IconMiniArrowUpLine2.IconMiniArrowUpLine, null));
85
+ return _IconMiniArrowUpLine || (_IconMiniArrowUpLine = (0, _react2.jsx)(_IconMiniArrowUpLine2.IconMiniArrowUpLine, null));
76
86
  }
77
87
  if (sortDirection === 'descending') {
78
- return _IconMiniArrowDownLin || (_IconMiniArrowDownLin = (0, _emotion.jsx)(_IconMiniArrowDownLine.IconMiniArrowDownLine, null));
88
+ return _IconMiniArrowDownLin || (_IconMiniArrowDownLin = (0, _react2.jsx)(_IconMiniArrowDownLine.IconMiniArrowDownLine, null));
79
89
  }
80
90
  if (onRequestSort) {
81
- return (0, _emotion.jsx)(_IconMiniArrowDoubleLine.IconMiniArrowDoubleLine, {
82
- css: {
83
- opacity: '30%'
84
- }
91
+ return (0, _react2.jsx)(_IconMiniArrowDoubleLine.IconMiniArrowDoubleLine, {
92
+ css: _ref
85
93
  });
86
94
  }
87
95
  return void 0;
@@ -94,17 +102,17 @@ let ColHeader = exports.ColHeader = (_dec = (0, _emotion.withStyle)(_styles.defa
94
102
  sortDirection = _this$props5.sortDirection,
95
103
  scope = _this$props5.scope,
96
104
  styles = _this$props5.styles;
97
- return (0, _emotion.jsx)("th", Object.assign({}, (0, _omitProps.omitProps)(this.props, ColHeader.allowedProps), {
105
+ return (0, _react2.jsx)("th", (0, _extends2.default)({}, (0, _omitProps.omitProps)(this.props, ColHeader.allowedProps), {
98
106
  css: styles === null || styles === void 0 ? void 0 : styles.colHeader,
99
107
  style: {
100
108
  width
101
109
  },
102
110
  scope: scope,
103
111
  "aria-sort": sortDirection
104
- }), onRequestSort && (0, _emotion.jsx)("button", {
112
+ }), onRequestSort && (0, _react2.jsx)("button", {
105
113
  onClick: this.handleClick,
106
114
  css: styles === null || styles === void 0 ? void 0 : styles.button
107
- }, (0, _emotion.jsx)("div", {
115
+ }, (0, _react2.jsx)("div", {
108
116
  css: styles === null || styles === void 0 ? void 0 : styles.buttonContent
109
117
  }, (0, _callRenderProp.callRenderProp)(children), this.renderSortArrow())), !onRequestSort && children, !onRequestSort && this.renderSortArrow());
110
118
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.Head = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
10
  var _react = require("react");
10
11
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
@@ -20,6 +21,7 @@ var _theme = _interopRequireDefault(require("./theme"));
20
21
  var _Row = require("../Row");
21
22
  var _ColHeader = require("../ColHeader");
22
23
  var _props = require("./props");
24
+ var _react2 = require("@emotion/react");
23
25
  var _dec, _class, _class2, _ScreenReaderContent;
24
26
  /*
25
27
  * The MIT License (MIT)
@@ -44,7 +46,6 @@ var _dec, _class, _class2, _ScreenReaderContent;
44
46
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45
47
  * SOFTWARE.
46
48
  */
47
- /** @jsx jsx */
48
49
  /**
49
50
  ---
50
51
  parent: Table
@@ -124,26 +125,26 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
124
125
  });
125
126
  }
126
127
  };
127
- return (0, _emotion.jsx)("div", {
128
+ return (0, _react2.jsx)("div", {
128
129
  role: "rowgroup"
129
- }, (0, _emotion.jsx)("div", {
130
+ }, (0, _react2.jsx)("div", {
130
131
  role: "row"
131
- }, (0, _emotion.jsx)("div", {
132
+ }, (0, _react2.jsx)("div", {
132
133
  role: "cell",
133
134
  "aria-colspan": count
134
- }, (0, _emotion.jsx)(_SimpleSelect.SimpleSelect, {
135
- renderLabel: renderSortLabel ? (0, _callRenderProp.callRenderProp)(renderSortLabel) : _ScreenReaderContent || (_ScreenReaderContent = (0, _emotion.jsx)(_ScreenReaderContent2.ScreenReaderContent, null)),
135
+ }, (0, _react2.jsx)(_SimpleSelect.SimpleSelect, {
136
+ renderLabel: renderSortLabel ? (0, _callRenderProp.callRenderProp)(renderSortLabel) : _ScreenReaderContent || (_ScreenReaderContent = (0, _react2.jsx)(_ScreenReaderContent2.ScreenReaderContent, null)),
136
137
  renderBeforeInput: selectedOption && _IconCheckLine.IconCheckLine,
137
138
  value: selectedOption,
138
139
  onChange: handleSelect
139
140
  }, options.map(({
140
141
  id,
141
142
  label
142
- }) => (0, _emotion.jsx)(_SimpleSelect.SimpleSelect.Option, {
143
+ }) => (0, _react2.jsx)(_SimpleSelect.SimpleSelect.Option, {
143
144
  id: id,
144
145
  key: id,
145
146
  value: id,
146
- renderBeforeLabel: id === selectedOption ? _IconCheckLine.IconCheckLine : () => (0, _emotion.jsx)(_IconCheckLine.IconCheckLine, {
147
+ renderBeforeLabel: id === selectedOption ? _IconCheckLine.IconCheckLine : () => (0, _react2.jsx)(_IconCheckLine.IconCheckLine, {
147
148
  style: {
148
149
  color: 'transparent'
149
150
  }
@@ -155,7 +156,7 @@ let Head = exports.Head = (_dec = (0, _emotion.withStyle)(_styles.default, _them
155
156
  children = _this$props4.children,
156
157
  isStacked = _this$props4.isStacked,
157
158
  styles = _this$props4.styles;
158
- return isStacked ? this.renderSelect() : (0, _emotion.jsx)("thead", Object.assign({}, (0, _omitProps.omitProps)(this.props, Head.allowedProps), {
159
+ return isStacked ? this.renderSelect() : (0, _react2.jsx)("thead", (0, _extends2.default)({}, (0, _omitProps.omitProps)(this.props, Head.allowedProps), {
159
160
  css: styles === null || styles === void 0 ? void 0 : styles.head
160
161
  }), _react.Children.map(children, child => (0, _matchComponentTypes.matchComponentTypes)(child, [_Row.Row]) ? child : null));
161
162
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = exports.Row = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
8
9
  var _react = require("react");
9
10
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
11
  var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
@@ -17,6 +18,7 @@ var _ColHeader = require("../ColHeader");
17
18
  var _RowHeader = require("../RowHeader");
18
19
  var _Cell = require("../Cell");
19
20
  var _props = require("./props");
21
+ var _react2 = require("@emotion/react");
20
22
  var _dec, _class, _class2;
21
23
  /*
22
24
  * The MIT License (MIT)
@@ -41,7 +43,6 @@ var _dec, _class, _class2;
41
43
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
44
  * SOFTWARE.
43
45
  */
44
- /** @jsx jsx */
45
46
  /**
46
47
  ---
47
48
  parent: Table
@@ -63,7 +64,7 @@ let Row = exports.Row = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.
63
64
  styles = _this$props3.styles,
64
65
  isStacked = _this$props3.isStacked,
65
66
  headers = _this$props3.headers;
66
- return (0, _emotion.jsx)(_View.View, Object.assign({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Row.allowedProps), Row), {
67
+ return (0, _react2.jsx)(_View.View, (0, _extends2.default)({}, _View.View.omitViewProps((0, _omitProps.omitProps)(this.props, Row.allowedProps), Row), {
67
68
  as: isStacked ? 'div' : 'tr',
68
69
  css: styles === null || styles === void 0 ? void 0 : styles.row,
69
70
  role: isStacked ? 'row' : void 0