Skip to content

Commit

Permalink
chore(release): 1.1.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.1.0](v1.0.8...v1.1.0) (2023-03-16)

### Bug Fixes

* missing import ([a31e6bb](a31e6bb))

### Features

* image component ([3e75d3b](3e75d3b))
  • Loading branch information
semantic-release-bot committed Mar 16, 2023
1 parent a31e6bb commit bce833b
Show file tree
Hide file tree
Showing 13 changed files with 89 additions and 11 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# [1.1.0](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.0.8...v1.1.0) (2023-03-16)


### Bug Fixes

* missing import ([a31e6bb](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/a31e6bb5a085967e99543577496a0bc9dccd2a25))


### Features

* image component ([3e75d3b](https://github.com/ocadotechnology/codeforlife-package-javascript/commit/3e75d3b641de1741cd37c2f5b19cd0afe007d283))

## [1.0.8](https://github.com/ocadotechnology/codeforlife-package-javascript/compare/v1.0.7...v1.0.8) (2023-03-10)


Expand Down
9 changes: 9 additions & 0 deletions lib/cjs/components/Image.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import { BoxProps } from '@mui/material';
export interface ImageProps {
alt: string;
src: string;
boxProps: BoxProps;
}
declare const Image: React.FC<ImageProps>;
export default Image;
23 changes: 23 additions & 0 deletions lib/cjs/components/Image.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var material_1 = require("@mui/material");
var Image = function (_a) {
var alt = _a.alt, src = _a.src, boxProps = _a.boxProps;
return (react_1.default.createElement(material_1.Box, __assign({ component: 'img', alt: alt, src: src }, boxProps)));
};
exports.default = Image;
2 changes: 2 additions & 0 deletions lib/cjs/components/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Image, { ImageProps } from './Image';
export { Image, type ImageProps };
8 changes: 8 additions & 0 deletions lib/cjs/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Image = void 0;
var Image_1 = __importDefault(require("./Image"));
exports.Image = Image_1.default;
3 changes: 1 addition & 2 deletions lib/cjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import SayHello from './components/example';
import theme from './theme';
export { SayHello, theme };
export { theme };
5 changes: 1 addition & 4 deletions lib/cjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.theme = exports.SayHello = void 0;
// components
var example_1 = __importDefault(require("./components/example"));
exports.SayHello = example_1.default;
exports.theme = void 0;
// other
var theme_1 = __importDefault(require("./theme"));
exports.theme = theme_1.default;
9 changes: 9 additions & 0 deletions lib/esm/components/Image.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
import { BoxProps } from '@mui/material';
export interface ImageProps {
alt: string;
src: string;
boxProps: BoxProps;
}
declare const Image: React.FC<ImageProps>;
export default Image;
18 changes: 18 additions & 0 deletions lib/esm/components/Image.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import React from 'react';
import { Box } from '@mui/material';
var Image = function (_a) {
var alt = _a.alt, src = _a.src, boxProps = _a.boxProps;
return (React.createElement(Box, __assign({ component: 'img', alt: alt, src: src }, boxProps)));
};
export default Image;
2 changes: 2 additions & 0 deletions lib/esm/components/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Image, { ImageProps } from './Image';
export { Image, type ImageProps };
2 changes: 2 additions & 0 deletions lib/esm/components/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import Image from './Image';
export { Image };
3 changes: 1 addition & 2 deletions lib/esm/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
import SayHello from './components/example';
import theme from './theme';
export { SayHello, theme };
export { theme };
4 changes: 1 addition & 3 deletions lib/esm/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// components
import SayHello from './components/example';
// other
import theme from './theme';
// exports
export { SayHello, theme };
export { theme };

0 comments on commit bce833b

Please sign in to comment.