Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@symbo.ls/avatar

Package Overview
Dependencies
Maintainers
5
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbo.ls/avatar - npm Package Compare versions

Comparing version 2.11.204 to 2.11.205

AvatarChooser.js

60

index.js
'use strict'
import { Button } from '@symbo.ls/button'
export * from './Avatar'
export * from './AvatarIndicator'
export * from './AvatarBundle'
export const AvatarChooser = {
extend: Button,
tag: 'label',
props: {
round: 'C',
gap: 'Y',
padding: 'W2 A W2 W2',
theme: 'tertiary',
position: 'relative',
cursor: 'pointer'
},
Avatar: {
props: ({ state }) => ({
key: state.key,
boxSize: 'B1',
pointerEvents: 'none'
})
},
Select: {
props: {
outline: 'none',
pointerEvents: 'all',
appearance: 'none',
border: 'none',
width: '100%',
height: '100%',
background: 'none',
color: 'currentColor',
fontSize: 'A',
lineHeight: 1,
margin: '0 0 0 -B1+X',
padding: '0 A 0 B1+X',
':focus-visible': {
outline: 'none'
}
},
childExtend: { tag: 'option' },
$setPropsCollection: ({ parent, state }) => {
return parent.props.options.map(v => {
if (v.text === state.key) return { ...v, selected: true }
return v
})
},
on: {
change: (ev, { state }) => {
state.update({ key: ev.target.value })
console.log(state.key)
}
}
}
}
export * from './AvatarChooser'
{
"name": "@symbo.ls/avatar",
"version": "2.11.204",
"version": "2.11.205",
"main": "index.js",
"license": "MIT",
"gitHead": "dab7f6d84335bca5af356b849c51204910670e76",
"gitHead": "34a12e0c41de4a08c45fa5f48b0913510b861c06",
"dependencies": {

@@ -8,0 +8,0 @@ "@symbo.ls/atoms": "latest",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc