Skip to content

Commit b1f3bfd

Browse files
author
Manaday Mavani
committed
chore
1 parent 98ff5bb commit b1f3bfd

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "util-web-components",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A collection of utility web components.",
55
"author": {
66
"name": "Manaday K. Mavani"
77
},
8-
"main": "dist/index.cjs.js",
9-
"module": "dist/custom-elements/index.js",
8+
"main": "dist/index.js",
9+
"module": "dist/index.mjs",
1010
"es2015": "dist/esm/index.mjs",
1111
"es2017": "dist/esm/index.mjs",
12-
"types": "dist/custom-elements/index.d.ts",
12+
"types": "dist/types/index.d.ts",
1313
"collection": "dist/collection/collection-manifest.json",
1414
"collection:main": "dist/collection/index.js",
1515
"unpkg": "dist/util-web-components/util-web-components.js",

src/components/uc-image/readme.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# uc-image
2+
3+
4+
5+
<!-- Auto Generated Below -->
6+
7+
8+
## Properties
9+
10+
| Property | Attribute | Description | Type | Default |
11+
| ---------------------- | --------- | --------------------------------------------------------- | -------------------- | ----------- |
12+
| `as` | `as` | Render component as 'img' or 'picture'. Default is 'img'. | `"img" \| "picture"` | `'img'` |
13+
| `dataAlt` | `alt` | Text for image's alt attribute. | `string` | `undefined` |
14+
| `dataClass` | `class` | CSS classes to be added on the root (picture) element. | `string` | `undefined` |
15+
| `dataHeight` | `height` | Image height. | `number \| string` | `undefined` |
16+
| `dataSizes` | `sizes` | | `string` | `undefined` |
17+
| `dataSrc` _(required)_ | `src` | Image src. | `string` | `undefined` |
18+
| `dataSrcset` | `srcset` | | `string` | `undefined` |
19+
| `dataWidth` | `width` | | `number \| string` | `undefined` |
20+
21+
22+
----------------------------------------------
23+
24+
*Built with [StencilJS](https://stenciljs.com/)*

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" />
7-
<title>Stencil Component Starter</title>
7+
<title>Utility Web Components</title>
88

99
<style>
1010
uc-image {

0 commit comments

Comments
 (0)