@umbraco-ui/uui-button-group
Advanced tools
Comparing version
@@ -1,1 +0,1 @@ | ||
export {}; | ||
export * from './uui-button-group.element'; |
@@ -0,9 +1,20 @@ | ||
import { defineElement } from '@umbraco-ui/uui-base/lib/registration'; | ||
import { css, LitElement, html } from 'lit'; | ||
import { defineElement } from '@umbraco-ui/uui-base/lib/registration'; | ||
class UUIButtonGroupElement extends LitElement { | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __decorateClass = (decorators, target, key, kind) => { | ||
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target; | ||
for (var i = decorators.length - 1, decorator; i >= 0; i--) | ||
if (decorator = decorators[i]) | ||
result = (kind ? decorator(target, key, result) : decorator(result)) || result; | ||
if (kind && result) | ||
__defProp(target, key, result); | ||
return result; | ||
}; | ||
let UUIButtonGroupElement = class extends LitElement { | ||
render() { | ||
return html`<slot></slot>`; | ||
} | ||
} | ||
}; | ||
UUIButtonGroupElement.styles = [ | ||
@@ -54,3 +65,6 @@ css` | ||
]; | ||
UUIButtonGroupElement = __decorateClass([ | ||
defineElement("uui-button-group") | ||
], UUIButtonGroupElement); | ||
defineElement("uui-button-group", UUIButtonGroupElement); | ||
export { UUIButtonGroupElement }; |
@@ -11,1 +11,6 @@ import { LitElement } from 'lit'; | ||
} | ||
declare global { | ||
interface HTMLElementTagNameMap { | ||
'uui-button-group': UUIButtonGroupElement; | ||
} | ||
} |
{ | ||
"name": "@umbraco-ui/uui-button-group", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"license": "MIT", | ||
@@ -23,7 +23,8 @@ "description": "An element to group buttons.", | ||
}, | ||
"main": "./dist/uui-button-group.min.js", | ||
"main": "./lib/index.js", | ||
"module": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"type": "module", | ||
"customElements": "custom-elements.json", | ||
"files": [ | ||
"dist", | ||
"lib/**/*.d.ts", | ||
@@ -34,4 +35,4 @@ "lib/**/*.js", | ||
"dependencies": { | ||
"@umbraco-ui/uui-base": "0.0.15", | ||
"@umbraco-ui/uui-icon-registry-essential": "0.0.1" | ||
"@umbraco-ui/uui-base": "0.0.16", | ||
"@umbraco-ui/uui-icon-registry-essential": "0.0.2" | ||
}, | ||
@@ -47,3 +48,3 @@ "scripts": { | ||
"homepage": "https://uui.umbraco.com/?path=/story/uui-button-group", | ||
"gitHead": "2a640ce4460de94e9c92a97310e27b84bbd6edda" | ||
"gitHead": "6fbddfc1295e2ea00a532d4f9eb798165b2d39ac" | ||
} |
@@ -16,3 +16,3 @@ # uui-button-group | ||
```javascript | ||
import '@umbraco-ui/uui-button-group/lib'; | ||
import '@umbraco-ui/uui-button-group'; | ||
``` | ||
@@ -23,17 +23,5 @@ | ||
```javascript | ||
import { UUIButtonGroupElement } from '@umbraco-ui/uui-button-group/lib/uui-button-group.element'; | ||
import { UUIButtonGroupElement } from '@umbraco-ui/uui-button-group'; | ||
``` | ||
### CDN | ||
The component is available via CDN. This means it can be added to your application without the need of any bundler configuration. Here is how to use it with jsDelivr. | ||
```html | ||
<!-- Latest Version --> | ||
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-button-group@latest/dist/uui-button-group.min.js"></script> | ||
<!-- Specific version --> | ||
<script src="https://cdn.jsdelivr.net/npm/@umbraco-ui/uui-button-group@X.X.X/dist/uui-button-group.min.js"></script> | ||
``` | ||
## Usage | ||
@@ -40,0 +28,0 @@ |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
-100%Yes
NaN6273
-91.96%7
-30%102
-52.11%34
-26.09%+ Added
- Removed
Updated