@spectrum-web-components/field-label
Advanced tools
Comparing version 0.5.3-alpha.1 to 0.5.3
{ | ||
"version": "experimental", | ||
"tags": [ | ||
"schemaVersion": "1.0.0", | ||
"readme": "", | ||
"modules": [ | ||
{ | ||
"name": "sp-field-label", | ||
"path": "./sp-field-label.d.ts", | ||
"attributes": [ | ||
"kind": "javascript-module", | ||
"path": "src/FieldLabel.ts", | ||
"declarations": [ | ||
{ | ||
"name": "disabled", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
"kind": "class", | ||
"description": "", | ||
"name": "FieldLabel", | ||
"members": [ | ||
{ | ||
"kind": "field", | ||
"name": "instanceCount", | ||
"type": { | ||
"text": "number" | ||
}, | ||
"static": true, | ||
"default": "0", | ||
"privacy": "private" | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "disabled", | ||
"type": { | ||
"text": "boolean" | ||
}, | ||
"privacy": "public", | ||
"default": "false", | ||
"attribute": "disabled", | ||
"reflects": true | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "id", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"privacy": "public", | ||
"default": "''", | ||
"attribute": "id" | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "for", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"privacy": "public", | ||
"default": "''", | ||
"attribute": "for" | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "required", | ||
"type": { | ||
"text": "boolean" | ||
}, | ||
"privacy": "public", | ||
"default": "false", | ||
"attribute": "required", | ||
"reflects": true | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "sideAligned", | ||
"type": { | ||
"text": "'start' | 'end'" | ||
}, | ||
"privacy": "public", | ||
"attribute": "side-aligned", | ||
"reflects": true | ||
}, | ||
{ | ||
"kind": "field", | ||
"name": "target", | ||
"type": { | ||
"text": "HTMLElement" | ||
}, | ||
"privacy": "private" | ||
}, | ||
{ | ||
"kind": "method", | ||
"name": "handleClick", | ||
"privacy": "private", | ||
"return": { | ||
"type": { | ||
"text": "void" | ||
} | ||
} | ||
}, | ||
{ | ||
"kind": "method", | ||
"name": "manageFor", | ||
"privacy": "private", | ||
"return": { | ||
"type": { | ||
"text": "Promise<void>" | ||
} | ||
} | ||
} | ||
], | ||
"attributes": [ | ||
{ | ||
"name": "disabled", | ||
"type": { | ||
"text": "boolean" | ||
}, | ||
"default": "false", | ||
"fieldName": "disabled" | ||
}, | ||
{ | ||
"name": "id", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"default": "''", | ||
"fieldName": "id" | ||
}, | ||
{ | ||
"name": "for", | ||
"type": { | ||
"text": "string" | ||
}, | ||
"default": "''", | ||
"fieldName": "for" | ||
}, | ||
{ | ||
"name": "required", | ||
"type": { | ||
"text": "boolean" | ||
}, | ||
"default": "false", | ||
"fieldName": "required" | ||
}, | ||
{ | ||
"name": "side-aligned", | ||
"type": { | ||
"text": "'start' | 'end'" | ||
}, | ||
"fieldName": "sideAligned" | ||
} | ||
], | ||
"mixins": [ | ||
{ | ||
"name": "SizedMixin", | ||
"package": "@spectrum-web-components/base" | ||
} | ||
], | ||
"superclass": { | ||
"name": "SpectrumElement", | ||
"package": "@spectrum-web-components/base" | ||
}, | ||
"tagName": "sp-field-label", | ||
"customElement": true | ||
} | ||
], | ||
"exports": [ | ||
{ | ||
"name": "id", | ||
"type": "string", | ||
"default": "\"\"" | ||
}, | ||
"kind": "js", | ||
"name": "FieldLabel", | ||
"declaration": { | ||
"name": "FieldLabel", | ||
"module": "src/FieldLabel.ts" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "src/field-label.css.ts", | ||
"declarations": [ | ||
{ | ||
"name": "for", | ||
"type": "string", | ||
"default": "\"\"" | ||
}, | ||
"kind": "variable", | ||
"name": "styles", | ||
"default": "css`\n:host([size=s]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-s-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-s-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-s-text-size,var(--spectrum-global-dimension-font-size-75));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-s-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-s-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-s-padding-top,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-s-padding-bottom,var(--spectrum-global-dimension-size-65))}:host([size=m]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-m-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-m-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-m-text-size,var(--spectrum-global-dimension-font-size-75));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-m-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-m-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-m-padding-top,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-m-padding-bottom,var(--spectrum-global-dimension-size-65))}:host([size=l]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-l-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-l-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-l-text-size,var(--spectrum-global-dimension-font-size-100));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-l-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-l-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-l-padding-top,var(--spectrum-global-dimension-size-75));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-l-padding-bottom,var(--spectrum-global-dimension-size-115))}:host([size=xl]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-xl-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-xl-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-xl-text-size,var(--spectrum-global-dimension-font-size-200));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-xl-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-xl-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-xl-padding-top,var(--spectrum-global-dimension-size-115));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-xl-padding-bottom,var(--spectrum-global-dimension-size-130))}:host{display:block;box-sizing:border-box;padding-top:var(--spectrum-fieldlabel-padding-top);padding-bottom:var(--spectrum-fieldlabel-padding-bottom);padding-left:0;padding-right:0;font-size:var(--spectrum-fieldlabel-text-size);font-weight:var(--spectrum-fieldlabel-text-font-weight);line-height:var(--spectrum-fieldlabel-text-line-height);vertical-align:top;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased}:host([dir=ltr]) .requiredIcon{margin-left:var(--spectrum-fieldlabel-asterisk-gap);margin-right:0}:host([dir=rtl]) .requiredIcon{margin-right:var(--spectrum-fieldlabel-asterisk-gap);margin-left:0}.requiredIcon{margin-top:var(--spectrum-fieldlabel-asterisk-margin-y);margin-bottom:0}:host([dir=ltr][side-aligned=start]){padding-left:0;padding-right:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([dir=rtl][side-aligned=start]){padding-right:0;padding-left:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([side-aligned=start]){display:inline-block;padding-top:var(--spectrum-fieldlabel-side-m-padding-top,var(--spectrum-global-dimension-size-100));padding-bottom:0}:host([dir=ltr][side-aligned=start]) .requiredIcon{margin-left:var(--spectrum-fieldlabel-asterisk-gap);margin-right:0}:host([dir=rtl][side-aligned=start]) .requiredIcon{margin-right:var(--spectrum-fieldlabel-asterisk-gap);margin-left:0}:host([side-aligned=start]) .requiredIcon{margin-top:var(--spectrum-fieldlabel-side-m-asterisk-margin-y,var(--spectrum-global-dimension-size-50));margin-bottom:0}:host([dir=ltr][side-aligned=end]){text-align:right}:host([dir=rtl][side-aligned=end]){text-align:left}:host([dir=ltr][side-aligned=end]){padding-left:0;padding-right:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([dir=rtl][side-aligned=end]){padding-right:0;padding-left:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([side-aligned=end]){display:inline-block;padding-top:var(--spectrum-fieldlabel-side-m-padding-top,var(--spectrum-global-dimension-size-100));padding-bottom:0}:host{color:var(--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color))}:host([disabled]){color:var(--spectrum-fieldlabel-m-text-color-disabled,var(--spectrum-alias-text-color-disabled))}:host([disabled]) .requiredIcon{color:var(--spectrum-fieldlabel-m-asterisk-color-disabled,var(--spectrum-alias-text-color-disabled))}.requiredIcon{color:var(--spectrum-fieldlabel-m-asterisk-color,var(--spectrum-global-color-gray-600))}\n`" | ||
} | ||
], | ||
"exports": [ | ||
{ | ||
"name": "required", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
"kind": "js", | ||
"name": "default", | ||
"declaration": { | ||
"name": "styles", | ||
"module": "src/field-label.css.ts" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "src/index.ts", | ||
"declarations": [], | ||
"exports": [ | ||
{ | ||
"name": "side-aligned", | ||
"type": "\"start\" | \"end\" | undefined" | ||
}, | ||
"kind": "js", | ||
"name": "*", | ||
"declaration": { | ||
"name": "*", | ||
"package": "./FieldLabel.js" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "src/spectrum-field-label.css.ts", | ||
"declarations": [ | ||
{ | ||
"name": "size", | ||
"type": "ElementSize" | ||
"kind": "variable", | ||
"name": "styles", | ||
"default": "css`\n:host([size=s]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-s-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-s-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-s-text-size,var(--spectrum-global-dimension-font-size-75));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-s-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-s-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-s-padding-top,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-s-padding-bottom,var(--spectrum-global-dimension-size-65))}:host([size=m]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-m-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-m-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-m-text-size,var(--spectrum-global-dimension-font-size-75));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-m-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-m-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-m-padding-top,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-m-padding-bottom,var(--spectrum-global-dimension-size-65))}:host([size=l]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-l-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-l-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-l-text-size,var(--spectrum-global-dimension-font-size-100));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-l-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-l-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-l-padding-top,var(--spectrum-global-dimension-size-75));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-l-padding-bottom,var(--spectrum-global-dimension-size-115))}:host([size=xl]){--spectrum-fieldlabel-text-font-weight:var(--spectrum-fieldlabel-xl-text-font-weight,var(--spectrum-alias-body-text-font-weight));--spectrum-fieldlabel-text-line-height:var(--spectrum-fieldlabel-xl-text-line-height,var(--spectrum-alias-component-text-line-height));--spectrum-fieldlabel-text-size:var(--spectrum-fieldlabel-xl-text-size,var(--spectrum-global-dimension-font-size-200));--spectrum-fieldlabel-asterisk-gap:var(--spectrum-fieldlabel-xl-asterisk-gap,var(--spectrum-global-dimension-size-25));--spectrum-fieldlabel-asterisk-margin-y:var(--spectrum-fieldlabel-xl-asterisk-margin-y,var(--spectrum-global-dimension-size-50));--spectrum-fieldlabel-padding-top:var(--spectrum-fieldlabel-xl-padding-top,var(--spectrum-global-dimension-size-115));--spectrum-fieldlabel-padding-bottom:var(--spectrum-fieldlabel-xl-padding-bottom,var(--spectrum-global-dimension-size-130))}:host{display:block;box-sizing:border-box;padding-top:var(--spectrum-fieldlabel-padding-top);padding-bottom:var(--spectrum-fieldlabel-padding-bottom);padding-left:0;padding-right:0;font-size:var(--spectrum-fieldlabel-text-size);font-weight:var(--spectrum-fieldlabel-text-font-weight);line-height:var(--spectrum-fieldlabel-text-line-height);vertical-align:top;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-smoothing:subpixel-antialiased}:host([dir=ltr]) .requiredIcon{margin-left:var(--spectrum-fieldlabel-asterisk-gap);margin-right:0}:host([dir=rtl]) .requiredIcon{margin-right:var(--spectrum-fieldlabel-asterisk-gap);margin-left:0}.requiredIcon{margin-top:var(--spectrum-fieldlabel-asterisk-margin-y);margin-bottom:0}:host([dir=ltr][side-aligned=start]){padding-left:0;padding-right:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([dir=rtl][side-aligned=start]){padding-right:0;padding-left:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([side-aligned=start]){display:inline-block;padding-top:var(--spectrum-fieldlabel-side-m-padding-top,var(--spectrum-global-dimension-size-100));padding-bottom:0}:host([dir=ltr][side-aligned=start]) .requiredIcon{margin-left:var(--spectrum-fieldlabel-asterisk-gap);margin-right:0}:host([dir=rtl][side-aligned=start]) .requiredIcon{margin-right:var(--spectrum-fieldlabel-asterisk-gap);margin-left:0}:host([side-aligned=start]) .requiredIcon{margin-top:var(--spectrum-fieldlabel-side-m-asterisk-margin-y,var(--spectrum-global-dimension-size-50));margin-bottom:0}:host([dir=ltr][side-aligned=end]){text-align:right}:host([dir=rtl][side-aligned=end]){text-align:left}:host([dir=ltr][side-aligned=end]){padding-left:0;padding-right:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([dir=rtl][side-aligned=end]){padding-right:0;padding-left:var(--spectrum-fieldlabel-side-m-padding-right,var(--spectrum-global-dimension-size-150))}:host([side-aligned=end]){display:inline-block;padding-top:var(--spectrum-fieldlabel-side-m-padding-top,var(--spectrum-global-dimension-size-100));padding-bottom:0}:host{color:var(--spectrum-fieldlabel-m-text-color,var(--spectrum-alias-label-text-color))}:host([disabled]){color:var(--spectrum-fieldlabel-m-text-color-disabled,var(--spectrum-alias-text-color-disabled))}:host([disabled]) .requiredIcon{color:var(--spectrum-fieldlabel-m-asterisk-color-disabled,var(--spectrum-alias-text-color-disabled))}.requiredIcon{color:var(--spectrum-fieldlabel-m-asterisk-color,var(--spectrum-global-color-gray-600))}\n`" | ||
} | ||
], | ||
"properties": [ | ||
"exports": [ | ||
{ | ||
"name": "disabled", | ||
"attribute": "disabled", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "id", | ||
"attribute": "id", | ||
"type": "string", | ||
"default": "\"\"" | ||
}, | ||
{ | ||
"name": "for", | ||
"attribute": "for", | ||
"type": "string", | ||
"default": "\"\"" | ||
}, | ||
{ | ||
"name": "required", | ||
"attribute": "required", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "sideAligned", | ||
"attribute": "side-aligned", | ||
"type": "\"start\" | \"end\" | undefined" | ||
}, | ||
{ | ||
"name": "size", | ||
"attribute": "size", | ||
"type": "ElementSize" | ||
"kind": "js", | ||
"name": "default", | ||
"declaration": { | ||
"name": "styles", | ||
"module": "src/spectrum-field-label.css.ts" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "javascript-module", | ||
"path": "test/field-label.test-vrt.ts", | ||
"declarations": [], | ||
"exports": [] | ||
} | ||
] | ||
} | ||
} |
{ | ||
"name": "@spectrum-web-components/field-label", | ||
"version": "0.5.3-alpha.1+7b33b99a3", | ||
"version": "0.5.3", | ||
"publishConfig": { | ||
@@ -47,6 +47,6 @@ "access": "public" | ||
"dependencies": { | ||
"@spectrum-web-components/base": "^0.4.5-alpha.59+7b33b99a3", | ||
"@spectrum-web-components/icon": "^0.9.8-alpha.59+7b33b99a3", | ||
"@spectrum-web-components/icons-ui": "^0.6.8-alpha.59+7b33b99a3", | ||
"@spectrum-web-components/shared": "^0.12.7-alpha.1+7b33b99a3", | ||
"@spectrum-web-components/base": "^0.4.5", | ||
"@spectrum-web-components/icon": "^0.9.8", | ||
"@spectrum-web-components/icons-ui": "^0.6.8", | ||
"@spectrum-web-components/shared": "^0.12.7", | ||
"tslib": "^2.0.0" | ||
@@ -58,7 +58,7 @@ }, | ||
"types": "./src/index.d.ts", | ||
"customElementsManifest": "custom-elements.json", | ||
"customElements": "custom-elements.json", | ||
"sideEffects": [ | ||
"./sp-*.js" | ||
], | ||
"gitHead": "7b33b99a3b1747fffb387f4e6696dcaa4a3618a4" | ||
"gitHead": "fbd509e0f30f1da0dcb972fa9ac5492acc00d96e" | ||
} |
@@ -1,2 +0,2 @@ | ||
declare const styles: import("@spectrum-web-components/base").CSSResultGroup; | ||
declare const styles: import("@spectrum-web-components/base").CSSResult; | ||
export default styles; |
@@ -1,2 +0,2 @@ | ||
declare const styles: import("@spectrum-web-components/base").CSSResultGroup; | ||
declare const styles: import("@spectrum-web-components/base").CSSResult; | ||
export default styles; |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
114220
29
915
0