@tigerconnect/web-component-library
Advanced tools
Comparing version 1.5.2-beta.2 to 1.6.0
/// <reference types="react" /> | ||
import { AvatarInitialsThemes, AvatarShapes, AvatarSizes, AvatarThemes, AvatarTypes } from '../../types'; | ||
import { AvatarInitialsThemes, AvatarShapes, AvatarSizes, AvatarThemes, AvatarTypes, PresenceSizes, PresenceStatuses } from '../../types'; | ||
import '../../globals.css'; | ||
@@ -8,3 +8,2 @@ export interface AvatarProps { | ||
initialsTheme?: AvatarInitialsThemes; | ||
label?: string; | ||
shape?: AvatarShapes; | ||
@@ -15,4 +14,6 @@ size?: AvatarSizes; | ||
theme?: AvatarThemes; | ||
presenceSize?: PresenceSizes; | ||
presenceStatus?: PresenceStatuses | undefined; | ||
} | ||
declare function Avatar({ type, imgSrc, size, label, shape, bgColor, theme, initialsTheme, initialsString, }: AvatarProps): JSX.Element; | ||
declare function Avatar({ type, imgSrc, size, shape, bgColor, theme, initialsTheme, initialsString, presenceSize, presenceStatus, }: AvatarProps): JSX.Element; | ||
export default Avatar; |
@@ -19,1 +19,4 @@ import { Meta, Story } from '@storybook/react'; | ||
export declare const User2: Story<AvatarProps>; | ||
export declare const UserWithAvailablePresenceIndicator: Story<AvatarProps>; | ||
export declare const UserWithUnavailablePresenceIndicator: Story<AvatarProps>; | ||
export declare const UserWithDndPresenceIndicator: Story<AvatarProps>; |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
/// <reference types="react" /> | ||
import { BaseProps } from '../../types'; | ||
@@ -7,3 +7,2 @@ import type { AvatarProps } from '../Avatar/Avatar'; | ||
avatar: AvatarProps; | ||
children?: React.ReactNode; | ||
name: string; | ||
@@ -34,5 +33,4 @@ options: { | ||
}; | ||
ref?: React.RefObject<HTMLDivElement>; | ||
}; | ||
declare function EntityDetail({ avatar, children, name, options, ref }: BaseProps & EntityDetailProps): JSX.Element; | ||
declare function EntityDetail({ avatar, name, options }: BaseProps & EntityDetailProps): JSX.Element; | ||
export default EntityDetail; |
@@ -8,3 +8,2 @@ import { Meta, Story } from '@storybook/react'; | ||
export declare const Search_Result_User3: Story<EntityDetailProps>; | ||
export declare const Search_Result_With_Children: Story<EntityDetailProps>; | ||
export declare const Search_Result_Patient: Story<EntityDetailProps>; | ||
@@ -11,0 +10,0 @@ export declare const Search_Result_PatientContact: Story<EntityDetailProps>; |
@@ -20,3 +20,5 @@ export declare type Mode = 'dark' | 'light'; | ||
export declare type AvatarInitialsThemes = 'team' | 'user'; | ||
export declare type PresenceStatuses = 'available' | 'unavailable' | 'dnd'; | ||
export declare type PresenceSizes = 'large' | 'medium' | 'small' | 'tiny'; | ||
export declare type CardTheme = 'default' | 'provider' | 'patient'; | ||
export declare type CardType = 'default' | 'category'; |
{ | ||
"name": "@tigerconnect/web-component-library", | ||
"version": "1.5.2-beta.2", | ||
"version": "1.6.0", | ||
"description": "a shared component library for tc projects", | ||
@@ -22,11 +22,11 @@ "main": "lib/index.esm.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.5", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-react": "^7.16.7", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@peeky/test": "^0.13.5", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^21.0.2", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@rollup/plugin-typescript": "^8.3.1", | ||
"@babel/core": "7.17.5", | ||
"@babel/preset-env": "7.16.11", | ||
"@babel/preset-react": "7.16.7", | ||
"@babel/preset-typescript": "7.16.7", | ||
"@peeky/test": "0.13.5", | ||
"@rollup/plugin-babel": "5.3.1", | ||
"@rollup/plugin-commonjs": "21.0.2", | ||
"@rollup/plugin-node-resolve": "13.1.3", | ||
"@rollup/plugin-typescript": "8.3.1", | ||
"@storybook/addon-actions": "6.4.19", | ||
@@ -36,3 +36,3 @@ "@storybook/addon-essentials": "6.4.19", | ||
"@storybook/addon-links": "6.4.19", | ||
"@storybook/addon-postcss": "^2.0.0", | ||
"@storybook/addon-postcss": "2.0.0", | ||
"@storybook/builder-webpack5": "6.4.19", | ||
@@ -42,38 +42,38 @@ "@storybook/manager-webpack5": "6.4.19", | ||
"@storybook/testing-library": "0.0.9", | ||
"@svgr/rollup": "^6.2.1", | ||
"@svgr/webpack": "^6.2.1", | ||
"@types/react": "^17.0.43", | ||
"@types/react-dom": "^16.9.8", | ||
"@types/react-transition-group": "^4.4.4", | ||
"@typescript-eslint/eslint-plugin": "^4.0.1", | ||
"@typescript-eslint/parser": "^4.0.1", | ||
"babel-loader": "^8.2.3", | ||
"classnames": "^2.2.6", | ||
"eslint": "^6.6.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.29.4", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
"framer-motion": "^6.2.8", | ||
"gh-pages": "^3.2.3", | ||
"npm-run-all": "^4.1.5", | ||
"plop": "^3.1.1", | ||
"postcss-custom-properties": "^12.1.5", | ||
"postcss-preset-env": "^7.4.2", | ||
"prettier": "^2.6.0", | ||
"react": "^16.14.0", | ||
"react-activity": "^1.2.2", | ||
"react-dom": "^16.14.0", | ||
"@svgr/rollup": "6.2.1", | ||
"@svgr/webpack": "6.2.1", | ||
"@types/react": "17.0.43", | ||
"@types/react-dom": "16.9.8", | ||
"@types/react-transition-group": "4.4.4", | ||
"@typescript-eslint/eslint-plugin": "4.0.1", | ||
"@typescript-eslint/parser": "4.0.1", | ||
"babel-loader": "8.2.3", | ||
"classnames": "2.2.6", | ||
"eslint": "6.6.0", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-import": "2.22.1", | ||
"eslint-plugin-prettier": "3.1.4", | ||
"eslint-plugin-react": "7.29.4", | ||
"eslint-plugin-react-hooks": "4.3.0", | ||
"framer-motion": "6.2.8", | ||
"gh-pages": "3.2.3", | ||
"npm-run-all": "4.1.5", | ||
"plop": "3.1.1", | ||
"postcss-custom-properties": "12.1.5", | ||
"postcss-preset-env": "7.4.2", | ||
"prettier": "2.6.0", | ||
"react": "16.14.0", | ||
"react-activity": "1.2.2", | ||
"react-dom": "16.14.0", | ||
"react-switch": "6.0.0", | ||
"react-transition-group": "^4.4.2", | ||
"rollup": "^2.68.0", | ||
"rollup-plugin-peer-deps-external": "^2.2.4", | ||
"rollup-plugin-styles": "^4.0.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"storybook-css-modules-preset": "^1.1.1", | ||
"stylelint-config-prettier": "^9.0.3", | ||
"stylelint-config-standard": "^25.0.0", | ||
"typescript": "^4.5.5", | ||
"webpack": "^5.70.0" | ||
"react-transition-group": "4.4.2", | ||
"rollup": "2.68.0", | ||
"rollup-plugin-peer-deps-external": "2.2.4", | ||
"rollup-plugin-styles": "4.0.0", | ||
"rollup-plugin-terser": "7.0.2", | ||
"storybook-css-modules-preset": "1.1.1", | ||
"stylelint-config-prettier": "9.0.3", | ||
"stylelint-config-standard": "25.0.0", | ||
"typescript": "4.5.5", | ||
"webpack": "5.70.0" | ||
}, | ||
@@ -80,0 +80,0 @@ "resolutions": { |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
196991
41
1025
1
31