@vonage/vvd-foundation
Advanced tools
Comparing version 2.18.1 to 2.19.0
@@ -1,9 +0,1 @@ | ||
/** | ||
* translates a plain 'object' into an array of classes (DOM) | ||
* class names are taken from keys | ||
* only a truthy valued keys taken | ||
* | ||
* @param input {object} - non-null, map of classes (keys) and their conditional toggles (via values) | ||
* @returns - an array of approved classes, order is NOT promised | ||
*/ | ||
export declare function mapToClasses(input: Record<string, unknown>): Array<string>; |
@@ -1,9 +0,1 @@ | ||
/** | ||
* translates a plain 'object' into an array of classes (DOM) | ||
* class names are taken from keys | ||
* only a truthy valued keys taken | ||
* | ||
* @param input {object} - non-null, map of classes (keys) and their conditional toggles (via values) | ||
* @returns - an array of approved classes, order is NOT promised | ||
*/ | ||
export function mapToClasses(input) { | ||
@@ -10,0 +2,0 @@ if (!input || typeof input !== 'object') { |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable no-shadow */ | ||
export var Connotation; | ||
@@ -16,3 +15,2 @@ (function (Connotation) { | ||
})(ConnotationDecorative || (ConnotationDecorative = {})); | ||
/* eslint-disable no-shadow */ | ||
export var Shape; | ||
@@ -30,3 +28,2 @@ (function (Shape) { | ||
})(Size || (Size = {})); | ||
/* eslint-disable no-shadow */ | ||
export var Layout; | ||
@@ -33,0 +30,0 @@ (function (Layout) { |
@@ -1,3 +0,3 @@ | ||
export * from './form-association/associate-with-form'; | ||
export * from './form-association/request-submit'; | ||
export * from './form-association/submit-on-enter-key'; | ||
export * from './form-association/associate-with-form.js'; | ||
export * from './form-association/request-submit.js'; | ||
export * from './form-association/submit-on-enter-key.js'; |
@@ -1,4 +0,4 @@ | ||
export * from './form-association/associate-with-form'; | ||
export * from './form-association/request-submit'; | ||
export * from './form-association/submit-on-enter-key'; | ||
export * from './form-association/associate-with-form.js'; | ||
export * from './form-association/request-submit.js'; | ||
export * from './form-association/submit-on-enter-key.js'; | ||
//# sourceMappingURL=form-association.js.map |
@@ -1,2 +0,2 @@ | ||
import { InputElement } from './common'; | ||
import type { InputElement } from './common.js'; | ||
declare const types: string[]; | ||
@@ -3,0 +3,0 @@ export declare type HiddenInputType = typeof types; |
@@ -1,2 +0,2 @@ | ||
import { getFormByIdOrClosest } from './common'; | ||
import { getFormByIdOrClosest, } from './common.js'; | ||
const types = ['checkbox', 'textarea', 'input']; | ||
@@ -3,0 +3,0 @@ class FormAssociationDisconnectionComponent extends HTMLElement { |
@@ -1,3 +0,3 @@ | ||
import { requestSubmit } from '../form-association'; | ||
import { getFormByIdOrClosest } from './common'; | ||
import { requestSubmit } from '../form-association.js'; | ||
import { getFormByIdOrClosest } from './common.js'; | ||
export function submitOnEnter(element) { | ||
@@ -4,0 +4,0 @@ element.addEventListener('keydown', function (event) { |
@@ -1,2 +0,2 @@ | ||
export * from './utils/emitter'; | ||
export * from './utils/emitter.js'; | ||
export declare function handleAutofocus(targetElement: HTMLElement): void; | ||
@@ -3,0 +3,0 @@ export declare function handleMultipleDenseProps(targetElement: any, changes: Map<string, boolean>): void; |
@@ -1,2 +0,2 @@ | ||
export * from './utils/emitter'; | ||
export * from './utils/emitter.js'; | ||
export function handleAutofocus(targetElement) { | ||
@@ -12,5 +12,3 @@ if (!targetElement || !targetElement.hasAttribute) { | ||
} | ||
export function handleMultipleDenseProps( | ||
// eslint-disable-next-line | ||
targetElement, changes) { | ||
export function handleMultipleDenseProps(targetElement, changes) { | ||
if (changes.has('dense')) { | ||
@@ -17,0 +15,0 @@ if (targetElement.dense && targetElement.enlarged) { |
{ | ||
"name": "@vonage/vvd-foundation", | ||
"version": "2.18.1", | ||
"version": "2.19.0", | ||
"description": "internal package to hold constants, definitions and primitives to be used in the rest of Vivid ecosystem", | ||
@@ -34,7 +34,7 @@ "homepage": "https://github.com/Vonage/vivid/tree/master/components/foundation#readme", | ||
"devDependencies": { | ||
"@vonage/vvd-design-tokens": "2.18.1", | ||
"@vonage/vvd-umbrella": "2.18.1", | ||
"@vonage/vvd-design-tokens": "2.19.0", | ||
"@vonage/vvd-umbrella": "2.19.0", | ||
"typescript": "^4.3.2" | ||
}, | ||
"gitHead": "d791e96e279d0a6c3f1b5a020f5c07e4bbc24c49" | ||
"gitHead": "db5c6cfdb6b835e65b43229d7fbba730f22fc857" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53501
315