@instructure/ui-byline 11.7.8 → 11.7.9-pr-snapshot-1792147648392

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/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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
+ ## [11.7.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
7
+
8
+ ### Build System
9
+
10
+ * **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * **many:** `@instructure/ui-babel-preset` and
15
+ `@instructure/browserslist-config-instui` are removed and will no longer be
16
+ published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
17
+
18
+
6
19
  ## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
7
20
 
8
21
  **Note:** Version bump only for package @instructure/ui-byline
@@ -1,28 +1,5 @@
1
- var _dec, _class;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
26
3
  import { Component } from 'react';
27
4
  import { omitProps } from '@instructure/ui-react-utils';
28
5
  import { View } from '@instructure/ui-view/v11_6';
@@ -30,58 +7,68 @@ import { withStyle } from '@instructure/emotion';
30
7
  import generateStyle from './styles.js';
31
8
  import generateComponentTheme from './theme.js';
32
9
  import { allowedProps } from './props.js';
33
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
34
- /**
35
- ---
36
- category: components
37
- ---
38
- **/
39
- let Byline = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class Byline extends Component {
40
- static displayName = 'Byline';
41
- static componentId = 'Byline';
42
- static allowedProps = allowedProps;
43
- static defaultProps = {
44
- alignContent: 'center'
45
- };
46
- ref = null;
47
- handleRef = el => {
48
- const {
49
- elementRef
50
- } = this.props;
51
- this.ref = el;
52
- if (typeof elementRef === 'function') {
53
- elementRef(el);
10
+ class Byline extends Component {
11
+ static{
12
+ this.displayName = 'Byline';
13
+ }
14
+ static{
15
+ this.componentId = 'Byline';
16
+ }
17
+ static{
18
+ this.allowedProps = allowedProps;
19
+ }
20
+ static{
21
+ this.defaultProps = {
22
+ alignContent: 'center'
23
+ };
24
+ }
25
+ componentDidMount() {
26
+ this.props.makeStyles?.();
27
+ }
28
+ componentDidUpdate() {
29
+ this.props.makeStyles?.();
30
+ }
31
+ render() {
32
+ const passthroughProps = View.omitViewProps(omitProps(this.props, Byline.allowedProps), Byline);
33
+ return /*#__PURE__*/ _jsxs(View, {
34
+ ...passthroughProps,
35
+ elementRef: this.handleRef,
36
+ css: this.props.styles?.byline,
37
+ margin: this.props.margin,
38
+ maxWidth: this.props.styles?.maxWidth,
39
+ children: [
40
+ /*#__PURE__*/ _jsx("div", {
41
+ css: this.props.styles?.figure,
42
+ children: this.props.children
43
+ }),
44
+ /*#__PURE__*/ _jsxs("div", {
45
+ css: this.props.styles?.caption,
46
+ children: [
47
+ this.props.title && /*#__PURE__*/ _jsx("span", {
48
+ css: this.props.styles?.title,
49
+ children: this.props.title
50
+ }),
51
+ this.props.description && /*#__PURE__*/ _jsx("div", {
52
+ css: this.props.styles?.description,
53
+ children: this.props.description
54
+ })
55
+ ]
56
+ })
57
+ ]
58
+ });
59
+ }
60
+ constructor(...args){
61
+ super(...args), this.ref = null, this.handleRef = (el)=>{
62
+ const { elementRef } = this.props;
63
+ this.ref = el;
64
+ if (typeof elementRef === 'function') {
65
+ elementRef(el);
66
+ }
67
+ };
54
68
  }
55
- };
56
- componentDidMount() {
57
- this.props.makeStyles?.();
58
- }
59
- componentDidUpdate() {
60
- this.props.makeStyles?.();
61
- }
62
- render() {
63
- const passthroughProps = View.omitViewProps(omitProps(this.props, Byline.allowedProps), Byline);
64
- return _jsxs(View, {
65
- ...passthroughProps,
66
- elementRef: this.handleRef,
67
- css: this.props.styles?.byline,
68
- margin: this.props.margin,
69
- maxWidth: this.props.styles?.maxWidth,
70
- children: [_jsx("div", {
71
- css: this.props.styles?.figure,
72
- children: this.props.children
73
- }), _jsxs("div", {
74
- css: this.props.styles?.caption,
75
- children: [this.props.title && _jsx("span", {
76
- css: this.props.styles?.title,
77
- children: this.props.title
78
- }), this.props.description && _jsx("div", {
79
- css: this.props.styles?.description,
80
- children: this.props.description
81
- })]
82
- })]
83
- });
84
- }
85
- }) || _class);
69
+ }
70
+ Byline = _ts_decorate([
71
+ withStyle(generateStyle, generateComponentTheme)
72
+ ], Byline);
86
73
  export default Byline;
