@justeattakeaway/pie-card
Advanced tools
Comparing version 0.0.0-snapshot-release-20240516144918 to 0.0.0-snapshot-release-20240709100447
@@ -39,5 +39,5 @@ { | ||
"type": { | ||
"text": "Readonly<DefaultProps>" | ||
"text": "DefaultProps" | ||
}, | ||
"default": "{\n tag: 'button',\n variant: 'default',\n disabled: false,\n isDraggable: false,\n}" | ||
"default": "{\n disabled: false,\n variant: 'default',\n isDraggable: false,\n tag: 'button',\n}" | ||
} | ||
@@ -44,0 +44,0 @@ ], |
@@ -1,2 +0,2 @@ | ||
import { ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core'; | ||
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core'; | ||
import type { CSSResult } from 'lit'; | ||
@@ -51,5 +51,5 @@ import type { LitElement } from 'lit'; | ||
export declare type DefaultProps = ComponentDefaultPropsGeneric<CardProps, 'tag' | 'variant' | 'disabled' | 'isDraggable'>; | ||
export declare type DefaultProps = ComponentDefaultProps<CardProps, 'disabled' | 'variant' | 'isDraggable' | 'tag'>; | ||
export declare const defaultProps: Readonly<DefaultProps>; | ||
export declare const defaultProps: DefaultProps; | ||
@@ -56,0 +56,0 @@ declare type PaddingValue = typeof spacingTokens[number]; |
@@ -7,6 +7,6 @@ import { unsafeCSS as p, LitElement as h, html as f, nothing as v } from "lit"; | ||
`, S = ["default", "outline", "inverse", "outline-inverse"], k = ["a", "button"], u = ["a", "b", "c", "d", "e", "f", "g"], x = u.flatMap((i) => [i, ...u.map((e) => `${i},${e}`)]), l = { | ||
tag: "button", | ||
disabled: !1, | ||
variant: "default", | ||
disabled: !1, | ||
isDraggable: !1 | ||
isDraggable: !1, | ||
tag: "button" | ||
}; | ||
@@ -13,0 +13,0 @@ var D = Object.defineProperty, C = Object.getOwnPropertyDescriptor, c = (i, e, a, o) => { |
@@ -1,2 +0,2 @@ | ||
import { ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core'; | ||
import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core'; | ||
import type { CSSResult } from 'lit'; | ||
@@ -52,5 +52,5 @@ import type { LitElement } from 'lit'; | ||
export declare type DefaultProps = ComponentDefaultPropsGeneric<CardProps, 'tag' | 'variant' | 'disabled' | 'isDraggable'>; | ||
export declare type DefaultProps = ComponentDefaultProps<CardProps, 'disabled' | 'variant' | 'isDraggable' | 'tag'>; | ||
export declare const defaultProps: Readonly<DefaultProps>; | ||
export declare const defaultProps: DefaultProps; | ||
@@ -57,0 +57,0 @@ declare type PaddingValue = typeof spacingTokens[number]; |
{ | ||
"name": "@justeattakeaway/pie-card", | ||
"version": "0.0.0-snapshot-release-20240516144918", | ||
"version": "0.0.0-snapshot-release-20240709100447", | ||
"description": "PIE Design System Card built using Web Components", | ||
@@ -40,7 +40,7 @@ "type": "module", | ||
"@justeattakeaway/pie-components-config": "0.16.0", | ||
"@justeattakeaway/pie-wrapper-react": "0.14.0", | ||
"@justeattakeaway/pie-wrapper-react": "0.14.1", | ||
"cem-plugin-module-file-extensions": "0.0.5" | ||
}, | ||
"dependencies": { | ||
"@justeattakeaway/pie-webc-core": "0.0.0-snapshot-release-20240516144918" | ||
"@justeattakeaway/pie-webc-core": "0.0.0-snapshot-release-20240709100447" | ||
}, | ||
@@ -47,0 +47,0 @@ "volta": { |
@@ -23,7 +23,5 @@ <p align="center"> | ||
```bash | ||
# npm | ||
$ npm i @justeattakeaway/pie-card | ||
npm i @justeattakeaway/pie-card | ||
# yarn | ||
$ yarn add @justeattakeaway/pie-card | ||
yarn add @justeattakeaway/pie-card | ||
``` | ||
@@ -33,3 +31,3 @@ | ||
Visit [Card | PIE Design System](https://pie.design/components/card/overview) to view more information on this component. | ||
Visit [Card | PIE Design System](https://pie.design/components/card) to view more information on this component. | ||
@@ -36,0 +34,0 @@ ## Questions |
@@ -1,2 +0,2 @@ | ||
import { type ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core'; | ||
import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core'; | ||
@@ -54,3 +54,3 @@ export const variants = ['default', 'outline', 'inverse', 'outline-inverse'] as const; | ||
*/ | ||
tag?: typeof tags[number]; | ||
tag?: typeof tags[number]; | ||
@@ -65,9 +65,9 @@ /** | ||
export type DefaultProps = ComponentDefaultPropsGeneric<CardProps, 'tag' | 'variant' | 'disabled' | 'isDraggable'>; | ||
export type DefaultProps = ComponentDefaultProps<CardProps, 'disabled' | 'variant' | 'isDraggable' | 'tag'>; | ||
export const defaultProps: Readonly<DefaultProps> = { | ||
tag: 'button', | ||
export const defaultProps: DefaultProps = { | ||
disabled: false, | ||
variant: 'default', | ||
disabled: false, | ||
isDraggable: false, | ||
tag: '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
35273
39