@justeattakeaway/pie-card
Advanced tools
Comparing version 0.0.0-snapshot-release-20240105110833 to 0.0.0-snapshot-release-20240105125445
@@ -17,3 +17,3 @@ import type { CSSResult } from 'lit'; | ||
*/ | ||
disabled: boolean; | ||
disabled?: boolean; | ||
/** | ||
@@ -34,7 +34,7 @@ * The URL that the card should point to (this will not take effect unless the card is a link). | ||
*/ | ||
variant: typeof variants[number]; | ||
variant?: typeof variants[number]; | ||
/** | ||
* Allows the consumer to set draggable css styles (grab/grabbing cursor styles). | ||
*/ | ||
isDraggable: boolean; | ||
isDraggable?: boolean; | ||
/** | ||
@@ -41,0 +41,0 @@ * What HTML element the card should be such as `a` or `button`. |
@@ -28,5 +28,5 @@ import { unsafeCSS as f, LitElement as p, html as g, nothing as i } from "lit"; | ||
data-test-id="pie-card" | ||
tag=${this.tag} | ||
tag=${this.tag || "a"} | ||
?isDraggable="${this.isDraggable}" | ||
variant=${this.variant} | ||
variant=${this.variant || "default"} | ||
?disabled=${this.disabled} | ||
@@ -74,5 +74,5 @@ href=${this.href || i} | ||
data-test-id="pie-card" | ||
tag=${e} | ||
tag=${e || "button"} | ||
?isDraggable="${n}" | ||
variant=${o} | ||
variant=${o || "default"} | ||
?disabled=${a} | ||
@@ -79,0 +79,0 @@ role="button" |
import type { CSSResult } from 'lit'; | ||
import type { LitElement } from 'lit'; | ||
import type { ReactWebComponent } from '@lit/react'; | ||
import * as React_2 from 'react'; | ||
import type { TemplateResult } from 'lit'; | ||
@@ -18,3 +18,3 @@ | ||
*/ | ||
disabled: boolean; | ||
disabled?: boolean; | ||
/** | ||
@@ -35,7 +35,7 @@ * The URL that the card should point to (this will not take effect unless the card is a link). | ||
*/ | ||
variant: typeof variants[number]; | ||
variant?: typeof variants[number]; | ||
/** | ||
* Allows the consumer to set draggable css styles (grab/grabbing cursor styles). | ||
*/ | ||
isDraggable: boolean; | ||
isDraggable?: boolean; | ||
/** | ||
@@ -57,3 +57,3 @@ * What HTML element the card should be such as `a` or `button`. | ||
export declare const PieCard: ReactWebComponent<PieCard_2, {}>; | ||
export declare const PieCard: React_2.ForwardRefExoticComponent<CardProps & React_2.RefAttributes<PieCard_2> & React_2.AnchorHTMLAttributes<HTMLAnchorElement> & React_2.ButtonHTMLAttributes<HTMLButtonElement>>; | ||
@@ -60,0 +60,0 @@ /** |
import * as a from "react"; | ||
import { createComponent as e } from "@lit/react"; | ||
import { PieCard as r } from "./index.js"; | ||
import { paddingValues as C, tags as c, variants as f } from "./index.js"; | ||
import { paddingValues as C, tags as P, variants as f } from "./index.js"; | ||
import "lit"; | ||
import "lit/decorators.js"; | ||
import "@justeattakeaway/pie-webc-core"; | ||
const s = e({ | ||
const t = e({ | ||
displayName: "PieCard", | ||
@@ -14,8 +14,8 @@ elementClass: r, | ||
events: {} | ||
}); | ||
}), d = t; | ||
export { | ||
s as PieCard, | ||
d as PieCard, | ||
C as paddingValues, | ||
c as tags, | ||
P as tags, | ||
f as variants | ||
}; |
{ | ||
"name": "@justeattakeaway/pie-card", | ||
"version": "0.0.0-snapshot-release-20240105110833", | ||
"version": "0.0.0-snapshot-release-20240105125445", | ||
"description": "PIE Design System Card built using Web Components", | ||
@@ -34,3 +34,3 @@ "type": "module", | ||
"dependencies": { | ||
"@justeattakeaway/pie-webc-core": "0.0.0-snapshot-release-20240105110833" | ||
"@justeattakeaway/pie-webc-core": "0.15.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "volta": { |
@@ -22,3 +22,3 @@ export const variants = ['default', 'outline', 'inverse', 'outline-inverse'] as const; | ||
*/ | ||
disabled: boolean; | ||
disabled?: boolean; | ||
@@ -43,3 +43,3 @@ /** | ||
*/ | ||
variant: typeof variants[number]; | ||
variant?: typeof variants[number]; | ||
@@ -49,3 +49,3 @@ /** | ||
*/ | ||
isDraggable: boolean; | ||
isDraggable?: boolean; | ||
@@ -52,0 +52,0 @@ /** |
@@ -65,5 +65,5 @@ import { | ||
data-test-id="pie-card" | ||
tag=${this.tag} | ||
tag=${this.tag || 'a'} | ||
?isDraggable="${this.isDraggable}" | ||
variant=${this.variant} | ||
variant=${this.variant || 'default'} | ||
?disabled=${this.disabled} | ||
@@ -138,5 +138,5 @@ href=${this.href || nothing} | ||
data-test-id="pie-card" | ||
tag=${tag} | ||
tag=${tag || 'button'} | ||
?isDraggable="${isDraggable}" | ||
variant=${variant} | ||
variant=${variant || 'default'} | ||
?disabled=${disabled} | ||
@@ -143,0 +143,0 @@ role="button" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26436
12
535
+ Added@justeattakeaway/pie-webc-core@0.15.0(transitive)
- Removed@justeattakeaway/pie-webc-core@0.0.0-snapshot-release-20240105110833(transitive)