87
- export { Byline };
74
+ export { Byline };
@@ -1,26 +1,10 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['alignContent', 'children', 'description', 'elementRef', 'margin', 'size', 'title'];
26
- export { allowedProps };
1
+ const allowedProps = [
2
+ 'alignContent',
3
+ 'children',
4
+ 'description',
5
+ 'elementRef',
6
+ 'margin',
7
+ 'size',
8
+ 'title'
9
+ ];
10
+ export { allowedProps };
@@ -1,100 +1,62 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- /**
26
- * ---
27
- * private: true
28
- * ---
29
- * Generates the style object from the theme and provided additional information
30
- * @param {Object} componentTheme The theme variable object.
31
- * @param {Object} props the props of the component, the style is applied to
32
- * @return {Object} The final style object, which will be used in the component
33
- */
34
- const generateStyle = (componentTheme, props) => {
35
- const {
36
- alignContent,
37
- size
38
- } = props;
39
- const alignContentVariants = {
40
- top: {
41
- alignItems: 'flex-start'
42
- },
43
- center: {
44
- alignItems: 'center'
45
- }
46
- };
47
- const bylineStyles = {
48
- display: 'flex',
49
- background: componentTheme.background,
50
- margin: 0,
51
- padding: 0,
52
- fontFamily: componentTheme.fontFamily,
53
- ...alignContentVariants[alignContent]
54
- };
55
- const captionStyles = {
56
- color: componentTheme.color,
57
- margin: 0,
58
- padding: 0
59
- };
60
- return {
61
- byline: {
62
- label: 'byline',
63
- ...bylineStyles,
64
- // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
65
- '&:is(figure)': bylineStyles,
66
- '&:-webkit-any(figure)': bylineStyles
67
- },
68
- figure: {
69
- label: 'byline__figure',
70
- marginInlineStart: 0,
71
- marginInlineEnd: componentTheme.figureMargin
72
- },
73
- caption: {
74
- label: 'byline__caption',
75
- ...captionStyles,
76
- // NOTE: needs separate groups for `:is()` and `:-webkit-any()` because of css selector group validation (see https://www.w3.org/TR/selectors-3/#grouping)
77
- '&:is(figcaption)': captionStyles,
78
- '&:-webkit-any(figcaption)': captionStyles
79
- },
80
- title: {
81
- label: 'byline__title',
82
- textRendering: 'optimizeLegibility',
83
- WebkitFontSmoothing: 'antialiased',
84
- MozOsxFontSmoothing: 'grayscale',
85
- display: 'block',
86
- margin: componentTheme.titleMargin,
87
- fontSize: componentTheme.titleFontSize,
88
- fontWeight: componentTheme.titleFontWeight,
89
- lineHeight: componentTheme.titleLineHeight
90
- },
91
- description: {
92
- label: 'byline__description',
93
- fontSize: componentTheme.descriptionFontSize,
94
- lineHeight: componentTheme.descriptionLineHeight,
95
- fontWeight: componentTheme.descriptionFontWeight
96
- },
97
- maxWidth: size && componentTheme[size]
98
- };
1
+ const generateStyle = (componentTheme, props)=>{
2
+ const { alignContent, size } = props;
3
+ const alignContentVariants = {
4
+ top: {
5
+ alignItems: 'flex-start'
6
+ },
7
+ center: {
8
+ alignItems: 'center'
9
+ }
10
+ };
11
+ const bylineStyles = {
12
+ display: 'flex',
13
+ background: componentTheme.background,
14
+ margin: 0,
15
+ padding: 0,
16
+ fontFamily: componentTheme.fontFamily,
17
+ ...alignContentVariants[alignContent]
18
+ };
19
+ const captionStyles = {
20
+ color: componentTheme.color,
21
+ margin: 0,
22
+ padding: 0
23
+ };
24
+ return {
25
+ byline: {
26
+ label: 'byline',
27
+ ...bylineStyles,
28
+ '&:is(figure)': bylineStyles,
29
+ '&:-webkit-any(figure)': bylineStyles
30
+ },
31
+ figure: {
32
+ label: 'byline__figure',
33
+ marginInlineStart: 0,
34
+ marginInlineEnd: componentTheme.figureMargin
35
+ },
36
+ caption: {
37
+ label: 'byline__caption',
38
+ ...captionStyles,
39
+ '&:is(figcaption)': captionStyles,
40
+ '&:-webkit-any(figcaption)': captionStyles
41
+ },
42
+ title: {
43
+ label: 'byline__title',
44
+ textRendering: 'optimizeLegibility',
45
+ WebkitFontSmoothing: 'antialiased',
46
+ MozOsxFontSmoothing: 'grayscale',
47
+ display: 'block',
48
+ margin: componentTheme.titleMargin,
49
+ fontSize: componentTheme.titleFontSize,
50
+ fontWeight: componentTheme.titleFontWeight,
51
+ lineHeight: componentTheme.titleLineHeight
52
+ },
53
+ description: {
54
+ label: 'byline__description',
55
+ fontSize: componentTheme.descriptionFontSize,
56
+ lineHeight: componentTheme.descriptionLineHeight,
57
+ fontWeight: componentTheme.descriptionFontWeight
58
+ },
59
+ maxWidth: size && componentTheme[size]
60
+ };
99
61
  };
100
- export default generateStyle;
62
+ export default generateStyle;
@@ -1,64 +1,29 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- /**
26
- * Generates the theme object for the component from the theme and provided additional information
27
- * @param {Object} theme The actual theme object.
28
- * @return {Object} The final theme object with the overrides and component variables
29
- */
30
- const generateComponentTheme = theme => {
31
- const {
32
- colors,
33
- spacing,
34
- typography,
35
- breakpoints,
36
- key: themeName
37
- } = theme;
38
- const themeSpecificStyle = {
39
- canvas: {
40
- color: theme['ic-brand-font-color-dark']
41
- }
42
- };
43
- const componentVariables = {
44
- fontFamily: typography?.fontFamily,
45
- background: colors?.contrasts?.white1010,
46
- color: colors?.contrasts?.grey125125,
47
- figureMargin: spacing?.small,
48
- titleMargin: `0 0 ${spacing?.xSmall} 0`,
49
- titleFontSize: typography?.fontSizeLarge,
50
- titleFontWeight: typography?.fontWeightNormal,
51
- titleLineHeight: typography?.lineHeightFit,
52
- descriptionFontSize: typography?.fontSizeMedium,
53
- descriptionFontWeight: typography?.fontWeightNormal,
54
- descriptionLineHeight: typography?.lineHeightCondensed,
55
- small: breakpoints?.small,
56
- medium: breakpoints?.medium,
57
- large: breakpoints?.large
58
- };
59
- return {
60
- ...componentVariables,
61
- ...themeSpecificStyle[themeName]
62
- };
1
+ const generateComponentTheme = (theme)=>{
2
+ const { colors, spacing, typography, breakpoints, key: themeName } = theme;
3
+ const themeSpecificStyle = {
4
+ canvas: {
5
+ color: theme['ic-brand-font-color-dark']
6
+ }
7
+ };
8
+ const componentVariables = {
9
+ fontFamily: typography?.fontFamily,
10
+ background: colors?.contrasts?.white1010,
11
+ color: colors?.contrasts?.grey125125,
12
+ figureMargin: spacing?.small,
13
+ titleMargin: `0 0 ${spacing?.xSmall} 0`,
14
+ titleFontSize: typography?.fontSizeLarge,
15
+ titleFontWeight: typography?.fontWeightNormal,
16
+ titleLineHeight: typography?.lineHeightFit,
17
+ descriptionFontSize: typography?.fontSizeMedium,
18
+ descriptionFontWeight: typography?.fontWeightNormal,
19
+ descriptionLineHeight: typography?.lineHeightCondensed,
20
+ small: breakpoints?.small,
21
+ medium: breakpoints?.medium,
22
+ large: breakpoints?.large
23
+ };
24
+ return {
25
+ ...componentVariables,
26
+ ...themeSpecificStyle[themeName]
27
+ };
63
28
  };
64
- export default generateComponentTheme;
29
+ export default generateComponentTheme;
@@ -1,86 +1,73 @@
1
- var _dec, _class;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
26
3
  import { Component } from 'react';
27
4
  import { omitProps } from '@instructure/ui-react-utils';
28
5
  import { View } from '@instructure/ui-view/latest';
29
6
  import { withStyleNew } from '@instructure/emotion';
30
7
  import generateStyle from './styles.js';
31
8
  import { allowedProps } from './props.js';
32
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
33
- /**
34
- ---
35
- category: components
36
- ---
37
- **/
38
- let Byline = (_dec = withStyleNew(generateStyle), _dec(_class = class Byline extends Component {
39
- static displayName = 'Byline';
40
- static componentId = 'Byline';
41
- static allowedProps = allowedProps;
42
- static defaultProps = {
43
- alignContent: 'center'
44
- };
45
- ref = null;
46
- handleRef = el => {
47
- const {
48
- elementRef
49
- } = this.props;
50
- this.ref = el;
51
- if (typeof elementRef === 'function') {
52
- elementRef(el);
9
+ class Byline extends Component {
10
+ static{
11
+ this.displayName = 'Byline';
12
+ }
13
+ static{
14
+ this.componentId = 'Byline';
15
+ }
16
+ static{
17
+ this.allowedProps = allowedProps;
18
+ }
19
+ static{
20
+ this.defaultProps = {
21
+ alignContent: 'center'
22
+ };
23
+ }
24
+ componentDidMount() {
25
+ this.props.makeStyles?.();
26
+ }
27
+ componentDidUpdate() {
28
+ this.props.makeStyles?.();
29
+ }
30
+ render() {
31
+ const passthroughProps = View.omitViewProps(omitProps(this.props, Byline.allowedProps), Byline);
32
+ return /*#__PURE__*/ _jsxs(View, {
33
+ ...passthroughProps,
34
+ elementRef: this.handleRef,
35
+ css: this.props.styles?.byline,
36
+ margin: this.props.margin,
37
+ maxWidth: this.props.styles?.maxWidth,
38
+ children: [
39
+ /*#__PURE__*/ _jsx("div", {
40
+ css: this.props.styles?.figure,
41
+ children: this.props.children
42
+ }),
43
+ /*#__PURE__*/ _jsxs("div", {
44
+ css: this.props.styles?.caption,
45
+ children: [
46
+ this.props.title && /*#__PURE__*/ _jsx("span", {
47
+ css: this.props.styles?.title,
48
+ children: this.props.title
49
+ }),
50
+ this.props.description && /*#__PURE__*/ _jsx("div", {
51
+ css: this.props.styles?.description,
52
+ children: this.props.description
53
+ })
54
+ ]
55
+ })
56
+ ]
57
+ });
58
+ }
59
+ constructor(...args){
60
+ super(...args), this.ref = null, this.handleRef = (el)=>{
61
+ const { elementRef } = this.props;
62
+ this.ref = el;
63
+ if (typeof elementRef === 'function') {
64
+ elementRef(el);
65
+ }
66
+ };
53
67
  }
54
- };
55
- componentDidMount() {
56
- this.props.makeStyles?.();
57
- }
58
- componentDidUpdate() {
59
- this.props.makeStyles?.();
60
- }
61
- render() {
62
- const passthroughProps = View.omitViewProps(omitProps(this.props, Byline.allowedProps), Byline);
63
- return _jsxs(View, {
64
- ...passthroughProps,
65
- elementRef: this.handleRef,
66
- css: this.props.styles?.byline,
67
- margin: this.props.margin,
68
- maxWidth: this.props.styles?.maxWidth,
69
- children: [_jsx("div", {
70
- css: this.props.styles?.figure,
71
- children: this.props.children
72
- }), _jsxs("div", {
73
- css: this.props.styles?.caption,
74
- children: [this.props.title && _jsx("span", {
75
- css: this.props.styles?.title,
76
- children: this.props.title
77
- }), this.props.description && _jsx("div", {
78
- css: this.props.styles?.description,
79
- children: this.props.description
80
- })]
81
- })]
82
- });
83
- }
84
- }) || _class);
68
+ }
69
+ Byline = _ts_decorate([
70
+ withStyleNew(generateStyle)
71
+ ], Byline);
85
72
  export default Byline;
86
- export { Byline };
73
+ export { Byline };
@@ -1,26 +1,10 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['alignContent', 'children', 'description', 'elementRef', 'margin', 'size', 'title'];
26
- export { allowedProps };
1
+ const allowedProps = [
2
+ 'alignContent',
3
+ 'children',
4
+ 'description',
5
+ 'elementRef',
6
+ 'margin',
7
+ 'size',
8
+ 'title'
9
+ ];
10
+ export { allowedProps };