Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@justeattakeaway/pie-assistive-text

Package Overview
Dependencies
Maintainers
12
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justeattakeaway/pie-assistive-text - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

24

dist/index.js

@@ -9,9 +9,9 @@ import { unsafeCSS as p, LitElement as f, html as i, nothing as l } from "lit";

`, y = ["default", "error", "success"];
var g = Object.defineProperty, T = Object.getOwnPropertyDescriptor, b = (r, t, o, e) => {
for (var s = e > 1 ? void 0 : e ? T(t, o) : t, a = r.length - 1, n; a >= 0; a--)
(n = r[a]) && (s = (e ? n(t, o, s) : n(s)) || s);
return e && s && g(t, o, s), s;
var g = Object.defineProperty, T = Object.getOwnPropertyDescriptor, b = (r, t, o, s) => {
for (var e = s > 1 ? void 0 : s ? T(t, o) : t, a = r.length - 1, c; a >= 0; a--)
(c = r[a]) && (e = (s ? c(t, o, e) : c(e)) || e);
return s && e && g(t, o, e), e;
};
const v = "pie-assistive-text";
class c extends f {
class n extends f {
constructor() {

@@ -27,4 +27,4 @@ super(...arguments), this.variant = "default";

return i`
${t === "success" ? i`<icon-check-circle class="c-assistiveText-icon" size="s" />` : l}
${t === "error" ? i`<icon-alert-circle class="c-assistiveText-icon" size="s" />` : l}`;
${t === "success" ? i`<icon-check-circle class="c-assistiveText-icon" size="s" ></icon-check-circle>` : l}
${t === "error" ? i`<icon-alert-circle class="c-assistiveText-icon" size="s"></icon-alert-circle>` : l}`;
}

@@ -45,11 +45,11 @@ render() {

}
c.styles = p(h);
n.styles = p(h);
b([
d(),
d({ type: String }),
x(v, y, "default")
], c.prototype, "variant", 2);
m(v, c);
], n.prototype, "variant", 2);
m(v, n);
export {
c as PieAssistiveText,
n as PieAssistiveText,
y as variants
};
{
"name": "@justeattakeaway/pie-assistive-text",
"description": "PIE Design System Assistive Text built using Web Components",
"version": "0.2.2",
"version": "0.2.3",
"type": "module",

@@ -38,3 +38,3 @@ "main": "dist/index.js",

"dependencies": {
"@justeattakeaway/pie-icons-webc": "0.18.0",
"@justeattakeaway/pie-icons-webc": "0.19.0",
"@justeattakeaway/pie-webc-core": "0.19.0"

@@ -41,0 +41,0 @@ },

@@ -24,3 +24,3 @@ import {

export class PieAssistiveText extends LitElement implements AssistiveTextProps {
@property()
@property({ type: String })
@validPropertyValues(componentSelector, variants, 'default')

@@ -36,4 +36,4 @@ public variant?: AssistiveTextProps['variant'] = 'default';

return html`
${variant === 'success' ? html`<icon-check-circle class="c-assistiveText-icon" size="s" />` : nothing}
${variant === 'error' ? html`<icon-alert-circle class="c-assistiveText-icon" size="s" />` : nothing}`;
${variant === 'success' ? html`<icon-check-circle class="c-assistiveText-icon" size="s" ></icon-check-circle>` : nothing}
${variant === 'error' ? html`<icon-alert-circle class="c-assistiveText-icon" size="s"></icon-alert-circle>` : nothing}`;
}

@@ -40,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc