@engie-group/fluid-design-system-vue
Advanced tools
Comparing version 0.1.0 to 0.1.1
import tokens from "@engie-group/fluid-design-tokens/lib/json/tokens.json"; | ||
declare type IconColor = "primary" | "inverse" | "grey" | "brand" | "teal" | "pink" | "orange" | "red" | "green" | "ultramarine" | "yellow" | "purple"; | ||
declare type IconSize = keyof typeof tokens.size.icon; | ||
@@ -11,7 +12,4 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{ | ||
size?: IconSize; | ||
/** | ||
* Enable the disabled variant of the icon. | ||
* Note: It has no semantic meaning and is only visual. | ||
*/ | ||
disabled?: boolean; | ||
/** Color variant of the icon. */ | ||
variant?: IconColor; | ||
}>, { | ||
@@ -27,7 +25,4 @@ size: string; | ||
size?: IconSize; | ||
/** | ||
* Enable the disabled variant of the icon. | ||
* Note: It has no semantic meaning and is only visual. | ||
*/ | ||
disabled?: boolean; | ||
/** Color variant of the icon. */ | ||
variant?: IconColor; | ||
}>, { | ||
@@ -34,0 +29,0 @@ size: string; |
{ | ||
"name": "@engie-group/fluid-design-system-vue", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"type": "module", | ||
@@ -28,2 +28,3 @@ "description": "Fluid Design System Vue", | ||
"test:check": "vitest", | ||
"test:update": "vitest -u", | ||
"test:cov": "vitest --coverage", | ||
@@ -33,4 +34,4 @@ "lint": "eslint ." | ||
"dependencies": { | ||
"@engie-group/fluid-design-system": "^5.0.0-rc.1", | ||
"@engie-group/fluid-design-tokens": "^5.0.0-rc.1" | ||
"@engie-group/fluid-design-system": "^5.0.0-rc.2", | ||
"@engie-group/fluid-design-tokens": "^5.0.0-rc.2" | ||
}, | ||
@@ -41,3 +42,2 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"vue": "3.2.37", | ||
"@babel/core": "7.19.3", | ||
@@ -58,6 +58,7 @@ "@typescript-eslint/eslint-plugin": "5.40.0", | ||
"vite": "3.1.0", | ||
"vite-plugin-css-injected-by-js": "2.1.0", | ||
"vitest": "0.24.1", | ||
"vue": "3.2.37", | ||
"vue-loader": "16.8.3", | ||
"vue-tsc": "0.40.4", | ||
"vite-plugin-css-injected-by-js": "2.1.0" | ||
"vue-tsc": "0.40.4" | ||
}, | ||
@@ -70,3 +71,4 @@ "files": [ | ||
"module": "./dist/fluid-design-system-vue.js", | ||
"types": "./dist/main.d.ts" | ||
"types": "./dist/main.d.ts", | ||
"gitHead": "15c140502f155387791a6f74ec70bad850f24d9a" | ||
} |
import { mount } from '@vue/test-utils'; | ||
import { describe, expect, it } from 'vitest'; | ||
import tokens from '@engie-group/fluid-design-tokens/lib/json/tokens.json'; | ||
@@ -19,21 +18,6 @@ import NjIcon from './NjIcon.vue'; | ||
it('renders all sizes correctly', () => { | ||
const sizes = Object.keys(tokens.size.icon); | ||
for (const size of sizes) { | ||
const wrapper = mount(NjIcon, { | ||
props: { | ||
name: 'add', | ||
size, | ||
}, | ||
}); | ||
expect(wrapper.element).toMatchSnapshot(); | ||
} | ||
}); | ||
it('renders disabled correctly', () => { | ||
const wrapper = mount(NjIcon, { | ||
props: { | ||
name: 'add', | ||
disabled: true, | ||
size: 'lg', | ||
}, | ||
@@ -40,0 +24,0 @@ }); |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
16
1594039
6483